lchmod: Simplify after 2020-02-22 change.
[gnulib.git] / ChangeLog
blob5365f4fa9e6236f21dbfd3ff89af4498abdc45f9
1 2020-07-03  Bruno Haible  <bruno@clisp.org>
3         lchmod: Simplify after 2020-02-22 change.
4         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
6 2020-07-03  Bruno Haible  <bruno@clisp.org>
8         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
9         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
11 2020-07-03  Bruno Haible  <bruno@clisp.org>
13         dfa: Make sure the compiler does not barf on 'inline'.
14         * modules/dfa (configure.ac): Require AC_C_INLINE.
16 2020-07-03  Bruno Haible  <bruno@clisp.org>
18         bitset: Make sure the compiler does not barf on 'inline'.
19         * modules/bitset (configure.ac): New section.
21 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23         manywarnings: improve port to GCC 10.1
24         * build-aux/gcc-warning.spec: Also list warnings that are default
25         or are enabled by already-given flags.  This lets us speed up
26         checking for attributes, and makes the generated compilation
27         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
28         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
29         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
30         to shell variables that may have long values.
31         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
32         consequences of other flags, to speed up checking and
33         shorten commands.
35         tests: pacify gcc -fanalyzer on zerosize_ptr
36         * tests/test-memcasecmp.c (main):
37         * tests/test-memchr.c (main):
38         * tests/test-memchr2.c (main):
39         * tests/test-memcmp.c (main):
40         * tests/test-memmem.c (main):
41         * tests/test-memrchr.c (main):
42         * tests/unistr/test-chr.h (main):
43         * tests/unistr/test-cmp.h (test_cmp):
44         Check whether zerosize_ptr returns NULL before using it.
45         This pacifies GCC 10.1’s new fanalyzer option, and matches
46         other uses of zerosize_ptr.
48 2020-07-01  Bruno Haible  <bruno@clisp.org>
50         asyncsafe-spin: Add tests.
51         * tests/test-asyncsafe-spin1.c: New file.
52         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
53         tests/test-pthread-spin.c.
54         * modules/asyncsafe-spin-tests: New file.
56 2020-07-01  Bruno Haible  <bruno@clisp.org>
58         asyncsafe-spin: New module.
59         * lib/asyncsafe-spin.h: New file.
60         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
61         * modules/asyncsafe-spin: New file.
63 2020-07-01  Bruno Haible  <bruno@clisp.org>
65         windows-spin: Fix race condition on multiprocessor systems.
66         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
68 2020-07-01  Bruno Haible  <bruno@clisp.org>
70         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
71         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
72         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
73         an implementation based on other GCC built-ins.
75 2020-07-01  Bruno Haible  <bruno@clisp.org>
77         pthread-spin: Optimize fallback for GCC versions >= 4.7.
78         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
79         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
80         lock byte.
82 2020-07-01  Bruno Haible  <bruno@clisp.org>
84         pthread-spin: Add error checking.
85         * lib/pthread-spin.c: Include <stdbool.h>.
86         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
87         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
88         the unlocks.
89         * modules/pthread-spin (Depends-on): Add stdbool.
91 2020-07-01  Bruno Haible  <bruno@clisp.org>
93         pthread-spin: Add tests.
94         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
95         * modules/pthread-spin-tests: New file.
97 2020-07-01  Bruno Haible  <bruno@clisp.org>
99         tests: Reduce code duplication.
100         * tests/atomic-int-posix.h: New file, extracted from
101         tests/test-pthread-mutex.c.
102         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
103         * tests/test-pthread-rwlock.c: Likewise.
104         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
105         * modules/pthread-rwlock-tests (Files): Likewise.
107 2020-07-01  Bruno Haible  <bruno@clisp.org>
109         tests: Refactor.
110         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
111         * tests/test-mtx.c: Include it. Remove the corresponding code.
112         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
114 2020-07-01  Bruno Haible  <bruno@clisp.org>
116         tests: Refactor.
117         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
118         * tests/test-lock.c: Include it. Remove the corresponding code.
119         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
121 2020-06-29  Bruno Haible  <bruno@clisp.org>
123         sys_socket: Don't define socklen_t if it is already defined on mingw.
124         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
125         <https://savannah.gnu.org/bugs/?57725>,
126         by Rahul Das <bokul_4u@yahoo.com> in
127         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
128         and by Eli Zaretskii <eliz@gnu.org> in
129         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
130         * lib/sys_socket.in.h (socklen_t): Remove definition.
132 2020-06-29  Bruno Haible  <bruno@clisp.org>
134         alloca-opt: Fix warning on mingw.
135         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
136         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
137         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
138         whether alloca is defined.
140 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
142         getrandom: do not depend on ‘open’ on mingw
143         Similarly for at-internal, getloadavg.  These modules do not call
144         the ‘open’ function when they are compiled on mingw.  On mingw,
145         this avoids having to compile open.c when building Emacs, which
146         does its own thing with ‘open’.
147         * modules/at-internal, modules/getloadavg, modules/getrandom:
148         (Depends-on): Don’t depend on ‘open’ on mingw.
149         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
150         * modules/getloadavg (Depends-on):
151         Depend on intprops, open, stdbool, stdlib only if compiling
152         getloadavg.c.
154 2020-06-28  Bruno Haible  <bruno@clisp.org>
156         doc: Add a note about sigprocmask vs. pthread_sigmask.
157         * doc/posix-functions/sigprocmask.texi: Add note.
159 2020-06-28  Bruno Haible  <bruno@clisp.org>
161         getrandom: Fix compilation errors on older versions of mingw.
162         Reported by Eli Zaretskii <eliz@gnu.org> in
163         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
164         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
165         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
166         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
167         BCryptGenRandom ourselves.
169 2020-06-28  Bruno Haible  <bruno@clisp.org>
171         clean-temp: Fix wrong errno in error message.
172         * lib/clean-temp.c (create_temp_dir): Save errno around
173         unblock_fatal_signals call.
175 2020-06-27  Bruno Haible  <bruno@clisp.org>
177         fatal-signal: Make multithread-safe.
178         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
180 2020-06-27  Bruno Haible  <bruno@clisp.org>
182         clean-temp: Don't force deletion of temporary files on native Windows.
183         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
184         argument.
185         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
186         * NEWS: Mention the change.
187         * lib/javacomp.c (write_temp_file): Update.
189 2020-06-27  Bruno Haible  <bruno@clisp.org>
191         fatal-signal: Make multithread-safe.
192         * lib/fatal-signal.c: Include glthread/lock.h.
193         (at_fatal_signal_lock): New variable.
194         (at_fatal_signal): Use it.
195         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
196         (block_fatal_signals, unblock_fatal_signals): Use them.
197         * modules/fatal-signal (Depends-on): Add lock.
199 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
201         getloadavg: don’t depend on fopen-gnu
202         This is for Emacs, which does not need fopen-gnu for anything else,
203         and which would need it only on a NetBSD platform where getloadavg
204         does not work (does that even happen?).
205         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
206         * modules/getloadavg (Depends-on): Remove fopen-gnu.
208         * tests/test-getloadavg.c (main): Fix typo.
210 2020-06-27  Bruno Haible  <bruno@clisp.org>
212         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
213         * modules/tempname (Link): New section.
214         * modules/mkdtemp (Link): Likewise.
215         * modules/clean-temp (Link): Likewise.
216         * modules/mkstemp (Link): Likewise.
217         * modules/stdlib-safer (Link): Likewise.
218         * modules/mkstemps (Link): Likewise.
219         * modules/mkostemp (Link): Likewise.
220         * modules/mkostemps (Link): Likewise.
221         * modules/tmpfile (Link): Likewise.
222         * modules/tmpfile-safer (Link): Likewise.
223         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
224         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
225         $(LIB_GETRANDOM).
226         * NEWS: Mention the changes.
228 2020-06-27  Bruno Haible  <bruno@clisp.org>
230         fopen-gnu: Simplify code.
231         * lib/fopen.c: Include <stdbool.h>.
232         (rpl_fopen): Use a single variable open_flags instead of
233         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
234         * modules/fopen (Depends-on): Add stdbool.
236 2020-06-26  Bruno Haible  <bruno@clisp.org>
238         canonicalize: Improve documentation.
239         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
240         return convention.
242 2020-06-26  Bruno Haible  <bruno@clisp.org>
244         xgetcwd: Improve documentation.
245         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
247 2020-06-26  Bruno Haible  <bruno@clisp.org>
249         getcwd: Improve documentation.
250         * lib/getcwd.c (__getcwd): Document the failure return convention.
252 2020-06-26  Bruno Haible  <bruno@clisp.org>
254         fchdir: Improve documentation.
255         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
256         convention.
258 2020-06-26  Bruno Haible  <bruno@clisp.org>
260         filenamecat-lgpl: Set errno upon failure.
261         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
262         return convention.
263         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
265 2020-06-26  Bruno Haible  <bruno@clisp.org>
267         areadlink-with-size: Set errno upon failure.
268         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
269         fails.
270         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
272 2020-06-26  Bruno Haible  <bruno@clisp.org>
274         copy-file: Shrink dependencies.
275         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
276         qcopy-acl.
278 2020-06-26  Bruno Haible  <bruno@clisp.org>
280         doc: Mention declaration fixes implemented by some modules.
281         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
282         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
283         declaration appear in <unistd.h>.
284         * doc/posix-functions/dup.texi: Likewise.
285         * doc/posix-functions/dup2.texi: Likewise.
286         * doc/posix-functions/gethostname.texi: Likewise.
287         * doc/posix-functions/isatty.texi: Likewise.
288         * doc/posix-functions/lseek.texi: Likewise.
289         * doc/posix-functions/unlink.texi: Likewise.
290         * doc/posix-functions/read.texi: Mention the module 'read'.
291         * doc/posix-functions/write.texi: Mention the effects of the module
292         'write'.
294 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
296         c-dtoastr, c-ldtoastr: new modules
297         These modules provide the same functionality as the modules
298         dtoastr and ldtoastr except for the formatting taking place in the
299         C locale.
300         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
301         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
302         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
303         defined.  Use c_snprintf and c_strtod/c_strtold instead of
304         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
305         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
306         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
307         modules/c-ldtoastr-tests: New files.
308         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
309         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
311 2020-06-21  Bruno Haible  <bruno@clisp.org>
313         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
314         * lib/tzset.c: Include <stdlib.h>, <string.h>.
316 2020-06-16  Bruno Haible  <bruno@clisp.org>
318         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
319         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
321 2020-06-16  Bruno Haible  <bruno@clisp.org>
323         thread, thrd: Avoid a compiler warning.
324         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
326 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
328         windows-thread: Avoid a compiler warning.
329         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
330         void.
331         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
333 2020-06-15  Bruno Haible  <bruno@clisp.org>
335         unictype/joininggroup-name: Fix warning on 64-bit mingw.
336         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
337         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
338         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
339         first.
341 2020-06-06  Bruno Haible  <bruno@clisp.org>
343         calloc-gnu tests: Avoid a test failure with clang.
344         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
345         'volatile', to defeat compiler optimizations.
347 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
349         getloadavg: fix double-increment bug
350         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
351         Linux without glibc, Android, Cygwin.  This fixes a bug I
352         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
353         Problem and fix reported by Semen Verchenko in:
354         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
356         tempname: use getrandom, not getentropy
357         This removes a dependency, as getentropy depends on getrandom.
358         * lib/tempname.c: Include sys/random.h instead of unistd.h.
359         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
360         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
362 2020-06-01  Bruno Haible  <bruno@clisp.org>
364         doc: New chapter 'Multithreading'.
365         * doc/multithread.texi: New file.
366         * doc/gnulib.texi: Include it.
368 2020-06-01  Bruno Haible  <bruno@clisp.org>
370         doc: Move 'Running self-tests under valgrind' section.
371         * doc/gnulib.texi (Build Infrastructure Modules): Include
372         valgrind-tests.texi here...
373         (Miscellaneous Notes): ... not here.
375 2020-06-01  Bruno Haible  <bruno@clisp.org>
377         doc: Move 'Visual Studio Compatibility' section.
378         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
379         here...
380         (Build Infrastructure Modules): ... not here.
382 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
384         doc: improve randomness discussion
385         Inspired by comments from Jeffrey Walton in:
386         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
387         * doc/glibc-functions/getentropy.texi (getentropy):
388         * doc/glibc-functions/getrandom.texi (getrandom):
389         Improve discussion of problems with "random" data,
390         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
392 2020-06-01  Bruno Haible  <bruno@clisp.org>
394         doc: Fix Texinfo syntax error.
395         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
397 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
399         doc: Change '.' to '@.' where appropriate.
400         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
401         * doc/glibc-functions/fstatfs.texi: Likewise.
402         * doc/glibc-functions/fts_children.texi: Likewise.
403         * doc/glibc-functions/fts_read.texi: Likewise.
404         * doc/glibc-functions/getdirentries.texi: Likewise.
405         * doc/glibc-functions/mkostemp.texi: Likewise.
406         * doc/glibc-functions/mkostemps.texi: Likewise.
407         * doc/glibc-functions/mkstemps.texi: Likewise.
408         * doc/glibc-functions/preadv.texi: Likewise.
409         * doc/glibc-functions/pwritev.texi: Likewise.
410         * doc/glibc-functions/sendfile.texi: Likewise.
411         * doc/glibc-functions/statfs.texi: Likewise.
412         * doc/gnulib-intro.texi: Likewise.
413         * doc/gnulib-tool.texi: Likewise.
414         * doc/intprops.texi: Likewise.
415         * doc/lib-symbol-visibility.texi: Likewise.
416         * doc/licenses-texi.texi: Likewise.
417         * doc/pastposix-functions/bcmp.texi: Likewise.
418         * doc/pastposix-functions/bcopy.texi: Likewise.
419         * doc/pastposix-functions/bzero.texi: Likewise.
420         * doc/pastposix-functions/ecvt.texi: Likewise.
421         * doc/pastposix-functions/fcvt.texi: Likewise.
422         * doc/pastposix-functions/ftime.texi: Likewise.
423         * doc/pastposix-functions/gcvt.texi: Likewise.
424         * doc/pastposix-functions/getwd.texi: Likewise.
425         * doc/pastposix-functions/index.texi: Likewise.
426         * doc/pastposix-functions/mktemp.texi: Likewise.
427         * doc/pastposix-functions/rindex.texi: Likewise.
428         * doc/pastposix-functions/wcswcs.texi: Likewise.
429         * doc/posix-functions/aio_cancel.texi: Likewise.
430         * doc/posix-functions/aio_error.texi: Likewise.
431         * doc/posix-functions/aio_fsync.texi: Likewise.
432         * doc/posix-functions/aio_read.texi: Likewise.
433         * doc/posix-functions/aio_return.texi: Likewise.
434         * doc/posix-functions/aio_suspend.texi: Likewise.
435         * doc/posix-functions/aio_write.texi: Likewise.
436         * doc/posix-functions/creat.texi: Likewise.
437         * doc/posix-functions/ctime.texi: Likewise.
438         * doc/posix-functions/daylight.texi: Likewise.
439         * doc/posix-functions/fgetpos.texi: Likewise.
440         * doc/posix-functions/fopen.texi: Likewise.
441         * doc/posix-functions/freopen.texi: Likewise.
442         * doc/posix-functions/fseeko.texi: Likewise.
443         * doc/posix-functions/fsetpos.texi: Likewise.
444         * doc/posix-functions/fstatat.texi: Likewise.
445         * doc/posix-functions/fstatvfs.texi: Likewise.
446         * doc/posix-functions/ftello.texi: Likewise.
447         * doc/posix-functions/ftruncate.texi: Likewise.
448         * doc/posix-functions/getrlimit.texi: Likewise.
449         * doc/posix-functions/lio_listio.texi: Likewise.
450         * doc/posix-functions/localtime.texi: Likewise.
451         * doc/posix-functions/lseek.texi: Likewise.
452         * doc/posix-functions/mkstemp.texi: Likewise.
453         * doc/posix-functions/mktime.texi: Likewise.
454         * doc/posix-functions/open.texi: Likewise.
455         * doc/posix-functions/openat.texi: Likewise.
456         * doc/posix-functions/opendir.texi: Likewise.
457         * doc/posix-functions/pread.texi: Likewise.
458         * doc/posix-functions/pwrite.texi: Likewise.
459         * doc/posix-functions/readdir.texi: Likewise.
460         * doc/posix-functions/readdir_r.texi: Likewise.
461         * doc/posix-functions/scandir.texi: Likewise.
462         * doc/posix-functions/seekdir.texi: Likewise.
463         * doc/posix-functions/setrlimit.texi: Likewise.
464         * doc/posix-functions/statvfs.texi: Likewise.
465         * doc/posix-functions/strftime.texi: Likewise.
466         * doc/posix-functions/telldir.texi: Likewise.
467         * doc/posix-functions/timezone.texi: Likewise.
468         * doc/posix-functions/tmpfile.texi: Likewise.
469         * doc/posix-functions/truncate.texi: Likewise.
470         * doc/posix-functions/tzname.texi: Likewise.
471         * doc/posix-functions/wcsftime.texi: Likewise.
472         * doc/windows-sockets.texi: Likewise.
474 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
476         getrandom-tests: do not assume GRND_RANDOM yields short read
477         * tests/test-getrandom.c (main): Omit assertion that
478         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
479         when b’s size is 100000.  This assertion fails with Linux kernel
480         5.6.13, as that kernel ignores the GRND_RANDOM flag.
481         The separate blocking pool is going away in the Linux kernel, and
482         they’ve added a flag GRND_INSECURE instead; see:
483         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
484         The assertion was iffy anyway; what’s to prevent a kernel from
485         lazily filling a large buffer with random bytes?
487         read-file-test: pacify --enable-gcc-warnings
488         * tests/test-read-file.c (test_read_file): Now static.
490         tempname: merge from glibc and coreutils
491         Also, merge in Gnulib’s more-recent methods of making it easier
492         to share between Gnulib and glibc, and fix a few randomness
493         glitches.
494         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
495         (__set_errno): Remove; libc-config.h does that for us.
496         Do not include <sys/time.h>.
497         (__secure_getenv) [_LIBC]: New macro.
498         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
499         (RANDOM_BITS): Rewrite.
500         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
501         (random_value): New typedef.
502         (try_file, try_dir, try_nocreate): Move up.
503         (gen_tempname_len, try_tempname_len): New functions.
504         (gen_tempname_len): Use a constant array rather than a switch.
505         (try_tempname_len): Don’t assume string length fits in int.
506         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
507         has enough entropy (it’s a bit short).
508         (__gen_tempname): Rewrite in terms of gen_tempname_len.
509         (__try_tempname): Rewrite in terms of try_tempname_len.
510         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
511         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
512         Add getentropy, libc-config.
514 2020-05-31  Bruno Haible  <bruno@clisp.org>
516         getrandom, getentropy: Mention the crypto/gc-random module.
517         Suggested by Simon Josefsson in
518         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
519         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
520         crypto/gc-random module.
521         * doc/glibc-functions/getentropy.texi: Likewise.
523 2020-05-31  Bruno Haible  <bruno@clisp.org>
525         getentropy: Enhance tests.
526         * tests/test-getentropy.c (main): Add one more test.
527         * tests/test-unistd-c++.cc: Check the signature of getentropy.
529 2020-05-31  Bruno Haible  <bruno@clisp.org>
531         getentropy: Work around a macOS and Solaris problem.
532         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
533         'getentropy' module.
534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
535         UNISTD_H_HAVE_SYS_RANDOM_H.
536         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
537         UNISTD_H_HAVE_SYS_RANDOM_H.
538         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
539         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
540         problem. List more platforms.
542 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
544         fnmatch: merge from glibc
545         Also, merge in Gnulib’s more-recent methods of making it easier
546         to share between Gnulib and glibc.
547         * lib/fnmatch.c: Reorder includes to match glibc better.
548         Include libc-config.h instead of config.h.
549         Include alloca.h only if _LIBC || HAVE_ALLOCA.
550         Do not include "../locale/elem-hash.h" if _LIBC.
551         Define macros for btowc, etc. if _LIBC.  All uses simplified.
552         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
553         Include intprops.h, since glibc has it now.
554         (SIZE_MAX): Remove; use (size_t) -1 instead.
555         Omit the "Comment out all this code" ifdef, since Gnulib
556         has never really needed it.
557         (STREQ): Remove; no longer used.
558         (__libc_use_alloca, alloca, alloca_account): Define as
559         needed if !_LIBC.
560         (ISWCTYPE): Remove; all uses replaced by iswctype.
561         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
562         (internal_function): Remove.  All uses removed.
563         (STRUCT): New macro.
564         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
565         (WMEMCMP): New macro.
566         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
567         and <locale/weightwc.h>.
568         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
569         __builtin_expect.  Check for integer overflow more
570         systematically.  Account for alloca storage better when
571         recursive.  Use strnlen instead of strlen for efficiency.
572         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
573         (struct STRUCT): New type.
574         (FCT, EXT): New ENDS and ALLOCA_USED args.
575         All callers changed.
576         (FCT): Prefer __glibc_unlikely to __builtin_expect.
577         Simplify by assuming WIDE_CHAR_SUPPORT.
578         Copy _LIBC code from glibc without worrying Gnulib compatibility.
579         Cast cold to UCHAR to avoid signedness warning.
580         (END): Check for invalid pattern.
581         (EXT): Improve alloca/malloc checking (taken from glibc),
582         and improve it some more by using intprops.h and checking
583         for integer overflow and using bool for booleans.
584         * lib/libc-config.h (compat_symbol): New macro.
585         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
586         acceptable to non-GCC when a trailing semicolon is added.
587         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
588         libc-config, strnlen.  Remove alloca.
590 2020-05-31  Bruno Haible  <bruno@clisp.org>
592         getrandom: Doc and test tweaks.
593         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
594         it sets errno when failing.
595         * tests/test-getrandom.c (main): Disable the high-quality check on those
596         platforms on which it fails.
597         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
598         Cygwin to the list of platforms that don't have the function. Add a note
599         about the quality of the result.
600         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
601         declaration; this is fixed by module 'getrandom'.
603 2020-05-31  Bruno Haible  <bruno@clisp.org>
605         getrandom: Add support for native Windows.
606         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
607         <wincrypt.h>.
608         (CRYPT_VERIFY_CONTEXT): New macro.
609         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
610         'A'.
611         (GetProcAddress): New macro.
612         (BCryptGenRandomFuncType): New type.
613         (BCryptGenRandomFunc, initialized): New variables.
614         (initialize): New function.
615         (getrandom): On native Windows, use <bcrypt.h> API when available, and
616         <wincrypt.h> API as fallback.
617         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
618         * modules/getrandom (Link): New section.
619         * modules/getentropy (Link): Likewise.
620         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
621         $(LIB_GETRANDOM).
622         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
623         $(LIB_GETRANDOM).
624         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
625         against $(LIB_GETRANDOM).
626         * doc/glibc-functions/getrandom.texi: Mention the native Windows
627         support.
629 2020-05-31  Bruno Haible  <bruno@clisp.org>
631         getrandom: Simplify the determination of the random number devices.
632         Suggested by Paul Eggert in
633         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
634         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
635         macros.
636         * modules/getrandom (Depends-on): Remove crypto/gc-random.
638 2020-05-31  Bruno Haible  <bruno@clisp.org>
640         crypto/gc-random: Fix list of crypto devices for Solaris.
641         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
643 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
645         list: fix GCC warnings
646         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
647         (gl_tree_next_node, gl_tree_node_nx_set_value)
648         (gl_tree_previous_node, gl_tree_next_node):
649         Mark unused arguments.
650         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
651         * lib/gl_anylinked_list2.h (gl_linked_node_value)
652         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
654         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
655         the same variable name in nested scopes.
657 2020-05-31  Bruno Haible  <bruno@clisp.org>
659         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
660         Reported by Akim Demaille in
661         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
662         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
663         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
664         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
665         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
666         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
668 2020-05-30  Bruno Haible  <bruno@clisp.org>
670         wmemchr: Relicense under LGPLv2+.
671         * modules/wmemchr (License): Set to LGPLv2+.
673 2020-05-30  Bruno Haible  <bruno@clisp.org>
675         wmempcpy: New module.
676         Reported by Paul Eggert in
677         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
678         * lib/wchar.in.h (wmempcpy): New declaration.
679         * lib/wmempcpy.c: New file.
680         * m4/wmempcpy.m4: New file.
681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
684         HAVE_WMEMPCPY.
685         * modules/wmempcpy: New file.
686         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
687         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
688         * modules/mempcpy (Description): Fix typo.
690 2020-05-30  Bruno Haible  <bruno@clisp.org>
692         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
693         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
695 2020-05-30  Bruno Haible  <bruno@clisp.org>
697         sys_random: Work around macOS bug.
698         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
699         <stdlib.h> before <sys/random.h>.
700         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
701         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
702         first.
703         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
705 2020-05-30  Bruno Haible  <bruno@clisp.org>
707         getrandom: Override incompatible system function on Solaris 11.
708         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
709         * lib/getrandom.c (getrandom): When the system has getrandom, just
710         invoke it.
711         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
712         system's getrandom function's prototype is not the expected one.
713         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
714         REPLACE_GETRANDOM.
715         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
716         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
717         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
718         EAGAIN.
719         * doc/glibc-functions/getrandom.texi: Mention the new module and the
720         Solaris problem.
722 2020-05-30  Bruno Haible  <bruno@clisp.org>
724         sys_random: Add C++ tests.
725         * tests/test-sys_random-c++.cc: New file.
726         * modules/sys_random-c++-tests: New file.
727         * modules/sys_random-tests (Depends-on): Depend on it.
729         sys_random: Add tests.
730         * tests/test-sys_random.c: New file.
731         * modules/sys_random-tests: New file.
733         sys_random: New module.
734         * lib/sys_random.in.h: Use the common idioms for overridable header
735         files.
736         * m4/sys_random_h.m4: New file.
737         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
738         * modules/sys_random: New file.
739         * modules/getrandom (Files): Remove lib/sys_random.in.h.
740         (Depends-on): Add sys_random.
741         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
742         gl_UNISTD_MODULE_INDICATOR.
743         (Makefile.am): Don't generate sys/random.h here.
744         * doc/glibc-headers/sys_random.texi: New file.
745         * doc/gnulib.texi: Include it.
747 2020-05-30  Bruno Haible  <bruno@clisp.org>
749         unistd: Remove conflicting declaration of getrandom().
750         * lib/unistd.in.h (getrandom): Remove declaration.
751         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
752         declared.
753         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
754         HAVE_GETRANDOM.
755         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
756         HAVE_GETRANDOM.
758 2020-05-30  Bruno Haible  <bruno@clisp.org>
760         getrandom: Add tests.
761         * tests/test-getrandom.c: New file.
762         * modules/getrandom-tests: New file.
764 2020-05-30  Bruno Haible  <bruno@clisp.org>
766         crypto/gc-random: Fix link error on MSVC.
767         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
768         * modules/crypto/gc-random (Link): New section.
769         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
770         $(LIB_GC_RANDOM).
772 2020-05-30  Bruno Haible  <bruno@clisp.org>
774         Don't assume that UNICODE is not defined.
775         Many Windows API functions are defined differently (redirecting to a
776         function with suffix 'W') if the application defines the macro UNICODE
777         than by default (redirecting to a function with suffix 'A').
778         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
779         variant with suffix 'A'.
780         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
781         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
782         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
783         * lib/getlogin.c (GetUserName): Likewise.
784         * lib/getlogin_r.c (GetUserName): Likewise.
785         * lib/gettimeofday.c (LoadLibrary): Likewise.
786         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
787         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
788         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
789         * lib/mountlist.c (GetDriveType): Likewise.
790         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
791         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
792         Likewise.
793         * lib/physmem.c (GetModuleHandle): Likewise.
794         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
795         PeekMessage, DispatchMessage): Likewise.
796         * lib/progreloc.c (GetModuleFileName): Likewise.
797         * lib/putenv.c (SetEnvironmentVariable): Likewise.
798         * lib/read.c (GetNamedPipeHandleState): Likewise.
799         * lib/readdir.c (FindNextFile): Likewise.
800         * lib/relocatable.c (GetModuleFileName): Likewise.
801         * lib/rename.c (MoveFileEx): Likewise.
802         * lib/rewinddir.c (FindFirstFile): Likewise.
803         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
804         PeekMessage, DispatchMessage): Likewise.
805         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
806         * lib/socket.c (WSASocket): Likewise.
807         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
808         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
809         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
810         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
811         * lib/tmpdir.c (GetTempPath): Likewise.
812         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
813         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
814         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
815         * lib/windows-cond.c (CreateEvent): Likewise.
816         * lib/windows-rwlock.c (CreateEvent): Likewise.
817         * lib/windows-timedmutex.c (CreateEvent): Likewise.
818         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
819         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
820         * lib/write.c (GetNamedPipeHandleState): Likewise.
822 2020-05-30  Bruno Haible  <bruno@clisp.org>
824         physmem: Fix compilation errors on MSVC.
825         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
826         * modules/physmem (Depends-on): Add unistd.
828 2020-05-29  Bruno Haible  <bruno@clisp.org>
830         gnulib-tool: Fix link errors with a particular set of modules on mingw.
831         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
832         LDADD a second time, after the second occurrence of libtests.a.
833         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
835 2020-05-29  Bruno Haible  <bruno@clisp.org>
837         fnmatch: Rely on more gnulib modules.
838         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
839         wmempcpy, mempcpy.
840         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
841         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
842         HAVE_MEMPCPY are all 1.
843         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
844         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
846 2020-05-29  Bruno Haible  <bruno@clisp.org>
848         Avoid dynamic lookup of Windows API functions when possible.
849         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
850         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
851         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
852         (use_win32_p): Define differently.
853         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
854         CreateHardLinkFunc, initialized, initialize): Don't define in a build
855         for Windows XP or higher.
857 2020-05-29  Daiki Ueno  <ueno@gnu.org>
859         read-file: disable buffering if RF_SENSITIVE is set
860         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
861         Suggested by Glenn Strauss.
862         (fread_file): Suggest calling setvbuf before calling this
863         function.  Suggested by Bruno Haible.
865 2020-05-29  Bruno Haible  <bruno@clisp.org>
867         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
868         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
869         program.
870         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
871         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
872         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
873         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
875 2020-05-29  Bruno Haible  <bruno@clisp.org>
877         Fix compilation error on native Windows (regression from 2020-05-28).
878         Reported by Daiki Ueno.
879         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
880         macro when not using dynamic loading.
881         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
882         QueryFullProcessImageNameFunc): Likewise.
883         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
884         GetFinalPathNameByHandleFunc): Likewise.
886 2020-05-29  Daiki Ueno  <ueno@gnu.org>
888         fopen-gnu-tests: fix "\x" escape usage
889         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
891 2020-05-28  Bruno Haible  <bruno@clisp.org>
893         Avoid dynamic loading of Windows API functions when possible.
894         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
895         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
896         * lib/gettimeofday.c (GetProcAddress,
897         GetSystemTimePreciseAsFileTimeFuncType,
898         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
899         define in a build for Windows 8 or higher.
900         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
901         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
902         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
903         in a build for Windows Vista or higher.
904         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
905         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
906         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
908 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
910         explicit_bzero-tests: improve -Wmissing-declarations pacification
911         * tests/test-explicit_bzero.c: Now noinline.
912         Suggested by Bruno Haible in:
913         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
915 2020-05-28  Bruno Haible  <bruno@clisp.org>
917         Fix build errors due to read-file changes (regression from 2020-05-27).
918         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
919         invocation.
920         * tests/test-sameacls.c (main): Likewise.
921         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
922         read_binary_file.
923         * tests/test-pipe-filter-ii1.c (main): Likewise.
925 2020-05-28  Bruno Haible  <bruno@clisp.org>
927         fts: Make more robust in multithreaded applications.
928         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
929         * modules/fts (Depends-on): Add 'open'.
931 2020-05-28  Bruno Haible  <bruno@clisp.org>
933         relocatable-prog: Make more robust in multithreaded applications.
934         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
935         relocatable-prog-wrapper.
936         (find_executable): Pass an O_CLOEXEC flag to open().
937         * modules/relocatable-prog (Depends-on): Add 'open'.
939 2020-05-28  Bruno Haible  <bruno@clisp.org>
941         getloadavg: Make more robust in multithreaded applications.
942         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
943         Simplify use of O_CLOEXEC.
944         * modules/getloadavg (Depends-on): Add 'open'.
946 2020-05-28  Bruno Haible  <bruno@clisp.org>
948         vma-iter: Make more robust in multithreaded applications.
949         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
950         open().
951         * modules/vma-iter (Depends-on): Add 'open'.
953 2020-05-28  Bruno Haible  <bruno@clisp.org>
955         truncate: Make more robust in multithreaded applications.
956         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
958 2020-05-28  Bruno Haible  <bruno@clisp.org>
960         pagealign_alloc: Make more robust in multithreaded applications.
961         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
962         open().
963         * modules/pagealign_alloc (Depends-on): Add 'open'.
965 2020-05-28  Bruno Haible  <bruno@clisp.org>
967         openat: Make more robust in multithreaded applications.
968         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
970 2020-05-28  Bruno Haible  <bruno@clisp.org>
972         at-internal: Make more robust in multithreaded applications.
973         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
974         open().
976 2020-05-28  Bruno Haible  <bruno@clisp.org>
978         mountlist: Make more robust in multithreaded applications.
979         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
980         open().
981         * modules/mountlist (Depends-on): Add 'open'.
983 2020-05-28  Bruno Haible  <bruno@clisp.org>
985         login_tty: Make more robust in multithreaded applications.
986         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
987         * modules/login_tty (Depends-on): Add 'open'.
989 2020-05-28  Bruno Haible  <bruno@clisp.org>
991         javacomp: Make more robust in multithreaded applications.
992         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
993         open().
994         * modules/javacomp (Depends-on): Add 'open'.
996 2020-05-28  Bruno Haible  <bruno@clisp.org>
998         getprogname: Make more robust in multithreaded applications.
999         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
1000         * modules/getprogname (Depends-on): Add 'open'.
1002 2020-05-28  Bruno Haible  <bruno@clisp.org>
1004         get_progname_of: Make more robust in multithreaded applications.
1005         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
1006         open().
1007         * modules/get_progname_of (Depends-on): Add 'open'.
1009 2020-05-28  Bruno Haible  <bruno@clisp.org>
1011         get_ppid_of: Make more robust in multithreaded applications.
1012         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
1013         * modules/get_ppid_of (Depends-on): Add 'open'.
1015 2020-05-28  Bruno Haible  <bruno@clisp.org>
1017         get-rusage-as: Make more robust in multithreaded applications.
1018         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
1019         flag to open().
1020         * modules/get-rusage-as (Depends-on): Add 'open'.
1022 2020-05-28  Bruno Haible  <bruno@clisp.org>
1024         crypto/gc: Make more robust in multithreaded applications.
1025         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
1026         * modules/crypto/gc (Depends-on): Add 'open'.
1028 2020-05-28  Bruno Haible  <bruno@clisp.org>
1030         copy-file: Make more robust in multithreaded applications.
1031         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
1032         open().
1034 2020-05-28  Bruno Haible  <bruno@clisp.org>
1036         chown: Make more robust in multithreaded applications.
1037         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
1039 2020-05-28  Bruno Haible  <bruno@clisp.org>
1041         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
1042         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
1044 2020-05-28  Daiki Ueno  <ueno@gnu.org>
1046         fopen-gnu: make 'b' flag can be used with 'e' on Windows
1047         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
1048         specified on Windows.
1049         * tests/test-fopen-gnu.c (DATA): New define.
1050         (main): Add test for reading binary files with an 'e' flag.
1052 2020-05-27  Bruno Haible  <bruno@clisp.org>
1054         Don't assume that UNICODE is not defined.
1055         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
1056         differently if the application defines the macro UNICODE.
1057         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
1058         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
1059         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
1060         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
1061         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
1063 2020-05-27  Bruno Haible  <bruno@clisp.org>
1065         Improve pattern for defining _WIN32_WINNT.
1066         Newer versions of the Windows API may not only add, but also remove API
1067         functions. Therefore, when the user is e.g. building for Windows 10, we
1068         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
1069         use of APIs that were present in Windows 8 but removed in Windows 10.
1070         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
1071         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
1072         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
1073         * lib/sethostname.c (_WIN32_WINNT): Likewise.
1074         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
1076 2020-05-27  Bruno Haible  <bruno@clisp.org>
1078         javacomp: Make more robust in multithreaded applications.
1079         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
1080         * modules/javacomp (Depends-on): Add fopen-gnu.
1082 2020-05-27  Bruno Haible  <bruno@clisp.org>
1084         mountlist: Make more robust in multithreaded applications.
1085         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
1086         to fopen.
1087         * modules/mountlist (Depends-on): Add fopen-gnu.
1089 2020-05-27  Bruno Haible  <bruno@clisp.org>
1091         sethostname: Make more robust in multithreaded applications.
1092         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
1093         * modules/sethostname (Depends-on): Add fopen-gnu.
1095 2020-05-27  Bruno Haible  <bruno@clisp.org>
1097         readutmp: Make more robust in multithreaded applications.
1098         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
1099         * modules/readutmp (Depends-on): Add fopen-gnu.
1101 2020-05-27  Bruno Haible  <bruno@clisp.org>
1103         getpass: Make more robust in multithreaded applications.
1104         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
1105         * modules/getpass (Depends-on): Add fopen-gnu.
1107 2020-05-27  Bruno Haible  <bruno@clisp.org>
1109         getloadavg: Make more robust in multithreaded applications.
1110         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
1111         * modules/getloadavg (Depends-on): Add fopen-gnu.
1113 2020-05-27  Bruno Haible  <bruno@clisp.org>
1115         exclude: Make more robust in multithreaded applications.
1116         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
1117         * modules/exclude (Depends-on): Add fopen-gnu.
1119 2020-05-27  Bruno Haible  <bruno@clisp.org>
1121         bitset: Make more robust in multithreaded applications.
1122         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
1123         'e' flag to fopen.
1124         * modules/bitset (Depends-on): Add fopen-gnu.
1126 2020-05-27  Daiki Ueno  <ueno@gnu.org>
1128         read-file: add RF_SENSITIVE flag
1129         * lib/read-file.h (RF_SENSITIVE): New define.
1130         * lib/read-file.c (fread_file, read_file): Take into account of
1131         RF_SENSITIVE flag.
1132         * modules/read-file (Depends-on): Add explicit_bzero.
1133         This adds an alternative behavior of those functions to explicitly
1134         clear the internal memory block when it becomes unused.  This is
1135         useful for reading sensitive information from a file.
1137 2020-05-27  Daiki Ueno  <ueno@gnu.org>
1139         read-file: add flags to modify reading behavior
1140         * lib/read-file.h (RF_BINARY): New define.
1141         (fread_file, read_file): Take FLAGS argument.
1142         (read_binary_file): Remove.
1143         * lib/read-file.c (internal_read_file): Merge into ...
1144         (read_file): ... here.
1145         * modules/read-file-tests (Files): Add "tests/macros.h".
1146         * tests/test-read-file.c (main): Refactor using ASSERT macro.
1147         * NEWS: Mention this change.
1149 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
1151         doc/gnulib-intro.texi: add missing "to" in sentence
1152         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1153         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
1154         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
1156 2020-05-26  Bruno Haible  <bruno@clisp.org>
1158         count-one-bits: Fix MSVC specific code.
1159         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
1160         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
1161         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
1162         using GCC.
1163         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
1164         (__popcnt64): In 32-bit mode, define as an inline function.
1165         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
1167 2020-05-26  Bruno Haible  <bruno@clisp.org>
1169         argz: Avoid name clashes through argz.h.
1170         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
1171         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
1172         * lib/argz.h: Don't use __ prefixed identifiers.
1173         (const): Remove definition.
1174         (argz_next): Remove inline definitions.
1176 2020-05-26  Daiki Ueno  <ueno@gnu.org>
1178         read-file: make use of fopen-gnu
1179         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
1180         (read_binary_file): Likewise.
1181         * modules/read-file (Depends-on): Add fopen-gnu.
1183 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1185         getentropy, getrandom: new modules
1186         * MODULES.html.sh (func_all_modules):
1187         * lib/unistd.in.h (getentropy, getrandom):
1188         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
1189         * modules/unistd (unistd.h):
1190         Add support for getentropy, getrandom.
1191         * doc/glibc-functions/getentropy.texi (getentropy):
1192         * doc/glibc-functions/getrandom.texi (getrandom):
1193         These are now fixed on some platforms.
1194         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
1195         * m4/getentropy.m4, m4/getrandom.m4:
1196         * modules/getentropy, modules/getentropy-tests:
1197         * modules/getrandom, modules/getrandom-tests:
1198         * tests/test-getentropy.c, tests/test-getrandom.c:
1199         New files.
1201 2020-05-25  Bruno Haible  <bruno@clisp.org>
1203         Add missing C99 dependencies.
1204         Reported by Paul Smith <psmith@gnu.org> in
1205         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
1206         * modules/assert (Depends-on): Add c99.
1207         * modules/filenamecat-lgpl (Depends-on): Likewise.
1208         * modules/libc-config (Depends-on): Likewise.
1209         * modules/mktime (Depends-on): Likewise.
1210         * modules/random_r (Depends-on): Likewise.
1211         * modules/regex (Depends-on): Likewise.
1212         * modules/scratch_buffer (Depends-on): Likewise.
1213         * modules/timespec-add (Depends-on): Likewise.
1214         * modules/timespec-sub (Depends-on): Likewise.
1215         * modules/verify (Depends-on): Likewise.
1217 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1219         explicit_bzero-tests: pacify -Wmissing-declarations
1220         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
1221         Now static.
1223 2020-05-24  Bruno Haible  <bruno@clisp.org>
1225         fopen-gnu: Add tests.
1226         * tests/test-fopen-gnu.c: New file.
1227         * modules/fopen-gnu-tests: New file.
1229         fopen-gnu: New module.
1230         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
1231         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
1232         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
1233         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
1234         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
1235         * modules/fopen-gnu: New file.
1236         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
1238 2020-05-24  Bruno Haible  <bruno@clisp.org>
1240         open, openat: Really support O_CLOEXEC.
1241         * lib/open.c (open): When have_cloexec is still undecided, do pass a
1242         O_CLOEXEC flag to orig_open.
1243         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
1244         pass a O_CLOEXEC flag to orig_openat.
1245         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
1246         * modules/open-tests (Depends-on): Add fcntl.
1247         * modules/openat-tests (Depends-on): Likewise.
1248         * modules/fcntl-safer-tests (Depends-on): Likewise.
1250 2020-05-24  Bruno Haible  <bruno@clisp.org>
1252         fopen: Fix the trailing slash workaround.
1253         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
1254         write access. Pass the right flags to open().
1255         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
1257 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1259         assure: new macro ‘affirm’
1260         * lib/assure.h: Include verify.h.
1261         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
1262         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
1263         and commentary by Bruno Haible in:
1264         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
1265         * modules/assure (Depends-on:): Add verify.
1267 2020-05-23  Bruno Haible  <bruno@clisp.org>
1269         calloc-gnu: Make test work in non-flat address spaces.
1270         Uses code by Paul Eggert.
1271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
1272         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
1274 2020-05-23  Bruno Haible  <bruno@clisp.org>
1276         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
1277         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
1278         AC_RUN_IFELSE invocations.
1280 2020-05-23  Bruno Haible  <bruno@clisp.org>
1282         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
1283         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
1284         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
1285         don't have it.
1286         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1287         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
1288         don't have it.
1289         * lib/isnanf-nolibm.h (__has_builtin): New macro.
1290         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
1291         it.
1292         * lib/isnanl-nolibm.h (__has_builtin): New macro.
1293         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
1294         it.
1295         * lib/math.in.h (__has_builtin): New macro.
1296         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
1297         it.
1298         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
1299         it.
1300         (isnan): Don't use the builtins on clang versions that don't have
1301         __builtin_isnanf and __builtin_isnanl.
1303 2020-05-23  Bruno Haible  <bruno@clisp.org>
1305         calloc-gnu: Avoid wrong configure results with clang.
1306         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
1307         'volatile', to defeat compiler optimizations.
1309 2020-05-23  Bruno Haible  <bruno@clisp.org>
1311         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
1312         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
1313         'long double' values by reference, with values taken from a statically
1314         allocated array.
1316 2020-05-23  Bruno Haible  <bruno@clisp.org>
1318         findprog-in: Ignore directories.
1319         Reported by Frederick Eaton via Dmitry Goncharov in
1320         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
1321         * lib/findprog-in.c (find_in_given_path): When the file found is a
1322         directory, set errno to EACCES and, during a PATH search, continue
1323         searching.
1324         * modules/findprog-in (Depends-on): Add sys_stat, stat.
1326 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1328         verify: document ‘assume’ better
1329         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
1331 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
1333         gendocs: Clarify licenses for templates.
1334         * doc/gendocs_template: Add a GNU All-Permissive license notice
1335         and bump Parent-Version.
1336         * doc/gendocs_template_min: Add a GNU All-Permissive license
1337         notice and copy the explanatory comment about the license notice
1338         at the bottom from gendocs_template.
1340 2020-05-21  Bruno Haible  <bruno@clisp.org>
1342         group-member: Relicense under LGPLv2+.
1343         Jim Meyering's approval is in
1344         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
1345         Paul Eggert's approval is in
1346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
1347         Eric Blake's approval is in
1348         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
1349         * modules/group-member (License): Change to LGPLv2+.
1351 2020-05-21  Bruno Haible  <bruno@clisp.org>
1353         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
1354         Reported by Tim Rühsen in
1355         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
1358 2020-05-21  Bruno Haible  <bruno@clisp.org>
1360         regex: Avoid wrong configure results with "clang -fsanitize=leak".
1361         Reported by Tim Rühsen in
1362         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1363         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
1364         before returning with status 0.
1366 2020-05-21  Bruno Haible  <bruno@clisp.org>
1368         glob: Avoid wrong configure results with "clang -fsanitize=leak".
1369         Reported by Tim Rühsen in
1370         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1371         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
1373 2020-05-21  Bruno Haible  <bruno@clisp.org>
1375         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
1376         Reported by Tim Rühsen in
1377         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1378         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
1379         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
1380         respectively.
1382 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
1384         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
1385         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
1387 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1389         ftoastr: fix ifndef typo
1390         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
1392 2020-05-19  Bruno Haible  <bruno@clisp.org>
1394         havelib: Tweak documentation.
1395         * doc/havelib.texi (Searching for Libraries): Fix typo.
1397 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1399         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
1400         This was needed earlier because modules had to import the main script,
1401         but that is no longer true.  Rename the script so that it is
1402         consistent with all other scripts in gnulib and uses hyphens.
1403         * build-aux/vcs_to_changelog.py: Rename to...
1404         * build-aux/vcs-to-changelog.py: ... this.
1405         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
1406         * modules/vcs-to-changelog: Likewise.
1408 2020-05-17  Bruno Haible  <bruno@clisp.org>
1410         Clarify intended usage of the license file modules.
1411         Reported by Asher Gordon <AsDaGo@posteo.net> in
1412         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
1413         * doc/licenses-texi.texi (License Texinfo sources): Mention the
1414         GNU AGPL. Explain the intended usage of the modules.
1415         * modules/fdl (Notice): Discourage use as a module.
1416         * modules/fdl-1.3 (Notice): Likewise.
1418 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
1420         hash: add hash_xinsert
1421         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
1423 2020-05-16  Bruno Haible  <bruno@clisp.org>
1425         findprog-lgpl: Fix link error (existing since 2008-09-02).
1426         * modules/findprog-lgpl (Makefile.am): Arrange to compile
1427         findprog-lgpl.c, not findprog.c.
1428         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
1429         XNMALLOC.
1431 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1433         c-stack: pacify -Wunused-result when DEBUG
1434         Problem reported by Marc Nieper-Wißkirchen in:
1435         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
1436         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
1437         Explicitly ignore write failures.
1439 2020-05-13  Jim Meyering  <meyering@fb.com>
1441         announce-gen: improve a comment
1442         * build-aux/announce-gen: Improve comment.
1444 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
1446         xalloc: pacify -Wanalyzer-possible-null-argument
1447         Problem reported for GCC 10.1.0 by Bruno Haible in:
1448         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
1449         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
1450         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
1451         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
1453 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1455         careadlinkat: fix GCC 10 workaround
1456         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
1457         Massage the code so that it’s closer to what it was before
1458         the GCC 10.1.0 workaround was introduced.  This fixes
1459         a loop when !buffer and the bug workaround is in effect.
1460         Remove unnecessary casts.  Defend in a different way
1461         against (buffer && !buffer_size), by adding at least 1
1462         to buf_size each time through the loop.
1464 2020-05-10  Bruno Haible  <bruno@clisp.org>
1466         doc: Mark HP-UX as unsupported.
1467         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
1469 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1471         careadlinkat: limit GCC workaround
1472         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
1473         10.1.0 and later, since the workaround is pretty bad and the GCC
1474         bug should get fixed.
1476 2020-05-10  Bruno Haible  <bruno@clisp.org>
1478         havelib: Enhance documentation.
1479         * doc/havelib.texi (Searching for Libraries): Mention the bad
1480         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
1482 2020-05-10  Bruno Haible  <bruno@clisp.org>
1484         attribute: Clarify list of attributes.
1485         * lib/attribute.h: Reorder the list of attributes, and group them by
1486         purpose.
1488 2020-05-10  Bruno Haible  <bruno@clisp.org>
1490         string: Fix compilation error in C++ mode.
1491         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
1492         _GL_WARN_ON_USE.
1493         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
1494         instead of _GL_WARN_ON_USE.
1496 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
1498         announce-gen: add support for dist-lzip
1499         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
1501 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1503         manywarnings: port to GCC 10.1
1504         * build-aux/gcc-warning.spec:
1505         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
1506         Add GCC 10.1.0 warnings.
1508         careadlinkat: pacify -Wreturn-local-addr
1509         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
1510         Pacify gcc 10’s -Wreturn-local-addr option.
1511         Simplify some of the later code.
1513 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1515         attribute: remove ATTRIBUTE_DEPRECATED
1516         * lib/attribute.h: Improve recently-added comments, mostly
1517         by shortening them (use active voice, etc.).
1518         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
1519         Problem reported by Bruno Haible in:
1520         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
1522 2020-05-09  Bruno Haible  <bruno@clisp.org>
1524         attribute: Add comments.
1525         * lib/attribute.h: Document each macro.
1527 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
1529         bitset: use the attribute module
1530         * modules/bitset: Depend on 'attribute'.
1531         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
1532         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
1533         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
1534         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
1536 2020-05-09  Bruno Haible  <bruno@clisp.org>
1538         c-stack: Fix warning when DEBUG is enabled.
1539         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
1540         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
1541         * lib/c-stack.c: Include <stdio.h>.
1543 2020-05-09  Bruno Haible  <bruno@clisp.org>
1545         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
1546         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
1547         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1548         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1549         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1550         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1551         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1552         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1553         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1554         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
1555         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1556         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1557         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1559 2020-05-09  Bruno Haible  <bruno@clisp.org>
1561         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
1562         Reported by Akim Demaille in
1563         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
1564         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
1565         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
1566         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
1568 2020-05-09  Bruno Haible  <bruno@clisp.org>
1570         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
1571         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
1572         that usually comes from m4/gnulib-common.m4.
1573         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1575 2020-05-09  Bruno Haible  <bruno@clisp.org>
1577         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
1578         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
1579         that usually comes from m4/gnulib-common.m4.
1580         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1581         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1582         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1584 2020-05-09  Bruno Haible  <bruno@clisp.org>
1586         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
1587         * lib/uchar.in.h (char16_t): Define as macro if
1588         GNULIB_OVERRIDES_CHAR16_T.
1589         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
1590         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
1591         (gl_UCHAR_H): Invoke them.
1592         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
1593         GNULIB_OVERRIDES_CHAR32_T.
1594         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
1595         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
1596         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
1597         GNULIB_OVERRIDES_CHAR32_T.
1599 2020-05-09  Bruno Haible  <bruno@clisp.org>
1601         Macro tweaks.
1602         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
1603         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
1605 2020-05-08  Bruno Haible  <bruno@clisp.org>
1607         c32rtomb: Avoid compilation failure on Haiku.
1608         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
1609         inline definitions.
1610         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
1612 2020-05-08  Bruno Haible  <bruno@clisp.org>
1614         mbrtoc32: Avoid compilation failure on Haiku.
1615         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
1616         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
1617         AC_CHECK_FUNCS_ONCE.
1618         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
1620 2020-05-08  Bruno Haible  <bruno@clisp.org>
1622         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
1623         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
1625 2020-05-08  Bruno Haible  <bruno@clisp.org>
1627         list: Update documentation.
1628         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
1629         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
1630         * doc/containers.texi (Container data types): Document the new list
1631         operations and their complexity.
1633 2020-05-08  Bruno Haible  <bruno@clisp.org>
1635         ignore-value tests: Use module 'attribute'.
1636         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
1637         * tests/test-ignore-value.c: Include attribute.h.
1638         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
1639         * modules/ignore-value-tests (Depends-on): Add attribute.
1641 2020-05-08  Bruno Haible  <bruno@clisp.org>
1643         uniname/uniname: Use module 'attribute'.
1644         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
1645         * lib/uniname/uninames.h: Regenerated.
1646         * lib/uniname/uniname.c: Include attribute.h.
1647         * modules/uniname/uniname (Depends-on): Add attribute.
1649 2020-05-08  Bruno Haible  <bruno@clisp.org>
1651         c32rtomb: Use module 'attribute'.
1652         * lib/c32rtomb.c: Include attribute.h.
1653         (FALLTHROUGH): Remove macro.
1654         * modules/c32rtomb (Depends-on): Add attribute.
1656 2020-05-08  Bruno Haible  <bruno@clisp.org>
1658         xsize: Use module 'attribute'.
1659         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
1660         * modules/xsize (Depends-on): Add attribute.
1662 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1664         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
1666         * lib/attribute.h: Minor style fixes.
1668         Fix version-etc glitch on OpenIndiana
1669         Problem reported by Mats Erik Andersson in:
1670         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
1671         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
1672         that now clashes with gnulib-common.h.  All uses changed.
1674 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1676         attribute: new module
1677         This simplifies use of GCC and C2X attributes like ‘deprecated’.
1678         * MODULES.html.sh: Add attribute.
1679         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
1680         * doc/gnulib.texi (Particular Modules): Add Attributes.
1681         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
1682         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
1683         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
1684         * lib/vasnprintf.c:
1685         Include attribute.h, and let it define FALLTHROUGH.
1686         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
1687         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
1688         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
1689         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
1690         This is a copy since Gawk doesn’t use Gnulib.
1691         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
1692         is incompatible with gl_COMMON_BODY’s.  All uses changed.
1693         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
1694         Keep the existing FALLTHROUGH definition since Glibc might use it,
1695         and it does no harm to Gnulib’s FALLTHROUGH.
1696         * lib/fts_.h, lib/inttostr.h:
1697         (__GNUC_PREREQ): Remove; no longer needed.
1698         (__attribute_warn_unused_result__): Remove.  All uses
1699         replaced by _GL_ATTRIBUTE_NODISCARD.
1700         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
1701         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
1702         __attribute__ ((__warn_unused_result__)), for forward
1703         compatibility to C2X.
1704         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
1705         _GL_ATTRIBUTE_NODISCARD.
1706         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
1707         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
1708         replaced by gl_COMMON_BODY’s implementation, which has a
1709         slightly different signature.
1710         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
1711         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
1712         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
1713         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
1714         No doubt all uses should be replaced, at some point.
1715         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
1716         (_Noreturn): Use it.
1717         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
1718         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
1719         (_GL_ATTRIBUTE_COLD)
1720         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
1721         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
1722         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
1723         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
1724         (_GL_ATTRIBUTE_MAYBE_UNUSED)
1725         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
1726         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
1727         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
1728         (_GL_ATTRIBUTE_RETURNS_NONNULL)
1729         (_GL_ATTRIBUTE_SENTINEL): New macros.
1730         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
1731         * modules/fnmatch, modules/freopen-safer, modules/fts:
1732         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
1733         * modules/quotearg, modules/savewd:
1734         * modules/unistdio/u16-u16-vasnprintf:
1735         * modules/unistdio/u16-vasnprintf:
1736         * modules/unistdio/u32-u32-vasnprintf:
1737         * modules/unistdio/u32-vasnprintf:
1738         * modules/unistdio/u8-u8-vasnprintf:
1739         * modules/unistdio/u8-vasnprintf:
1740         * modules/unistdio/ulc-vasnprintf:
1741         * modules/unistr/u8-uctomb, modules/vasnprintf:
1742         (Depends-on:): Add attribute module.
1744 2020-05-03  Bruno Haible  <bruno@clisp.org>
1746         bison: Fix today's commit.
1747         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
1749 2020-05-03  Bruno Haible  <bruno@clisp.org>
1751         list-c++: Add get_first, get_last, set_first, set_last operations.
1752         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
1753         set_first, set_last.
1754         * lib/gl_list.h: Tweak comments.
1756 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
1758         bison: rely on bison's %require to check a version requirement
1759         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
1760         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
1761         enough of not.
1762         So far it is the only know Yacc tool that supports '%require'.
1763         Other yaccs will actually even choke on seeing the -o option after the
1764         input file name.
1765         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
1767 2020-05-02  Bruno Haible  <bruno@clisp.org>
1769         list: Add get_first, get_last, set_first, set_last operations.
1770         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
1771         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
1772         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
1774 2020-05-02  Bruno Haible  <bruno@clisp.org>
1776         list: Remove redundant code for remove_first and remove_last operations.
1777         * lib/gl_list.h (struct gl_list_implementation): Remove fields
1778         remove_first, remove_last.
1779         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
1780         * lib/gl_array_list.c: Revert last change.
1781         * lib/gl_carray_list.c: Likewise.
1782         * lib/gl_anylinked_list2.h: Likewise.
1783         * lib/gl_linked_list.c: Likewise.
1784         * lib/gl_linkedhash_list.c: Likewise.
1785         * lib/gl_anytree_list2.h: Likewise.
1786         * lib/gl_avltree_list.c: Likewise.
1787         * lib/gl_avltreehash_list.c: Likewise.
1788         * lib/gl_rbtree_list.c: Likewise.
1789         * lib/gl_rbtreehash_list.c: Likewise.
1790         * lib/gl_sublist.c: Likewise.
1792 2020-05-02  Bruno Haible  <bruno@clisp.org>
1794         bison-i18n: Add support for cross-compilation.
1795         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
1796         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
1797         via Akim Demaille <akim@lrde.epita.fr>.
1798         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
1799         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
1800         Don't use bison's --print-localedir option when cross-compiling.
1801         Also, fix an error message and a comment.
1803 2020-05-01  Bruno Haible  <bruno@clisp.org>
1805         list: Add remove_first and remove_last operations.
1806         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
1807         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
1808         * lib/gl_list.h (struct gl_list_implementation): Add fields
1809         remove_first, remove_last.
1810         (gl_list_remove_first, gl_list_remove_last): New functions.
1811         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
1812         functions, based on gl_array_remove_at.
1813         (gl_array_list_implementation): Implement the new operations.
1814         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
1815         New functions, based on gl_carray_remove_at.
1816         (gl_carray_list_implementation): Implement the new operations.
1817         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
1818         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
1819         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
1820         new operations.
1821         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
1822         Likewise.
1823         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
1824         New functions, based on gl_tree_remove_at.
1825         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
1826         new operations.
1827         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1828         Likewise.
1829         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
1830         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
1831         Likewise.
1832         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
1833         New functions, based on gl_sublist_remove_at.
1834         (gl_sublist_list_implementation): Implement the new operations.
1835         * lib/gl_list.hh (class gl_List): Add methods remove_first,
1836         remove_last.
1837         * tests/test-array_list.c (main): Test also gl_list_remove_first and
1838         gl_list_remove_last.
1839         * tests/test-avltree_list.c (main): Likewise.
1840         * tests/test-avltreehash_list.c (main): Likewise.
1841         * tests/test-carray_list.c (main): Likewise.
1842         * tests/test-linked_list.c (main): Likewise.
1843         * tests/test-linkedhash_list.c (main): Likewise.
1844         * tests/test-rbtree_list.c (main): Likewise.
1845         * tests/test-rbtreehash_list.c (main): Likewise.
1847 2020-05-01  Bruno Haible  <bruno@clisp.org>
1849         parse-datetime: Fix a build failure with an older bison version.
1850         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
1851         parse-datetime.tab.c if a suitable version of bison was not found.
1853 2020-05-01  Bruno Haible  <bruno@clisp.org>
1855         bison: New module.
1856         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
1857         m4/parse-datetime.m4.
1858         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
1859         * modules/bison: New file.
1860         * modules/parse-datetime (Files): Remove m4/bison.m4.
1861         (Depends-on): Add bison.
1863 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
1865         Update users.txt.
1866         * users.txt: Add poke.
1868 2020-04-28  Bruno Haible  <bruno@clisp.org>
1870         posix_spawn_file_actions_addfchdir tests: Enhance test.
1871         * tests/test-posix_spawn5.c: Include findprog.h.
1872         (test): New function, extracted from main.
1873         (main): Invoke it. Also, invoke it with a program name such as
1874         "bin/pwd".
1875         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
1876         findprog.
1878 2020-04-28  Bruno Haible  <bruno@clisp.org>
1880         posix_spawn_file_actions_addchdir tests: Enhance test.
1881         * tests/test-posix_spawn4.c: Include findprog.h.
1882         (test): New function, extracted from main.
1883         (main): Invoke it. Also, invoke it with a program name such as
1884         "bin/pwd".
1885         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
1886         findprog.
1888 2020-04-28  Bruno Haible  <bruno@clisp.org>
1890         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
1891         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
1892         access elements of the wrong union member.
1894 2020-04-27  Bruno Haible  <bruno@clisp.org>
1896         getdate: Remove deprecated module.
1897         * modules/getdate: Remove file.
1898         * doc/getdate.texi: Remove file.
1899         * lib/getdate.h: Remove file.
1900         * NEWS: Mention the removal.
1902 2020-04-27  Bruno Haible  <bruno@clisp.org>
1904         realloc: Remove deprecated module.
1905         * modules/realloc: Remove file.
1906         * NEWS: Mention the removal.
1908 2020-04-27  Bruno Haible  <bruno@clisp.org>
1910         calloc: Remove deprecated module.
1911         * modules/calloc: Remove file.
1912         * NEWS: Mention the removal.
1914 2020-04-27  Bruno Haible  <bruno@clisp.org>
1916         malloc: Remove deprecated module.
1917         * modules/malloc: Remove file.
1918         * NEWS: Mention the removal.
1920 2020-04-27  Bruno Haible  <bruno@clisp.org>
1922         fnmatch-posix: Remove deprecated module.
1923         * modules/fnmatch-posix: Remove file.
1924         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
1925         * NEWS: Mention the removal.
1927 2020-04-27  Bruno Haible  <bruno@clisp.org>
1929         pipe: Remove deprecated module.
1930         * modules/pipe: Remove file.
1931         * lib/pipe.h: Remove file.
1932         * NEWS: Mention the removal.
1934 2020-04-27  Bruno Haible  <bruno@clisp.org>
1936         getopt: Remove deprecated module.
1937         * modules/getopt: Remove file.
1938         * NEWS: Mention the removal.
1940 2020-04-27  Bruno Haible  <bruno@clisp.org>
1942         remove-dest-slash: Remove deprecated module.
1943         * modules/rename-dest-slash: Remove file.
1944         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
1945         Update.
1946         * NEWS: Mention the removal.
1948 2020-04-27  Bruno Haible  <bruno@clisp.org>
1950         unictype/bidicategory-*: Remove deprecated modules.
1951         * modules/unictype/bidicategory-all: Remove file.
1952         * modules/unictype/bidicategory-byname: Remove file.
1953         * modules/unictype/bidicategory-name: Remove file.
1954         * modules/unictype/bidicategory-of: Remove file.
1955         * modules/unictype/bidicategory-test: Remove file.
1956         * MODULES.html.sh (Unicode string functions): Update.
1957         * NEWS: Mention the removals.
1959 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1961         Tune fts for FTS_LOGICAL+FTS_NOSTAT
1962         From a suggestion by Askar Safin in:
1963         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
1964         * lib/fts.c (fts_build): If file types are known, optimize
1965         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
1966         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
1967         non-directories.
1969 2020-04-19  Bruno Haible  <bruno@clisp.org>
1971         vasnprintf: Add support for printing wide characters using escapes.
1972         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
1973         (wctomb_fallback): New function.
1974         (local_wctomb): New function.
1975         (local_wcrtomb): New function or macro.
1976         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
1977         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
1978         %lc.
1980 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
1982         fts: remove NOSTAT_LEAF_OPTIMIZATION
1983         It caused ‘find’ and ‘du’ to dump core, and it was useful
1984         only for obsolescent Linux filesystems anyway.  Problem reported in:
1985         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
1986         Quite possibly there is still a serious underlying fts bug with
1987         tight-loop-check and mutating file systems, but if so this patch
1988         should cause the bug to be triggered less often.
1989         * lib/fts.c (enum leaf_optimization): Remove
1990         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
1991         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
1992         (leaf_optimization): Remove special cases for ReiserFS and XFS.
1993         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
1994         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
1995         Remove.  All uses removed.
1997 2020-04-13  Bastien Roucariès  <rouca@debian.org>
1999         explicit_bzero: Improve code style.
2000         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
2002 2020-04-13  Bastien Roucariès  <rouca@debian.org>
2004         explicit_bzero: On native Windows, use SecureZeroMemory().
2005         * lib/explicit_bzero.c: Include <windows.h>.
2006         (explicit_bzero): On native Windows, use SecureZeroMemory.
2008 2020-04-13  Bastien Roucariès  <rouca@debian.org>
2010         explicit_bzero: Use memset_s() when available.
2011         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
2012         (explicit_bzero): Use memset_s when available.
2013         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
2015 2020-04-13  Bastien Roucariès  <rouca@debian.org>
2017         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
2018         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
2019         free() that overwrite the memory with canaries.
2021 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
2023         bootstrap: recommend git submodule update --init
2024         Reported by Bruno Haible.
2025         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
2026         * build-aux/bootstrap: recommand "git submodule update --init"
2027         rather than "git submodule init".
2029 2020-04-12  Bruno Haible  <bruno@clisp.org>
2031         explicit_bzero: Add tests.
2032         * tests/test-explicit_bzero.c: New file.
2033         * modules/explicit_bzero-tests: New file.
2035 2020-04-11  Bruno Haible  <bruno@clisp.org>
2037         explicit_bzero: Relicense under LGPLv2+.
2038         Approved by Paul Eggert.
2039         * modules/explicit_bzero (License): Change to LGPLv2+.
2041 2020-04-10  Bruno Haible  <bruno@clisp.org>
2043         findprog, relocatable-prog: Ignore directories during PATH search.
2044         Reported by Frederick Eaton via Dmitry Goncharov in
2045         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
2047         * lib/findprog.c (find_in_path): When the file found in a PATH element
2048         is a directory, continue searching.
2049         * modules/findprog (Depends-on): Add sys_stat, stat.
2050         * modules/findprog-lgpl (Depends-on): Likewise.
2052         * lib/progreloc.c (maybe_executable): When the file found in a PATH
2053         element is a directory, continue searching.
2054         * lib/relocwrapper.c: Update comments.
2055         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
2056         (configure.ac-early): New section.
2058 2020-04-10  Bruno Haible  <bruno@clisp.org>
2060         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
2061         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
2062         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
2063         * MODULES.html.sh: In a git-less tarball, use the date of the first
2064         ChangeLog entry.
2066 2020-04-04  Bruno Haible  <bruno@clisp.org>
2068         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
2069         * m4/gettext.m4: Fix comments regarding the gettext library.
2070         * m4/intl-thread-locale.m4: Likewise.
2071         * m4/intlmacosx.m4: Likewise.
2072         * m4/lcmessage.m4: Likewise.
2073         * m4/nls.m4: Likewise.
2074         * m4/po.m4: Likewise.
2075         * m4/progtest.m4: Likewise.
2077 2020-04-04  Jim Meyering  <meyering@fb.com>
2079         maint: remove a stray inter-word space in a 6x-repeated comment
2080         Induce the changes by running this:
2081           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
2082         * build-aux/announce-gen: Change "by  perl" to "by perl".
2083         * build-aux/gitlog-to-changelog: Likewise.
2084         * build-aux/prefix-gnulib-mk: Likewise.
2085         * build-aux/update-copyright: Likewise.
2086         * build-aux/useless-if-before-free: Likewise.
2087         * tests/test-update-copyright.sh: Likewise.
2089 2020-03-28  Bruno Haible  <bruno@clisp.org>
2091         Use module 'filename' instead of module 'dosname'.
2093         * lib/at-func.c: Include filename.h instead of dosname.h.
2094         * lib/unlinkat.c: Likewise.
2095         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
2096         * modules/areadlinkat-with-size (Depends-on): Likewise.
2097         * modules/faccessat (Depends-on): Likewise.
2098         * modules/fchmodat (Depends-on): Likewise.
2099         * modules/fchownat (Depends-on): Likewise.
2100         * modules/fstatat (Depends-on): Likewise.
2101         * modules/mkdirat (Depends-on): Likewise.
2102         * modules/mkfifoat (Depends-on): Likewise.
2103         * modules/readlinkat (Depends-on): Likewise.
2104         * modules/selinux-at (Depends-on): Likewise.
2105         * modules/symlinkat (Depends-on): Likewise.
2106         * modules/unlinkat (Depends-on): Likewise.
2107         * modules/utimensat (Depends-on): Likewise.
2109         * lib/at-func2.c: Include filename.h instead of dosname.h.
2110         * modules/linkat (Depends-on): Add filename. Remove dosname.
2111         * modules/renameatu (Depends-on): Likewise.
2113         * lib/canonicalize.c: Include filename.h instead of dosname.h.
2114         * lib/canonicalize-lgpl.c: Likewise.
2115         * modules/canonicalize (Depends-on): Add filename.
2116         * modules/canonicalize-lgpl (Depends-on): Likewise.
2118         * lib/dirname.h: Include filename.h instead of dosname.h.
2119         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
2121         * lib/fchdir.c: Include filename.h instead of dosname.h.
2122         * modules/fchdir (Depends-on): Add filename. Remove dosname.
2124         * lib/openat.c: Include filename.h instead of dosname.h.
2125         * modules/openat (Depends-on): Add filename. Remove dosname.
2127         * lib/rmdir.c: Include filename.h instead of dosname.h.
2128         * modules/rmdir (Depends-on): Add filename. Remove dosname.
2130         * lib/savewd.c: Include filename.h instead of dosname.h.
2131         * modules/savewd (Depends-on): Add filename. Remove dosname.
2133         * lib/unlink.c: Include filename.h instead of dosname.h.
2134         * modules/unlink (Depends-on): Add filename. Remove dosname.
2136         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
2137         * lib/relocwrapper.c: Update comments.
2139         * modules/lstat (Depends-on): Remove dosname.
2141 2020-03-28  Bruno Haible  <bruno@clisp.org>
2143         dosname: Redirect to 'filename'.
2144         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2145         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
2146         * lib/dosname.h: Remove all definitions. Just include filename.h.
2147         * modules/dosname (Status, Notice): Mark as deprecated.
2148         (Depends-on): Add 'filename'.
2150 2020-03-28  Bruno Haible  <bruno@clisp.org>
2152         dosname: Change IS_RELATIVE_FILE_NAME.
2153         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
2154         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
2155         * NEWS: Mention the change.
2157 2020-03-28  Bruno Haible  <bruno@clisp.org>
2159         filename: Copy some definitions from module 'dosname'.
2160         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
2161         (HAS_DEVICE): Document macro.
2162         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
2163         (IS_ABSOLUTE_FILE_NAME): Consider
2164         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
2165         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
2166         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
2167         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
2168         IS_PATH_WITH_DIR.
2169         (DllMain): Update.
2170         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
2171         IS_PATH_WITH_DIR.
2172         (find_executable): Update.
2173         * NEWS: Document the deprecations.
2175 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
2177         getopt-posix: port __GETOPT_PREFIX to macOS
2178         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
2179         Define to work around a problem with asm on macOS (Bug#40205).
2181 2020-03-22  Bruno Haible  <bruno@clisp.org>
2183         MODULES.html.sh: Add support for reproducible builds.
2184         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
2185         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
2186         * MODULES.html.sh: Print the date of the last gnulib commit, not the
2187         current date.
2189 2020-03-22  Bruno Haible  <bruno@clisp.org>
2191         Several modules: Depend on stat.
2192         * modules/acl-permissions (Depends-on): Add stat.
2193         * modules/canonicalize (Depends-on): Likewise.
2194         * modules/file-has-acl (Depends-on): Likewise.
2195         * modules/fstat (Depends-on): Likewise.
2196         * modules/fstatat (Depends-on): Likewise.
2197         * modules/glob (Depends-on): Likewise.
2198         * modules/javacomp (Depends-on): Likewise.
2199         * modules/linkat (Depends-on): Likewise.
2200         * modules/mkdir (Depends-on): Likewise.
2201         * modules/pt_chown (Depends-on): Likewise.
2202         * modules/ptsname_r (Depends-on): Likewise.
2203         * modules/readlinkat (Depends-on): Likewise.
2204         * modules/rename (Depends-on): Likewise.
2205         * modules/renameatu (Depends-on): Likewise.
2206         * modules/tmpdir (Depends-on): Likewise.
2207         * modules/utimens (Depends-on): Likewise.
2208         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
2209         * modules/same (Depends-on): Remove stat.
2211 2020-03-22  Bruno Haible  <bruno@clisp.org>
2213         acl-permissions: Improve autoconf macro.
2214         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
2215         more reliably.
2217 2020-03-22  Bruno Haible  <bruno@clisp.org>
2219         file-has-acl: Fix module description.
2220         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
2221         (Depends-on): Depend on acl-permissions unconditionally.
2223 2020-03-21  Bruno Haible  <bruno@clisp.org>
2225         unlink: Ensure errno also on native Windows.
2226         * modules/unlink (Depends-on): Add malloc-posix.
2228 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
2230         unlink: fix malloc errno typo
2231         Problem reported by Tim Rühsen in:
2232         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
2233         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
2235 2020-03-16  Bruno Haible  <bruno@clisp.org>
2237         *printf-posix: Fix m4 error (regression from 2020-03-08).
2238         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
2239         brackets in AC_COMPILE_IFELSE invocation.
2241 2020-03-08  Bruno Haible  <bruno@clisp.org>
2243         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
2244         * modules/crypto/af_alg (Depends-on): Add fstat.
2245         * modules/renameatu (Depends-on): Likewise.
2246         * modules/same (Depends-on): Likewise.
2247         * modules/term-style-control (Depends-on): Likewise.
2249 2020-03-08  Bruno Haible  <bruno@clisp.org>
2251         *printf-posix: Document why it's overridden on some glibc systems.
2252         Reported by Adrian Bunk <bunk@stusta.de> in
2253         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
2254         * doc/posix-functions/*printf.texi: Document the problem with the %n
2255         directive on some glibc systems.
2256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
2257         the cross-compilation guesses accordingly.
2259 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
2261         open, openat: port to (O_RDWR | O_RDONLY) != 0
2262         Potential portability problem reported by Dan Gohman in:
2263         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
2264         * lib/open.c (open):
2265         * lib/openat.c (rpl_openat):
2266         Don’t assume O_RDONLY is disjoint from O_RDWR.
2268 2020-03-07  Bruno Haible  <bruno@clisp.org>
2270         openat: Fix theoretically possible issue on GNU/Hurd.
2271         Reported by Dan Gohman <sunfish@mozilla.com> in
2272         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
2273         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
2274         ignore the bits that are also set in O_RDONLY.
2276 2020-02-24  Bruno Haible  <bruno@clisp.org>
2278         getloadavg: Don't use /usr/local when cross-compiling on AIX.
2279         Reported by Jens Rehsack <sno@netbsd.org> in
2280         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
2281         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
2282         cross-compiling.
2284 2020-02-24  Bruno Haible  <bruno@clisp.org>
2286         fcntl: Add witness of gnulib override.
2287         Reported by Jens Rehsack <sno@netbsd.org> in
2288         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
2289         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
2290         macros.
2292 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
2294         Update users.txt.
2295         * users.txt: Add datamash, time.
2297 2020-02-23  Bruno Haible  <bruno@clisp.org>
2299         uni*/base: Use 'restrict'.
2300         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
2301         from lib/regex.h.
2302         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
2303         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
2304         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
2305         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
2306         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
2307         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
2308         '_UC_RESTRICT'.
2309         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
2310         u32_conv_to_encoding): Use '_UC_RESTRICT'.
2311         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
2312         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
2313         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
2314         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
2315         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
2316         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
2317         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
2318         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
2319         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
2320         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
2321         '_UC_RESTRICT'.
2322         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
2323         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
2324         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
2325         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
2326         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
2327         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
2328         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
2329         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
2331 2020-02-23  Bruno Haible  <bruno@clisp.org>
2333         glob, spawn: Use improved '_Restrict_' definition.
2334         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
2335         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
2337 2020-02-23  Bruno Haible  <bruno@clisp.org>
2339         crypto/gc: Use 'restrict'.
2340         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
2341         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
2343         crypto/hmac-*: Use 'restrict'.
2344         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
2345         'restrict'.
2346         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
2347         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
2348         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
2349         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
2351         crypto/sm3: Use 'restrict'.
2352         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
2353         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
2355         crypto/*-buffer: Use 'restrict'.
2356         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
2357         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
2359         crypto/sha512-buffer: Use 'restrict'.
2360         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
2361         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
2362         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
2364         crypto/sha256-buffer: Use 'restrict'.
2365         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
2366         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
2367         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
2369         crypto/sha1-buffer: Use 'restrict'.
2370         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
2371         'restrict'.
2372         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
2374         crypto/md5-buffer: Use 'restrict'.
2375         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
2376         'restrict'.
2377         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
2379         crypto/md4: Use 'restrict'.
2380         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
2381         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
2383         crypto/md2: Use 'restrict'.
2384         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
2385         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
2387         crypto/rijndael: Use 'restrict'.
2388         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
2389         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
2390         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
2392         crypto/arctwo: Use 'restrict'.
2393         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
2394         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
2396         crypto/arcfour: Use 'restrict'.
2397         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
2398         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
2400         careadlinkat: Use 'restrict'.
2401         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
2402         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
2403         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
2405         regex-quote: Use 'restrict'.
2406         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
2407         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
2409         system-quote: Use 'restrict'.
2410         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
2411         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
2413         sh-quote: Use 'restrict'.
2414         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
2415         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
2417         quotearg: Use 'restrict'.
2418         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
2419         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
2421         parse-datetime: Use 'restrict'.
2422         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
2423         'restrict'.
2424         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
2426         nstrftime: Use 'restrict'.
2427         * lib/strftime.h (nstrftime): Use 'restrict'.
2428         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
2430         mbstok_r: Use 'restrict'.
2431         * lib/string.in.h (mbstok_r): Use 'restrict'.
2433         xmemcoll: Use 'restrict'.
2434         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
2435         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
2437         memcoll: Use 'restrict'.
2438         * lib/memcoll.h (memcoll): Use 'restrict'.
2439         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
2441         vasnprintf: Use 'restrict'.
2442         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
2443         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
2445         c-vasnprintf: Use 'restrict'.
2446         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
2447         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
2449         c-vsnprintf: Use 'restrict'.
2450         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
2451         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
2453         c-snprintf: Use 'restrict'.
2454         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
2455         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
2457         astrxfrm: Use 'restrict'.
2458         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
2459         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
2461         amemxfrm: Use 'restrict'.
2462         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
2463         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
2465 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2467         fchmodat, lchmod: simplify
2468         It appears that we may have overengineered lchmod and fchmodat,
2469         in that the code was prepared for some hypothetical platforms but
2470         was so complicated that it was hard to understand.  I attempted to
2471         improve the situation by simplifying the code when this
2472         simplification should not hurt on real platforms; we can re-add
2473         complexity later to port to platforms I didn’t know about.
2474         * lib/fchmodat.c (fchmodat):
2475         * lib/lchmod.c (lchmod):
2476         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
2477         around the /proc code that needs it.
2478         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
2479         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
2480         Do not include <config.h> twice.
2481         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
2482         lchmod on any known hosts.
2483         (lchmod): Do not defer to fchmodat, so that the lchmod module
2484         need not depend on the fchmodat module (which is a circular
2485         dependency).  Do not use openat, since ‘open’ suffices.
2486         Coalesce calls to lchmod/chmod.
2487         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
2488         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
2489         * modules/lchmod (Depends-on, configure.ac):
2490         * modules/sys_stat (Depends-on):
2491         Do not worry about replacing lchmod, since that shouldn’t happen.
2492         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
2493         Do not worry about whether lchmod works on non-symlinks,
2494         since every known lchmod works on non-symlinks.
2495         * modules/lchmod (Depends-on):
2496         Remove circular dependency on fchmodat.
2498 2020-02-22  Bruno Haible  <bruno@clisp.org>
2500         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
2501         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
2502         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
2504 2020-02-22  Bruno Haible  <bruno@clisp.org>
2506         Use 'restrict' in all POSIX function declarations.
2507         * lib/iconv.in.h (iconv): Use 'restrict'.
2508         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
2509         * lib/monetary.in.h (strfmon_l): Likewise.
2510         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
2511         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
2512         pthread_mutex_timedlock, pthread_rwlock_init,
2513         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
2514         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
2515         * lib/search.in.h (tdelete): Likewise.
2516         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
2517         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
2518         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
2519         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
2520         Likewise.
2521         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
2522         strtoull): Likewise.
2523         * lib/string.in.h (strncat): Likewise.
2524         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
2525         recvfrom): Likewise.
2526         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
2527         * lib/time.in.h (strftime): Likewise.
2528         * lib/unistd.in.h (readlink, readlinkat): Likewise.
2529         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
2530         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
2531         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
2532         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
2533         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
2534         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
2535         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2536         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2537         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2538         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2539         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2541         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2542         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2543         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
2544         other *_h.m4 files.
2545         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
2547 2020-02-22  Bruno Haible  <bruno@clisp.org>
2549         Update NEWS.
2550         * NEWS: Mention the last change.
2552 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2554         chmodat, chownat: new modules
2555         These are split from fchmodat, fchownat.  GNU Emacs needs the
2556         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
2557         lchmodat.  Split the latter two into a new module chmodat.
2558         Similarly for fchownat.  This the same basic idea for why statat
2559         was split from fstatat on 2013-01-23.
2560         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
2561         Rename from FCHMODAT_INLINE.  All uses changed.
2562         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
2563         Rename from FCHOWNAT_INLINE.  All uses changed.
2564         * lib/openat.h:
2565         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
2566         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
2567         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
2568         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
2569         (configure.ac): Remove fchmodat module indicator.
2570         (Makefile.am): Omit chmodat.c.
2571         (Maintainer): Add self.
2572         * modules/fchownat: Similarly, but for chown.
2573         * tests/test-fchownat.c (BASE): Don't define if already defined.
2574         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
2576 2020-02-22  Bruno Haible  <bruno@clisp.org>
2578         users.txt: Add groff.
2579         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
2580         * users.txt: Add groff.
2582 2020-02-22  Bruno Haible  <bruno@clisp.org>
2584         gnulib-tool: Ensure copied files are writable.
2585         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
2586         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
2587         * gnulib-tool (func_ensure_writable): New function.
2588         (func_ln_s, func_hardlink, func_lookup_file, func_import,
2589         func_create_testdir, copy-file): Invoke it after copying a file.
2591 2020-02-22  Bruno Haible  <bruno@clisp.org>
2593         users.txt: Update.
2594         * users.txt: Update URLs to projects that have moved or switched to git.
2595         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
2596         over the summary view. Add gawk.
2598 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
2600         largefile: remove _DARWIN_USE_64_BIT_INODE
2601         It’s not needed in currently-supported macOS versions, and was
2602         problematic anyway in MacOS X 10.5 which was the only version that
2603         could use it.  Problem reported by Peter Eisentraut in:
2604         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
2605         * m4/largefile.m4 (AC_SYS_LARGEFILE):
2606         Don’t define _DARWIN_USE_64_BIT_INODE.
2607         This syncs with Autoconf master.
2609         Add ‘extern "C"’ to count-one-bits.h etc.
2610         This ports these .h files to C++.
2611         Problem reported by Simon Marchi in:
2612         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
2613         * lib/count-leading-zeros.h, lib/count-one-bits.h:
2614         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
2616 2020-02-19  Bruno Haible  <bruno@clisp.org>
2618         uninorm/decompose-internal: Avoid "no previous prototype" warning.
2619         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2620         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
2621         * lib/array-mergesort.h: Accept an optional macro definition
2622         STATIC_FROMTO.
2623         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
2625 2020-02-16  Bruno Haible  <bruno@clisp.org>
2627         fchmodat: Make more future-proof.
2628         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
2629         NEED_FCHMODAT_NONSYMLINK_FIX.
2630         (gl_PREREQ_FCHMODAT): New macro.
2631         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
2632         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
2633         without lchmod function.
2634         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
2636 2020-02-16  Bruno Haible  <bruno@clisp.org>
2638         lchmod: Make more future-proof.
2639         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
2640         (gl_PREREQ_LCHMOD): New macro.
2641         * lib/lchmod.c (orig_lchmod): New function.
2642         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
2643         Return EOPNOTSUPP only on Linux and on platforms without lchmod
2644         function.
2645         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
2647         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
2648         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
2650 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2652         xnanosleep: prefer pause, and get remaining time
2653         Problem reported by Vladimir Panteleev in:
2654         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
2655         * lib/xnanosleep.c: Include intprops.h, unistd.h.
2656         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
2657         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
2658         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
2659         * modules/xnanosleep (Depends-on): Add intprops, unistd.
2661 2020-02-16  Bruno Haible  <bruno@clisp.org>
2663         lchmod: Improve cross-compilation guess.
2664         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
2665         cross-compiling, guess depending on the platform.
2667 2020-02-16  Bruno Haible  <bruno@clisp.org>
2669         fstrcmp: Add API to clean up resources.
2670         Reported by Akim Demaille <akim@lrde.epita.fr> in
2671         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
2672         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
2673         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
2675 2020-02-14  Bruno Haible  <bruno@clisp.org>
2677         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
2678         Reported by Christian Biesinger in
2679         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
2680         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
2681         corresponding module is not enabled.
2682         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
2683         prototype if the corresponding module is not enabled.
2685 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
2687         fchmodat, lchmod: port to buggy Linux filesystems
2688         Problem reported by Florian Weimer in:
2689         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
2690         * lib/fchmodat.c (fchmodat):
2691         * lib/lchmod.c (lchmod):
2692         Don’t assume that chmod on the O_PATH-opened fd will do
2693         the right thing on a symbolic link.
2694         * lib/fchmodat.c (fchmodat):
2695         Don’t attempt to special-case
2696         any flag value other than AT_SYMLINK_NOFOLLOW.
2698 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
2700         lchmod: pacify Coverity CID 1491216
2701         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
2702         not complain about unreachable code at the ‘struct stat st;’
2703         declaration.
2705 2020-02-10  Bruno Haible  <bruno@clisp.org>
2707         copysignf: Fix link error on HP-UX with cc.
2708         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
2709         HP-UX, set COPYSIGNF_LIBM to -lm.
2711 2020-02-10  Bruno Haible  <bruno@clisp.org>
2713         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
2714         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
2715         with $(LIB_SEMAPHORE).
2716         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
2717         with $(LIB_SEMAPHORE).
2719 2020-02-10  Bruno Haible  <bruno@clisp.org>
2721         ptsname_r-tests: Avoid unused function warning.
2722         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
2724 2020-02-08  Bruno Haible  <bruno@clisp.org>
2726         lchmod: Add tests.
2727         * tests/test-lchmod.c: New file.
2728         * modules/lchmod-tests: New file.
2730 2020-02-08  Bruno Haible  <bruno@clisp.org>
2732         lchmod: Ensure declaration on HP-UX.
2733         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
2734         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
2736 2020-02-08  Bruno Haible  <bruno@clisp.org>
2738         fchmodat: Strengthen tests.
2739         * tests/test-fchmodat.c (BASE): New macro.
2740         (main): Use it, to avoid conflicts with other unit tests. Verify that
2741         fchmodat changed the file permission bits.
2743 2020-02-08  Bruno Haible  <bruno@clisp.org>
2745         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
2746         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
2747         '#undef __need_system_sys_stat_h'.
2749 2020-02-08  Bruno Haible  <bruno@clisp.org>
2751         fchmodat: Improve cross-compilation guesses.
2752         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
2753         cross-compiling, guess depending on the platform.
2754         * doc/posix-functions/fchmodat.texi: Clarify.
2756 2020-02-08  Bruno Haible  <bruno@clisp.org>
2758         Fix compilation errors in a testdir created with --with-c++-tests.
2759         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
2760         since it does not work any more with g++ >= 4.4.
2762 2020-02-08  Bruno Haible  <bruno@clisp.org>
2764         doc: Update for glibc 2.31.
2765         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
2766         * doc/gnulib.texi: Include it.
2767         * doc/pastposix-functions/h_errno.texi: Update.
2768         * doc/posix-functions/*.texi: Likewise.
2770 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
2772         mountlist: consider smb3 file systems as remote
2773         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
2774         "smb3" as remote.
2776 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2778         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
2779         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
2780         they act like chmod on non-symlinks.
2781         * NEWS:
2782         * doc/glibc-functions/lchmod.texi (lchmod):
2783         * doc/posix-functions/fchmodat.texi (fchmodat):
2784         Mention this.
2785         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
2786         config.h, and undef it after including sys/stat.h the first time.
2787         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
2788         sys/stat.h a second time after defining orig_fchmodat.
2789         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
2790         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
2791         * lib/lchmod.c: New file.
2792         * lib/sys_stat.in.h (fchmodat, lchmod):
2793         Support replacing these functions.
2794         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
2795         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
2796         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
2797         Test that lchmod works on non-symlinks.
2798         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
2799         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
2800         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
2801         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
2802         * modules/lchmod (Files): Add lib/lchmod.c.
2803         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
2804         (configure.ac): Compile lchmod.c if needed.
2805         (lib_SOURCES): Add lchmod.c.
2806         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
2807         and REPLACE_LCHMOD.
2808         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
2809         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
2811 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
2813         mountlist: Consider AFS filesystems as remote
2814         df --local relies on the ME_REMOTE macro to determine if a given
2815         mount entry should be considered "local".  There is special logic
2816         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
2817         kernel's kafs module or AuriStorFS is treated as a local mount.
2818         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
2819         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
2821 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2823         Port _Noreturn to older Clang
2824         Problem reported by Jeffery Walton in:
2825         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
2826         * lib/_Noreturn.h (_Noreturn):
2827         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2828         Assume _Noreturn works in Clang 3.5 and later.
2829         It is documented to work in Clang 3.5:
2830         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
2831         and is not documented in Clang 3.4:
2832         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
2833         Apple sets __clang_version__ to a different value, so use
2834         __apple_build_version__ there.  See:
2835         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
2837 2020-02-04  Pádraig Brady  <P@draigBrady.com>
2839         test-canonicalize: avoid unused function warning
2840         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
2841         with the same guard as that used to protect usage of the null_ptr
2842         function, so that one doesn't get a -Wunused warning.
2843         * tests/test-canonicalize-lgpl.c: Likewise.
2845 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2847         libc-config: port to Apple’s Clang variant
2848         * lib/libc-config.h (__glibc_clang_prereq):
2849         Port to Apple’s Clang variant, which uses a different
2850         numbering scheme for __clang_major__.
2852 2020-02-02  Bruno Haible  <bruno@clisp.org>
2854         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
2855         * doc/containers.texi: Document these new modules.
2857 2020-02-02  Bruno Haible  <bruno@clisp.org>
2859         omap-c++: Add tests.
2860         * tests/test-omap-c++.cc: New file.
2861         * modules/omap-c++-tests: New file.
2863         omap-c++: New module.
2864         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
2865         * modules/omap-c++: New file.
2867 2020-02-02  Bruno Haible  <bruno@clisp.org>
2869         map-c++: Add tests.
2870         * tests/test-map-c++.cc: New file.
2871         * modules/map-c++-tests: New file.
2873         map-c++: New module.
2874         * lib/gl_map.hh: New file, based on lib/gl_map.h.
2875         * modules/map-c++: New file.
2877 2020-02-02  Bruno Haible  <bruno@clisp.org>
2879         oset-c++: Add tests.
2880         * tests/test-oset-c++.cc: New file.
2881         * modules/oset-c++-tests: New file.
2883         oset-c++: New module.
2884         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
2885         * modules/oset-c++: New file.
2887 2020-02-02  Bruno Haible  <bruno@clisp.org>
2889         set-c++: Add tests.
2890         * tests/test-set-c++.cc: New file.
2891         * modules/set-c++-tests: New file.
2893         set-c++: New module.
2894         * lib/gl_set.hh: New file, based on lib/gl_set.h.
2895         * modules/set-c++: New file.
2897 2020-02-02  Bruno Haible  <bruno@clisp.org>
2899         list-c++: Add tests.
2900         * tests/test-list-c++.cc: New file.
2901         * modules/list-c++-tests: New file.
2903         list-c++: New module.
2904         * lib/gl_list.hh: New file, based on lib/gl_list.h.
2905         * modules/list-c++: New file.
2907 2020-02-02  Bruno Haible  <bruno@clisp.org>
2909         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
2910         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
2911         '_Noreturn'.
2912         * lib/sigpipe-die.h (sigpipe_die): Likewise.
2914 2020-02-02  Pádraig Brady  <P@draigBrady.com>
2916         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
2917         On x86_64 with glibc-2.30, gcc 9.2 is giving:
2918           error: argument 2 value '18446744073709551615'
2919           exceeds maximum object size 9223372036854775807
2920           [-Werror=alloc-size-larger-than=]
2921         The details of this restriction are discussed at:
2922         https://stackoverflow.com/q/42574890/4421
2923         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
2925 2020-02-02  Pádraig Brady  <P@draigBrady.com>
2927         sysctl.h: avoid including on glibc
2928         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
2929         * lib/physmem.c: Likewise.
2931 2020-02-02  Bruno Haible  <bruno@clisp.org>
2933         list, set, oset, map, omap: Avoid imperative voice in documentation.
2934         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
2935         in the specification of functions.
2936         * lib/gl_set.h: Likewise.
2937         * lib/gl_oset.h: Likewise.
2938         * lib/gl_map.h: Likewise.
2939         * lib/gl_omap.h: Likewise.
2940         * lib/gl_*.h: Likewise.
2942 2020-02-01  Bruno Haible  <bruno@clisp.org>
2944         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
2945         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
2946         does.
2948 2020-01-29  Bruno Haible  <bruno@clisp.org>
2950         array-map, hash-map, linkedhash-map: Fix module description.
2951         * modules/array-map (Description): Fix description.
2952         * modules/hash-map (Description): Likewise.
2953         * modules/linkedhash-map (Description): Likewise.
2955 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2957         dfa: do not depend on isblank
2958         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
2959         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
2960         * modules/dfa (Depends-on): Remove isblank.
2961         * modules/isblank: Add a module indicator, for lib/dfa.c.
2963         dfa: do not assume 64-bit int
2964         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
2965         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
2966         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
2967         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
2968         Fall back to 32-bit words.
2969         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
2970         of 4 64-bit args.  All uses changed.
2972 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2974         regex: remove limits-h dependency
2975         * modules/regex (Depends-on): Remove limits-h, since the
2976         code no longer depends on ULONG_WIDTH already being defined.
2978         regex: port to non-GCC pre-IEC-60559
2979         Problem reported by Arnold Robbins in:
2980         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
2981         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
2983 2020-01-25  Bruno Haible  <bruno@clisp.org>
2985         c32isxdigit: Add tests.
2986         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
2987         * tests/test-c32isxdigit.sh: New file.
2988         * modules/c32isxdigit-tests: New file.
2990         c32isxdigit: New module.
2991         * lib/c32isxdigit.c: New file.
2992         * modules/c32isxdigit: New file.
2993         * doc/posix-functions/iswxdigit.texi: Mention the new module.
2995 2020-01-25  Bruno Haible  <bruno@clisp.org>
2997         c32isupper: Add tests.
2998         * tests/test-c32isupper.c: New file.
2999         * tests/test-c32isupper.sh: New file.
3000         * modules/c32isupper-tests: New file.
3002         c32isupper: New module.
3003         * lib/c32isupper.c: New file.
3004         * modules/c32isupper: New file.
3005         * doc/posix-functions/iswupper.texi: Mention the new module.
3007 2020-01-25  Bruno Haible  <bruno@clisp.org>
3009         c32isspace: Add tests.
3010         * tests/test-c32isspace.c: New file.
3011         * tests/test-c32isspace.sh: New file.
3012         * modules/c32isspace-tests: New file.
3014         c32isspace: New module.
3015         * lib/c32isspace.c: New file.
3016         * modules/c32isspace: New file.
3017         * doc/posix-functions/iswspace.texi: Mention the new module.
3019 2020-01-25  Bruno Haible  <bruno@clisp.org>
3021         c32ispunct: Add tests.
3022         * tests/test-c32ispunct.c: New file.
3023         * tests/test-c32ispunct.sh: New file.
3024         * modules/c32ispunct-tests: New file.
3026         c32ispunct: New module.
3027         * lib/c32ispunct.c: New file.
3028         * modules/c32ispunct: New file.
3029         * doc/posix-functions/iswpunct.texi: Mention the new module.
3031 2020-01-25  Bruno Haible  <bruno@clisp.org>
3033         c32isprint: Add tests.
3034         * tests/test-c32isprint.c: New file.
3035         * tests/test-c32isprint.sh: New file.
3036         * modules/c32isprint-tests: New file.
3038         c32isprint: New module.
3039         * lib/c32isprint.c: New file.
3040         * modules/c32isprint: New file.
3041         * doc/posix-functions/iswprint.texi: Mention the new module.
3043 2020-01-25  Bruno Haible  <bruno@clisp.org>
3045         c32islower: Add tests.
3046         * tests/test-c32islower.c: New file.
3047         * tests/test-c32islower.sh: New file.
3048         * modules/c32islower-tests: New file.
3050         c32islower: New module.
3051         * lib/c32islower.c: New file.
3052         * modules/c32islower: New file.
3053         * doc/posix-functions/iswlower.texi: Mention the new module.
3055 2020-01-25  Bruno Haible  <bruno@clisp.org>
3057         c32isgraph: Add tests.
3058         * tests/test-c32isgraph.c: New file.
3059         * tests/test-c32isgraph.sh: New file.
3060         * modules/c32isgraph-tests: New file.
3062         c32isgraph: New module.
3063         * lib/c32isgraph.c: New file.
3064         * modules/c32isgraph: New file.
3065         * doc/posix-functions/iswgraph.texi: Mention the new module.
3067 2020-01-25  Bruno Haible  <bruno@clisp.org>
3069         c32isdigit: Add tests.
3070         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
3071         * tests/test-c32isdigit.sh: New file.
3072         * modules/c32isdigit-tests: New file.
3074         c32isdigit: New module.
3075         * lib/c32isdigit.c: New file.
3076         * modules/c32isdigit: New file.
3077         * doc/posix-functions/iswdigit.texi: Mention the new module.
3079 2020-01-25  Bruno Haible  <bruno@clisp.org>
3081         c32iscntrl: Add tests.
3082         * tests/test-c32iscntrl.c: New file.
3083         * tests/test-c32iscntrl.sh: New file.
3084         * modules/c32iscntrl-tests: New file.
3086         c32iscntrl: New module.
3087         * lib/c32iscntrl.c: New file.
3088         * modules/c32iscntrl: New file.
3089         * doc/posix-functions/iswcntrl.texi: Mention the new module.
3091 2020-01-25  Bruno Haible  <bruno@clisp.org>
3093         c32isblank: Add tests.
3094         * tests/test-c32isblank.c: New file.
3095         * tests/test-c32isblank.sh: New file.
3096         * modules/c32isblank-tests: New file.
3098         c32isblank: New module.
3099         * lib/c32isblank.c: New file.
3100         * modules/c32isblank: New file.
3101         * doc/posix-functions/iswblank.texi: Mention the new module.
3103 2020-01-25  Bruno Haible  <bruno@clisp.org>
3105         c32isalpha: Add tests.
3106         * tests/test-c32isalpha.c: New file.
3107         * tests/test-c32isalpha.sh: New file.
3108         * modules/c32isalpha-tests: New file.
3110         c32isalpha: New module.
3111         * lib/c32isalpha.c: New file.
3112         * modules/c32isalpha: New file.
3113         * doc/posix-functions/iswalpha.texi: Mention the new module.
3115 2020-01-25  Bruno Haible  <bruno@clisp.org>
3117         c32isalnum: Add tests.
3118         * tests/test-c32isalnum.c: New file.
3119         * tests/test-c32isalnum.sh: New file.
3120         * modules/c32isalnum-tests: New file.
3122         c32isalnum: New module.
3123         * lib/c32isalnum.c: New file.
3124         * lib/c32is-impl.h: New file.
3125         * modules/c32isalnum: New file.
3126         * doc/posix-functions/iswalnum.texi: Mention the new module.
3128 2020-01-25  Bruno Haible  <bruno@clisp.org>
3130         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
3131         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
3132         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
3133         c32isupper, c32isxdigit): New declarations.
3134         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
3135         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
3136         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
3137         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
3138         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
3139         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
3140         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
3141         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
3142         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
3143         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
3144         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
3145         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
3146         c32ispunct, c32isspace, c32isupper, c32isxdigit.
3148 2020-01-25  Bruno Haible  <bruno@clisp.org>
3150         mbchar, wctype: Use the corrected iswxdigit function.
3151         * modules/mbchar (Depends-on): Add iswxdigit.
3152         * modules/wctype (Depends-on): Likewise.
3154         iswxdigit: Add tests.
3155         * tests/test-iswxdigit.c: New file.
3156         * tests/test-iswxdigit.sh: New file.
3157         * modules/iswxdigit-tests: New file.
3159         iswxdigit: New module.
3160         * m4/iswxdigit.m4: New file.
3161         * lib/wctype.in.h (iswxdigit): Potentially override.
3162         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
3163         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
3164         * lib/iswxdigit.c: New file.
3165         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
3166         REPLACE_ISWXDIGIT.
3167         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
3168         REPLACE_ISWXDIGIT.
3169         * modules/iswxdigit: New file.
3170         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
3172 2020-01-25  Bruno Haible  <bruno@clisp.org>
3174         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
3175         Reported by John Donoghue <john.david.donoghue@gmail.com> in
3176         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
3177         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
3178         off_t on mingw, invoke _lseeki64 instead of lseek.
3180 2020-01-25  Bruno Haible  <bruno@clisp.org>
3182         iswdigit tests: Avoid test failure on Cygwin.
3183         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
3184         byte sequence, return 0.
3186         iswdigit: Fix test failure on native Windows.
3187         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
3189         mbchar, wctype: Use the corrected iswdigit function.
3190         * modules/mbchar (Depends-on): Add iswdigit.
3191         * modules/wctype (Depends-on): Likewise.
3193         iswdigit: Add tests.
3194         * tests/test-iswdigit.c: New file.
3195         * tests/test-iswdigit.sh: New file.
3196         * modules/iswdigit-tests: New file.
3198         iswdigit: New module.
3199         * m4/iswdigit.m4: New file.
3200         * lib/wctype.in.h (iswdigit): Potentially override.
3201         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
3202         * lib/iswdigit.c: New file.
3203         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
3204         REPLACE_ISWDIGIT.
3205         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
3206         REPLACE_ISWDIGIT.
3207         * modules/iswdigit: New file.
3208         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
3210 2020-01-25  Bruno Haible  <bruno@clisp.org>
3212         hard-locale tests: Make it easy to reuse the musl test.
3213         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
3214         * modules/hard-locale-tests (Files): Add it.
3215         (configure.ac): Invoke gl_MUSL_LIBC.
3217 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
3219         regex: port to Gawk on nonstandard platforms
3220         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
3221         This is useful for Gawk, which does not use the Gnulib stdlib-h
3222         module.  Problem reported by Arnold Robbins in:
3223         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
3225 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3227         regex: fix bug with >=16 subexpressions
3228         * lib/regex_internal.h (struct re_backref_cache_entry):
3229         Use bitset_word_t as the type of eps_reachable_subexps_map,
3230         instead of unsigned short int.  This fixes a bug I introduced
3231         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
3232         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
3233         Remove unused member 'unused'.
3235         regex: simplify definition of BITSET_WORD_BITS
3236         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
3237         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
3238         * lib/regex_internal.h (BITSET_WORD_BITS):
3239         * modules/regex (Depends-on): Add limits-h.
3240         Simplify now that we can use ULONG_WIDTH.
3242 2020-01-20  Bruno Haible  <bruno@clisp.org>
3244         mbrtoc32: Add note about FreeBSD 12.
3245         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
3246         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
3247         affected.
3249 2020-01-20  Bruno Haible  <bruno@clisp.org>
3251         unistr/u8-uctomb: Fix warning.
3252         Reported by Andreas Schwab <schwab@suse.de> in
3253         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
3254         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
3255         (u8_uctomb): Add FALLTHROUGH markers.
3257 2020-01-20  Bruno Haible  <bruno@clisp.org>
3259         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
3260         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
3261         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
3262         (glthread_once): Use it.
3264 2020-01-19  Bruno Haible  <bruno@clisp.org>
3266         threadlib: Disable use of weak symbols on FreeBSD 11.
3267         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3268         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
3269         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
3270         against a bug in FreeBSD 11.
3272 2020-01-19  Bruno Haible  <bruno@clisp.org>
3274         iconv_open: Improve z/OS support.
3275         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
3276         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
3277         Remove mapping for EUC-TW.
3279 2020-01-18  Bruno Haible  <bruno@clisp.org>
3281         Rename ~~gnulib.m4 to zzgnulib.m4.
3282         Suggested by Paul Eggert.
3283         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
3284         * gnulib-tool (func_get_filelist): Update.
3285         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
3287 2020-01-18  Bruno Haible  <bruno@clisp.org>
3289         doc: Update license notices.
3290         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
3291         reference to a section or to a "file as part of this distribution".
3293 2020-01-18  Bruno Haible  <bruno@clisp.org>
3295         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
3296         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
3297         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
3298         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
3299         AC_EGREP_CPP.
3301 2020-01-18  Bruno Haible  <bruno@clisp.org>
3303         Ensure Automake does not drop ~~gnulib.m4.
3304         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
3305         * m4/gnulib-common.m4 (gl_COMMON): Require it.
3307 2020-01-18  Bruno Haible  <bruno@clisp.org>
3309         Fix major regression from 2020-01-10.
3310         Reported by Paul Eggert in
3311         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
3312         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
3313         Don't AC_REQUIRE anything.
3314         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
3315         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
3316         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
3317         use ac_compile instead.
3318         (AC_CHECK_DECL): Remove override.
3319         * m4/~~gnulib.m4: New file.
3320         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
3321         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
3323 2020-01-17  Bruno Haible  <bruno@clisp.org>
3324             Paul Eggert  <eggert@cs.ucla.edu>
3326         glob: Fix use-after-free bug.
3327         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
3329         * lib/glob.c (__glob): Delay freeing dirname until after the use of
3330         end_name.
3332 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3334         vcs-to-changelog: Fix parsing of fndecl without args.
3335         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
3336         for empty arguments.
3338 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3340         vcs-to-changelog: Add documentation.
3341         * doc/vcs-to-changelog.texi: New file.
3342         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
3343         section.
3345 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3347         vcs-to-changelog: Allow loading of custom quirks file.
3348         * build-aux/vcs_to_changelog.py: New commandline option -q.
3350 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3352         vcs-to-changelog: Fix formatting of ChangeLog output.
3353         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
3354         output.
3356 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3358         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
3359         Reported in
3360         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
3361         * build-aux/vcstocl/frontend_c.py: Remove shebang.
3363 2020-01-15  Simon Josefsson  <simon@josefsson.org>
3365         crypto/gc-pbkdf2: New module.
3366         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
3367         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
3368         * lib/gc-pbkdf2.c: New file.
3369         * lib/gc-pbkdf2-sha1.c: Use new interface.
3370         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
3371         * modules/crypto/gc-pbkdf2: New file.
3372         * modules/crypto/gc-pbkdf2-tests: New file.
3373         * tests/test-gc-pbkdf2.c: New file.
3375 2020-01-12  Bruno Haible  <bruno@clisp.org>
3377         c32stombs: Add tests.
3378         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
3379         * tests/test-c32stombs-1.sh: New file, based on
3380         tests/test-c32srtombs-1.sh.
3381         * tests/test-c32stombs-2.sh: New file, based on
3382         tests/test-c32srtombs-2.sh.
3383         * tests/test-c32stombs-3.sh: New file, based on
3384         tests/test-c32srtombs-3.sh.
3385         * tests/test-c32stombs-4.sh: New file, based on
3386         tests/test-c32srtombs-4.sh.
3387         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
3389         c32stombs: New module.
3390         * lib/uchar.in.h (c32stombs): New declaration.
3391         * lib/c32stombs.c: New file.
3392         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
3393         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
3394         * modules/c32stombs: New file.
3395         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
3396         * doc/posix-functions/wcstombs.texi: Mention the new module.
3398 2020-01-11  Jim Meyering  <meyering@fb.com>
3400         perl: require the "warnings" module
3401         * m4/perl.m4: Also "use warnings", so we reject the perl found
3402         on at least one IRIX 6.5 system. Reported by Bruno Haible in
3403         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
3405 2020-01-10  Bruno Haible  <bruno@clisp.org>
3407         Fix major regression from 2020-01-04.
3408         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
3409         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
3410         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
3411         AC_DEFUN_ONCE.
3412         (AC_CHECK_DECL): Invoke, not require, it.
3414 2020-01-10  Bruno Haible  <bruno@clisp.org>
3416         c32snrtombs: Add tests.
3417         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
3418         * tests/test-c32snrtombs-1.sh: New file, based on
3419         tests/test-wcsnrtombs1.sh.
3420         * tests/test-c32snrtombs-2.sh: New file, based on
3421         tests/test-wcsnrtombs2.sh.
3422         * tests/test-c32snrtombs-3.sh: New file, based on
3423         tests/test-wcsnrtombs3.sh.
3424         * tests/test-c32snrtombs-4.sh: New file, based on
3425         tests/test-wcsnrtombs4.sh.
3426         * modules/c32snrtombs-tests: New file, based on
3427         modules/wcsnrtombs-tests.
3429         c32snrtombs: New module.
3430         * lib/uchar.in.h (c32snrtombs): New declaration.
3431         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
3432         INTERNAL_STATE, WCRTOMB.
3433         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
3434         * lib/c32snrtombs.c: New file.
3435         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
3436         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
3437         * modules/c32snrtombs: New file.
3438         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
3439         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3441 2020-01-09  Bruno Haible  <bruno@clisp.org>
3443         c32srtombs: Add tests.
3444         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
3445         * tests/test-c32srtombs-1.sh: New file, based on
3446         tests/test-wcsrtombs1.sh.
3447         * tests/test-c32srtombs-2.sh: New file, based on
3448         tests/test-wcsrtombs2.sh.
3449         * tests/test-c32srtombs-3.sh: New file, based on
3450         tests/test-wcsrtombs3.sh.
3451         * tests/test-c32srtombs-4.sh: New file, based on
3452         tests/test-wcsrtombs4.sh.
3453         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
3455         c32srtombs: New module.
3456         * lib/uchar.in.h (c32srtombs): New declaration.
3457         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
3458         INTERNAL_STATE, WCRTOMB.
3459         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
3460         * lib/c32srtombs.c: New file.
3461         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
3462         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
3463         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
3464         * modules/c32srtombs: New file.
3465         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
3466         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
3468 2020-01-08  Bruno Haible  <bruno@clisp.org>
3470         c32tob: Make consistent with mbrtoc32.
3471         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
3472         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
3473         use c32rtomb, not wctob.
3474         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
3475         (Depends-on): Add c32rtomb.
3476         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
3478 2020-01-08  Bruno Haible  <bruno@clisp.org>
3480         c32rtomb: Add tests.
3481         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
3482         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
3483         * tests/test-c32rtomb-w32.c: New file, based on
3484         tests/test-wcrtomb-w32.c.
3485         * tests/test-c32rtomb-w32-1.sh: New file, based on
3486         tests/test-wcrtomb-w32-1.sh.
3487         * tests/test-c32rtomb-w32-2.sh: New file, based on
3488         tests/test-wcrtomb-w32-2.sh.
3489         * tests/test-c32rtomb-w32-3.sh: New file, based on
3490         tests/test-wcrtomb-w32-3.sh.
3491         * tests/test-c32rtomb-w32-4.sh: New file, based on
3492         tests/test-wcrtomb-w32-4.sh.
3493         * tests/test-c32rtomb-w32-5.sh: New file, based on
3494         tests/test-wcrtomb-w32-5.sh.
3495         * tests/test-c32rtomb-w32-6.sh: New file, based on
3496         tests/test-wcrtomb-w32-6.sh.
3497         * tests/test-c32rtomb-w32-7.sh: New file, based on
3498         tests/test-wcrtomb-w32-7.sh.
3499         * modules/c32rtomb-tests: New file.
3501         c32rtomb: New module.
3502         * lib/uchar.in.h (c32rtomb): New declaration.
3503         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
3504         * m4/c32rtomb.m4: New file.
3505         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
3506         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
3507         REPLACE_C32RTOMB.
3508         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
3509         HAVE_C32RTOMB, REPLACE_C32RTOMB.
3510         * modules/c32rtomb: New file.
3511         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
3512         * doc/posix-functions/c32rtomb.texi: Document the new module.
3513         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3515 2020-01-08  Bruno Haible  <bruno@clisp.org>
3517         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
3518         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
3519         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
3520         but is not working.
3521         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
3522         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
3523         differ, use the system's mbrtoc32, adding workarounds.
3524         * modules/mbrtoc32 (Depends-on): Add hard-locale.
3525         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
3526         Windows problem.
3527         * lib/btoc32.c: Include <stdio.h>, <string.h>.
3528         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
3529         use mbrtoc32, not btowc.
3530         * modules/btoc32 (Depends-on): Add mbrtoc32.
3531         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
3532         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
3533         * modules/mbsrtoc32s (Depends-on): Update conditions.
3534         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
3535         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
3536         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
3537         * modules/mbsnrtoc32s (Depends-on): Update conditions.
3538         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
3540 2020-01-07  Bruno Haible  <bruno@clisp.org>
3542         wcrtomb: Make multithread-safe, except possibly on IRIX.
3543         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
3544         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
3545         WCRTOMB_RETVAL_BUG.
3546         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
3547         wctomb only on IRIX.
3549 2020-01-05  Jim Meyering  <meyering@fb.com>
3551         tests: skip thread-using tests when threading is disabled
3552         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
3553         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
3554         of those, so they are skipped in this case.
3555         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
3556         * tests/test-setlocale_null-mt-all.c (main): Likewise.
3557         * tests/test-setlocale_null-mt-one.c (main): Likewise.
3559 2020-01-05  Bruno Haible  <bruno@clisp.org>
3561         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
3562         Reported by Jim Meyering in
3563         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
3564         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
3565         (GNULIB_defined_ptsname_r): New macro.
3566         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
3567         (main): Disable the NULL argument test if canonicalize_file_name does
3568         not come from gnulib.
3569         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
3570         (main): Disable the NULL argument test if canonicalize_file_name does
3571         not come from gnulib.
3572         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
3573         (test_errors): Disable the NULL argument test if ptsname_r does not come
3574         from gnulib.
3576 2020-01-04  Jim Meyering  <meyering@fb.com>
3578         update-copyright: reenable its always-skipped test
3579         * tests/test-update-copyright.sh: Restore the "-pi" options removed
3580         on 2019-06-15. Without those, an internal preliminary test would
3581         fail, causing this test always to be skipped.
3582         Verify that the test is now run and passes via this:
3583           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
3585 2020-01-05  Bruno Haible  <bruno@clisp.org>
3587         mbstoc32s: Add tests.
3588         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
3589         * tests/test-mbstoc32s-1.sh: New file, based on
3590         tests/test-mbsrtoc32s-1.sh.
3591         * tests/test-mbstoc32s-2.sh: New file, based on
3592         tests/test-mbsrtoc32s-2.sh.
3593         * tests/test-mbstoc32s-3.sh: New file, based on
3594         tests/test-mbsrtoc32s-3.sh.
3595         * tests/test-mbstoc32s-4.sh: New file, based on
3596         tests/test-mbsrtoc32s-4.sh.
3597         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
3599         mbstoc32s: New module.
3600         * lib/uchar.in.h (mbstoc32s): New declaration.
3601         * lib/mbstoc32s.c: New file.
3602         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
3603         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
3604         * modules/mbstoc32s: New file.
3605         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
3606         * doc/posix-functions/mbstowcs.texi: Mention the new module.
3608 2020-01-05  Bruno Haible  <bruno@clisp.org>
3610         Tweak recently added tests.
3611         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
3612         * tests/test-mbsrtoc32s.c: Likewise.
3613         * tests/test-mbsnrtoc32s.c: Likewise.
3615 2020-01-04  Bruno Haible  <bruno@clisp.org>
3617         mbsnrtoc32s: Add tests.
3618         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
3619         * tests/test-mbsnrtoc32s-1.sh: New file, based on
3620         tests/test-mbsnrtowcs1.sh.
3621         * tests/test-mbsnrtoc32s-2.sh: New file, based on
3622         tests/test-mbsnrtowcs2.sh.
3623         * tests/test-mbsnrtoc32s-3.sh: New file, based on
3624         tests/test-mbsnrtowcs3.sh.
3625         * tests/test-mbsnrtoc32s-4.sh: New file, based on
3626         tests/test-mbsnrtowcs4.sh.
3627         * modules/mbsnrtoc32s-tests: New file, based on
3628         modules/mbsnrtowcs-tests.
3630         mbsnrtoc32s: New module.
3631         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
3632         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
3633         INTERNAL_STATE, MBRTOWC.
3634         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
3635         * lib/mbsnrtoc32s.c: New file.
3636         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
3637         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
3638         * modules/mbsnrtoc32s: New file.
3639         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
3640         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
3642 2020-01-04  Bruno Haible  <bruno@clisp.org>
3644         mbsrtoc32s tests: Enhance test.
3645         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
3646         test strings for UTF-8 and GB18030.
3648 2020-01-04  Bruno Haible  <bruno@clisp.org>
3650         mbsrtoc32s: Fix bug.
3651         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
3652         that SMALL_WCHAR_T is defined.
3654 2020-01-04  Bruno Haible  <bruno@clisp.org>
3656         mbsrtoc32s: Add tests.
3657         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
3658         * tests/test-mbsrtoc32s-1.sh: New file, based on
3659         tests/test-mbsrtowcs1.sh.
3660         * tests/test-mbsrtoc32s-2.sh: New file, based on
3661         tests/test-mbsrtowcs2.sh.
3662         * tests/test-mbsrtoc32s-3.sh: New file, based on
3663         tests/test-mbsrtowcs3.sh.
3664         * tests/test-mbsrtoc32s-4.sh: New file, based on
3665         tests/test-mbsrtowcs4.sh.
3666         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
3668         mbsrtoc32s: New module.
3669         * lib/uchar.in.h (mbsrtoc32s): New declaration.
3670         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
3671         INTERNAL_STATE, MBRTOWC.
3672         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
3673         * lib/mbsrtoc32s.c: New file.
3674         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
3675         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
3676         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
3677         * modules/mbsrtoc32s: New file.
3678         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
3679         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
3681 2020-01-04  Bruno Haible  <bruno@clisp.org>
3683         mbrtowc, mbrtoc32: Tighten dependendies.
3684         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
3685         REPLACE_MBSTATE_T is 1.
3686         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
3687         REPLACE_MBSTATE_T is 0.
3688         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
3689         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
3690         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
3691         REPLACE_MBSTATE_T is 0.
3693 2020-01-04  Bruno Haible  <bruno@clisp.org>
3695         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
3696         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
3697         * modules/uchar (Files): Add stdint.m4.
3698         (Makefile.am): Substitute SMALL_WCHAR_T.
3699         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
3701 2020-01-04  Bruno Haible  <bruno@clisp.org>
3703         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
3704         Reported by Martin Storsjö <martin@martin.st> in
3705         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
3706         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
3707         New macros.
3708         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
3710 2020-01-04  Bruno Haible  <bruno@clisp.org>
3712         btoc32: Add tests.
3713         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
3714         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
3715         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
3716         * modules/btoc32-tests: New file, based on modules/btowc-tests.
3718         btoc32: New module.
3719         * lib/uchar.in.h (btoc32): New declaration.
3720         * lib/btoc32.c: New file.
3721         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
3722         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
3723         * modules/btoc32: New file.
3724         * tests/test-uchar-c++.cc: Test the signature of btoc32.
3725         * doc/posix-functions/btowc.texi: Mention the new module.
3727 2020-01-03  Bruno Haible  <bruno@clisp.org>
3729         uchar tests: Avoid compilation error with HP cc.
3730         * tests/test-uchar.c: Disable a test when HP cc is in use.
3732 2020-01-03  Bruno Haible  <bruno@clisp.org>
3734         mbrtoc32: Add tests.
3735         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
3736         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
3737         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
3738         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
3739         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
3740         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
3741         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
3742         * tests/test-mbrtoc32-w32-1.sh: New file, based on
3743         tests/test-mbrtowc-w32-1.sh.
3744         * tests/test-mbrtoc32-w32-2.sh: New file, based on
3745         tests/test-mbrtowc-w32-2.sh.
3746         * tests/test-mbrtoc32-w32-3.sh: New file, based on
3747         tests/test-mbrtowc-w32-3.sh.
3748         * tests/test-mbrtoc32-w32-4.sh: New file, based on
3749         tests/test-mbrtowc-w32-4.sh.
3750         * tests/test-mbrtoc32-w32-5.sh: New file, based on
3751         tests/test-mbrtowc-w32-5.sh.
3752         * tests/test-mbrtoc32-w32-6.sh: New file, based on
3753         tests/test-mbrtowc-w32-6.sh.
3754         * tests/test-mbrtoc32-w32-7.sh: New file, based on
3755         tests/test-mbrtowc-w32-7.sh.
3756         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
3758         mbrtoc32: New module.
3759         * lib/uchar.in.h (mbrtoc32): New declaration.
3760         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
3761         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
3762         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
3763         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
3764         REPLACE_MBRTOC32.
3765         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
3766         HAVE_MBRTOC32, REPLACE_MBRTOC32.
3767         * modules/mbrtoc32: New file, based on modules/mbrtowc.
3768         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
3769         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
3770         $(LIB_MBRTOWC).
3771         * doc/posix-functions/mbrtoc32.texi: Document the new module.
3772         * doc/posix-functions/mbrtowc.texi: Mention the new module.
3774 2020-01-03  Bruno Haible  <bruno@clisp.org>
3776         mbrtowc: Refactor to share code with mbrtoc32.
3777         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
3778         * lib/mbrtowc-impl-utf8.h: Likewise.
3779         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
3780         mbrtowc-impl.h.
3781         * modules/mbrtowc (Files): Add the new files.
3783 2020-01-03  Jim Meyering  <meyering@fb.com>
3785         doc: fix time.texi wording
3786         * doc/posix-headers/time.texi (time.h): Typo.
3788 2020-01-03  Bruno Haible  <bruno@clisp.org>
3790         mbrtowc: Refactor locale charset dispatching.
3791         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
3792         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
3793         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
3794         localcharset.h, streq.h.
3795         (enc_t): Remove type.
3796         (locale_enc): Remove function.
3797         (cached_locale_enc): Remove variable.
3798         (locale_enc_cached): Remove function.
3799         (mbrtowc): Invoke locale_encoding_classification.
3800         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
3801         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
3802         lc-charset-dispatch.c.
3803         (configure.ac): Arrange to compile lc-charset-dispatch.c.
3805 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
3807         doc: mention 32-bit time_t issue
3808         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3809         * doc/posix-headers/time.texi (time.h): Mention 2038.
3811 2020-01-03  Bruno Haible  <bruno@clisp.org>
3813         mbrtowc: Ensure the mbtowc_lock is unique.
3814         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
3815         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
3816         lib/setlocale_null.c.
3817         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
3818         glthread/lock.h. Include mbtowc-lock.h.
3819         (mbtowc_lock): Remove declaration.
3820         (mbrtowc): Use mbtowc_with_lock.
3821         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
3822         threads.h. Set LIB_MBRTOWC.
3823         (gl_PREREQ_MBTOWC_LOCK): New macro.
3824         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
3825         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3826         (Depends-on): Remove lock.
3827         (configure.ac): Arrange to compile mbtowc-lock.c.
3828         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
3829         * modules/acl (Link): Likewise.
3830         * modules/argmatch (Link): Likewise.
3831         * modules/backup-rename (Link): Likewise.
3832         * modules/backupfile (Link): Likewise.
3833         * modules/closein (Link): Likewise.
3834         * modules/closeout (Link): Likewise.
3835         * modules/copy-file (Link): Likewise.
3836         * modules/csharpcomp (Link): Likewise.
3837         * modules/csharpexec (Link): Likewise.
3838         * modules/dfa (Link): Likewise.
3839         * modules/exclude (Link): Likewise.
3840         * modules/fnmatch (Link): Likewise.
3841         * modules/fnmatch-gnu (Link): Likewise.
3842         * modules/fnmatch-posix (Link): Likewise.
3843         * modules/glob (Link): Likewise.
3844         * modules/human (Link): Likewise.
3845         * modules/javacomp (Link): Likewise.
3846         * modules/javaexec (Link): Likewise.
3847         * modules/javaversion (Link): Likewise.
3848         * modules/mbfile (Link): Likewise.
3849         * modules/mbiter (Link): Likewise.
3850         * modules/mbmemcasecmp (Link): Likewise.
3851         * modules/mbmemcasecoll (Link): Likewise.
3852         * modules/mbrlen (Link): Likewise.
3853         * modules/mbscasecmp (Link): Likewise.
3854         * modules/mbscasestr (Link): Likewise.
3855         * modules/mbschr (Link): Likewise.
3856         * modules/mbscspn (Link): Likewise.
3857         * modules/mbsinit (Link): Likewise.
3858         * modules/mbslen (Link): Likewise.
3859         * modules/mbsncasecmp (Link): Likewise.
3860         * modules/mbsnlen (Link): Likewise.
3861         * modules/mbsnrtowcs (Link): Likewise.
3862         * modules/mbspbrk (Link): Likewise.
3863         * modules/mbspcasecmp (Link): Likewise.
3864         * modules/mbsrchr (Link): Likewise.
3865         * modules/mbsrtowcs (Link): Likewise.
3866         * modules/mbssep (Link): Likewise.
3867         * modules/mbsspn (Link): Likewise.
3868         * modules/mbsstr (Link): Likewise.
3869         * modules/mbstok_r (Link): Likewise.
3870         * modules/mbswidth (Link): Likewise.
3871         * modules/mbuiter (Link): Likewise.
3872         * modules/mkdir-p (Link): Likewise.
3873         * modules/propername (Link): Likewise.
3874         * modules/quote (Link): Likewise.
3875         * modules/quotearg (Link): Likewise.
3876         * modules/quotearg-simple (Link): Likewise.
3877         * modules/regex-quote (Link): Likewise.
3878         * modules/rpmatch (Link): Likewise.
3879         * modules/sh-quote (Link): Likewise.
3880         * modules/system-quote (Link): Likewise.
3881         * modules/trim (Link): Likewise.
3882         * modules/unistdio/ulc-asnprintf (Link): Likewise.
3883         * modules/unistdio/ulc-fprintf (Link): Likewise.
3884         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
3885         * modules/unistdio/ulc-vasprintf (Link): Likewise.
3886         * modules/unistdio/ulc-vfprintf (Link): Likewise.
3887         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
3888         * modules/unistdio/ulc-vsprintf (Link): Likewise.
3889         * modules/xfreopen (Link): Likewise.
3890         * modules/xmemcoll (Link): Likewise.
3891         * modules/yesno (Link): Likewise.
3892         * modules/regex (Link): Add $(LIB_MBRTOWC).
3893         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
3894         instead of $(LIBTHREAD).
3895         * modules/argmatch-tests (Makefile.am): Likewise.
3896         * modules/closein-tests (Makefile.am): Likewise.
3897         * modules/copy-file-tests (Makefile.am): Likewise.
3898         * modules/dfa-tests (Makefile.am): Likewise.
3899         * modules/fnmatch-tests (Makefile.am): Likewise.
3900         * modules/glob-tests (Makefile.am): Likewise.
3901         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3902         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3903         * modules/mbrtowc-tests (Makefile.am): Likewise.
3904         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3905         * modules/mbscasestr-tests (Makefile.am): Likewise.
3906         * modules/mbschr-tests (Makefile.am): Likewise.
3907         * modules/mbscspn-tests (Makefile.am): Likewise.
3908         * modules/mbsinit-tests (Makefile.am): Likewise.
3909         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3910         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3911         * modules/mbspbrk-tests (Makefile.am): Likewise.
3912         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3913         * modules/mbsrchr-tests (Makefile.am): Likewise.
3914         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3915         * modules/mbsspn-tests (Makefile.am): Likewise.
3916         * modules/mbsstr-tests (Makefile.am): Likewise.
3917         * modules/quotearg-simple-tests (Makefile.am): Likewise.
3918         * modules/quotearg-tests (Makefile.am): Likewise.
3919         * modules/readtokens-tests (Makefile.am): Likewise.
3920         * modules/sh-quote-tests (Makefile.am): Likewise.
3921         * modules/system-quote-tests (Makefile.am): Likewise.
3922         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
3923         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3924         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
3925         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
3926         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
3927         * modules/yesno-tests (Makefile.am): Likewise.
3928         * modules/exclude-tests (Makefile.am): Link the programs with
3929         $(LIB_MBRTOWC).
3930         * modules/regex-tests (Makefile.am): Likewise.
3931         * modules/regex-quote-tests (Makefile.am): Likewise.
3933 2020-01-03  Bruno Haible  <bruno@clisp.org>
3935         getopt-posix: Fix compilation failure in testdirs.
3936         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
3937         when the gnulib module 'getopt-posix' is enabled.
3938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
3939         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
3940         module indicator.
3941         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
3943 2020-01-03  Bruno Haible  <bruno@clisp.org>
3945         doc: Mention the 64-bit inode number problem.
3946         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
3947         64-bit inode number problem.
3948         * doc/posix-functions/stat.texi: Mention that this module fixes the
3949         64-bit inode number problem.
3950         * doc/posix-functions/lstat.texi: Likewise.
3951         * doc/posix-functions/fstat.texi: Likewise.
3952         * doc/posix-functions/readdir.texi: Add more details.
3953         * doc/posix-functions/readdir_r.texi: Likewise.
3955 2020-01-02  Bruno Haible  <bruno@clisp.org>
3957         wcrtomb: Add more tests.
3958         * tests/test-wcrtomb-w32.c: Include localcharset.h.
3959         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
3960         locale_charset() returns the expected value; otherwise, skip the test.
3961         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
3962         * tests/test-wcrtomb-w32-7.sh: Likewise.
3963         * modules/wcrtomb-tests (Files): Add these files.
3964         (Depends-on): Add localcharset.
3965         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
3967 2020-01-02  Bruno Haible  <bruno@clisp.org>
3969         mbrtowc: Add more tests.
3970         * tests/test-mbrtowc-w32.c: Include localcharset.h.
3971         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
3972         locale_charset() returns the expected value; otherwise, skip the test.
3973         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
3974         * tests/test-mbrtowc-w32-7.sh: Likewise.
3975         * modules/mbrtowc-tests (Files): Add these files.
3976         (Depends-on): Add localcharset.
3977         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
3979 2020-01-02  Bruno Haible  <bruno@clisp.org>
3981         mbrtowc: Fix test failures on MSVC (regression by previous commit).
3982         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
3983         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
3984         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
3985         MBRTOWC_STORES_INCOMPLETE_BUG.
3986         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
3988 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3990         doc: mention glibc bug 24269
3991         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
3992         Reformat slightly so that it looks nicer in the Grep manual.
3994 2020-01-02  Bruno Haible  <bruno@clisp.org>
3996         mbrtowc: Don't replace mbstate_t on MSVC.
3997         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
3998         a missing mbsinit function on native Windows.
3999         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
4000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
4001         MSVC bug.
4002         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
4004 2020-01-02  Bruno Haible  <bruno@clisp.org>
4006         setlocale-null: Avoid crashing the MSVC linker.
4007         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
4008         MSVC.
4010 2020-01-02  Bruno Haible  <bruno@clisp.org>
4012         wchar: Make the HP-UX workaround work on HP-UX 11.31.
4013         * modules/wchar (Depends-on): Add inttypes-incomplete.
4014         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
4015         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
4016         of strtoimax.
4018 2020-01-02  Bruno Haible  <bruno@clisp.org>
4020         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
4021         * lib/mbrtowc.c: Include <stdint.h>.
4022         * modules/mbrtowc (Depends-on): Add stdint.
4024 2020-01-01  Pádraig Brady  <P@draigBrady.com>
4026         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
4027         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
4028         which will auto enable use of openssl, only for >= version 3,
4029         which is newly licensed under the Apache Software License.
4031 2020-01-01  Bruno Haible  <bruno@clisp.org>
4033         mbrtowc: Include function name in macro names.
4034         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
4035         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
4036         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
4037         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
4038         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
4039         C_LOCALE_MAYBE_EILSEQ.
4041 2020-01-01  Bruno Haible  <bruno@clisp.org>
4043         c32tob: New module.
4044         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
4045         (c32tob): New declaration.
4046         * lib/c32tob.c: New file.
4047         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
4048         macros.
4049         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
4050         * modules/uchar (Depends-on): Add snippet/c++defs.
4051         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
4052         uchar.h.
4053         * modules/c32tob: New file.
4054         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
4055         defined.
4056         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
4057         c32tob.
4058         * modules/uchar-c++-tests (Files): Add tests/signature.h.
4059         * doc/posix-functions/wctob.texi: Mention the new module.
4061 2020-01-01  Bruno Haible  <bruno@clisp.org>
4063         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
4064         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
4065         $(LIB_SETLOCALE).
4067 2020-01-01  Bruno Haible  <bruno@clisp.org>
4069         hard-locale tests: Fix a conflict with the C++ tests.
4070         * modules/hard-locale-tests (Makefile.am): Build a program named
4071         'current-locale', not 'locale'.
4073 2020-01-01  Bruno Haible  <bruno@clisp.org>
4075         doc: Update documentation about wchar_t.
4076         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
4077         wchar_t type.
4079 2020-01-01  Bruno Haible  <bruno@clisp.org>
4081         mbrtowc tests: Fix typos.
4082         * tests/test-mbrtowc.c (main): Fix typo.
4083         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
4085 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4087         maint: update copyright notices
4088         Before doing the following changes done by hand, I also ran ‘make
4089         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
4090         to do most of the copyright years automatically.  A few upstream
4091         sources are still in 2019 but these should eventually be changed
4092         automatically too.
4093         * build-aux/declared.sh (func_version):
4094         * build-aux/libtool-next-version (func_version):
4095         * build-aux/run-test (func_version):
4096         Update these notices by hand.  Put just the last year
4097         in output of programs, as per GNU coding standards.
4099 2019-12-31  Bruno Haible  <bruno@clisp.org>
4101         uchar: Add C++ tests.
4102         * tests/test-uchar-c++.cc: New file.
4103         * tests/test-uchar-c++2.cc: New file.
4104         * modules/uchar-c++-tests: New file.
4106         uchar: Add tests.
4107         * tests/test-uchar.c: New file.
4108         * modules/uchar-tests: New file.
4110         uchar: New module.
4111         * lib/uchar.in.h: New file.
4112         * m4/uchar.m4: New file.
4113         * modules/uchar: New file.
4114         * doc/posix-headers/uchar.texi: Mention the new module.
4116 2019-12-30  Jim Meyering  <meyering@fb.com>
4118         localeinfo: ->simple would be wrong for LC_ALL=C
4119         That would lead to using unnecessary and expensive code paths in dfa.c.
4120         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
4121         error that would have made grep many times slower in the C locale.
4122         With this change, and a file created like this:
4123           yes 00 | head -10000000 > in
4124         Running grep as follows becomes more than 40 times faster:
4125           LC_ALL=C grep -Fw 0 in
4127 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4129         doc: document trouble with back-references
4130         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
4132 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4134         doc: use “back-reference” for \1 etc.
4135         * doc/regex.texi: Consistently spell “back-reference” with
4136         a hyphen, since that’s how POSIX does it.
4138 2019-12-26  Jim Meyering  <meyering@fb.com>
4140         test-framework-sh: tighten an internal grep regexp
4141         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
4142         that helps test for a working printf.
4144 2019-12-26  Bruno Haible  <bruno@clisp.org>
4146         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
4147         Reported by Paul Eggert in
4148         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
4149         Simplification by Jim Meyering.
4150         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
4151         octal escape sequence in a UTF-8 locale.
4153 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
4155         mbrtowc: port better to narrow-wchar_t platforms
4156         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
4157         wchar_t is too narrow to represent all the Unicode characters,
4158         consider a byte sequence for an out-of-wchar_t-range character to
4159         be an encoding error.  This fixes grep’s surrogate-pair test
4160         failure on AIX 7.2.
4162 2019-12-24  Bruno Haible  <bruno@clisp.org>
4164         localcharset: Avoid referencing rpl_setlocale on native Windows.
4165         * lib/localcharset.c (setlocale): Undefine.
4167 2019-12-24  Bruno Haible  <bruno@clisp.org>
4169         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
4170         * m4/semaphore.m4: New file.
4171         * modules/lock-tests (Files): Add it.
4172         (configure.ac): Require gl_SEMAPHORE.
4173         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
4175 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
4177         strptime: fix typo in previous patch
4178         Problem and fix reported by Bruno Haible in:
4179         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
4180         * lib/strptime.c (day_of_the_week): Fix paren bug.
4182 2019-12-24  Bruno Haible  <bruno@clisp.org>
4184         setlocale-null: Make it easy to rely on the lock in another library.
4185         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
4186         defined.
4188 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4190         gethrxtime, mktime, nstrftime, strptime: tweak division performance
4191         Performanced analyzed by Bruno Haible in:
4192         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
4193         * config/srclist.txt: Do not sync mktime.c for now.
4194         * lib/mktime.c (shr, ydhms_diff):
4195         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
4196         * lib/strptime.c (day_of_the_week):
4197         * lib/xtime.h (xtime_sec):
4198         Redo with neither ‘%’ nor conditional branches.
4200 2019-12-23  Bruno Haible  <bruno@clisp.org>
4202         setlocale-null: Export the lock function also on non-Windows platforms.
4203         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
4204         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
4205         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
4206         * modules/setlocale-null (configure.ac): Invoke it.
4207         (Files): Add m4/visibility.m4.
4209 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4211         gethrxtime: fix rounding bug with negative args
4212         Problem reported by Bruno Haible in:
4213         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
4214         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
4215         with negative rounding.  Common platforms can compute / and % with
4216         a single instruction, so the simplified code should be shorter and
4217         faster on these platforms anyway.
4219 2019-12-22  Bruno Haible  <bruno@clisp.org>
4221         gethrxtime: remove incorrect overflow detection
4222         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
4223         integer overflow, as it didn’t suffice.  This reverts the xtime.h
4224         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
4225         cannot now see the need for anyway (even in cases where it works),
4226         as the patch is helpful only when the signs of S and NS disagree,
4227         and all callers pass nonnegative values for S and NS.
4229 2019-12-22  Bruno Haible  <bruno@clisp.org>
4231         setlocale-null: Add standalone include file.
4232         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
4233         * lib/locale.in.h: Include setlocale_null.h.
4234         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
4235         setlocale_null): Remove declarations.
4236         * lib/setlocale_null.c: Include setlocale_null.h.
4237         * lib/localename.c: Likewise.
4238         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
4239         (Depends-on): Add snippet/arg-nonnull.
4240         (Include): Allow either "setlocale_null.h" or <locale.h>.
4242 2019-12-22  Bruno Haible  <bruno@clisp.org>
4244         strfmon_l: Fix test failures on FreeBSD and Cygwin.
4245         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
4246         AC_RUN_IFELSE test.
4247         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
4248         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
4249         problem.
4251 2019-12-22  Bruno Haible  <bruno@clisp.org>
4253         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
4254         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
4255         unconditional AC_LIBOBJ.
4256         * modules/selinux-at: Likewise.
4257         * modules/xmemdup0: Likewise.
4258         * modules/xstrtoll: Likewise.
4260 2019-12-22  Bruno Haible  <bruno@clisp.org>
4262         longlong: Mark module obsolete.
4263         * modules/longlong (Status, Notice): New sections.
4265         stdint: Assume that the compiler supports 'long long'.
4266         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
4267         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
4268         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
4269         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
4270         AC_TYPE_UNSIGNED_LONG_LONG_INT.
4271         * modules/stdint (Files): Remove longlong.m4.
4272         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
4273         HAVE_UNSIGNED_LONG_LONG_INT.
4275         inttypes-incomplete: Assume that the compiler supports 'long long'.
4276         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
4277         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
4278         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
4279         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
4280         HAVE_LONG_LONG_INT to be 1.
4281         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4282         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
4284         malloca: Assume that the compiler supports 'long long'.
4285         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
4286         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
4287         * modules/malloca (Files): Remove longlong.m4.
4288         * modules/relocatable-prog-wrapper (Files): Likewise.
4290         atoll: Assume that the compiler supports 'long long'.
4291         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
4292         * modules/atoll (Files): Remove longlong.m4.
4294         strtoll: Assume that the compiler supports 'long long'.
4295         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
4296         * modules/strtoll (Files): Remove longlong.m4.
4298         strtoull: Assume that the compiler supports 'long long'.
4299         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
4300         AC_TYPE_UNSIGNED_LONG_LONG_INT.
4301         * modules/strtoull (Files): Remove longlong.m4.
4303         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
4304         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
4305         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
4306         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
4307         AC_TYPE_LONG_LONG_INT.
4308         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
4309         AC_TYPE_UNSIGNED_LONG_LONG_INT.
4310         * modules/strtoimax (Files): Remove longlong.m4.
4311         * modules/strtoumax (Files): Likewise.
4313         xstrtoll: Assume that the compiler supports 'long long'.
4314         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
4315         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
4317         vasnprintf: Assume that the compiler supports 'long long'.
4318         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
4319         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
4320         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4321         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
4322         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
4323         require AC_TYPE_LONG_LONG_INT.
4324         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
4325         gl_PREREQ_VASNPRINTF): Likewise.
4326         * modules/vasnprintf (Files): Remove longlong.m4.
4327         * modules/c-vasnprintf (Files): Likewise.
4328         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4329         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4330         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4331         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4332         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4333         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4334         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4336         gethrxtime: Assume that the compiler supports 'long long'.
4337         * lib/xtime.h (xtime_t): Define to 'long long int' always.
4338         (XTIME_PRECISION): Define to 1000000000 always.
4339         (xtime_make, xtime_sec): Optimize accordingly.
4340         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
4341         * modules/gethrxtime (Files): Remove longlong.m4.
4343         integer_length*: Assume that the compiler supports 'long long'.
4344         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
4345         * modules/integer_length (Files): Remove longlong.m4.
4346         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
4347         * modules/integer_length_l (Files): Remove longlong.m4.
4348         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
4349         * modules/integer_length_ll (Files): Remove longlong.m4.
4350         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
4352         count-one-bits: Assume that the compiler supports 'long long'.
4353         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
4354         * m4/count-one-bits.m4: Remove file.
4355         * modules/count-one-bits (Files): Remove it.
4356         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
4357         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
4358         unconditionally.
4360         count-trailing-zeros: Assume that the compiler supports 'long long'.
4361         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
4362         unconditionally.
4363         * m4/count-trailing-zeros.m4: Remove file.
4364         * modules/count-trailing-zeros (Files): Remove it.
4365         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
4366         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
4367         unconditionally.
4369         count-leading-zeros: Assume that the compiler supports 'long long'.
4370         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
4371         unconditionally.
4372         * m4/count-leading-zeros.m4: Remove file.
4373         * modules/count-leading-zeros (Files): Remove it.
4374         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
4375         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
4376         unconditionally.
4378 2019-12-22  Bruno Haible  <bruno@clisp.org>
4380         localcharset: Update support for OpenBSD.
4381         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
4383 2019-12-21  Bruno Haible  <bruno@clisp.org>
4385         pthread_sigmask: Avoid test failure on NetBSD 8.0.
4386         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
4387         NetBSD.
4388         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
4390 2019-12-21  Bruno Haible  <bruno@clisp.org>
4392         threadlib: Improve code structure.
4393         * m4/threadlib.m4: Reorder macros. Add comments.
4395 2019-12-21  Bruno Haible  <bruno@clisp.org>
4397         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
4398         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
4399         here from m4/threads.m4).
4400         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
4401         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
4402         (gl_STDTHREADLIB): New macro.
4403         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
4404         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
4406 2019-12-21  Bruno Haible  <bruno@clisp.org>
4408         sched_yield: Don't depend on threadlib and yield.
4409         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
4410         LIB_SCHED_YIELD.
4411         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
4412         m4/yield.m4).
4413         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
4414         gl_THREADLIB and gl_YIELD.
4415         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
4416         based on $(LIB_SCHED_YIELD).
4417         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
4418         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
4419         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
4420         (Depends-on): Remove threadlib.
4421         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
4422         * modules/threads-h (Files): Remove m4/yield.m4.
4423         * modules/pthread-cond-tests (Makefile.am): Link the programs against
4424         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
4425         * modules/pthread-mutex-tests (Makefile.am): Likewise.
4426         * modules/pthread-once-tests (Makefile.am): Likewise.
4427         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
4428         * modules/pthread-tss-tests (Makefile.am): Likewise.
4430 2019-12-21  Bruno Haible  <bruno@clisp.org>
4432         threads-h: Don't depend on threadlib.
4433         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
4434         not gl_THREADLIB_EARLY.
4436 2019-12-21  Bruno Haible  <bruno@clisp.org>
4438         nl_langinfo tests: Fix link error (regression from 2019-12-18).
4439         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
4440         with $(LIB_SETLOCALE).
4442 2019-12-21  Bruno Haible  <bruno@clisp.org>
4444         threadlib: Remove unused dependency (left over from 2019-07-06).
4445         * modules/threadlib (Depends-on): Remove havelib.
4447 2019-12-21  Bruno Haible  <bruno@clisp.org>
4449         New convention for multithread-safety tests.
4450         * tests/test-setlocale_null-mt-one.c: Renamed from
4451         tests/test-setlocale_null-one.c.
4452         * tests/test-setlocale_null-mt-all.c: Renamed from
4453         tests/test-setlocale_null-all.c.
4454         * modules/setlocale-null-tests (Files, Makefile.am): Update.
4456 2019-12-21  Bruno Haible  <bruno@clisp.org>
4458         quotearg tests: Fix conflict with hard-locale tests.
4459         * tests/testlocale: Renamed from tests/locale.
4460         * modules/quotearg-tests (Files): Update.
4461         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
4463 2019-12-21  Bruno Haible  <bruno@clisp.org>
4465         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
4466         Reported by Daniel Richard G. in
4467         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
4468         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
4469         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
4470         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
4471         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
4472         alternative to PTHREAD_RWLOCK_INITIALIZER.
4473         * lib/glthread/lock.c: Likewise.
4475 2019-12-21  Bruno Haible  <bruno@clisp.org>
4477         memcmp tests: Work around the clang bug.
4478         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
4479         the clang optimization.
4481 2019-12-20  Bruno Haible  <bruno@clisp.org>
4483         localcharset: Add support for z/OS encoding names.
4484         * lib/localcharset.h: Mention which encodings are used as locale
4485         encodings on z/OS.
4487 2019-12-20  Bruno Haible  <bruno@clisp.org>
4489         iconv_open: Add support for z/OS encoding names.
4490         Reported by Daniel Richard G. in
4491         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
4492         * lib/iconv_open-zos.gperf: New file.
4493         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
4494         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
4495         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
4496         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
4497         * doc/posix-functions/iconv_open.texi: Mention z/OS.
4499 2019-12-20  Bruno Haible  <bruno@clisp.org>
4501         doc: Document the problem of the per-thread locale functions on z/OS.
4502         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
4503         * doc/posix-functions/newlocale.texi: Likewise.
4504         * doc/posix-functions/duplocale.texi: Likewise.
4505         * doc/posix-functions/freelocale.texi: Likewise.
4507 2019-12-20  Bruno Haible  <bruno@clisp.org>
4509         localename, gettext: Fix host_os value for z/OS.
4510         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
4511         cross-configuration code.
4513 2019-12-19  Jim Meyering  <meyering@fb.com>
4515         nstrftime: avoid a shadowing warning
4516         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
4517         to avoid shadowing an "i" declared hundreds of lines above.
4519 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4521         dfa: struct dfamust now uses flexible array
4522         * lib/dfa.c: Include flexmember.h.
4523         (dfamust, dfamustfree): Adjust to struct dfamust change.
4524         This saves a call to malloc+free.
4525         * lib/dfa.h (struct dfamust): Make the final member a
4526         flexible array member.
4527         * modules/dfa (Depends-on): Add flexmember.
4529         dfa: fast->small for array elements
4530         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
4531         since this type is used in arrays.  This change is more for
4532         documentation than for any practical effect, since the two types
4533         are the same on all known platforms.
4535 2019-12-19  Bruno Haible  <bruno@clisp.org>
4537         iconv tests: Test canonicalized, not system-dependent, encoding names.
4538         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
4539         * modules/iconv-tests (Depends-on): Add iconv_open.
4541 2019-12-18  Bruno Haible  <bruno@clisp.org>
4543         localename: Fix test failure on AIX 7.2.
4544         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
4545         locales on AIX.
4546         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
4547         locales on AIX.
4549 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4551         Improve port of AC_C_RESTRICT to Oracle C++
4552         Problem reported by Christian Biesinger in:
4553         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
4554         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
4555         Oracle Developer Studio C++ 12.5 or later.
4557 2019-12-18  Bruno Haible  <bruno@clisp.org>
4559         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
4560         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
4562 2019-12-18  Bruno Haible  <bruno@clisp.org>
4564         localename: Ensure multithread-safety in future changes.
4565         * lib/localename.c (setlocale): Reference the system's setlocale().
4566         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
4567         (gl_locale_name_posix): Likewise.
4568         * modules/localename (Depends-on): Add setlocale-null.
4570 2019-12-18  Bruno Haible  <bruno@clisp.org>
4572         setlocale-null: Make API more useful.
4573         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
4574         callers changed.
4575         (setlocale_null): New declaration.
4576         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
4577         extracted from setlocale_null_unlocked.
4578         (setlocale_null_unlocked): Invoke it.
4579         (setlocale_null_r): Renamed from setlocale_null.
4580         (setlocale_null): New function, extracted from setlocale_mtsafe in
4581         setlocale.c.
4582         * lib/setlocale.c: Don't include <errno.h>.
4583         (setlocale_mtsafe): Invoke setlocale_null.
4584         * lib/setlocale-lock.c: Update comments.
4585         * doc/posix-functions/setlocale.texi: Mention both functions.
4587 2019-12-18  Bruno Haible  <bruno@clisp.org>
4589         localename: Optimize code for native Windows.
4590         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
4591         category (not allowed here).
4593 2019-12-18  Bruno Haible  <bruno@clisp.org>
4595         setlocale: Make calls with NULL argument multithread-safe.
4596         * lib/setlocale.c: Include <errno.h>.
4597         (setlocale_mtsafe): New function.
4598         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
4599         (setlocale_improved): Renamed from rpl_setlocale.
4600         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
4601         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
4602         LIB_SETLOCALE.
4603         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
4604         (Link): New section.
4605         * tests/locale.c: Undefine setlocale.
4606         * tests/test-setlocale_null-one.c: Likewise.
4607         * tests/test-setlocale_null-all.c: Likewise.
4608         * modules/setlocale-tests (Makefile.am): Link the test programs with
4609         $(LIB_SETLOCALE).
4610         * modules/astrxfrm-tests (Makefile.am): Likewise.
4611         * modules/btowc-tests (Makefile.am): Likewise.
4612         * modules/c-ctype-tests (Makefile.am): Likewise.
4613         * modules/c-snprintf-tests (Makefile.am): Likewise.
4614         * modules/c-strcase-tests (Makefile.am): Likewise.
4615         * modules/c-vasprintf-tests (Makefile.am): Likewise.
4616         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
4617         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
4618         * modules/dfa-tests (Makefile.am): Likewise.
4619         * modules/duplocale-tests (Makefile.am): Likewise.
4620         * modules/hard-locale-tests (Makefile.am): Likewise.
4621         * modules/localcharset-tests (Makefile.am): Likewise.
4622         * modules/localename-tests (Makefile.am): Likewise.
4623         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
4624         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
4625         * modules/mbrtowc-tests (Makefile.am): Likewise.
4626         * modules/mbscasecmp-tests (Makefile.am): Likewise.
4627         * modules/mbscasestr-tests (Makefile.am): Likewise.
4628         * modules/mbschr-tests (Makefile.am): Likewise.
4629         * modules/mbscspn-tests (Makefile.am): Likewise.
4630         * modules/mbsinit-tests (Makefile.am): Likewise.
4631         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4632         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
4633         * modules/mbspbrk-tests (Makefile.am): Likewise.
4634         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4635         * modules/mbsrchr-tests (Makefile.am): Likewise.
4636         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
4637         * modules/mbsspn-tests (Makefile.am): Likewise.
4638         * modules/mbsstr-tests (Makefile.am): Likewise.
4639         * modules/nl_langinfo-tests (Makefile.am): Likewise.
4640         * modules/quotearg-tests (Makefile.am): Likewise.
4641         * modules/regex-tests (Makefile.am): Likewise.
4642         * modules/strfmon_l-tests (Makefile.am): Likewise.
4643         * modules/strtod-tests (Makefile.am): Likewise.
4644         * modules/strtold-tests (Makefile.am): Likewise.
4645         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
4646         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
4647         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
4648         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
4649         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4650         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4651         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4652         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4653         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
4654         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4655         * modules/wcrtomb-tests (Makefile.am): Likewise.
4656         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
4657         * modules/wcsrtombs-tests (Makefile.am): Likewise.
4658         * modules/wcwidth-tests (Makefile.am): Likewise.
4659         * doc/posix-functions/setlocale.texi: Mention that the multithread-
4660         safety fix is also available in module 'setlocale'.
4662 2019-12-18  Bruno Haible  <bruno@clisp.org>
4664         hard-locale: Make multithread-safe.
4665         * lib/hard-locale.h (hard_locale): Move documentation to here.
4666         * lib/hard-locale.c: Don't include <stdlib.h>.
4667         (GLIBC_VERSION): Remove macro.
4668         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
4669         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
4670         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
4671         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
4672         (Link): New section.
4673         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
4674         $(LIB_HARD_LOCALE).
4676 2019-12-18  Bruno Haible  <bruno@clisp.org>
4678         hard-locale: Avoid test failure on Haiku.
4679         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
4681 2019-12-18  Bruno Haible  <bruno@clisp.org>
4683         setlocale-null: Handle NULL result from setlocale.
4684         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
4685         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
4686         from setlocale or _wsetlocale.
4688 2019-12-18  Bruno Haible  <bruno@clisp.org>
4690         hard-locale: Add test.
4691         * tests/test-hard-locale.c: New file.
4692         * tests/locale.c: New file.
4693         * modules/hard-locale-tests: New file.
4695 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4697         dfa: do not match invalid UTF-8
4698         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
4699         from 5 to 9 tokens; this is needed due to the changes to
4700         add_utf8_anychar.
4701         (charclass_index): 2nd arg is now pointer-to-const.
4702         (add_utf8_anychar): Match only valid UTF-8 byte sequences
4703         instead of allowing overlong encodings or surrogate halves.
4705         dfa: simplify charclass by assuming C99
4706         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
4707         (charclass_word): Now always uint_fast64_t.
4708         (CHARCLASS_PAIR): Remove.
4709         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
4711         fts: tune via calloc
4712         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
4714         dfa: tune via xzalloc
4715         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
4717 2019-12-17  Bruno Haible  <bruno@clisp.org>
4719         localcharset: Fix multithread-safety bug on Windows and OS/2.
4720         * lib/localcharset.h (locale_charset): Clarify when the result becomes
4721         invalid.
4722         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
4723         assemble the result.
4725 2019-12-17  Bruno Haible  <bruno@clisp.org>
4727         localcharset: Optimize code for native Windows.
4728         * lib/localcharset.c (locale_charset): Don't bother calling
4729         setlocale (LC_ALL, NULL) since we're not interested in its result.
4731 2019-12-17  Bruno Haible  <bruno@clisp.org>
4733         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
4734         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
4735         setlocale.
4736         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
4737         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
4738         * modules/nl_langinfo (Depends-on): Add setlocale-null.
4740 2019-12-17  Bruno Haible  <bruno@clisp.org>
4742         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
4743         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
4744         stack-allocated buffer to assemble each result and different static
4745         buffers to return it.
4746         * tests/test-nl_langinfo-mt.c: New file.
4747         * modules/nl_langinfo-tests (Files): Add it.
4748         (Depends-on): Add thread, nanosleep.
4749         (Makefile.am): Build test-nl_langinfo-mt test.
4751 2019-12-17  Bruno Haible  <bruno@clisp.org>
4753         langinfo: Document more details.
4754         * doc/posix-headers/langinfo.texi: List platform details.
4755         * doc/posix-functions/nl_langinfo.texi: Likewise.
4757 2019-12-17  Bruno Haible  <bruno@clisp.org>
4759         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
4760         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
4761         and Martin Storsjö <martin@martin.st>
4762         in <https://savannah.gnu.org/bugs/?57406>.
4763         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
4764         mingw.
4766 2019-12-17  Bruno Haible  <bruno@clisp.org>
4768         glob: Avoid warning on mingw.
4769         Reported by Christian Biesinger <cbiesinger@google.com> in
4770         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
4771         * lib/glob.c (__stat64): Undefine first.
4773 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4775         xalloc: tune xzalloc for fresh allocations
4776         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
4777         because when the memory is freshly allocated from the OS via sbrk
4778         or mmap, calloc can avoid doing the memset.
4780         dfa: new function dfacopysyntax
4781         * lib/dfa.c (struct dfa): Move syntax member later so
4782         that dfacopysyntax can easily clear earlier members.
4783         (dfacopysyntax): New function, used by Gawk.
4785 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4787         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
4788         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
4789         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
4790         if not already defined.
4792         dfa: remove one dependency on MB_CUR_MAX
4793         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
4795         dfa: remove struct lexer_state.cur_mb_len
4796         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
4797         as it’s not needed and the code is simpler without it.
4798         All uses removed.
4800 2019-12-16  Bruno Haible  <bruno@clisp.org>
4802         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
4803         Reported by Arnold Robbins <arnold@skeeve.com>.
4804         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
4805         copied from lib/glthread/lock.h.
4806         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
4807         (setlocale_null_with_lock): If pthread_in_use() is false, use
4808         setlocale_null_unlocked directly.
4809         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
4810         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
4811         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
4812         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
4813         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
4814         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
4816 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4818         dfa: make dfasyntax thread-safe
4819         Problem reported by Bruno Haible in:
4820         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
4821         * lib/dfa.c: Do not include locale.h.
4822         (struct dfa): Remove simple_locale member.
4823         All uses replaced by localeinfo.simple.
4824         (using_simple_locale): Remove; now present (with some
4825         changes) in localeinfo.c.
4826         (dfasyntax): No need to initialize removed member.
4828         localeinfo: record whether locale is simple
4829         * lib/localeinfo.c (using_simple_locale): New function,
4830         copied here from lib/dfa.c but with a change: it uses
4831         strcoll for its heuristic, instead of using setlocale.
4832         This lets it be thread-safe.
4833         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
4835 2019-12-15  Bruno Haible  <bruno@clisp.org>
4837         duplocale: Fix multithread-safety bug on AIX.
4838         * lib/duplocale.c: Don't include <stdlib.h>.
4839         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
4840         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
4841         Set LIB_DUPLOCALE.
4842         * modules/duplocale (Depends-on): Add setlocale-null.
4843         (Link): New section.
4844         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
4845         $(LIB_DUPLOCALE).
4847 2019-12-15  Bruno Haible  <bruno@clisp.org>
4849         setlocale-null: Add tests.
4850         * tests/test-setlocale_null.c: New file.
4851         * tests/test-setlocale_null-one.c: New file.
4852         * tests/test-setlocale_null-all.c: New file.
4853         * modules/setlocale-null-tests: New file.
4855         setlocale-null: New module.
4856         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
4857         setlocale_null): New declarations.
4858         * lib/setlocale_null.c: New file.
4859         * lib/setlocale-lock.c: New file.
4860         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
4861         * m4/setlocale_null.m4: New file.
4862         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
4863         GNULIB_SETLOCALE_NULL.
4864         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
4865         * modules/setlocale-null: New file.
4866         * doc/posix-functions/setlocale.texi: Mention the new module.
4868 2019-12-15  Bruno Haible  <bruno@clisp.org>
4870         lock tests: Skip test when no multithreading is enabled.
4871         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
4873 2019-12-14  Bruno Haible  <bruno@clisp.org>
4875         locale, duplocale, localename: Fix last patch.
4876         Reported by Daniel Richard G. in
4877         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
4878         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
4879         Don't define if locale_t does not exist.
4881 2019-12-13  Bruno Haible  <bruno@clisp.org>
4883         locale, duplocale, localename: Fix errors if locale_t does not exist.
4884         Reported by Daniel Richard G. in
4885         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
4886         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
4887         macros.
4888         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
4889         HAVE_NEWLOCALE.
4890         * tests/test-localename.c: Likewise.
4891         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
4892         HAVE_DUPLOCALE.
4893         * tests/test-locale-c++.cc: Likewise.
4895 2019-12-13  Bruno Haible  <bruno@clisp.org>
4897         wcstok: Fix test failure on HP-UX.
4898         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
4899         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
4901 2019-12-12  Bruno Haible  <bruno@clisp.org>
4903         strtod, strtold tests: Avoid test failure on AIX 7.2.
4904         * tests/test-strtod1.c (main): Allow implementations in which ',' and
4905         '.' both are radix characters.
4906         * tests/test-strtold1.c (main): Likewise.
4908 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4910         dfa: prefer ptrdiff_t for API, too
4911         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
4912         but do this only for internal use for now.
4913         * NEWS: Mention the API change.
4914         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
4915         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
4916         values known to be nonnegative.
4917         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
4918         Prefer idx_t or ptrdiff_t to size_t for API.
4919         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
4920         Prefer ptrdiff_t to size_t for API.
4922         stdalign: port to xlclang 16.01
4923         Problem reportd by Bruno Haible in:
4924         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
4925         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
4926         ((__aligned__ (...))) with xlclang, as a top-level
4927         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
4928         xlclang version 16.01.0000.0001; the alignment directive is ignored.
4930 2019-12-12  Bruno Haible  <bruno@clisp.org>
4932         duplocale: Fix test failure on AIX 7.2 with xlclang.
4933         * lib/duplocale.c: Include <stdlib.h>.
4934         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
4935         value.
4937 2019-12-12  Bruno Haible  <bruno@clisp.org>
4939         stddef: Document the AIX xlc issue.
4940         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
4942 2019-12-12  Bruno Haible  <bruno@clisp.org>
4944         duplocale: Don't attempt to override if locale_t does not exist.
4945         Reported by Daniel Richard G. in
4946         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
4947         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
4948         HAVE_DUPLOCALE to 0.
4950 2019-12-12  Bruno Haible  <bruno@clisp.org>
4952         wcwidth: Avoid test failure on AIX 7.2.
4953         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
4954         negative.
4955         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
4957 2019-12-12  Bruno Haible  <bruno@clisp.org>
4959         ilogbl: Work around Cygwin bug.
4960         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
4961         correct.
4962         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
4964 2019-12-12  Bruno Haible  <bruno@clisp.org>
4966         strtold: Work around Cygwin bug.
4967         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
4968         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
4969         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
4970         STRTOLD_HAS_UNDERFLOW_BUG is defined.
4971         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
4973 2019-12-12  Bruno Haible  <bruno@clisp.org>
4975         strtold: Fix autoconf test.
4976         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
4978 2019-12-11  Bruno Haible  <bruno@clisp.org>
4980         fsync tests: Skip test that is known to fail.
4981         * doc/posix-functions/fsync.texi: Update list of platforms.
4982         * tests/test-fsync.c (main): Skip test with read-only file descriptors
4983         that is known to fail on AIX and Cygwin.
4985 2019-12-11  Bruno Haible  <bruno@clisp.org>
4987         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
4988         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
4989         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
4990         HAVE_GETADDRINFO as a C macro.
4991         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
4992         declare as replacement functions.
4993         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
4994         define as no-op overrides.
4995         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
4996         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
4997         * modules/getaddrinfo (Depends-on, configure.ac): Test
4998         REPLACE_GETADDRINFO.
4999         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
5000         problem.
5001         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
5002         convention problems.
5004 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
5006         dfa: prefer signed integers for internals
5007         Signed integers can be checked more easily for integer overflow.
5008         * lib/dfa.c (position, struct lexer_state, struct parser_state)
5009         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
5010         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
5011         (nsubtoks, copytoks, closure, alloc_position_set, delete)
5012         (replace, state_index, epsclosure, charclass_context)
5013         (state_separate_contexts, merge_nfa_state, dfaoptimize)
5014         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
5015         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
5016         (comsubs, inboth, allocmust):
5017         Prefer a signed to an unsigned integer when calculating indexes,
5018         unless the integer is part of the external API (a bigger deal,
5019         and to be done later).
5021         dfa: fix index overflow
5022         * lib/dfa.c (compare): Avoid integer overflow when analyzing
5023         very large regular expressions.
5025         dfa: update commentary for previous change
5026         * NEWS: Mention the change.
5027         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
5029 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5031         dfa: separate parse and compile phase
5032         ‘dfamust’ must be called after parsing and before tokens are
5033         reordered, but both are executed in the compilation phase.
5034         Token reordering was introduced in Gnulib commit
5035         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
5036         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
5037         * lib/dfa.c (dfaparse): Change it to global function.
5038         (dfacomp): If first argument is NULL, skip parse.
5039         * lib/dfa.h: (dfaparse): Add a prototype.
5041 2019-12-11  Bruno Haible  <bruno@clisp.org>
5043         unistd tests: Fix link error on MSVC.
5044         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
5045         $(LIB_GETLOGIN).
5047 2019-12-11  Bruno Haible  <bruno@clisp.org>
5049         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
5050         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
5051         and POSIX substitutes are supported in C++ mode.
5052         * NEWS: Likewise.
5054 2019-12-11  Bruno Haible  <bruno@clisp.org>
5056         stddef: Fix compilation error in C++ mode on MSVC.
5057         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
5058         instead, include <cstddef>.
5060 2019-12-11  Bruno Haible  <bruno@clisp.org>
5062         unistd: Fix compilation error in C++ mode on MSVC.
5063         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
5064         does not have <unistd.h>.
5066 2019-12-11  Bruno Haible  <bruno@clisp.org>
5068         locale: Fix compilation error in C++ mode on MSVC.
5069         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
5070         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
5071         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
5072         int_n_sep_by_space): Define as macros on MSVC.
5074 2019-12-11  Bruno Haible  <bruno@clisp.org>
5076         wchar: Fix compilation error in C++ mode on MSVC.
5077         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
5079 2019-12-11  Bruno Haible  <bruno@clisp.org>
5081         pthread-thread: Fix compilation error in C++ mode on MSVC.
5082         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
5083         _GL_CXXALIAS_RPL invocation.
5085 2019-12-08  Bruno Haible  <bruno@clisp.org>
5087         Fix compilation errors in C++ mode on Haiku.
5088         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
5089         non-glibc systems.
5090         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
5091         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5092         posix_spawnattr_setschedparam): Likewise.
5093         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
5094         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5095         * lib/unistd.in.h (usleep): Likewise.
5097 2019-12-08  Bruno Haible  <bruno@clisp.org>
5099         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
5100         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
5101         * modules/fseeko (configure.ac-early): Require it instead of
5102         AC_FUNC_FSEEKO.
5103         * modules/ftello (configure.ac-early): Likewise.
5104         * modules/fflush (configure.ac-early): Likewise.
5106 2019-12-08  Bruno Haible  <bruno@clisp.org>
5108         Fix compilation error in C++ mode on HP-UX 11.
5109         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
5110         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
5112 2019-12-08  Bruno Haible  <bruno@clisp.org>
5114         Fix compilation errors on HP-UX 11/ia64.
5115         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
5116         _GL_FUNCDECL_SYS.
5118 2019-12-08  Bruno Haible  <bruno@clisp.org>
5120         Fix compilation error in C++ mode on OpenBSD.
5121         * lib/signal.in.h (signal): Declare on OpenBSD.
5123 2019-12-08  Bruno Haible  <bruno@clisp.org>
5125         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
5126         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
5127         instead of #error.
5129 2019-12-08  Bruno Haible  <bruno@clisp.org>
5131         Fix compilation errors in C++ mode on FreeBSD.
5132         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
5133         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
5134         * lib/threads.in.h (thrd_exit): Likewise.
5135         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
5137 2019-12-08  Bruno Haible  <bruno@clisp.org>
5139         Fix compilation errors in C++ mode on macOS and FreeBSD.
5140         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
5141         or FreeBSD with clang, use the approach without C preprocessor macro.
5143 2019-12-07  Bruno Haible  <bruno@clisp.org>
5145         Fix compilation errors in C++ mode on AIX with xlclang++.
5146         Reported by Christian Biesinger <cbiesinger@google.com> in
5147         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
5148         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
5150 2019-12-07  Bruno Haible  <bruno@clisp.org>
5152         Document compilation error in C++ mode on NetBSD 8.0.
5153         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
5155 2019-12-07  Bruno Haible  <bruno@clisp.org>
5157         Fix compilation errors in C++ mode on Solaris 10.
5158         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
5159         to non-empty on Solaris with a non-GCC compiler.
5160         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
5162 2019-12-07  Bruno Haible  <bruno@clisp.org>
5164         Reword NEWS entry.
5165         * NEWS: Reword the latest NEWS entry.
5167 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
5169         Move xstrtol_fatal to a new xstrtol-error module.
5170         * lib/xstrtol.h: Stop including <getopt.h>.
5171         (xstrtol_fatal): Move ...
5172         * lib/xstrtol-error.h: ... here.  New file.
5173         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
5174         * tests/test-xstrtol.c: Likewise.
5175         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
5176         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
5177         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
5178         * modules/xstrtol-error: New file.
5179         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
5180         * MODULES.html.sh: Add xstrtol-error.
5181         * NEWS: Document the change.
5183 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
5185         nstrftime: better width support for %N, %z
5186         * lib/nstrftime.c (width_add, width_add1, width_cpy):
5187         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
5188         a new WIDTH parameter.
5189         (add, add1, cpy): Use these macros.
5190         (width_add): Do not treat digits == 0 as a special case,
5191         do not pad if padding is ‘-’, and do not use a negative width.
5192         (__strftime_internal): Redo formatting of nanoseconds and numeric
5193         timezones to avoid buffer misuse in unusual cases, and so that
5194         widths make more sense.  Add support for widths greater than 9 to
5195         the %N format; they are zero filled on the right.
5196         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
5198 2019-12-05  Bruno Haible  <bruno@clisp.org>
5200         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
5201         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
5202         set REPLACE_ISFINITE to 1.
5203         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
5204         REPLACE_ISINF to 1.
5205         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
5206         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
5207         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5208         * lib/threads.in.h (call_once): Likewise.
5209         * lib/iconv.in.h (iconv): Likewise.
5211 2019-12-05  Bruno Haible  <bruno@clisp.org>
5213         wchar: Add more C++ tests.
5214         Reported by Christian Biesinger <cbiesinger@google.com> in
5215         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
5216         * tests/test-wchar-c++3.cc: New file.
5217         * modules/wchar-c++-tests (Files): Add it.
5218         (Makefile.am): Compile it.
5220 2019-12-05  Bruno Haible  <bruno@clisp.org>
5222         Add more C++ tests.
5224         assert-h: Add C++ tests.
5225         * tests/test-assert-h-c++.cc: New file.
5226         * tests/test-assert-h-c++2.cc: New file.
5227         * modules/assert-h-c++-tests: New file.
5228         * modules/assert-h-tests: New file.
5230         ctype: Add C++ tests.
5231         * tests/test-ctype-c++.cc: New file.
5232         * tests/test-ctype-c++2.cc: New file.
5233         * modules/ctype-c++-tests: New file.
5234         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
5236         errno: Add C++ tests.
5237         * tests/test-errno-c++.cc: New file.
5238         * tests/test-errno-c++2.cc: New file.
5239         * modules/errno-c++-tests: New file.
5240         * modules/errno-tests (Depends-on): Add errno-c++-tests.
5242         float: Add C++ tests.
5243         * tests/test-float-c++.cc: New file.
5244         * tests/test-float-c++2.cc: New file.
5245         * modules/float-c++-tests: New file.
5246         * modules/float-tests (Depends-on): Add float-c++-tests.
5248         inttypes: Add more C++ tests.
5249         * tests/test-inttypes-c++2.cc: New file.
5250         * modules/inttypes-c++-tests (Files): Add it.
5251         (Makefile.am): Compile it.
5253         limits-h: Add C++ tests.
5254         * tests/test-limits-h-c++.cc: New file.
5255         * tests/test-limits-h-c++2.cc: New file.
5256         * modules/limits-h-c++-tests: New file.
5257         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
5259         stdarg: Add C++ tests.
5260         * tests/test-stdarg-c++.cc: New file.
5261         * tests/test-stdarg-c++2.cc: New file.
5262         * modules/stdarg-c++-tests: New file.
5263         * modules/stdarg-tests: New file.
5265         stdbool: Add C++ tests.
5266         * tests/test-stdbool-c++.cc: New file.
5267         * tests/test-stdbool-c++2.cc: New file.
5268         * modules/stdbool-c++-tests: New file.
5269         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
5271         stddef: Add C++ tests.
5272         * tests/test-stddef-c++.cc: New file.
5273         * tests/test-stddef-c++2.cc: New file.
5274         * modules/stddef-c++-tests: New file.
5275         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
5277         stdint: Add C++ tests.
5278         * tests/test-stdint-c++.cc: New file.
5279         * tests/test-stdint-c++2.cc: New file.
5280         * modules/stdint-c++-tests: New file.
5281         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
5283         wchar: Add more C++ tests.
5284         * tests/test-wchar-c++2.cc: New file.
5285         * modules/wchar-c++-tests (Files): Add it.
5286         (Makefile.am): Compile it.
5288         wctype-h: Add more C++ tests.
5289         * tests/test-wctype-h-c++2.cc: New file.
5290         * modules/wctype-h-c++-tests (Files): Add it.
5291         (Makefile.am): Compile it.
5293 2019-12-04  Bruno Haible  <bruno@clisp.org>
5295         Fix compilation errors in C++ mode with xlclang++ on AIX.
5296         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
5297         C++ mode on AIX.
5298         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
5299         without C preprocessor macro.
5300         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
5301         _GL_CXXALIAS_SYS.
5302         * lib/threads.in.h (thrd_exit): Likewise.
5304 2019-12-04  Bruno Haible  <bruno@clisp.org>
5306         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
5307         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
5308         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
5310 2019-12-04  Bruno Haible  <bruno@clisp.org>
5312         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
5313         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
5314         _GL_CXXALIASWARN invocation on non-glibc systems.
5315         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
5316         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
5317         iswctype, towlower, towupper): Likewise.
5319 2019-12-03  Bruno Haible  <bruno@clisp.org>
5321         Avoid hassles caused by [[noreturn]] in C++.
5322         Reported by Christian Biesinger <cbiesinger@google.com> in
5323         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
5324         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
5325         * lib/_Noreturn.h: Likewise.
5327 2019-12-02  Bruno Haible  <bruno@clisp.org>
5329         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
5330         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
5331         LIBMULTITHREAD.
5332         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
5333         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
5334         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
5335         gl_THREADLIB.
5336         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
5338 2019-12-02  Bruno Haible  <bruno@clisp.org>
5340         Fix some more link errors with --enable-threads=isoc.
5341         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
5342         * modules/pthread-rwlock (Depends-on): Likewise.
5344 2019-12-02  Bruno Haible  <bruno@clisp.org>
5346         Fix link errors with --enable-threads=posix on AIX.
5347         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
5348         program with $(LIBTHREAD).
5349         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
5350         program with $(LIBTHREAD).
5352 2019-12-02  Bruno Haible  <bruno@clisp.org>
5354         Fix link errors with --enable-threads=posix on AIX.
5355         * modules/mbrtowc (Link): New section.
5356         * modules/acl (Link): Likewise.
5357         * modules/argmatch (Link): Likewise.
5358         * modules/backup-rename (Link): Likewise.
5359         * modules/backupfile (Link): Likewise.
5360         * modules/closein (Link): Likewise.
5361         * modules/closeout (Link): Likewise.
5362         * modules/copy-file (Link): Likewise.
5363         * modules/csharpcomp (Link): Likewise.
5364         * modules/csharpexec (Link): Likewise.
5365         * modules/dfa (Link): Likewise.
5366         * modules/exclude (Link): Likewise.
5367         * modules/fnmatch (Link): Likewise.
5368         * modules/fnmatch-gnu (Link): Likewise.
5369         * modules/fnmatch-posix (Link): Likewise.
5370         * modules/glob (Link): Likewise.
5371         * modules/human (Link): Likewise.
5372         * modules/javacomp (Link): Likewise.
5373         * modules/javaexec (Link): Likewise.
5374         * modules/javaversion (Link): Likewise.
5375         * modules/mbfile (Link): Likewise.
5376         * modules/mbiter (Link): Likewise.
5377         * modules/mbmemcasecmp (Link): Likewise.
5378         * modules/mbmemcasecoll (Link): Likewise.
5379         * modules/mbrlen (Link): Likewise.
5380         * modules/mbscasecmp (Link): Likewise.
5381         * modules/mbscasestr (Link): Likewise.
5382         * modules/mbschr (Link): Likewise.
5383         * modules/mbscspn (Link): Likewise.
5384         * modules/mbsinit (Link): Likewise.
5385         * modules/mbslen (Link): Likewise.
5386         * modules/mbsncasecmp (Link): Likewise.
5387         * modules/mbsnlen (Link): Likewise.
5388         * modules/mbsnrtowcs (Link): Likewise.
5389         * modules/mbspbrk (Link): Likewise.
5390         * modules/mbspcasecmp (Link): Likewise.
5391         * modules/mbsrchr (Link): Likewise.
5392         * modules/mbsrtowcs (Link): Likewise.
5393         * modules/mbssep (Link): Likewise.
5394         * modules/mbsspn (Link): Likewise.
5395         * modules/mbsstr (Link): Likewise.
5396         * modules/mbstok_r (Link): Likewise.
5397         * modules/mbswidth (Link): Likewise.
5398         * modules/mbuiter (Link): Likewise.
5399         * modules/mkdir-p (Link): Likewise.
5400         * modules/propername (Link): Likewise.
5401         * modules/quote (Link): Likewise.
5402         * modules/quotearg (Link): Likewise.
5403         * modules/quotearg-simple (Link): Likewise.
5404         * modules/regex-quote (Link): Likewise.
5405         * modules/rpmatch (Link): Likewise.
5406         * modules/sh-quote (Link): Likewise.
5407         * modules/system-quote (Link): Likewise.
5408         * modules/trim (Link): Likewise.
5409         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5410         * modules/unistdio/ulc-fprintf (Link): Likewise.
5411         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5412         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5413         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5414         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5415         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5416         * modules/xfreopen (Link): Likewise.
5417         * modules/xmemcoll (Link): Likewise.
5418         * modules/yesno (Link): Likewise.
5419         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
5420         * modules/argmatch-tests (Makefile.am): Likewise.
5421         * modules/closein-tests (Makefile.am): Likewise.
5422         * modules/copy-file-tests (Makefile.am): Likewise.
5423         * modules/dfa-tests (Makefile.am): Likewise.
5424         * modules/fnmatch-tests (Makefile.am): Likewise.
5425         * modules/glob-tests (Makefile.am): Likewise.
5426         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5427         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5428         * modules/mbrtowc-tests (Makefile.am): Likewise.
5429         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5430         * modules/mbscasestr-tests (Makefile.am): Likewise.
5431         * modules/mbschr-tests (Makefile.am): Likewise.
5432         * modules/mbscspn-tests (Makefile.am): Likewise.
5433         * modules/mbsinit-tests (Makefile.am): Likewise.
5434         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5435         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5436         * modules/mbspbrk-tests (Makefile.am): Likewise.
5437         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5438         * modules/mbsrchr-tests (Makefile.am): Likewise.
5439         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5440         * modules/mbsspn-tests (Makefile.am): Likewise.
5441         * modules/mbsstr-tests (Makefile.am): Likewise.
5442         * modules/quotearg-tests (Makefile.am): Likewise.
5443         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5444         * modules/readtokens-tests (Makefile.am): Likewise.
5445         * modules/regex-quote-tests (Makefile.am): Likewise.
5446         * modules/sh-quote-tests (Makefile.am): Likewise.
5447         * modules/system-quote-tests (Makefile.am): Likewise.
5448         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5449         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5450         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5451         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5452         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5453         * modules/yesno-tests (Makefile.am): Likewise.
5455 2019-12-02  Bruno Haible  <bruno@clisp.org>
5457         Simplify link sections.
5458         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
5459         * modules/lock (Link): Likewise.
5460         * modules/cond (Link): Likewise.
5461         * modules/tls (Link): Likewise.
5462         * modules/yield (Link): Likewise.
5463         * modules/regex (Link): Likewise.
5464         * modules/localename (Link): Likewise.
5465         * modules/unicase/locale-language (Link): Likewise.
5466         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
5468 2019-12-02  Bruno Haible  <bruno@clisp.org>
5470         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
5471         * tests/test-thread_self.c (main): Disable test on AIX.
5473 2019-12-01  Bruno Haible  <bruno@clisp.org>
5475         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
5476         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
5477         gl_THREADLIB_EARLY_BODY.
5478         (gl_THREADLIB_EARLY_BODY): Invoke it.
5479         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
5480         (gl_THREADLIB_BODY): Invoke it.
5481         (gl_PTHREADLIB): New macro.
5482         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
5483         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
5484         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
5485         * modules/pthread-h (Files): Add threadlib.m4.
5486         (Depends-on): Remove threadlib.
5487         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
5488         and _THREAD_SAFE here.
5489         (Link): Use LIBPTHREAD, not LIBTHREAD.
5490         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
5491         LIBMULTITHREAD.
5492         * modules/pthread-once (Link): Likewise.
5493         * modules/pthread-mutex (Link): Likewise.
5494         * modules/pthread-rwlock (Link): Likewise.
5495         * modules/pthread-cond (Link): Likewise.
5496         * modules/pthread-tss (Link): Likewise.
5497         * modules/pthread-spin (Link): Likewise.
5498         * modules/pthread (Link): Likewise.
5499         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
5500         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
5501         * modules/pthread-once-tests (test_pthread_once1_LDADD,
5502         test_pthread_once2_LDADD): Likewise.
5503         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
5504         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
5505         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
5506         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
5508 2019-12-01  Bruno Haible  <bruno@clisp.org>
5510         cond: State linking requirements.
5511         * modules/cond (Link): New section.
5513 2019-12-01  Bruno Haible  <bruno@clisp.org>
5515         threadlib: Remove unnecessary file (left over from 2019-07-06).
5516         * modules/threadlib (Files): Remove config.rpath.
5518 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
5520         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
5521         Reported by Dagobert Michelsen <dam@opencsw.org> in
5522         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
5523         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
5524         list of strings instead of one string.
5525         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
5526         * pygnulib/GLImport.py (execute): Likewise.
5528 2019-11-27  Bruno Haible  <bruno@clisp.org>
5530         openpty, forkpty: Fix build error on Solaris 11.4.
5531         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
5532         also in <termios.h>.
5533         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
5534         of the function also in <termios.h>.
5535         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
5536         * doc/glibc-functions/forkpty.texi: Likewise.
5538 2019-11-27  Bruno Haible  <bruno@clisp.org>
5540         New options --enable-threads=isoc and --enable-threads=isoc+posix.
5541         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
5542         --enable-threads=isoc and --enable-threads=isoc+posix.
5543         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
5544         When both the ISO C and the POSIX threads API are available, choose
5545         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
5546         --enable-threads=isoc+posix was specified. When only the ISO C threads
5547         API is available and --enable-threads=iso was specified, choose
5548         USE_ISOC_THREADS.
5549         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
5550         USE_ISOC_AND_POSIX_THREADS.
5551         * lib/glthread/lock.c: Likewise.
5552         * lib/glthread/cond.h: Likewise.
5553         * lib/glthread/cond.c: Likewise.
5554         * lib/glthread/tls.h: Likewise.
5555         * lib/glthread/tls.c: Likewise.
5556         * lib/glthread/yield.h: Likewise.
5557         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
5558         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
5559         * lib/glthread/thread.c: Likewise.
5560         * lib/glthread/threadlib.c: Likewise.
5561         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
5562         USE_ISOC_AND_POSIX_THREADS.
5563         * tests/test-cond.c: Consider USE_ISOC_THREADS and
5564         USE_ISOC_AND_POSIX_THREADS.
5565         * tests/test-tls.c: Likewise.
5566         * tests/test-thread_create.c (main): Likewise.
5567         * tests/test-pthread-cond.c: Likewise.
5568         * tests/test-pthread-mutex.c: Likewise.
5569         * tests/test-pthread-once2.c: Likewise.
5570         * tests/test-pthread-rwlock.c: Likewise.
5571         * tests/test-pthread-tss.c: Likewise.
5572         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
5573         USE_POSIX_THREADS.
5575 2019-11-24  Bruno Haible  <bruno@clisp.org>
5577         mbrtowc: Modernize autoconf test.
5578         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
5579         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
5580         try a UTF-8 locale.
5581         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
5583 2019-11-24  Bruno Haible  <bruno@clisp.org>
5585         Fix errors in C++ mode on mingw.
5586         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
5587         instead of _GL_CXXALIAS_SYS.
5588         * lib/signal.in.h (pthread_sigmask): Likewise.
5589         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
5590         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5591         Likewise.
5592         * lib/wchar.in.h (btowc): Likewise.
5594 2019-11-24  Bruno Haible  <bruno@clisp.org>
5596         sys_time: Fix errors in C++ mode on mingw.
5597         * lib/sys_time.in.h (timeval): Restore the redirection
5598         '#define timeval rpl_timeval', for when the symbol timeval is being used
5599         outside the 'gnulib' namespace.
5600         * lib/sys_select.in.h (select): In C++, write 'timeval', not
5601         'struct timeval'.
5603 2019-11-24  Bruno Haible  <bruno@clisp.org>
5605         iswctype: Fix errors in C++ mode on mingw.
5606         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
5607         is 1.
5608         * lib/iswctype.c (iswctype): Add another implementation, for the
5609         GNULIB_defined_wint_t case.
5610         * modules/iswctype (configure.ac): Compile iswctype.c also if
5611         GNULIB_OVERRIDES_WINT_T is 1.
5613 2019-11-24  Bruno Haible  <bruno@clisp.org>
5615         windows-timedmutex: Fix errors in C++ mode on mingw.
5616         * lib/windows-timedmutex.h: Add closing brace.
5618 2019-11-24  Bruno Haible  <bruno@clisp.org>
5620         Fix errors in C++ mode on Cygwin.
5621         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
5622         _GL_CXXALIAS_SYS.
5624 2019-11-24  Bruno Haible  <bruno@clisp.org>
5626         time_r: Fix for mingw (regression from 2019-11-16).
5627         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
5628         AC_LINK_IFELSE test only if the function does not appear to exist.
5630 2019-11-24  Bruno Haible  <bruno@clisp.org>
5632         wcstok: Add tests.
5633         * tests/test-wcstok.c: New file.
5634         * modules/wcstok-tests: New file.
5636 2019-11-24  Bruno Haible  <bruno@clisp.org>
5638         wcstok: Work around wrong signature on native Windows.
5639         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
5640         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
5641         REPLACE_WCSTOK.
5642         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
5643         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
5644         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
5645         * doc/posix-functions/wcstok.texi: Mention the problem.
5647 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
5649         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
5650         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
5651         remove workaround for GCC bug 91450 as the bug should be fixed
5652         there too.
5654 2019-11-21  Bruno Haible  <bruno@clisp.org>
5656         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
5657         Reported by Christian Biesinger <cbiesinger@google.com> in
5658         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
5659         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
5660         non-glibc systems.
5661         * lib/locale.in.h (localeconv, setlocale): Likewise.
5662         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
5663         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
5664         rint, round, trunc): Likewise.
5665         * lib/monetary.in.h (strfmon_l): Likewise.
5666         * lib/pthread.in.h (pthread_mutexattr_getrobust,
5667         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
5668         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
5669         pthread_spin_destroy): Likewise.
5670         * lib/signal.in.h (raise, signal): Likewise.
5671         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
5672         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
5673         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
5674         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
5675         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
5676         Likewise.
5677         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
5678         Likewise.
5679         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
5680         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
5681         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
5682         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
5683         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
5684         wcsftime): Likewise.
5685         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
5687 2019-11-21  Bruno Haible  <bruno@clisp.org>
5689         Fix various errors in _GL_CXXALIAS_SYS invocations.
5690         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
5691         _GL_CXXALIAS_SYS.
5692         * lib/pthread.in.h (pthread_mutexattr_gettype,
5693         pthread_mutexattr_getrobust): Likewise.
5694         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
5695         * lib/sys_socket.in.h (recv, send): Likewise.
5696         * lib/unistd.in.h (getdtablesize): Likewise.
5697         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
5698         'struct timeval'.
5700 2019-11-21  Bruno Haible  <bruno@clisp.org>
5702         math tests: Update after 2019-08-28 change.
5703         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
5704         return type of 'bool', not 'int'.
5706 2019-11-21  Bruno Haible  <bruno@clisp.org>
5708         pthread-spin: Fix errors in C++ mode.
5709         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
5710         functions as nonexistent when <pthread.h> exists but does not define
5711         the pthread_spinlock_t type.
5713 2019-11-21  Bruno Haible  <bruno@clisp.org>
5715         pthread-mutex: Fix errors in C++ mode.
5716         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
5717         pthread_mutexattr_getrobust exists. If not, define
5718         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
5719         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
5720         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
5721         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
5722         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
5723         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
5724         definition.
5726 2019-11-19  Bruno Haible  <bruno@clisp.org>
5728         threads-h tests: Fix typo.
5729         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
5731 2019-11-19  Bruno Haible  <bruno@clisp.org>
5733         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
5734         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
5735         to 'const pthread_attr_t *'.
5736         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
5737         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
5739 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5741         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
5742         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
5743         work around GCC bug 91450 as the bug should be fixed there.
5745 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5747         glob: get closer to glibc glob.c
5748         Omit differences from glibc when the differences don’t matter.
5749         * lib/glob.c [_LIBC]: Include shlib-compat.h.
5750         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
5751         (glob_lstat): New function.
5752         (glob_in_dir): Use it.
5753         (GLOB_ATTRIBUTE): Define to empty if not already defined.
5754         Use changed.
5756 2019-11-18  Bruno Haible  <bruno@clisp.org>
5758         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
5759         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
5760         UINTPTR_MAX): Consider _WIN64.
5761         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
5762         a pointer.
5764 2019-11-18  Bruno Haible  <bruno@clisp.org>
5766         stdint: Fix value of WINT_MAX when we override wint_t.
5767         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
5768         when GNULIB_OVERRIDES_WINT_T is 1.
5770 2019-11-18  Bruno Haible  <bruno@clisp.org>
5772         vcs-to-changelog: New module.
5773         * modules/vcs-to-changelog: New file.
5774         * MODULES.html.sh (func_all_modules): Add it.
5776 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5778         vcs-to-changelog: New script to generate ChangeLog-like output.
5779         Discussion:
5780         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
5781         * build-aux/vcs_to_changelog.py: New file.
5782         * build-aux/vcstocl/frontend_c.py: New file.
5783         * build-aux/vcstocl/misc_util.py: New file.
5784         * build-aux/vcstocl/vcs_git.py: New file.
5786 2019-11-18  Bruno Haible  <bruno@clisp.org>
5788         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
5789         Reported by Keith Marshall <keith@users.osdn.me> in
5790         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
5791         and <https://osdn.net/projects/mingw/ticket/39677>.
5792         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
5793         already been defined by mingw's <crtdefs.h>.
5795 2019-11-18  Bruno Haible  <bruno@clisp.org>
5797         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
5798         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
5799         conditionally enabled.
5801 2019-11-18  Bruno Haible  <bruno@clisp.org>
5803         gc: Mirror libgcrypt.m4 from libgcrypt.
5804         * config/srclistvars.sh (LIBGCRYPT): New variable.
5805         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
5807 2019-11-17  Bruno Haible  <bruno@clisp.org>
5809         locale, localename: Improve z/OS support.
5810         Reported by Daniel Richard G. in
5811         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
5812         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
5813         gl_LOCALE_H.
5814         (gl_LOCALE_H): Require it.
5815         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
5816         defined, don't even check for newlocale, duplocale, freelocale.
5817         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
5818         locale_t is not defined.
5820 2019-11-17  Bruno Haible  <bruno@clisp.org>
5822         havelib: Make libdirstems processing more flexible.
5823         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
5824         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
5825         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
5826         patch from 2017-02-19).
5827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
5828         libdirs, even when the first one exists as a directory.
5830 2019-11-17  Bruno Haible  <bruno@clisp.org>
5832         havelib: Match the bitness when searching for libraries.
5833         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
5834         acl_is_expected_elfclass.
5835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
5836         file exists, in ELF, also test whether it has the ELF class that
5837         corresponds to the host's bitness.
5839 2019-11-17  Bruno Haible  <bruno@clisp.org>
5841         host-cpu-c-abi: Add support for unknown CPUs.
5842         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
5843         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
5844         32-bit or 64-bit.
5846 2019-11-17  Bruno Haible  <bruno@clisp.org>
5848         havelib: Remove redundant code.
5849         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
5850         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
5852 2019-11-17  Bruno Haible  <bruno@clisp.org>
5854         havelib: Fix a bug in dependency processing.
5855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
5856         of .la files, don't overwrite the value of additional_libdir for the
5857         next rounds.
5859 2019-11-16  Bruno Haible  <bruno@clisp.org>
5861         wctype-h: When overriding wint_t, override also the related functions.
5862         Reported by Christian Biesinger <cbiesinger@google.com> in
5863         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
5864         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
5865         REPLACE_ISWCNTRL to 1.
5866         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
5867         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
5868         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
5869         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
5870         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
5871         on mingw.
5872         * doc/posix-headers/wctype.texi: Likewise.
5874 2019-11-16  Bruno Haible  <bruno@clisp.org>
5876         time_r: Fix for mingw.
5877         Reported by Christian Biesinger <cbiesinger@google.com> in
5878         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
5879         * lib/time.in.h: On mingw, include <unistd.h>.
5880         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
5881         <time.h>. Test for localtime_r in a way that works when it is defined
5882         as an inline function.
5884 2019-11-13  Bruno Haible  <bruno@clisp.org>
5886         havelib: Revert last change.
5887         * build-aux/config.rpath: Revert last change. We can add msys2 support
5888         when it has been added to libtool.m4 upstream.
5890 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5892         config: add msys support
5893         Requested by Arnold Robbins in:
5894         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
5895         He also requested a change to config.guess, which I’ll forward
5896         upstream.
5897         * build-aux/ar-lib (func_file_conv):
5898         * build-aux/compile (func_file_conv):
5899         * build-aux/config.rpath (wl, with_gnu_ld)
5900         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
5901         Treat msys like cygwin.
5903 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5905         regex: now back in sync with glibc
5906         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
5907         regexec.c got merged into glibc and are now copies again.
5909 2019-10-27  Bruno Haible  <bruno@clisp.org>
5911         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
5912         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
5913         statement.
5914         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
5915         32-bit CPUs.
5917 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5919         timespec-add, timespec-sub: simplify
5920         * lib/timespec-add.c (timespec_add):
5921         * lib/timespec-sub.c (timespec_sub):
5922         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
5923         work on unsigned integers.
5925 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5927         nstrftime: speed up integer overflow checking
5928         * lib/nstrftime.c: Include intprops.h.
5929         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
5930         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
5931         instead of doing it by hand.
5932         * modules/nstrftime (Depends-on): Add intprops.
5934         Port better to GCC under macOS
5935         Work around macOS header that has ‘#define __has_builtin(x) 0’
5936         when compiled by GCC.  Apple really, really doesn’t want you to
5937         use GCC, apparently.  Rroblem reported by Akim Demaille in:
5938         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
5939         The fix is to not trust __has_builtin when being compiled by
5940         recent-enough GCC.
5941         * lib/intprops.h (__has_builtin)
5942         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
5943         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
5944         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
5945         Remove.  All uses removed.
5946         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
5947         directly, if defined and if not newer GCC.
5948         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
5949         New macro, that use __has_builtin directly, if defined and if
5950         not newer GCC.
5951         (assume): Use them.
5953 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
5955         maintainer-makefile: update rule for argmatch.
5956         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
5958 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
5960         bitset: let freeing functions accept NULL.
5961         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
5962         given NULL.
5963         * lib/bitset.h: Document that.
5964         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
5966 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
5968         inttypes: use more-robust test for int range
5969         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
5970         Problem reported by Dagobert Michelsen in:
5971         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
5972         * lib/inttypes.in.h: Rely only on limits.h when checking
5973         int range.
5975 2019-10-15  Bruno Haible  <bruno@clisp.org>
5977         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
5978         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
5979         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
5980         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
5981         term_ostream_set_hyperlink): New functions.
5982         (term_styled_ostream_get_hyperlink_ref,
5983         term_styled_ostream_get_hyperlink_id,
5984         term_styled_ostream_set_hyperlink): New function aliases.
5986 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
5988         update-copyright: use en dashes in .texi ranges
5989         * build-aux/update-copyright: Match year ranges like "1998--2019",
5990         which are used in the Autoconf manual.  Also, update ranges in
5991         .tex, .texi, and .texinfo files to use en dashes instead of
5992         hyphens.
5994 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5996         * config/srclist.txt: Remove posix/regex_internal.c for now.
5998 2019-10-13  Bruno Haible  <bruno@clisp.org>
6000         git-version-gen: Allow 'snapshot' as .tarball-version contents.
6001         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
6002         contents to the empty string.
6004 2019-10-12  Bruno Haible  <bruno@clisp.org>
6006         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
6007         * tests/test-intprops.c (main): Disable two more tests when using
6008         HP-UX cc.
6010 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6012         Simplify and regularize regex use of ‘assert’
6013         Also, tell GCC about the asserts even when compiling without
6014         debugging, to give it further optimization opportunities.
6015         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
6016         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
6017         (parse_expression, parse_bracket_exp):
6018         * lib/regex_internal.c (build_wcs_buffer)
6019         (build_wcs_upper_buffer, re_string_reconstruct)
6020         (re_string_context_at):
6021         * lib/regexec.c (re_search_stub, re_copy_regs)
6022         (re_search_internal, prune_impossible_nodes, check_matching)
6023         (check_halt_state_context, set_regs, sift_states_backward)
6024         (build_sifted_states, transit_state_mb, transit_state_bkref)
6025         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6026         (match_ctx_add_subtop):
6027         Use it instead of plain ‘assert’.
6029 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
6031         regex: omit debug assignment when not debugging
6032         * lib/regexec.c (re_search_internal) [!DEBUG]:
6033         Remove unnecessary assignment.
6035         regex: tell compiler there’s at most 256 arcs out
6036         Partly this is to help the reader (and maybe help GCC);
6037         partly this is to pacify Coverity.
6038         * lib/regex_internal.h: Include verify.h.
6039         * lib/regexec.c (group_nodes_into_DFAstates):
6040         Tell the compiler that ndests cannot exceed SBC_MAX.
6041         * modules/regex (Depends-on): Add ‘verify’.
6043         regex: simplify by assuming C99
6044         * config/srclist.txt: Comment out regex_internal.h and regexec.c
6045         temporarily.
6046         * lib/regex_internal.h (lock_define, re_match_context_t):
6047         Simplify by assuming C99 macros and const.
6048         * lib/regexec.c (re_search_internal): Simplify by assuming C99
6049         initializers.  Remove unnecessary assignment, as mctx is now
6050         safely initialized earlier.
6052         regex: avoid copying of uninitialized storage
6053         * config/srclist.txt: Comment out regcomp.c temporarily.
6054         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
6055         Initialize even when not checking for lint, as the behavior is
6056         arguably undefined otherwise and Coverity warns about it.
6058 2019-10-06  Bruno Haible  <bruno@clisp.org>
6060         access tests: Fix test failure when run as root.
6061         * tests/test-access.c: Include root-uid.h.
6062         (geteuid): Define fallback.
6063         (main): Don't expect that writing to a read-only file would fail when
6064         running as root. Also, remove the created files at the end.
6065         * modules/access-tests (Depends-on): Add root-uid.
6066         (configure.ac): Test whether geteuid exists.
6068 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
6070         users.txt: add GNU nano
6071         Nano has been making use of gnulib since March 2017, version 2.8.0.
6073 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6075         bootstrap: simplify debugging of wget failures
6076         Problem reported by Tim Rühsen in:
6077         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
6078         * build-aux/bootstrap (po_download_command_format):
6079         Invoke wget with -nv instead of -q, to make debugging easier.
6081 2019-09-29  Bruno Haible  <bruno@clisp.org>
6083         avltree-list: Fix compilation warning (introduced on 2014-09-16).
6084         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
6085         'const' attribute.
6087 2019-09-29  Bruno Haible  <bruno@clisp.org>
6089         fbufmode: Fix compilation error on glibc >= 2.28 systems.
6090         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
6092 2019-09-28  Bruno Haible  <bruno@clisp.org>
6094         Update comments that refer to POSIX.
6095         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
6096         sentence about trailing slashes.
6097         * lib/fflush.c: Clarify the reasoning.
6098         * tests/test-fflush2.c: Cite the relevant sentence.
6100 2019-09-28  Bruno Haible  <bruno@clisp.org>
6102         access: Document limitations on Windows.
6103         Suggested by Zaretskii <eliz@gnu.org>.
6104         * doc/posix-functions/access.texi: Mention two limitations on Windows.
6106 2019-09-28  Bruno Haible  <bruno@clisp.org>
6108         findprog-in: Fix comment.
6109         Reported by Eli Zaretskii <eliz@gnu.org>.
6110         * lib/findprog.h (find_in_given_path): Extend description of EACCES
6111         condition.
6112         * lib/stat.c (rpl_stat): Fix typo in comment.
6113         * lib/utime.c (_gl_utimens_windows): Likewise.
6115 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6117         Update URLs and associated text
6118         (Thanks to Bruno Haible for proofreading this patch.)
6119         Prefer https: to http: in URLs where either will do, for the usual
6120         security reasons.  I also updated broken and/or moved URLs
6121         discovered during the process. In a few places I had to resort to
6122         archive.org, since I didn't find the originals elsewhere.
6124 2019-09-15  Paul Smith  <psmith@gnu.org>
6125             Bruno Haible  <bruno@clisp.org>
6127         findprog-in: Set errno when the search fails.
6128         * lib/findprog-in.c: Include <errno.h>.
6129         (find_in_given_path): Set errno before returning NULL.
6130         * lib/findprog.h (find_in_given_path): Update comment accordingly.
6131         Define the term "slash".
6133 2019-09-15  Bruno Haible  <bruno@clisp.org>
6135         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
6136         * modules/findprog (Depends-on): Add access.
6137         * modules/findprog-lgpl (Depends-on): Likewise.
6138         * modules/findprog-in (Depends-on): Likewise.
6140 2019-09-15  Bruno Haible  <bruno@clisp.org>
6142         access: Add tests.
6143         * tests/test-access.c: New file.
6144         * modules/access-tests: New file.
6146         access: New module.
6147         * lib/unistd.in.h (access): New declaration.
6148         * lib/access.c: New file.
6149         * m4/access.m4: New file.
6150         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
6151         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
6152         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
6153         REPLACE_ACCESS.
6154         * modules/access: New file.
6155         * tests/test-unistd-c++.cc (access): Check signature.
6156         * doc/posix-functions/access.texi: Mention the new module.
6158 2019-09-15  Bruno Haible  <bruno@clisp.org>
6160         fcntl-h: Fix compilation error of creat.c on MSVC.
6161         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
6162         defined.
6164 2019-09-15  Bruno Haible  <bruno@clisp.org>
6166         creat: Add tests.
6167         * tests/test-creat.c: New file, based on tests/test-open.h.
6168         * modules/creat-tests: New file.
6170         creat: New module.
6171         * lib/fcntl.in.h (creat): New declaration.
6172         * lib/creat.c: New file, based on lib/open.c.
6173         * m4/creat.m4: New file.
6174         * m4/open-slash.m4: New file, extracted from m4/open.m4.
6175         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
6176         Invoke gl_OPEN_TRAILING_SLASH_BUG.
6177         * modules/open (Files): Add m4/open-slash.m4.
6178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
6179         REPLACE_CREAT.
6180         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
6181         * modules/creat: New file.
6182         * tests/test-fcntl-h-c++.cc (creat): Check signature.
6183         * doc/posix-functions/creat.texi: Mention the new module.
6185 2019-09-15  Bruno Haible  <bruno@clisp.org>
6187         open tests: Enhance test.
6188         * tests/test-open.h (test_open): Test the creation of an executable
6189         regular file. Also improve initial cleanup.
6191 2019-09-15  Bruno Haible  <bruno@clisp.org>
6193         intprops tests: Avoid build failure with HP-UX cc.
6194         * tests/test-intprops.c: Disable a check that makes HP cc choke with
6195         "error 4018: Macro param too large after substitution - use -H option.".
6197 2019-09-14  Bruno Haible  <bruno@clisp.org>
6199         Make autoconf tests work with -Werror=implicit-function-declaration.
6200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
6201         towupper() declaration.
6202         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
6203         declaration.
6205 2019-09-14  Bruno Haible  <bruno@clisp.org>
6207         findprog-in: Better mimic the system on native Windows.
6208         Reported by Paul Smith <psmith@gnu.org>.
6209         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
6210         non-empty suffixes when the file name already contains a '.'.
6212 2019-09-10  Bruno Haible  <bruno@clisp.org>
6214         wctob: Fix autoconf test.
6215         Based on patch by Florian Weimer <fweimer@redhat.com>.
6216         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
6218 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
6220         xhash: provide hash_xinitialize.
6221         Suggested by Egor Pugin <egor.pugin@gmail.com>
6222         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
6223         * modules/xhash, lib/xhash.c: New.
6224         * lib/hash.h (hash_xinitialize): New.
6226 2019-09-09  Bruno Haible  <bruno@clisp.org>
6228         findprog-in: Make exec optimization optional.
6229         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
6230         (find_in_given_path): Add optimize_for_exec parameter.
6231         * lib/findprog-in.c (find_in_given_path): Likewise.
6233 2019-09-08  Bruno Haible  <bruno@clisp.org>
6235         Add option to assume the best, not the worst, when cross-compiling.
6236         Suggested by Jonas Termansen <sortie@maxsi.org>.
6237         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
6238         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
6239         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
6240         lt_cv_sys_argz_works.
6241         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
6242         ac_cv_func_calloc_0_nonnull.
6243         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
6244         --enable-cross-guesses for gl_cv_func_realpath_works.
6245         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
6246         gl_cv_func_cbrtl_ieee.
6247         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
6248         gl_cv_func_ceil_ieee.
6249         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
6250         gl_cv_func_ceilf_ieee.
6251         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
6252         gl_cv_func_ceill_ieee.
6253         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
6254         ac_cv_func_chown_works.
6255         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
6256         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
6257         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
6258         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
6259         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
6260         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
6261         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
6262         gl_cv_func_expl_works.
6263         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
6264         gl_cv_func_expm1_ieee.
6265         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
6266         gl_cv_func_expm1l_works.
6267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
6268         gl_cv_func_open_directory_works.
6269         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
6270         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
6271         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
6272         gl_cv_func_fchownat_empty_filename_works.
6273         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
6274         gl_cv_func_fdopendir_works.
6275         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
6276         gl_cv_func_floor_ieee.
6277         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
6278         gl_cv_func_floorf_ieee.
6279         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
6280         gl_cv_func_fma_works.
6281         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
6282         gl_cv_func_fmaf_works.
6283         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
6284         gl_cv_func_fmal_works.
6285         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
6286         gl_cv_func_fmod_ieee.
6287         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
6288         gl_cv_func_fmodf_ieee.
6289         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
6290         gl_cv_func_fmodl_ieee.
6291         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
6292         gl_cv_func_fpurge_works.
6293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
6294         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
6295         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
6296         gl_cv_func_getcwd_null.
6297         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
6298         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
6299         gl_cv_func_working_getdelim.
6300         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
6301         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
6302         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
6303         gl_cv_func_getgroups_works.
6304         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
6305         am_cv_func_working_getline.
6306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
6307         for gl_cv_func_getopt_gnu.
6308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
6309         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
6310         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
6311         gl_cv_func_hypot_ieee.
6312         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
6313         gl_cv_func_hypotf_ieee.
6314         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
6315         gl_cv_func_hypotl_ieee.
6316         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
6317         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
6318         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
6319         gl_cv_func_link_works.
6320         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
6321         gl_cv_func_linkat_slash.
6322         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
6323         gl_cv_func_log_ieee.
6324         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
6325         gl_cv_func_logf_ieee.
6326         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
6327         gl_cv_func_logl_works.
6328         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
6329         gl_cv_func_log10_ieee.
6330         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
6331         gl_cv_func_log10f_ieee.
6332         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
6333         gl_cv_func_log10l_works.
6334         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
6335         gl_cv_func_log1p_ieee.
6336         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
6337         gl_cv_func_log1pf_ieee.
6338         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
6339         gl_cv_func_log1pl_ieee.
6340         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
6341         gl_cv_func_log2_ieee.
6342         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
6343         gl_cv_func_log2f_ieee.
6344         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
6345         --enable-cross-guesses for
6346         gl_cv_func_lstat_dereferences_slashed_symlink.
6347         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
6348         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
6349         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
6350         gl_cv_C_locale_sans_EILSEQ.
6351         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
6352         gl_cv_func_memchr_works.
6353         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
6354         gl_cv_func_memmem_works_always.
6355         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
6356         gl_cv_func_memmem_works_fast.
6357         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
6358         gl_cv_func_mkdir_trailing_slash_works,
6359         gl_cv_func_mkdir_trailing_dot_works.
6360         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
6361         gl_cv_func_mkfifo_works.
6362         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
6363         gl_cv_func_mknod_works.
6364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
6365         gl_cv_func_working_mkstemp.
6366         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
6367         gl_cv_func_working_mktime.
6368         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
6369         gl_cv_func_modf_ieee.
6370         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
6371         gl_cv_func_modff_ieee.
6372         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
6373         gl_cv_func_modfl_ieee.
6374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
6375         gl_cv_func_nanosleep.
6376         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
6377         gl_cv_func_perror_works.
6378         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
6379         gl_cv_func_printf_sizes_c99.
6380         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
6381         gl_cv_func_printf_infinite.
6382         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
6383         gl_cv_func_printf_infinite_long_double.
6384         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
6385         gl_cv_func_printf_directive_a.
6386         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
6387         gl_cv_func_printf_directive_f.
6388         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
6389         gl_cv_func_printf_flag_zero.
6390         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
6391         gl_cv_func_printf_enomem.
6392         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
6393         gl_cv_func_snprintf_truncation_c99.
6394         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
6395         gl_cv_func_snprintf_retval_c99.
6396         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
6397         gl_cv_func_snprintf_directive_n.
6398         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
6399         gl_cv_func_vsnprintf_zerosize_c99.
6400         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
6401         gl_cv_func_pselect_detects_ebadf.
6402         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
6403         Obey --enable-cross-guesses for
6404         gl_cv_pthread_rwlock_rdlock_prefer_writer.
6405         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
6406         gl_cv_func_ptsname_sets_errno.
6407         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
6408         gl_cv_func_svid_putenv.
6409         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
6410         gl_cv_func_readlink_works.
6411         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
6412         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
6413         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
6414         gl_cv_func_re_compile_pattern_working.
6415         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
6416         gl_cv_func_remainder_ieee.
6417         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
6418         gl_cv_func_remainderf_ieee.
6419         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
6420         gl_cv_func_remainderl_ieee.
6421         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
6422         gl_cv_func_rintl_works.
6423         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
6424         gl_cv_func_rmdir_works.
6425         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
6426         gl_cv_func_round_ieee.
6427         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
6428         gl_cv_func_roundf_ieee.
6429         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
6430         gl_cv_func_roundl_ieee.
6431         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
6432         gl_cv_func_select_detects_ebadf.
6433         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
6434         gl_cv_func_setenv_works.
6435         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
6436         gl_cv_func_unsetenv_works.
6437         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
6438         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
6439         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
6440         gl_cv_func_sleep_works.
6441         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
6442         gl_cv_func_stat_file_slash.
6443         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
6444         gl_cv_func_stpncpy.
6445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
6446         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
6447         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
6448         gl_cv_func_strcasestr_linear.
6449         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
6450         gl_cv_func_working_strerror.
6451         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
6452         gl_cv_func_strerror_0_works.
6453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
6454         --enable-cross-guesses for gl_cv_func_strerror_r_works.
6455         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
6456         gl_cv_func_strstr_works_always.
6457         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
6458         gl_cv_func_strstr_linear.
6459         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
6460         gl_cv_func_strtod_works.
6461         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
6462         gl_cv_func_strtold_works.
6463         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
6464         gl_cv_func_symlink_works.
6465         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
6466         gl_cv_func_symlinkat_works.
6467         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
6468         gl_cv_func_trunc_ieee.
6469         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
6470         gl_cv_func_truncf_ieee.
6471         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
6472         gl_cv_func_truncl_ieee.
6473         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
6474         gl_cv_func_tzset_clobber.
6475         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
6476         gl_cv_func_ungetc_works.
6477         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
6478         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
6479         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
6480         gl_cv_func_usleep_works.
6481         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
6482         gl_cv_func_futimesat_works.
6483         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
6484         gl_cv_func_working_utimes.
6485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
6486         gl_cv_func_wcwidth_works.
6487         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
6488         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
6489         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
6490         links for testing. Obey --enable-cross-guesses for
6491         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
6492         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
6494 2019-09-08  Bruno Haible  <bruno@clisp.org>
6496         Clarify that cross-compilation guesses are guesses.
6497         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
6498         cross-compiling.
6500 2019-09-08  Bruno Haible  <bruno@clisp.org>
6502         chown: Fix configure output (regression from 2019-03-23).
6503         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
6504         gl_cv_func_chown_follows_symlink variable.
6506 2019-09-08  Bruno Haible  <bruno@clisp.org>
6508         findprog-in: New module.
6509         Suggested by Paul Smith <psmith@gnu.org>.
6510         * lib/findprog.h (find_in_given_path): New declaration.
6511         * lib/findprog-in.c: New file, based on lib/findprog.c.
6512         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
6513         * modules/findprog-in: New file.
6515 2019-09-08  Bruno Haible  <bruno@clisp.org>
6517         findprog: Remove unused dependency.
6518         * modules/findprog (Depends-on): Remove strdup.
6520 2019-09-08  Bruno Haible  <bruno@clisp.org>
6522         findprog: Remove test that is obsolete since 2006-04-24.
6523         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
6525 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
6527         bitset: style changes
6528         * lib/bitset/vector.c (vbitset_resize): Factor computation.
6529         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
6530         xzalloc to xcalloc.
6531         Suggested by Paul Eggert.
6533 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
6535         bitset: check memory allocation
6536         Reported by 江 祖铭 (Zu-Ming Jiang).
6537         With help from Paul Eggert.
6538         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
6539         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
6540         instead of realloc.
6541         When shrinking, accept failures.
6542         * lib/bitset/vector.c (vbitset_resize): Likewise.
6544 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
6546         scratch_buffer: sync from glibc
6547         * config/srclist.txt: Add the scratch_buffer source
6548         code from glibc, since these should be in sync.
6549         Autoupdate.
6551 2019-09-07  Bruno Haible  <bruno@clisp.org>
6553         doc: Update for glibc 2.30.
6554         * doc/glibc-functions/gettid.texi: New file.
6555         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
6556         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
6557         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
6558         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
6559         * doc/glibc-functions/sem_clockwait.texi: New file.
6560         * doc/glibc-functions/tgkill.texi: New file.
6561         * doc/glibc-functions/twalk_r.texi: New file.
6562         * doc/gnulib.texi: Include them.
6563         (Glibc semaphore.h): New section.
6564         * doc/pastposix-functions/h_errno.texi: Update.
6565         * doc/posix-functions/*.texi: Likewise.
6567 2019-09-06  Bruno Haible  <bruno@clisp.org>
6569         symlink tests: Avoid test failure on Linux with Lustre file system.
6570         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
6571         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
6572         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
6574 2019-09-01  Bruno Haible  <bruno@clisp.org>
6576         gitsub.sh: Add support for shallow-cloning of subdirectories.
6577         * top/gitsub.sh (func_usage): Document allowed git options with
6578         'git pull'.
6579         (func_pull): Accept GIT_OPTIONS argument.
6580         (pull): Parse git options before complaining about too many arguments.
6581         Pass the git options to func_pull.
6583 2019-08-29  Bruno Haible  <bruno@clisp.org>
6585         lock: Fix cross-compilation guesses.
6586         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
6587         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
6588         platforms.
6590 2019-08-28  Bruno Haible  <bruno@clisp.org>
6592         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
6593         Reported by Martin Storsjö <martin@martin.st> in
6594         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
6595         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
6596         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
6597         files from GCC 6 or newer, use an override through '#define', because
6598         the inline definitions in the platform's <cmath> cannot be overridden
6599         in another way.
6601 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
6603         Revert macOS INT_MULTIPLY_WRAPV patch
6604         Problem reported by Bruno Haible in:
6605         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
6606         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
6607         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
6608         Go back to working around the Clang bug on macOS.
6610 2019-08-27  Bruno Haible  <bruno@clisp.org>
6612         libtool-next-version: Fix error output.
6613         * build-aux/libtool-next-version (func_fatal_error): Fix the program
6614         name.
6616 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
6618         Speed up INT_MULTIPLY_WRAPV on macOS
6619         Assume that __builtin_mul_overflow works OK with Clang on macOS.
6620         Mattias Engdegård says it’s safe to assume the relevant library
6621         is always available there.
6622         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
6623         New temporary internal macro.
6624         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
6625         No need to work around the Clang bug on macOS.
6627 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6629         intprops.h, verify.h: port better to clang
6630         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
6631         with Clang.  Problem reported privately by Mattias Engdegård.
6632         Also, insulate intprops.h and verify.h better against each other’s
6633         definitions of __has_builtin on non-Clang hosts.
6634         * lib/intprops.h (__has_builtin): Define a temporary substitute
6635         if __has_builtin is not already defined.
6636         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
6637         New temporary internal macros.
6638         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
6639         Now two separate macros, replacing the old
6640         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
6641         __builtin_mul_overflow is like the rest.  All uses changed.
6642         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
6643         Adjust to above changes.
6644         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
6645         longer relevant.  All uses changed.
6646         * lib/verify.h (__has_builtin): Treat like intprops.h,
6647         so that the two .h files do not collide with each other.
6648         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
6649         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
6651 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6653         intprops: say why not Clang __builtin_add_overflow
6654         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
6655         Mention Clang in comment, responding to a query from
6656         Mattias Engdegård.
6658 2019-08-24  Bruno Haible  <bruno@clisp.org>
6660         doc: Document most of the files outside of modules.
6661         * doc/gnulib.texi (Build Infrastructure Files,
6662         Release Management Files): New chapters.
6664 2019-08-24  Bruno Haible  <bruno@clisp.org>
6666         bootstrap: Keep in sync with the 'gettext' module.
6667         Reported by Assaf Gordon in
6668         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
6669         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
6670         * build-aux/po/remove-potcdate.sin: Likewise.
6672 2019-08-24  Bruno Haible  <bruno@clisp.org>
6674         crypto/gc-sha512: Add tests.
6675         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
6676         * modules/crypto/gc-sha512-tests: New file.
6678         crypto/gc-sha256: Add tests.
6679         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
6680         * modules/crypto/gc-sha256-tests: New file.
6682         crypto/gc-sha256, crypto/gc-sha512: New modules.
6683         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
6684         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
6685         (MAX_DIGEST_SIZE): Set to 64.
6686         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
6687         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
6688         (gc_sha256, gc_sha512): New functions.
6689         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
6690         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
6691         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
6693 2019-08-24  Bruno Haible  <bruno@clisp.org>
6695         crypto/gc-sha1 tests: Improve output when the test fails.
6696         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
6697         output.
6699 2019-08-24  Bruno Haible  <bruno@clisp.org>
6701         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
6702         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
6703         LIBGCRYPT_HAS_MD_SM3.
6704         * lib/gc-libgcrypt.c: Include sm3.h.
6705         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
6706         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
6707         implementation if libgcrypt does not support SM3.
6709 2019-08-24  Bruno Haible  <bruno@clisp.org>
6711         crypto/gc-md2: Optimize and clarify code.
6712         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
6713         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
6714         is not needed.
6716 2019-08-24  Bruno Haible  <bruno@clisp.org>
6718         crypto/gc-md2: Add comment.
6719         * lib/gc-libgcrypt.c: Add comment.
6721 2019-08-24  Bruno Haible  <bruno@clisp.org>
6723         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
6724         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
6725         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
6726         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
6727         variable.
6729 2019-08-24  Bruno Haible  <bruno@clisp.org>
6731         crypto/gc: Fix link error with --with-libgcrypt.
6732         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
6733         AC_LIB_HAVE_LINKFLAGS invocation.
6735 2019-08-24  Bruno Haible  <bruno@clisp.org>
6737         crypto/gc: Access the module indicators correctly.
6738         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
6739         * lib/gc-libgcrypt.c: Likewise.
6741 2019-08-24  Bruno Haible  <bruno@clisp.org>
6743         crypto/gc: Fix configuration with --with-libgcrypt.
6744         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
6745         * modules/crypto/gc (Files): Add it.
6746         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
6748 2019-08-24  Bruno Haible  <bruno@clisp.org>
6750         Remove unused file.
6751         * m4/stat-macros.m4: Remove file.
6753 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
6755         New strip-trailing-space option for srclist-update
6756         * config/srclist-update (fixfile): Support new option.
6757         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
6758         Use it.
6760 2019-08-20  Eric Blake  <eblake@redhat.com>
6762         accept4: Support SOCK_NONBLOCK, if defined
6763         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
6765         accept4: Fix compilation when native accept4() exists.
6766         Reported by Richard W.M. Jones <rjones@redhat.com> in
6767         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
6768         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
6770 2019-08-18  Bruno Haible  <bruno@clisp.org>
6772         Defeat -flto GCC optimization in math autoconf tests.
6773         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
6774         at <https://savannah.gnu.org/bugs/?56109>.
6775         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
6776         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
6777         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6778         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6779         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6780         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
6781         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6782         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6783         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
6784         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6785         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6786         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6788 2019-08-17  Bruno Haible  <bruno@clisp.org>
6790         windows-spin: Implement declared functions.
6791         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6792         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
6793         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
6794         name.
6796 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6798         intprops: port to Oracle Developer Studio 12.6
6799         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
6800         typos that were in a section not compiled by GCC.
6802 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6804         intprops: support uchar, ushort _WRAPV dests
6805         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
6806         when __builtin_add_overflow etc. and _Generic are not used.
6807         (_GL_INT_OP_WRAPV): Use it to support destinations that
6808         are unsigned char or unsigned short, even in compilers
6809         that lack __typeof__ and are not C11-compatible.
6811         intprops: pacify picky GCC
6812         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
6813         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
6814         possibly-incorrect result.
6815         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
6816         about (A) used as a boolean, when A is an expression like 3 * 4.
6818         intprops: support unsigned *_WRAPV results
6819         Add support for unsigned, unsigned long, and unsigned long long
6820         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
6821         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
6822         bug with unsigned inputs reported by Eli Zaretskii in:
6823         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
6824         * config/srclist.txt: Break the glibc connection for intprops.h
6825         temporarily, while more testing is done in Gnulib-using apps.
6826         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
6827         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
6828         Support unsigned results no narrower than unsigned int.  Report
6829         overflow correctly if some arguments are unsigned.
6830         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
6831         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
6832         the right thing with narrow args.
6833         (_GL_INT_OP_CALC1): Remove.  All callers removed.
6834         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
6835         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
6836         * tests/test-intprops.c: Check for bugs and test new behavior.
6838 2019-08-14  Bruno Haible  <bruno@clisp.org>
6840         get_progname_of: New module.
6841         * lib/get_progname_of.h: New file.
6842         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
6843         * lib/getprogname.c (getprogname): Tweak coding style.
6844         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
6845         * modules/get_progname_of: New file.
6847 2019-08-14  Bruno Haible  <bruno@clisp.org>
6849         get_ppid_of: New module.
6850         * lib/get_ppid_of.h: New file.
6851         * lib/get_ppid_of.c: New file.
6852         * modules/get_ppid_of: New file.
6854 2019-08-13  Bruno Haible  <bruno@clisp.org>
6856         libtextstyle-optional tests: Support the NO_COLOR environment variable.
6857         * tests/test-libtextstyle.c (main): Do not emit styling when the
6858         environment variable NO_COLOR is set.
6860 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6862         verify: improve diagnostic quality in recent GCC
6863         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
6864         useful line number containing the top-level caller of the macro.
6865         So, bring back the older way of issuing a diagnostic containing
6866         the top-level call’s arg, so that it is easier to diagnose
6867         ‘verify’ failures with recent GCC.
6868         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
6869         Bring back DIAGNOSTIC arg.  All callers changed.
6870         (verify): Just use _GL_VERIFY.
6872 2019-08-11  Bruno Haible  <bruno@clisp.org>
6874         localcharset: Add more aliases for OS/2.
6875         Based on patch by KO Myung-Hun <komh78@gmail.com> in
6876         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
6877         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
6879 2019-08-10  Eric Blake  <eblake@redhat.com>
6881         configmake: Update advice on usage.
6882         * modules/configmake (Include): No longer necessary to include
6883         last, since configmake.h itself worries about collision avoidance.
6885 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
6887         parse-datetime: fix 'T' military timezone handling
6888         * lib/parse-datetime.y (zone):
6889         follow-up to the previous commit: the 'T' case is handled outside the
6890         conversion table (used as either military timezone UTC-7 or ISO8601
6891         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
6892         timezone letters.
6894 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6896         parse-datetime: fix military timezone letters
6897         Problem and trivial fix reported by Neil Hoggarth in:
6898         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
6899         * lib/parse-datetime.y (military_table):
6900         Do it the right way, not the RFC 822 way.
6902 2019-08-08  Eric Blake  <eblake@redhat.com>
6904         configmake: Avoid namespace pollution issue on mingw.
6905         * modules/configmake (Makefile.am): If the project uses
6906         <winsock2.h>, include that header before defining DATADIR.
6908 2019-07-28  Bruno Haible  <bruno@clisp.org>
6910         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
6911         * tests/test-mbrtowc.c (main): Fix expected value of wc.
6913 2019-07-24  Bruno Haible  <bruno@clisp.org>
6915         pthread-h: Fix definitions of types and macros on mingw.
6916         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
6917         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
6918         not in use.
6919         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
6920         'pthread-once' is not in use.
6921         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
6922         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
6923         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
6924         in use.
6925         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
6926         Define also when module 'pthread-rwlock' is not in use.
6927         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
6928         also when module 'pthread-cond' is not in use.
6929         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
6930         'pthread-tss' is not in use.
6931         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
6932         use.
6934 2019-07-24  Simon Josefsson  <simon@josefsson.org>
6936         crypto/gc: Cope with libgcrypt without SM3.
6937         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
6939 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
6941         backupfile: fix resource leak on memory failure
6942         Problem found by Coverity (CID 1484214).
6943         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
6945 2019-07-22  Bruno Haible  <bruno@clisp.org>
6947         Avoid missing-declarations warning in various tests.
6948         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
6949         test6, test_optional, test7, test8, test9, test10, test11, test12,
6950         test13, test14, test15, test_fun): Declare static.
6951         * tests/test-cnd.c (test_cnd_wait): Likewise.
6952         * tests/test-cond.c (test_cond): Likewise.
6954 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6956         pthread tests: Avoid missing-declarations warning.
6957         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
6959 2019-07-19  Bruno Haible  <bruno@clisp.org>
6961         parse-datetime: Avoid warnings from bison versions >= 3.3.
6962         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
6963         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
6965 2019-07-19  Bruno Haible  <bruno@clisp.org>
6967         parse-datetime: Require Bison 2.4 or newer.
6968         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
6969         Code taken from gettext's intl.m4.
6970         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
6971         of YACC.
6973 2019-07-19  Bruno Haible  <bruno@clisp.org>
6975         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
6976         * lib/areadlink-with-size.c: Include <string.h>.
6977         * lib/areadlinkat-with-size.c: Likewise.
6978         * lib/xgethostname.c: Likewise.
6979         * lib/xgetdomainname.c: Likewise.
6981 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
6983         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
6984         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
6985         "%pure-parser".  The former is available since Bison 2.3b (2008),
6986         while the latter is marked as obsolete since version 3.4 (May 2019).
6988 2019-07-16  Bruno Haible  <bruno@clisp.org>
6990         update-copyright: Make it work again (regression from 2019-06-15).
6991         Reported by Brian C. Lane <bcl@redhat.com>.
6992         * build-aux/update-copyright: Add back the -0777, -p, -i options.
6994 2019-07-14  Bruno Haible  <bruno@clisp.org>
6996         doc: Update info about <pthread.h>.
6997         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
6998         of 'pthread'.
7000 2019-07-14  Bruno Haible  <bruno@clisp.org>
7002         pthread_sigmask tests: Use new multithread modules.
7003         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
7004         glthread/thread.h.
7005         (main_thread, killer_thread): Change type to pthread_t.
7006         (main): Update accordingly.
7007         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
7008         thread.
7010 2019-07-14  Bruno Haible  <bruno@clisp.org>
7012         pthread-tss: Add tests.
7013         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
7014         tests/test-tss.c.
7015         * modules/pthread-tss-tests: New file.
7017 2019-07-14  Bruno Haible  <bruno@clisp.org>
7019         pthread-cond: Add tests.
7020         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
7021         tests/test-cnd.c.
7022         * modules/pthread-cond-tests: New file.
7024 2019-07-14  Bruno Haible  <bruno@clisp.org>
7026         pthread-rwlock: Add tests.
7027         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
7028         * modules/pthread-rwlock-tests: New file.
7030 2019-07-14  Bruno Haible  <bruno@clisp.org>
7032         pthread-mutex: Add tests.
7033         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
7034         tests/test-mtx.c.
7035         * modules/pthread-mutex-tests: New file.
7037 2019-07-14  Bruno Haible  <bruno@clisp.org>
7039         pthread-once: Add tests.
7040         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
7041         tests/test-call_once.c.
7042         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
7043         tests/test-mtx.c.
7044         * modules/pthread-once-tests: New file.
7046 2019-07-14  Bruno Haible  <bruno@clisp.org>
7048         pthread-thread: Add tests.
7049         * tests/test-pthread-thread.c: New file, based on
7050         tests/test-thread_create.c and tests/test-thrd_create.c.
7051         * modules/pthread-thread-tests: New file.
7053 2019-07-14  Bruno Haible  <bruno@clisp.org>
7055         pthread: Turn into a convenience module.
7056         * lib/pthread.in.h: Remove declarations for extern inline functions.
7057         * lib/pthread.c: Remove file.
7058         * modules/pthread (Files): Remove it.
7059         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
7060         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
7061         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
7062         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
7063         GNULIB_PTHREAD.
7064         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
7066 2019-07-14  Bruno Haible  <bruno@clisp.org>
7068         pthread-spin: New module.
7069         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
7070         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
7071         inline definitions.
7072         * lib/pthread-spin.c: New file.
7073         * m4/pthread-spin.m4: New file.
7074         * modules/pthread-spin: New file.
7075         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
7076         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
7077         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
7078         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
7079         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
7081 2019-07-14  Bruno Haible  <bruno@clisp.org>
7083         pthread-tss: New module.
7084         * lib/pthread-tss.c: New file.
7085         * m4/pthread-tss.m4: New file.
7086         * modules/pthread-tss: New file.
7087         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
7088         * doc/posix-functions/pthread_setspecific.texi: Likewise.
7089         * doc/posix-functions/pthread_getspecific.texi: Likewise.
7090         * doc/posix-functions/pthread_key_delete.texi: Likewise.
7092 2019-07-14  Bruno Haible  <bruno@clisp.org>
7094         pthread-cond: New module.
7095         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
7096         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
7097         * lib/pthread-cond.c: New file.
7098         * m4/pthread-cond.m4: New file.
7099         * modules/pthread-cond: New file.
7100         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
7101         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
7102         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
7103         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
7104         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
7105         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
7106         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
7107         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
7109 2019-07-14  Bruno Haible  <bruno@clisp.org>
7111         pthread-rwlock: New module.
7112         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
7113         * m4/pthread-rwlock.m4: New file.
7114         * modules/pthread-rwlock: New file.
7115         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
7116         and the Android problem.
7117         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
7118         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
7119         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
7120         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
7121         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
7122         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
7123         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
7124         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
7125         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
7126         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
7128 2019-07-14  Bruno Haible  <bruno@clisp.org>
7130         pthread-mutex: New module.
7131         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
7132         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
7133         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
7134         pthread_mutex_unlock): Remove inline definitions.
7135         * lib/pthread-mutex.c: New file.
7136         * m4/pthread-mutex.m4: New file.
7137         * modules/pthread-mutex: New file.
7138         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
7139         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
7140         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
7141         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
7142         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7143         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7144         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
7145         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
7146         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
7147         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
7148         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
7149         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
7151 2019-07-14  Bruno Haible  <bruno@clisp.org>
7153         pthread-once: New module.
7154         * lib/pthread-once.c: New file.
7155         * m4/pthread-once.m4: New file.
7156         * modules/pthread-once: New file.
7157         * doc/posix-functions/pthread_once.texi: Mention the new module.
7159 2019-07-14  Bruno Haible  <bruno@clisp.org>
7161         pthread-thread: New module.
7162         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
7163         inline definitions.
7164         * lib/pthread-thread.c: New file.
7165         * m4/pthread-thread.m4: New file.
7166         * modules/pthread-thread: New file.
7167         * doc/posix-functions/pthread_create.texi: Mention the new module.
7168         * doc/posix-functions/pthread_attr_init.texi: Likewise.
7169         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
7170         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
7171         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
7172         * doc/posix-functions/pthread_self.texi: Likewise.
7173         * doc/posix-functions/pthread_equal.texi: Likewise.
7174         * doc/posix-functions/pthread_detach.texi: Likewise.
7175         * doc/posix-functions/pthread_join.texi: Likewise.
7176         * doc/posix-functions/pthread_exit.texi: Likewise.
7178 2019-07-14  Bruno Haible  <bruno@clisp.org>
7180         pthread-h: Prepare for adding new modules.
7181         * lib/pthread.in.h: Define the types and macros for each of the
7182         facilities separately.
7183         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
7184         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
7185         HAVE_PTHREAD_PROCESS_SHARED.
7186         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
7187         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
7188         HAVE_PTHREAD_PROCESS_SHARED.
7189         * modules/pthread-h (Makefile.am): Substitute
7190         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
7191         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
7193 2019-07-14  Bruno Haible  <bruno@clisp.org>
7195         pthread-h: Add declarations of essential pthread functions.
7196         * lib/pthread.in.h: Include snippets.
7197         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
7198         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
7199         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
7200         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
7201         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
7202         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
7203         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
7204         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
7205         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
7206         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
7207         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
7208         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
7209         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
7210         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
7211         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
7212         pthread_key_create, pthread_setspecific, pthread_getspecific,
7213         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
7214         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
7215         declarations.
7216         (pthread_mutex_timedlock): Move declaration.
7217         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
7218         declared.
7219         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
7220         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
7221         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
7222         HAVE_* and REPLACE_* variables for the new functions.
7223         * modules/pthread-h (Depends-on): Add snippet/c++defs,
7224         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
7225         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
7226         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
7227         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
7228         variables for the new functions. Split the sed script, to avoid the
7229         limit of 99 commands of HP-UX sed.
7230         * tests/test-pthread-c++.cc: Check the signature of the new functions.
7232 2019-07-14  Bruno Haible  <bruno@clisp.org>
7234         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
7235         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
7236         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
7237         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
7238         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
7239         * modules/pthread-h (Depends-on): Add threadlib.
7240         (Link): Change to $(LIBTHREAD).
7241         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
7242         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
7244 2019-07-14  Bruno Haible  <bruno@clisp.org>
7246         pthread-h: Add C++ tests.
7247         * tests/test-pthread-c++.cc: New file.
7248         * modules/pthread-h-c++-tests: New file.
7250 2019-07-14  Bruno Haible  <bruno@clisp.org>
7252         pthread-h: Add tests.
7253         * tests/test-pthread.c: New file.
7254         * modules/pthread-h-tests: New file.
7256 2019-07-14  Bruno Haible  <bruno@clisp.org>
7258         pthread-h: New module.
7259         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
7260         is 1.
7261         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
7262         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
7263         <pthread.h> pollutes the namespace; instead, prepare for generating a
7264         pthread.h always. Substitute HAVE_PTHREAD_H here.
7265         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
7266         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
7267         * modules/pthread-h: New file, based on modules/pthread.
7268         * modules/pthread: Rely on 'pthread-h'.
7269         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
7270         Update.
7271         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
7272         pthread.
7274 2019-07-14  Bruno Haible  <bruno@clisp.org>
7276         sched_yield: New module.
7277         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
7278         (sched_yield): New declaration.
7279         * lib/sched_yield.c: New file.
7280         * m4/sched_yield.m4: New file.
7281         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
7282         provide a replacement sched.h always. Test whether sched_yield is
7283         declared.
7284         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
7285         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
7286         (Makefile.am): Provide a replacement sched.h always. Substitute
7287         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
7288         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
7289         * modules/sched_yield: New file.
7290         * doc/posix-functions/sched_yield.texi: Mention the new module.
7292 2019-07-14  Bruno Haible  <bruno@clisp.org>
7294         windows-spin: New module.
7295         * lib/windows-spin.h: New file.
7296         * lib/windows-spin.c: New file.
7297         * modules/windows-spin: New file.
7299 2019-07-14  Bruno Haible  <bruno@clisp.org>
7301         windows-timedrwlock: New module.
7302         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
7303         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
7304         windows-cond.c.
7305         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
7306         redefinition conflict with windows-timedrwlock.h.
7307         * modules/windows-timedrwlock: New file.
7309 2019-07-14  Bruno Haible  <bruno@clisp.org>
7311         windows-rwlock: New module.
7312         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
7313         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
7314         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
7315         windows-initguard.h.
7316         (gl_rwlock_t): Define using glwthread_rwlock_t.
7317         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
7318         (glthread_rwlock_init): Define using glwthread_rwlock_init.
7319         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
7320         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
7321         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
7322         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
7323         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
7324         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
7325         glthread_rwlock_destroy_func): Remove declarations.
7326         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
7327         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
7328         gl_waitqueue_notify_all, glthread_rwlock_init_func,
7329         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
7330         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
7331         functions.
7332         * modules/windows-rwlock: New file.
7333         * modules/lock (Depends-on): Add windows-rwlock.
7335 2019-07-14  Bruno Haible  <bruno@clisp.org>
7337         windows-thread: Add support for creating a thread in detached state.
7338         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
7339         (glwthread_thread_create): Add attr argument.
7340         * lib/windows-thread.c (glwthread_thread_create): Likewise.
7341         * lib/glthread/thread.h (glthread_create): Update.
7342         * lib/thrd.c (thrd_create): Update.
7344 2019-07-14  Bruno Haible  <bruno@clisp.org>
7346         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
7347         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
7348         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
7349         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
7350         * lib/windows-mutex.h: Update.
7351         * lib/windows-recmutex.h: Likewise.
7352         * lib/windows-timedmutex.h: Likewise.
7353         * lib/windows-timedrecmutex.h: Likewise.
7354         * lib/windows-cond.h: Likewise.
7355         * lib/glthread/lock.h: Likewise.
7356         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
7357         lib/windows-spinlock.h.
7358         * modules/windows-recmutex (Files): Likewise.
7359         * modules/windows-timedmutex (Files): Likewise.
7360         * modules/windows-timedrecmutex (Files): Likewise.
7361         * modules/windows-cond (Files): Likewise.
7362         * modules/threads-h (Files): Likewise.
7364 2019-07-14  Bruno Haible  <bruno@clisp.org>
7366         doc: Fix info about pthread API in HP-UX.
7367         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
7369 2019-07-14  Bruno Haible  <bruno@clisp.org>
7371         threads-h: Fix generation of threads.h.
7372         * modules/threads-h (Makefile.am): Insert the required header file
7373         snippets.
7375 2019-07-09  Bruno Haible  <bruno@clisp.org>
7377         striconveh test: Fix a compilation failure when iconv is not available.
7378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7379         * tests/test-striconveh.c (main): Move iconv_close invocations inside
7380         HAVE_ICONV.
7382 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
7384         argmatch: adjust columns for help2man.
7385         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
7386         requires column 20 or more, return 20.
7388 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7390         areadlink-with-size: avoid realloc when size==0
7391         * lib/areadlink-with-size.c (areadlink_with_size):
7392         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
7393         Reallocate at the end to the actual size, to avoid memory waste,
7394         as suggested by Bruno Haible.  But when the guessed size is zero -
7395         useful when the size is unknown - do the initial small readlink
7396         into the stack, to avoid that realloc in the usual case.
7398 2019-07-06  Pádraig Brady  <P@draigBrady.com>
7400         areadlink-with-size: guess a buffer size with 0 size
7401         The size is usually taken from st_size, which can be zero,
7402         resulting in inefficient operation.
7403         Instead let zero select an initial memory allocation
7404         of 128 bytes, which most symlinks fit within.
7405         * lib/areadlink-with-size.c (areadlink_with_size):
7406         Start with a 128 byte buffer, for SIZE == 0.
7407         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
7409 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
7411         Replace manually crafted hex regexes with [:xdigit:]
7412         * build-aux/gitlog-to-changelog (parse_amend_file)
7413         (git_dir_option):
7414         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
7415         This patch is backported from Emacs (Bug#36167).
7417 2019-07-06  Bruno Haible  <bruno@clisp.org>
7419         error: Fix documentation.
7420         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
7421         module provides.
7422         * doc/glibc-functions/error_message_count.texi: Likewise.
7423         * doc/glibc-functions/error_one_per_line.texi: Likewise.
7424         * doc/glibc-functions/error_print_progname.texi: Likewise.
7426 2019-07-06  Bruno Haible  <bruno@clisp.org>
7428         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
7429         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
7430         and older is unsupported.
7431         * doc/**/*.texi: Update.
7433 2019-07-06  Bruno Haible  <bruno@clisp.org>
7435         doc: Remove documentation of Linux libc5 as a supported platform.
7436         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
7437         to Linux libc5.
7438         * doc/posix-functions/iswalpha.texi: Likewise.
7439         * doc/posix-functions/iswblank.texi: Likewise.
7440         * doc/posix-functions/iswcntrl.texi: Likewise.
7441         * doc/posix-functions/iswdigit.texi: Likewise.
7442         * doc/posix-functions/iswgraph.texi: Likewise.
7443         * doc/posix-functions/iswlower.texi: Likewise.
7444         * doc/posix-functions/iswprint.texi: Likewise.
7445         * doc/posix-functions/iswpunct.texi: Likewise.
7446         * doc/posix-functions/iswspace.texi: Likewise.
7447         * doc/posix-functions/iswupper.texi: Likewise.
7448         * doc/posix-functions/iswxdigit.texi: Likewise.
7449         * doc/posix-functions/snprintf.texi: Likewise.
7450         * doc/posix-functions/vsnprintf.texi: Likewise.
7452 2019-07-06  Bruno Haible  <bruno@clisp.org>
7454         doc: Remove documentation of Tandem/NSK as a supported platform.
7455         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
7456         Tandem/NSK.
7457         * doc/**/*.texi: Update.
7459 2019-07-06  Bruno Haible  <bruno@clisp.org>
7461         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
7462         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
7463         and older is unsupported.
7464         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
7465         Mac OS X 10.4 and older.
7466         * doc/posix-functions/asinl.texi: Likewise.
7467         * doc/posix-functions/atanl.texi: Likewise.
7468         * doc/posix-functions/cosl.texi: Likewise.
7469         * doc/posix-functions/expl.texi: Likewise.
7470         * doc/posix-functions/frexpl.texi: Likewise.
7471         * doc/posix-functions/gettimeofday.texi: Likewise.
7472         * doc/posix-functions/logl.texi: Likewise.
7473         * doc/posix-functions/mkstemp.texi: Likewise.
7474         * doc/posix-functions/sinl.texi: Likewise.
7475         * doc/posix-functions/sqrtl.texi: Likewise.
7476         * doc/posix-functions/tanl.texi: Likewise.
7477         * doc/posix-functions/wcswidth.texi: Likewise.
7478         * doc/**/*.texi: Update.
7480 2019-07-06  Bruno Haible  <bruno@clisp.org>
7482         doc: Remove documentation of AIX 4 as a supported platform.
7483         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
7484         unsupported.
7485         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
7486         workarounds.
7487         * doc/posix-functions/strnlen.texi: Likewise.
7488         * doc/posix-headers/inttypes.texi: Likewise.
7489         * doc/**/*.texi: Update.
7491 2019-07-06  Bruno Haible  <bruno@clisp.org>
7493         doc: Remove documentation of HP-UX 10 as a supported platform.
7494         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
7495         unsupported.
7496         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
7497         workarounds.
7498         * doc/posix-functions/gmtime_r.texi: Likewise.
7499         * doc/posix-functions/localtime_r.texi: Likewise.
7500         * doc/posix-functions/mkstemp.texi: Likewise.
7501         * doc/**/*.texi: Update.
7503 2019-07-06  Bruno Haible  <bruno@clisp.org>
7505         doc: Remove documentation of Interix 3.5 as a supported platform.
7506         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
7507         unsupported.
7508         * doc/posix-functions/select.texi: Don't mention Interix specific
7509         workarounds.
7510         * doc/posix-headers/signal.texi: Likewise.
7511         * doc/**/*.texi: Update.
7513 2019-07-06  Bruno Haible  <bruno@clisp.org>
7515         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
7516         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
7517         unsupported.
7518         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
7519         workarounds.
7520         * doc/posix-functions/nl_langinfo.texi: Likewise.
7521         * doc/posix-functions/remainder.texi: Likewise.
7522         * doc/posix-functions/towlower.texi: Likewise.
7523         * doc/posix-functions/towupper.texi: Likewise.
7524         * doc/posix-functions/vsnprintf.texi: Likewise.
7525         * doc/posix-functions/wcscat.texi: Likewise.
7526         * doc/posix-functions/wcschr.texi: Likewise.
7527         * doc/posix-functions/wcscmp.texi: Likewise.
7528         * doc/posix-functions/wcscpy.texi: Likewise.
7529         * doc/posix-functions/wcscspn.texi: Likewise.
7530         * doc/posix-functions/wcslen.texi: Likewise.
7531         * doc/posix-functions/wcsncat.texi: Likewise.
7532         * doc/posix-functions/wcsncmp.texi: Likewise.
7533         * doc/posix-functions/wcsncpy.texi: Likewise.
7534         * doc/posix-functions/wcspbrk.texi: Likewise.
7535         * doc/posix-functions/wcsrchr.texi: Likewise.
7536         * doc/posix-functions/wcsspn.texi: Likewise.
7537         * doc/posix-headers/langinfo.texi: Likewise.
7538         * doc/posix-headers/signal.texi: Likewise.
7539         * doc/posix-headers/wchar.texi: Likewise.
7540         * doc/posix-headers/wctype.texi: Likewise.
7541         * doc/**/*.texi: Update.
7543 2019-07-05  Bruno Haible  <bruno@clisp.org>
7545         doc: Remove documentation of OSF/1 as supported platform.
7546         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
7547         unsupported.
7548         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
7549         workarounds.
7550         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
7551         * doc/glibc-functions/ptsname_r.texi: Likewise.
7552         * doc/posix-functions/ceil.texi: Likewise.
7553         * doc/posix-functions/ceilf.texi: Likewise.
7554         * doc/posix-functions/ceill.texi: Likewise.
7555         * doc/posix-functions/fchdir.texi: Likewise.
7556         * doc/posix-functions/floor.texi: Likewise.
7557         * doc/posix-functions/floorf.texi: Likewise.
7558         * doc/posix-functions/fmod.texi: Likewise.
7559         * doc/posix-functions/fmodf.texi: Likewise.
7560         * doc/posix-functions/fmodl.texi: Likewise.
7561         * doc/posix-functions/log.texi: Likewise.
7562         * doc/posix-functions/logf.texi: Likewise.
7563         * doc/posix-functions/logl.texi: Likewise.
7564         * doc/posix-functions/log10.texi: Likewise.
7565         * doc/posix-functions/log10f.texi: Likewise.
7566         * doc/posix-functions/log10l.texi: Likewise.
7567         * doc/posix-functions/log2.texi: Likewise.
7568         * doc/posix-functions/log2f.texi: Likewise.
7569         * doc/posix-functions/log2l.texi: Likewise.
7570         * doc/posix-functions/mbrtowc.texi: Likewise.
7571         * doc/posix-functions/recv.texi: Likewise.
7572         * doc/posix-functions/recvfrom.texi: Likewise.
7573         * doc/posix-functions/remainder.texi: Likewise.
7574         * doc/posix-functions/remainderf.texi: Likewise.
7575         * doc/posix-functions/remainderl.texi: Likewise.
7576         * doc/posix-functions/round.texi: Likewise.
7577         * doc/posix-functions/roundf.texi: Likewise.
7578         * doc/posix-functions/roundl.texi: Likewise.
7579         * doc/posix-functions/send.texi: Likewise.
7580         * doc/posix-functions/sendto.texi: Likewise.
7581         * doc/posix-functions/setenv.texi: Likewise.
7582         * doc/posix-functions/snprintf.texi: Likewise.
7583         * doc/posix-functions/tcgetsid.texi: Likewise.
7584         * doc/posix-functions/trunc.texi: Likewise.
7585         * doc/posix-functions/truncf.texi: Likewise.
7586         * doc/posix-functions/truncl.texi: Likewise.
7587         * doc/posix-functions/ttyname_r.texi: Likewise.
7588         * doc/posix-functions/unsetenv.texi: Likewise.
7589         * doc/posix-functions/wcsrtombs.texi: Likewise.
7590         * doc/posix-headers/sys_select.texi: Likewise.
7591         * doc/posix-headers/wchar.texi: Likewise.
7592         * doc/posix-headers/wctype.texi: Likewise.
7593         * doc/**/*.texi: Update.
7595 2019-07-05  Bruno Haible  <bruno@clisp.org>
7597         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
7598         * doc/**/*.texi: Update.
7600 2019-07-05  Bruno Haible  <bruno@clisp.org>
7602         doc: Remove documentation of Solaris 8 and older as supported platforms.
7603         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
7604         unsupported.
7605         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
7606         workarounds.
7607         * doc/posix-functions/memcmp.texi: Likewise.
7608         * doc/posix-functions/rename.texi: Likewise.
7609         * doc/posix-functions/tzset.texi: Likewise.
7610         * doc/posix-headers/wctype.texi: Likewise.
7611         * doc/**/*.texi: Update.
7613 2019-07-05  Bruno Haible  <bruno@clisp.org>
7615         doc: Remove documentation of Interix 3.5 as a supported platform.
7616         * doc/**/*.texi: Update.
7618 2019-07-05  Bruno Haible  <bruno@clisp.org>
7620         doc: Remove documentation of BeOS as a supported platform.
7621         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
7622         unsupported.
7623         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
7624         * doc/posix-functions/getdelim.texi: Likewise.
7625         * doc/**/*.texi: Update.
7627 2019-07-05  Bruno Haible  <bruno@clisp.org>
7629         thread, lock, cond, tls: Remove support for Pth threads.
7630         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
7631         --enable-threads=pth any more.
7632         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
7633         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
7634         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
7635         threads and ISO C11 threads.
7636         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
7637         * lib/glthread/lock.h: Likewise.
7638         * lib/glthread/lock.c: Likewise.
7639         * lib/glthread/cond.h: Likewise.
7640         * lib/glthread/cond.c: Likewise.
7641         * lib/glthread/tls.h: Likewise.
7642         * lib/glthread/tls.c: Likewise.
7643         * lib/glthread/yield.h: Likewise.
7644         * lib/regex_internal.h: Likewise.
7645         * tests/test-thread_create.c: Likewise.
7646         * tests/test-lock.c: Likewise.
7647         * tests/test-cond.c: Likewise.
7648         * tests/test-tls.c: Likewise.
7649         * tests/test-rwlock1.c: Don't include glthread/yield.h.
7650         (main): Sleep without calling gl_thread_yield.
7652 2019-07-05  Bruno Haible  <bruno@clisp.org>
7654         thread, lock, cond, tls: Remove support for old Solaris threads.
7655         Solaris >= 2.5.1 has POSIX threads.
7656         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
7657         --enable-threads=solaris any more.
7658         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
7659         * lib/glthread/thread.c: Update comment.
7660         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
7661         * lib/glthread/lock.h: Likewise.
7662         * lib/glthread/lock.c: Likewise.
7663         * lib/glthread/cond.h: Likewise.
7664         * lib/glthread/cond.c: Likewise.
7665         * lib/glthread/tls.h: Likewise.
7666         * lib/glthread/tls.c: Likewise.
7667         * lib/glthread/yield.h: Likewise.
7668         * lib/regex_internal.h: Likewise.
7669         * tests/test-thread_create.c: Likewise.
7670         * tests/test-lock.c: Likewise.
7671         * tests/test-cond.c: Likewise.
7672         * tests/test-tls.c: Likewise.
7674 2019-07-05  Bruno Haible  <bruno@clisp.org>
7676         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
7677         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
7678         needed size is equal to the allocated size.
7679         * lib/getcwd.c (__getcwd): Likewise.
7681 2019-07-05  Bruno Haible  <bruno@clisp.org>
7683         xgetdomainname: Don't return an excessive memory allocation.
7684         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
7685         before returning it.
7687 2019-07-05  Bruno Haible  <bruno@clisp.org>
7689         xgethostname: Don't return an excessive memory allocation.
7690         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
7691         returning it.
7693 2019-07-05  Bruno Haible  <bruno@clisp.org>
7695         areadlinkat-with-size: Don't return an excessive memory allocation.
7696         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
7697         before returning it.
7699 2019-07-05  Bruno Haible  <bruno@clisp.org>
7701         areadlink-with-size: Don't return an excessive memory allocation.
7702         Reported by Andreas Dilger <adilger@whamcloud.com>.
7703         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
7704         before returning it.
7706 2019-07-03  Bruno Haible  <bruno@clisp.org>
7708         renameatu: Fix test failure on MSVC.
7709         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
7710         empty string.
7712 2019-07-03  Bruno Haible  <bruno@clisp.org>
7714         mbrtowc: Fix invalid use of mbtowc() on MSVC.
7715         * lib/mbrtowc.c: Include glthread/lock.h.
7716         (mbtowc_lock): New variable.
7717         (mbrtowc): Treat UTF-8 encoding without locking. For the other
7718         encodings, explicitly reset the internal state of mbtowc, and protect
7719         this through a lock.
7720         * modules/mbrtowc (Depends-on): Add lock.
7722 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
7724         argmatch: don't define _ in the header.
7725         Reported by Jim Meyering.
7726         * lib/argmatch.h (N_, _): Don't define.
7727         Use gettext instead.
7728         * lib/argmatch.h (_): Define.
7729         * tests/test-argmatch.c (N_): Define.
7731 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7733         verify: document ‘assume’ better
7734         * lib/verify.h: Reword doc (Bug#36370).
7736 2019-07-02  Bruno Haible  <bruno@clisp.org>
7738         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
7739         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
7740         "CPutf8".
7741         * lib/nl_langinfo.c (ctype_codeset): Likewise.
7743 2019-07-02  Bruno Haible  <bruno@clisp.org>
7745         getcwd: Fix crash when invoked with size = 0 on MSVC.
7746         * lib/getcwd.c: Include msvc-inval.h.
7747         (getcwd_nothrow): New function/macro.
7748         (getcwd_system): New macro.
7749         (__getcwd): Use it instead of getcwd.
7750         * modules/getcwd (Depends-on): Add msvc-inval.
7751         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
7753 2019-07-02  Bruno Haible  <bruno@clisp.org>
7755         nonblocking-pipe tests: Fix test failure on MSVC.
7756         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
7757         native Windows.
7759 2019-07-02  Bruno Haible  <bruno@clisp.org>
7761         usleep: Implement with millisecond resolution on native Windows.
7762         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
7763         * doc/pastposix-functions/usleep.texi: Update accordingly.
7765 2019-07-02  Bruno Haible  <bruno@clisp.org>
7767         lstat tests: Fix test failure on MSVC.
7768         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
7769         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
7771 2019-07-02  Bruno Haible  <bruno@clisp.org>
7773         stat tests: Fix test failure on MSVC.
7774         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
7775         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
7777 2019-07-02  Bruno Haible  <bruno@clisp.org>
7779         getaddrinfo tests: Fix test failure on MSVC.
7780         * tests/test-getaddrinfo.c: Include sockets.h.
7781         (main): Invoke gl_sockets_startup.
7782         * modules/getaddrinfo-tests (Depends-on): Add sockets.
7784 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
7786         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
7787         * lib/poll.c: Call Windows native select() with Windows native timeval.
7789 2019-06-30  Bruno Haible  <bruno@clisp.org>
7791         argmatch: Fix compilation errors.
7792         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
7793         * tests/test-argmatch.c (main): Update after last-minute function names
7794         change.
7796 2019-06-30  Bruno Haible  <bruno@clisp.org>
7798         Include <stdlib.h> when needed.
7799         * lib/cnd.c: Include <stdlib.h>, needed for abort().
7800         * lib/fcntl.c: Likewise.
7801         * lib/mbscasestr.c: Likewise.
7802         * lib/mbssep.c: Likewise.
7803         * lib/mbsstr.c: Likewise.
7804         * lib/openat.c: Include <stdlib.h>, needed for free().
7805         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
7806         abort().
7808 2019-06-30  Bruno Haible  <bruno@clisp.org>
7810         Include <stdlib.h> when needed.
7811         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
7812         * lib/faccessat.c: Likewise.
7813         * lib/fchmodat.c: Likewise.
7814         * lib/fchownat.c: Likewise.
7815         * lib/fstatat.c: Likewise.
7816         * lib/mkfifoat.c: Likewise.
7817         * lib/mknodat.c: Likewise.
7818         * lib/readlinkat.c: Likewise.
7819         * lib/symlinkat.c: Likewise.
7820         * lib/utimensat.c: Likewise.
7821         * lib/mkdirat.c: Likewise. Include also the specification header.
7823 2019-06-30  Bruno Haible  <bruno@clisp.org>
7825         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
7826         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
7827         from gl_PREREQ_SYS_H_SOCKET.
7828         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
7829         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
7830         gl_PREREQ_SYS_H_WS2TCPIP.
7831         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
7832         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
7833         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
7835 2019-06-30  Bruno Haible  <bruno@clisp.org>
7837         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
7838         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
7839         REPLACE_INET_NTOP to 1 always.
7840         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
7841         REPLACE_INET_PTON to 1 always.
7843 2019-06-30  Bruno Haible  <bruno@clisp.org>
7845         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
7846         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
7847         not REPLACE_INET_NTOP.
7849 2019-06-30  Bruno Haible  <bruno@clisp.org>
7851         poll: Add comment.
7852         * lib/poll.c: Add comment about WSAPoll.
7854 2019-06-30  Bruno Haible  <bruno@clisp.org>
7856         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
7857         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
7858         * lib/poll.in.h: Include <winsock2.h>.
7859         (POLL*, pollfd): Override on native Windows.
7860         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7861         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
7862         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7864 2019-06-28  Bruno Haible  <bruno@clisp.org>
7866         accept4: Fix compilation error on OpenIndiana.
7867         Reported by Michal Nowak <mnowak@startmail.com>
7868         via Mark H Weaver <mhw@netris.org>.
7869         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
7870         whether it exists as a function.
7872 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7874         strverscmp: sync from glibc
7875         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
7876         comments, include libc-config.h, define __strverscmp to be
7877         strverscmp, and don’t assume types line uint8_t and int8_t that
7878         that C99 doesn’t guarantee.
7879         [!_LIBC]: Include libc-config.h; define __strverscmp.
7880         Include stdint.h.
7881         (__strverscmp): Assume C99.  Use uint_least8_t
7882         and int_least8_t instead of unsigned char and signed char.
7883         * modules/strverscmp (Depends-on): Add libc-config, stdint.
7885 2019-06-25  Bruno Haible  <bruno@clisp.org>
7887         tss tests: Add tests for destructors and races.
7888         * tests/test-tss.c (worker_thread): Fix typo in debug message.
7889         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
7890         functions.
7891         (main): Invoke them.
7892         * modules/tls-tests (Depends-on): Add mtx.
7894 2019-06-25  Bruno Haible  <bruno@clisp.org>
7896         tls tests: Add tests for destructors and races.
7897         * tests/test-tls.c: Include glthread/lock.h.
7898         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
7899         functions.
7900         (main): Invoke them.
7901         * modules/tls-tests (Depends-on): Add lock.
7903 2019-06-25  Bruno Haible  <bruno@clisp.org>
7905         windows-tls: Implement TLS key destructors for native Windows.
7906         * lib/windows-tls.h (glwthread_tls_process_destructors): New
7907         declaration.
7908         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
7909         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
7910         (dtor_table_init_once, dtor_table_lock: New variables.
7911         (struct dtor): New type.
7912         (dtor_table, dtors_count, dtors_used, dtors_allocated,
7913         dtor_processing_threads): New variables.
7914         (dtor_table_initialize, dtor_table_ensure_initialized,
7915         dtor_table_shrink_used, glwthread_tls_process_destructors): New
7916         functions.
7917         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
7918         handle non-NULL destructors.
7919         * modules/windows-tls (Depends-on): Add windows-once.
7920         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
7921         Use the functions declared in windows-tls.h.
7922         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
7923         GLWTHREAD_DESTRUCTOR_ITERATIONS.
7924         * lib/windows-thread.c: Include windows-tls.h.
7925         (wrapper_func, glwthread_thread_exit): Invoke
7926         glwthread_tls_process_destructors.
7927         * modules/windows-thread (Depends-on): Add windows-tls.
7929 2019-06-25  Bruno Haible  <bruno@clisp.org>
7931         threadlib: Avoid autoconf warning "was expanded before it was required".
7932         * modules/threadlib (configure.ac): Require gl_THREADLIB.
7934 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
7936         argmatch: remove duplicate const qualifier
7937         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
7939 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7941         unistd: stddef.h and sys/types.h namespace cleanup
7942         * lib/unistd.in.h [__GLIBC__]:
7943         Do not include stddef.h or sys/types.h.
7944         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
7945         supposed to declare off_t and ssize_t.  Problem found when looking
7946         at why @GNULIB_PWRITE@ was different from the newly-added
7947         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
7949 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
7951         maintainer-makefile: restore portability to non-GNU awks
7952         Reported by Tim Rühsen.
7953         * top/maint.mk (AWK): New variable.  Use it.
7954         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
7956 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7958         Document setvbuf _IOLBF problem
7959         * doc/posix-functions/setvbuf.texi (setvbuf):
7960         Document MS-Windows portability problem with _IOLBF.
7962         Document lseek SEEK_DATA/SEEK_HOLE
7963         * doc/posix-functions/lseek.texi (lseek):
7964         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
7966 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
7968         argmatch: put all the docs member last.
7969         Reported by Bruno Haible.
7970         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
7971         member before the docs done.
7972         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
7974 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
7976         argmatch: add support to generate the usage message.
7977         * lib/argmatch.c: Move some #includes and gettext support to...
7978         * lib/argmatch.h: here.
7979         (ARGMATCH_DEFINE_GROUP): New macro.
7980         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
7981         (argmatch_backup_group): New.
7982         (CHECK): New.
7983         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
7984         argmatch_backup_argument and argmatch_backup_usage.
7985         * modules/argmatch: We depend on c99.
7986         * doc/argmatch.texi (Recognizing Option Arguments): New.
7987         * doc/gnulib.texi: Use it.
7989 2019-06-21  Bruno Haible  <bruno@clisp.org>
7991         thrd: Add comment.
7992         * lib/thrd.c (pthread_main_func): Add comment.
7994 2019-06-21  Bruno Haible  <bruno@clisp.org>
7996         threads-h: Define 'thread_local' if and only if it actually works.
7997         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
7998         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
7999         Oracle Solaris Studio C. Compile a simple program, to see whether
8000         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
8001         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
8002         * lib/threads.in.h (thread_local): Undefine if it does not work.
8003         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
8004         (Link): Mention LIBTHREADLOCAL.
8005         * tests/test-threads.c: Don't check that thread_local is defined.
8006         * tests/test-thread_local.c: New file.
8007         * modules/threads-h-tests (Files): Add it and macros.h.
8008         (Depends-on): Add thrd and stdint.
8009         (configure.ac): Test whether 'alarm' is declared.
8010         (Makefile.am): Arrange to build and link test-thread_local.
8011         * doc/posix-headers/threads.texi: Mention the platforms that don't
8012         support 'thread_local'.
8014 2019-06-20  Bruno Haible  <bruno@clisp.org>
8016         threads-h: Simplify link dependencies.
8017         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
8018         Don't set LTLIBSTDTHREAD.
8019         * modules/thrd (Link): Simplify accordingly.
8020         * modules/mtx (Link): Likewise.
8021         * modules/cnd (Link): Likewise.
8022         * modules/tss (Link): Likewise.
8023         * modules/threads (Link): Likewise.
8025 2019-06-20  Bruno Haible  <bruno@clisp.org>
8027         threads-h: Fix link error on FreeBSD 11.
8028         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
8029         also with -lpthread.
8031 2019-06-20  Bruno Haible  <bruno@clisp.org>
8033         threadlib: Fix typo (regression from today).
8034         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
8036 2019-06-20  Bruno Haible  <bruno@clisp.org>
8038         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
8039         * lib/windows-thread.c: Include <errno.h>.
8040         * lib/windows-tls.c: Likewise.
8042 2019-06-20  Bruno Haible  <bruno@clisp.org>
8044         tss tests: Small improvement.
8045         * tests/test-tss.c (test_tss): Pass a different id to each thread.
8047 2019-06-20  Bruno Haible  <bruno@clisp.org>
8049         threads: New module.
8050         * modules/threads: New file.
8052 2019-06-20  Bruno Haible  <bruno@clisp.org>
8054         tss: Add tests.
8055         * tests/test-tss.c: New file, based on tests/test-tls.c.
8056         * modules/tss-tests: New file.
8058 2019-06-20  Bruno Haible  <bruno@clisp.org>
8060         cnd: Add tests.
8061         * tests/test-cnd.c: New file, based on tests/test-cond.c.
8062         * modules/cnd-tests: New file.
8064 2019-06-20  Bruno Haible  <bruno@clisp.org>
8066         mtx: Add tests.
8067         * tests/test-mtx.c: New file, based on tests/test-lock.c.
8068         * tests/test-call_once.c: New file, based on tests/test-once.c.
8069         * modules/mtx-tests: New file.
8071 2019-06-20  Bruno Haible  <bruno@clisp.org>
8073         thrd: Add tests.
8074         * tests/test-thrd_create.c: New file, based on
8075         tests/test-thread_create.c.
8076         * tests/test-thrd_current.c: New file, based on
8077         tests/test-thread_self.c.
8078         * modules/thrd-tests: New file.
8080 2019-06-20  Bruno Haible  <bruno@clisp.org>
8082         tss: New module.
8083         * lib/tss.c: New file.
8084         * modules/tss: New file.
8085         * doc/posix-functions/tss_create.texi: Mention the new module.
8086         * doc/posix-functions/tss_set.texi: Likewise.
8087         * doc/posix-functions/tss_get.texi: Likewise.
8088         * doc/posix-functions/tss_delete.texi: Likewise.
8090 2019-06-20  Bruno Haible  <bruno@clisp.org>
8092         cnd: New module.
8093         * lib/cnd.c: New file.
8094         * modules/cnd: New file.
8095         * doc/posix-functions/cnd_init.texi: Mention the new module.
8096         * doc/posix-functions/cnd_wait.texi: Likewise.
8097         * doc/posix-functions/cnd_timedwait.texi: Likewise.
8098         * doc/posix-functions/cnd_signal.texi: Likewise.
8099         * doc/posix-functions/cnd_broadcast.texi: Likewise.
8100         * doc/posix-functions/cnd_destroy.texi: Likewise.
8102 2019-06-20  Bruno Haible  <bruno@clisp.org>
8104         mtx: New module.
8105         * lib/mtx.c: New file.
8106         * modules/mtx: New file.
8107         * doc/posix-functions/call_once.texi: Mention the new module.
8108         * doc/posix-functions/mtx_init.texi: Likewise.
8109         * doc/posix-functions/mtx_lock.texi: Likewise.
8110         * doc/posix-functions/mtx_trylock.texi: Likewise.
8111         * doc/posix-functions/mtx_timedlock.texi: Likewise.
8112         * doc/posix-functions/mtx_unlock.texi: Likewise.
8113         * doc/posix-functions/mtx_destroy.texi: Likewise.
8115 2019-06-20  Bruno Haible  <bruno@clisp.org>
8117         thrd: New module.
8118         * lib/thrd.c: New file.
8119         * m4/thrd.m4: New file.
8120         * modules/thrd: New file.
8121         * doc/posix-functions/thrd_current.texi: Mention the new module.
8122         * doc/posix-functions/thrd_detach.texi: Likewise.
8123         * doc/posix-functions/thrd_equal.texi: Likewise.
8124         * doc/posix-functions/thrd_exit.texi: Likewise.
8125         * doc/posix-functions/thrd_sleep.texi: Likewise.
8126         * doc/posix-functions/thrd_yield.texi: Likewise.
8127         * doc/posix-functions/thrd_create.texi: Mention the new module and the
8128         AIX bug.
8129         * doc/posix-functions/thrd_join.texi: Mention the new module and the
8130         AIX and Solaris bugs.
8132 2019-06-20  Bruno Haible  <bruno@clisp.org>
8134         threads-h: Add tests.
8135         * tests/test-threads.c: New file.
8136         * modules/threads-h-tests: New file.
8137         * tests/test-threads-c++.cc: New file.
8138         * modules/threads-h-c++-tests: New file.
8140 2019-06-20  Bruno Haible  <bruno@clisp.org>
8142         threads-h: New module.
8143         * lib/threads.in.h: New file.
8144         * m4/threads.m4: New file.
8145         * m4/yield.m4 (gl_YIELD): Update comment.
8146         * modules/threads-h: New file.
8147         * modules/yields (configure.ac): Use AC_REQUIRE.
8148         * doc/posix-headers/threads.texi: Mention the new module and the AIX
8149         bugs.
8151 2019-06-20  Bruno Haible  <bruno@clisp.org>
8153         windows-thread: New module.
8154         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
8155         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
8156         * lib/glthread/thread.h: Include windows-thread.h.
8157         (gl_thread_t): Define using glwthread_thread_t.
8158         (glthread_create): Define using glwthread_thread_create.
8159         (glthread_join): Define using glwthread_thread_join.
8160         (gl_thread_self): Define using glwthread_thread_self.
8161         (gl_thread_exit): Define using glwthread_thread_exit.
8162         (glthread_create_func, glthread_join_func, gl_thread_self_func,
8163         gl_thread_exit_func): Remove declarations.
8164         * lib/glthread/thread.c (self_key): Remove variable.
8165         (do_init_self_key, init_self_key): Remove functions.
8166         (struct gl_thread_struct): Remove type.
8167         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
8168         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
8169         functions.
8170         * modules/windows-thread: New file.
8171         * modules/thread (Depends-on): Add windows-thread.
8173 2019-06-20  Bruno Haible  <bruno@clisp.org>
8175         windows-tls: New module.
8176         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
8177         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
8178         * lib/glthread/tls.h: Include windows-tls.h.
8179         (gl_tls_key_t): Define using glwthread_tls_key_t.
8180         * modules/windows-tls: New file.
8181         * modules/tls (Depends-on): Add windows-tls.
8183 2019-06-20  Bruno Haible  <bruno@clisp.org>
8185         windows-cond: New module.
8186         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
8187         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
8188         * lib/glthread/cond.h: Include windows-cond.h.
8189         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
8190         (gl_cond_t): Define using glwthread_cond_t.
8191         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
8192         (glthread_cond_init): Define using glwthread_cond_init.
8193         (glthread_cond_wait): Define using glwthread_cond_wait.
8194         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
8195         (glthread_cond_signal): Define using glwthread_cond_signal.
8196         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
8197         (glthread_cond_destroy): Define using glwthread_cond_destroy.
8198         (glthread_cond_init_func, glthread_cond_wait_func,
8199         glthread_cond_timedwait_func, glthread_cond_signal_func,
8200         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
8201         declarations.
8202         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
8203         types.
8204         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
8205         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
8206         glthread_cond_init_func, glthread_cond_wait_func,
8207         glthread_cond_timedwait_func, glthread_cond_signal_func,
8208         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
8209         functions.
8210         * modules/windows-cond: New file.
8211         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
8213 2019-06-20  Bruno Haible  <bruno@clisp.org>
8215         windows-timedrecmutex: New module.
8216         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
8217         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
8218         * modules/windows-timedrecmutex: New file.
8220 2019-06-20  Bruno Haible  <bruno@clisp.org>
8222         windows-timedmutex: New module.
8223         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
8224         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
8225         * modules/windows-timedmutex: New file.
8227 2019-06-20  Bruno Haible  <bruno@clisp.org>
8229         windows-recmutex: New module.
8230         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
8231         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
8232         * lib/glthread/lock.h: Include windows-recmutex.h.
8233         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
8234         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
8235         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
8236         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
8237         (glthread_recursive_lock_unlock): Define using
8238         glwthread_recmutex_unlock.
8239         (glthread_recursive_lock_destroy): Define using
8240         glwthread_recmutex_destroy.
8241         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
8242         glthread_recursive_lock_unlock_func,
8243         glthread_recursive_lock_destroy_func): Remove declarations.
8244         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
8245         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
8246         glthread_recursive_lock_destroy_func): Remove functions.
8247         * modules/windows-recmutex: New file.
8248         * modules/lock (Depends-on): Add windows-recmutex.
8250 2019-06-20  Bruno Haible  <bruno@clisp.org>
8252         windows-mutex: New module.
8253         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
8254         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
8255         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
8256         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
8257         (gl_spinlock_t): Remove type.
8258         (gl_lock_t): Define using glwthread_mutex_t.
8259         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
8260         (glthread_lock_init): Define using glwthread_mutex_init.
8261         (glthread_lock_lock): Define using glwthread_mutex_lock.
8262         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
8263         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
8264         (glthread_lock_init_func, glthread_lock_lock_func,
8265         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
8266         declarations.
8267         Use glwthread_spinlock_t instead of gl_spinlock_t.
8268         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
8269         GLWTHREAD_SPINLOCK_INIT.
8270         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
8271         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
8272         functions.
8273         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
8274         gl_spinlock_t.
8275         * modules/windows-mutex: New file.
8276         * modules/lock (Depends-on): Add windows-mutex.
8278 2019-06-20  Bruno Haible  <bruno@clisp.org>
8280         windows-once: New module.
8281         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
8282         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
8283         * lib/glthread/lock.h: Include windows-once.h.
8284         (gl_once_t): Define using glwthread_once_t.
8285         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
8286         (glthread_once): Define using glwthread_once.
8287         (glthread_once_func): Remove declaration.
8288         * lib/glthread/lock.c (glthread_once_func): Remove function.
8289         * modules/windows-once: New file.
8290         * modules/lock (Depends-on): Add windows-once.
8292 2019-06-20  Bruno Haible  <bruno@clisp.org>
8294         lock, cond: Avoid possible counter wraparound on Windows.
8295         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
8296         field of the guard unchanged if it was already positive.
8297         (glthread_rwlock_rdlock_func): Likewise.
8298         (glthread_rwlock_wrlock_func): Likewise.
8299         (glthread_recursive_lock_lock_func): Likewise.
8300         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
8301         (glthread_cond_timedwait_func): Likewise.
8303 2019-06-20  Bruno Haible  <bruno@clisp.org>
8305         cond: Make glthread_cond_timedwait more reliable on Windows.
8306         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
8307         condition variable before looking at the current time.
8309 2019-06-20  Bruno Haible  <bruno@clisp.org>
8311         pthread_mutex_timedlock: New module.
8312         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
8313         new declaration.
8314         * lib/pthread_mutex_timedlock.c: New file.
8315         * m4/pthread_mutex_timedlock.m4: New file.
8316         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
8317         whether pthread_mutex_timedlock is declared.
8318         (gl_PTHREAD_MODULE_INDICATOR): New macro.
8319         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
8320         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
8321         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
8322         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
8323         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
8324         * modules/pthread_mutex_timedlock: New file.
8325         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
8326         module.
8328 2019-06-20  Bruno Haible  <bruno@clisp.org>
8330         thread, lock, cond, tls: Recognize C11 multithreaded applications.
8331         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
8332         * lib/glthread/thread.h (c11_threads_in_use): New macro.
8333         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8334         * lib/glthread/lock.h (c11_threads_in_use): New macro.
8335         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8336         * lib/glthread/cond.h (c11_threads_in_use): New macro.
8337         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8338         * lib/glthread/tls.h (c11_threads_in_use): New macro.
8339         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8341 2019-06-20  Bruno Haible  <bruno@clisp.org>
8343         tls tests: Small improvements.
8344         * tests/test-tls.c: Include <stdint.h>.
8345         (worker_thread): Avoid gcc warning on 64-bit mingw.
8346         (test_tls): Pass a different id to each thread.
8347         * modules/tls-tests (Depends-on): Add stdint.
8349 2019-06-20  Bruno Haible  <bruno@clisp.org>
8351         cond tests: Simplify.
8352         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
8354 2019-06-20  Bruno Haible  <bruno@clisp.org>
8356         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
8357         * tests/test-lock.c (test_once): Don't reference fire_signal if
8358         !ENABLE_LOCKING.
8360 2019-06-19  Bruno Haible  <bruno@clisp.org>
8362         nanosleep: Relicense under LGPLv2+.
8363         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
8364         * modules/nanosleep (License): Change to LGPLv2+.
8366 2019-06-19  Bruno Haible  <bruno@clisp.org>
8368         Reorder pieces of header in perl scripts.
8369         The desired order is
8370         - Prologue part 1 (2 lines with #!)
8371         - Program short description
8372         - Copyright and license notice
8373         - Written-by notice
8374         - Program short description (optional)
8375         - Program long description (optional)
8376         - Prologue part 2
8377         - Time stamp
8378         - Code
8379         Reported by Paul Eggert.
8380         * build-aux/announce-gen: Reorder header.
8381         * build-aux/gitlog-to-changelog: Likewise.
8382         * build-aux/useless-if-before-free: Likewise.
8383         * build-aux/prefix-gnulib-mk: Add copyright notice and short
8384         description.
8385         * build-aux/update-copyright: Likewise. Add short description. Bump
8386         time-stamp-line-limit to 200.
8388 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
8390         verify-tests: work around xlc bug
8391         Problem reported by Bruno Haible in:
8392         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
8393         * tests/test-verify.c (item): Move the arithmetic inside the
8394         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
8396 2019-06-16  Bruno Haible  <bruno@clisp.org>
8398         Restore Emacs time-stamp hook applicability.
8399         Reported by Darshit Shah <darnir@gnu.org>.
8400         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
8401         * build-aux/announce-gen: Likewise.
8402         * build-aux/gitlog-to-changelog: Likewise.
8403         * build-aux/prefix-gnulib-mk: Likewise.
8404         * build-aux/update-copyright: Likewise.
8406 2019-06-15  Bruno Haible  <bruno@clisp.org>
8408         Fix scripts to have valid executable format on Alpine Linux.
8409         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
8410         Idea by Paul Eggert.
8411         * build-aux/useless-if-before-free: Use a prologue that starts with
8412         '#!/bin/sh'.
8413         * build-aux/announce-gen: Likewise.
8414         * build-aux/gitlog-to-changelog: Likewise.
8415         * build-aux/prefix-gnulib-mk: Likewise.
8416         * build-aux/update-copyright: Likewise.
8417         * tests/test-update-copyright.sh: Update test program accordingly.
8419 2019-06-10  Bruno Haible  <bruno@clisp.org>
8421         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
8422         Reported by Nikita Ermakov <arei@altlinux.org> in
8423         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
8424         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
8425         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
8427 2019-06-10  Bruno Haible  <bruno@clisp.org>
8429         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
8430         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
8431         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
8432         a copy of the path argument.
8433         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
8434         it.
8436 2019-06-10  Bruno Haible  <bruno@clisp.org>
8438         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
8439         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
8440         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
8441         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
8442         a copy of the path argument.
8443         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
8444         it.
8446 2019-06-10  Bruno Haible  <bruno@clisp.org>
8448         posix_spawn_file_actions_addfchdir: Add tests.
8449         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
8450         * tests/test-posix_spawn5.c: New file.
8451         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
8453 2019-06-10  Bruno Haible  <bruno@clisp.org>
8455         posix_spawn_file_actions_addfchdir: New module.
8456         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
8457         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
8458         union member 'fchdir_action'.
8459         * lib/spawn_faction_addfchdir.c: New file.
8460         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
8461         * m4/posix_spawn_faction_addfchdir.m4: New file.
8462         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
8463         'posix_spawn_file_actions_addfchdir' is present and whether
8464         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
8465         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
8466         posix_spawn_file_actions_addfchdir is declared.
8467         (gl_SPAWN_H_DEFAULTS): Initialize
8468         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8469         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8470         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
8471         * modules/spawn (Makefile.am): Substitute
8472         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8473         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8474         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
8475         * modules/posix_spawn_file_actions_addfchdir: New file.
8476         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
8477         signature.
8478         * doc/posix-functions/posix_spawn.texi: Mention the new module.
8479         * doc/posix-functions/posix_spawnp.texi: Likewise.
8480         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
8481         Likewise.
8483 2019-06-10  Bruno Haible  <bruno@clisp.org>
8485         doc: Document existence of posix_spawn_file_actions_addchdir module.
8486         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
8487         the posix_spawn_file_actions_addchdir module.
8489 2019-06-10  Bruno Haible  <bruno@clisp.org>
8491         posix_spawn-internal: Fix module description.
8492         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
8493         from here...
8494         * modules/posix_spawnp (configure.ac): ... and here...
8495         * modules/posix_spawn-internal (configure.ac): ... to here.
8497 2019-06-10  Bruno Haible  <bruno@clisp.org>
8499         doc: Update and improve documentation of glibc functions.
8500         This is a series of commits that
8501         - updates the documentation to the state of glibc 2.29,
8502         - adds references to Linux man pages and glibc documentation,
8503         - marks Linux specific functions as such.
8504         These are the commits:
8505         doc: Update after removal of crypt functions from glibc 2.28.
8506         doc: Remove mention of function vm86 (does not exist on x86_64).
8507         doc: Remove mention of functions that are gone from glibc.
8508         doc: Mention that glibc no longer provides h_errno.
8509         doc: Mention the availability of specific functions in glibc versions.
8510         doc: Mention eaccess.
8511         doc: Add references to Linux man pages.
8512         doc: Add references to glibc documentation.
8513         doc: Mention inotify_* functions.
8514         doc: Mention ppoll.
8515         doc: Mention sched_getcpu.
8516         doc: Mention sync_file_range.
8517         doc: Mention epoll_pwait.
8518         doc: Mention eventfd, eventfd_read, eventfd_write.
8519         doc: Mention signalfd.
8520         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
8521         doc: Mention epoll_create1.
8522         doc: Mention getauxval.
8523         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
8524         doc: Mention nextdown, nextup.
8525         doc: Mention more ISO TS 18661-1 <math.h> functions.
8526         doc: Mention ISO TS 18661-1 <fenv.h> functions.
8527         doc: Mention getrandom, getentropy.
8528         doc: Mention strfromf, strfromd, strfroml.
8529         doc: Mention preadv2, pwritev2.
8530         doc: Mention copy_file_range.
8531         doc: Mention memfd_create.
8532         doc: Mention mlock2.
8533         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
8534         doc: Mention more ISO TS 18661-1 <math.h> functions.
8535         doc: Mention renameat2.
8536         doc: Mention statx.
8537         doc: Mention the ISO C11 multithreading header and functions.
8538         doc: Mention getcpu.
8539         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
8540         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
8541         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
8542         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
8543         doc: Some glibc functions also exist on Solaris 11.
8544         doc: Some glibc functions also exist on Solaris 11.4.
8545         doc: Some glibc functions also exist on FreeBSD.
8546         doc: Some glibc functions also exist on BeOS.
8547         doc: Some glibc functions also exist on Haiku.
8548         doc: Mark functions which exist only on Linux.
8549         doc: Mark functions which exist only on Linux and illumos.
8551 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8553         copy-file: fix typo
8554         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
8556         copy-file-range: simplify into a stub
8557         Based on a comment by Florian Weimer in:
8558         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
8559         It turns out that Emacs (which will use this module) won’t need an
8560         emulation and I suspect other programs won’t either, because these
8561         programs will need to fall back on read+write anyway.  Perhaps I
8562         am wrong and other programs will be able to use an emulation; if
8563         so, this patch can be reverted.
8564         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
8565         Just call it copy_file_range.
8566         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
8567         Check via AC_LINK_IFELSE.
8568         * modules/copy-file-range (Depends-on): Remove modules no longer used.
8570 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8572         copy-file: prefer copy_file_range
8573         * lib/copy-file.c: Do not include xalloc.h.
8574         (qcopy_file_preserving): Allocate a buffer only if
8575         copy_file_range does not suffice.  If the allocation fails
8576         don't give up; just use a small stack-based buffer.
8577         Prefer copy_file_range if it works.
8578         * modules/copy-file (Depends-on): Add copy-file-range.
8579         Remove xalloc.
8581         copy-file-range: new module
8582         * MODULES.html.sh: Add copy-file-range.
8583         * lib/copy-file-range.c, m4/copy-file-range.m4:
8584         * modules/copy-file-range: New files.
8585         * lib/unistd.in.h (copy_file_range): Declare.
8586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
8587         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
8588         * modules/unistd (unistd.h): Substitute them.
8590 2019-05-28  Bruno Haible  <bruno@clisp.org>
8592         binary-io: Attempted use of O_BINARY on consoles no longer fails.
8593         Reported by KO Myung-Hun <komh78@gmail.com> in
8594         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
8595         * lib/binary-io.h (__gl_setmode_check): Remove function.
8596         (set_binary_mode): Declare as notinline on DJGPP and EMX.
8597         * lib/binary-io.c (__gl_setmode_check): Remove function.
8598         (set_binary_mode): Define here on DJGPP and EMX. Inline
8599         __gl_setmode_check. In case of a tty, don't return an error code.
8601 2019-05-28  James Youngman  <jay@gnu.org>
8603         dirent-safer: Make opendir_safer usable from C++.
8604         * lib/dirent-safer.h: use extern "C".
8606 2019-05-28  James Youngman  <jay@gnu.org>
8608         canonicalize: Make canonicalize_filename_mode usable from C++.
8609         * lib/canonicalize.h: use extern "C".
8611 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
8613         prefix-gnulib-mk: Fix CPPFLAGS migration.
8614         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
8615         _a part of the library name.
8617 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8619         flexmember: update comments again
8620         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
8622         flexmember: update comment
8623         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
8625 2019-05-20  Bruno Haible  <bruno@clisp.org>
8627         setlocale: Improve fallback on macOS.
8628         * lib/setlocale.c (search): Optimize away a redundant strcmp()
8629         invocation.
8630         (locales_with_principal_territory): New array.
8631         (langcmp, get_main_locale_with_same_language): New functions.
8632         (locales_with_principal_language): New array.
8633         (terrcmp, get_main_locale_with_same_territory): New functions.
8634         (rpl_setlocale): When setlocale_single failed, try again with a locale
8635         that is more likely to exist. Don't warn if the environment variable
8636         SETLOCALE_VERBOSE is not set.
8638 2019-05-19  Bruno Haible  <bruno@clisp.org>
8640         localename: Fix default on macOS.
8641         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
8642         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
8643         (gl_locale_name_environ, gl_locale_name_default): Remove code for
8644         HAVE_CFLOCALECOPYCURRENT.
8645         * lib/localename.h (gl_locale_name_default): Update.
8647 2019-05-19  Karl Berry  <karl@freefriends.org>
8649         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
8650         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
8651         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
8653 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
8655         maintainer-makefile: catch uses of $< in non-implicit rules
8656         * top/maint.mk (sc_prohibit_magic_number_exit): New.
8658 2019-05-18  Bruno Haible  <bruno@clisp.org>
8660         threadlib: Provide an easy way to avoid mingw's winpthreads library.
8661         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
8662         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
8663         gl_use_threads accordingly.
8665 2019-05-18  Bruno Haible  <bruno@clisp.org>
8667         pthread_sigmask: Fix compilation error with --enable-threads=windows.
8668         Reported by Tim Rühsen in
8669         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
8670         and Michele Locati in
8671         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
8672         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
8673         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
8674         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
8675         in use and regardless which threads API is chosen.
8677 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8679         close-stream, closein, closeout: simplify
8680         I noticed this opportunity for simplification while drafting a
8681         new, related module that I haven’t had time to finish yet.
8682         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
8683         * modules/close-stream (Files): Remove m4/close-stream.m4.
8684         (configure.ac): Omit gl_CLOSE_STREAM.
8685         * modules/closein (Files): Remove m4/closein.m4
8686         (configure.ac): Omit gl_CLOSEIN.
8687         * modules/closeout (Files): Remove m4/closeout.m4.
8688         (configure.ac): Omit gl_CLOSEOUT.
8690 2019-05-12  Bruno Haible  <bruno@clisp.org>
8692         libtool-next-version: New program.
8693         * build-aux/libtool-next-version: New file.
8695 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
8696             Bruno Haible  <bruno@clisp.org>
8698         version-etc: Ease translation.
8699         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
8700         URLs and formatting newlines out of translatable string.
8702 2019-05-11  Bruno Haible  <bruno@clisp.org>
8704         gnupload: Explain how to create symlinks.
8705         * build-aux/gnupload (usage): Add an example that creates symlinks.
8707 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8709         fpucw: port to gcc -pedantic
8710         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
8711         Use __extension__ if using ({ ... }).
8713         crypto/af_alg: port to strict C compilers
8714         * lib/af_alg.c: Include af_alg.h regardless, so that the
8715         compilation unit is nonempty.
8717 2019-05-10  Bruno Haible  <bruno@clisp.org>
8719         base64: Avoid false positive warning from Coverity.
8720         Reported by Kamil Dudka <kdudka@redhat.com>.
8721         Idea by Paul Eggert.
8722         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
8723         '& 0x3f' to the array index expressions. This convinces Coverity that
8724         there is no out-of-bounds array reference, regardless of the input.
8726 2019-05-09  Bruno Haible  <bruno@clisp.org>
8728         gettext: Update to gettext 0.20.
8729         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
8730         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
8731         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
8732         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
8733         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
8734         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
8735         (configure.ac): Request infrastructure compatible with gettext 0.20.
8736         * m4/glibc2.m4: Remove file.
8737         * m4/intdiv0.m4: Remove file.
8738         * m4/intl.m4: Remove file.
8739         * m4/intldir.m4: Remove file.
8740         * m4/intmax.m4: Remove file.
8741         * m4/printf-posix.m4: Remove file.
8742         * m4/uintmax_t.m4: Remove file.
8743         * m4/gettext.m4: Update from gettext 0.20.
8744         * m4/po.m4: Likewise.
8746 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8748         verify: remove verify_true
8749         * NEWS: Mention this.
8750         * lib/verify.h (verify_true): Remove.
8751         * tests/test-verify.c (item): Test verify_expr, not verify_true.
8753         Support C2X and C++17 static_assert
8754         C2X and C++17 finally added support for a simple, single-argument
8755         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
8756         doing back in 2005.  Implement static_assert on older platforms.
8757         The only remaining advantage of ‘verify’ is a shorter name.
8758         * doc/posix-headers/assert.texi (assert.h):
8759         * doc/verify.texi (Compile-time Assertions):
8760         Modernize for C2X and C++17.
8761         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
8762         New macros.
8763         (_GL_HAVE__STATIC_ASSERT): Remove.
8764         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
8765         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
8766         string.  All callers changed.
8767         (_GL_VERIFY): Require 3 or more args, of which only the first 2
8768         are used.  All callers changed.
8769         (_Static_assert): Allow either 1 or 2 args, and define if
8770         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
8771         !_GL_HAVE__STATIC_ASSERT.
8772         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
8773         of defining if !_GL_HAVE_STATIC_ASSERT.
8774         (verify_expr, verify): Don’t bother trying to copy the expression
8775         into the diagnostic, since 1-argument static_assert doesn’t.
8776         (verify): Prefer 1-argument _Static_assert if it works.
8777         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
8779 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8781         Fix _GL_HAVE__STATIC_ASSERT typo
8782         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
8783         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
8785 2019-05-05  Bruno Haible  <bruno@clisp.org>
8787         wcwidth: Ensure width 1, not 2, for ambiguous characters.
8788         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
8789         via Akim Demaille <akim.demaille@gmail.com>.
8790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
8791         en_US.UTF-8 locale, since that is more likely to be present than an
8792         fr_FR.UTF-8 locale.
8793         * tests/test-wcwidth.c (main): Check the width of U+2202.
8794         * doc/posix-functions/wcwidth.texi: Mention the issue.
8796 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8798         Port manywarnings to GCC 9
8799         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
8800         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
8801         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
8802         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
8803         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
8804         --help=warnings output.
8805         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
8806         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
8807         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
8809 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
8811         Sync lib/mktime-internal.h from glibc
8812         * config/srclist.txt: Add entry for lib/mktime-internal.h.
8813         * lib/mktime-internal.h: Autoupdate.
8815 2019-04-28  Bruno Haible  <bruno@clisp.org>
8817         tls tests: Prevent that the test takes too long.
8818         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
8819         (main): Let the test fail if it takes more than 10 minutes.
8820         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
8822 2019-04-27  Bruno Haible  <bruno@clisp.org>
8824         lock tests: Prevent that the test takes too long.
8825         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
8826         (main): Let the test fail if it takes more than 10 minutes.
8827         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
8829 2019-04-27  Bruno Haible  <bruno@clisp.org>
8831         localename: Fix crash on mingw (regression from 2018-11-23).
8832         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
8833         locale name that is null.
8835 2019-04-27  Bruno Haible  <bruno@clisp.org>
8837         Fix gcc warnings on 64-bit mode mingw.
8838         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
8839         * lib/gl_array_list.c: Likewise.
8840         * lib/gl_array_map.c: Likewise.
8841         * lib/gl_array_set.c: Likewise.
8842         * lib/gl_carray_list.c: Likewise.
8843         * lib/gl_sublist.c: Likewise.
8844         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
8845         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
8846         * lib/gl_hash_map.c (uintptr_t): Likewise.
8847         * lib/gl_hash_set.c (uintptr_t): Likewise.
8848         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
8849         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
8850         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
8851         * lib/iconv.c (uintptr_t): Likewise.
8852         * lib/iconv_close.c (uintptr_t): Likewise.
8853         * tests/test-lock.c: Include <stdint.h>.
8854         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
8855         'long'.
8856         * modules/clean-temp (Depends-on): Add stdint.
8857         * modules/array-list (Depends-on): Likewise.
8858         * modules/array-map (Depends-on): Likewise.
8859         * modules/array-set (Depends-on): Likewise.
8860         * modules/carray-list (Depends-on): Likewise.
8861         * modules/sublist (Depends-on): Likewise.
8862         * modules/lock-tests (Depends-on): Likewise.
8864 2019-04-27  Bruno Haible  <bruno@clisp.org>
8866         error: Tweak indentation.
8867         * lib/error.c: Correct indentation.
8869 2019-04-27  Bruno Haible  <bruno@clisp.org>
8871         term-style-control: Fix gcc warning on mingw.
8872         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
8873         of i.
8875 2019-04-26  Bruno Haible  <bruno@clisp.org>
8877         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
8878         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
8880 2019-04-26  Bruno Haible  <bruno@clisp.org>
8882         relocatable-prog: Fix gcc warning on mingw.
8883         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
8884         on EMX.
8886 2019-04-02  Bruno Haible  <bruno@clisp.org>
8888         gitsub.sh: New file.
8889         * top/gitsub.sh: New file.
8891 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
8893         argmatch: use void* for raw memory pointers
8894         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
8895         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
8896         to "values", keep char* for strings.
8898 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
8900         prefix-gnulib-mk: fix the support for gnulib-po
8901         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
8902         Don't touch HAVE_* variables.
8903         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
8905 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
8907         di-set: allow free with 'ino_map' being NULL.
8908         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
8909         is NULL.  Bug introduced in commit 3703dbbe88dd.
8910         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
8911         as a test.
8913 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
8915         * lib/str-two-way.h: Fix comment typo.
8917 2019-04-13  Bruno Haible  <bruno@clisp.org>
8919         x-to-1: Restore ability to use original calling convention.
8920         * build-aux/x-to-1.in: Add comments. Accept the original form of
8921         HELP2MAN argument as well as the form expected since 2012-12-12.
8923 2019-04-13  Bruno Haible  <bruno@clisp.org>
8925         x-to-1: Avoid failure due to missing perl modules.
8926         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
8927         needs are installed.
8929 2019-04-13  Bruno Haible  <bruno@clisp.org>
8931         openmp-init: New module.
8932         * modules/openmp-init: New file.
8933         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
8934         the changes from 2019-04-09.
8936 2019-04-12  Bruno Haible  <bruno@clisp.org>
8938         signbit: Fix compilation error when gnulib's math.h exists twice.
8939         * lib/math.in.h (GNULIB_defined_signbit): New macro.
8941 2019-04-12  Bruno Haible  <bruno@clisp.org>
8943         openmp: Fix compilation error on platforms without OpenMP.
8944         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
8946 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
8948         mountlist: make parsing /proc/self/mountinfo more robust
8949         Cater for the following issues with mountinfo parsing (the first
8950         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
8951         in <https://bugs.gnu.org/35137>).
8952         1. The fields source, target, mntroot and fstype may contain characters
8953         like '\r'; sscanf(3) fails to read such values with the %s format
8954         specifier because it would stop at such characters.
8955         Example: "mount -t tmpfs tmpfs /foo^Mbar".
8956         The only true separator in that file is the ' ' character.
8957         2. The source field may be an empty string, which happens e.g. with
8958         "mount -t tmpfs '' /target".
8959         3. The fstype field may contain mangled characters as well which need
8960         unescaping.
8961         * lib/mountlist.c (terminate_at_blank): Add utility function.
8962         (read_file_system_list): In the block trying to read the mountinfo file,
8963         avoid using sscanf(3) with %s format; instead, parse the above fields
8964         separated by spaces one by one.
8965         This also handles the case when the source field is an empty string.
8966         Unescape the fstype field.
8968 2019-04-09  Bruno Haible  <bruno@clisp.org>
8970         openmp: Add workaround for 32-bit programs on AIX.
8971         * lib/omp.in.h: New file.
8972         * lib/omp-init.c: New file, based on lib/nproc.c.
8973         * m4/omp_h.m4: New file.
8974         * modules/openmp (Files): Add them.
8975         (Depends-on): Add include_next, c-ctype, setenv.
8976         (configure.ac): Invoke gl_OMP_H.
8977         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
8978         (Include): Mention <omp.h>.
8980 2019-04-09  Bruno Haible  <bruno@clisp.org>
8982         nproc: Fix return value for privileged processes.
8983         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
8984         getpid().
8986 2019-04-07  Bruno Haible  <bruno@clisp.org>
8988         Add copyright notices in several files.
8989         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
8990         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
8991         * lib/libunistring.valgrind: Likewise.
8992         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
8993         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
8994         * lib/memchr.valgrind: Likewise.
8995         * lib/memchr2.valgrind: Likewise.
8996         * lib/rawmemchr.valgrind: Likewise.
8997         * lib/relocatable.valgrind: Likewise.
8998         * lib/strchrnul.valgrind: Likewise.
9000 2019-03-25  Bruno Haible  <bruno@clisp.org>
9002         term-style-control tests: Fix link error.
9003         Reported by Tom G. Christensen in
9004         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
9005         * modules/term-style-control-tests (Makefile.am): Link
9006         test-term-style-control-hello and test-term-style-control-yes against
9007         LIBINTL.
9009 2019-03-24  Bruno Haible  <bruno@clisp.org>
9011         term-style-control: Add tests.
9012         * tests/test-term-style-control-hello.c: New file.
9013         * tests/test-term-style-control-yes.c: New file.
9014         * modules/term-style-control-tests: New file.
9016         term-style-control: New module.
9017         * lib/term-style-control.h: New file, based on libtextstyle's
9018         term-ostream.oo.h and term-ostream.oo.c.
9019         * lib/term-style-control.c: New file, based on libtextstyle's
9020         term-ostream.oo.c.
9021         * modules/term-style-control: New file.
9023 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
9025         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
9026         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
9027         C++98 appears to be supported by Clang, but not by GCC nor ICC.
9029 2019-03-23  Bruno Haible  <bruno@clisp.org>
9031         Support cross-compilation to musl libc.
9032         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
9033         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
9034         musl libc.
9035         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9036         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
9037         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9038         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9039         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9040         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
9041         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9042         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
9043         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9044         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
9045         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
9046         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
9047         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9048         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9049         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
9050         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
9051         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
9052         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9053         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
9054         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9055         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9057         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
9058         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
9060         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
9061         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
9062         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
9063         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
9064         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9065         * m4/log.m4 (gl_FUNC_LOG): Likewise.
9066         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
9067         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
9068         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
9069         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
9070         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
9071         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
9072         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
9073         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
9074         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
9075         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
9076         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
9077         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
9078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9079         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
9080         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
9081         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
9082         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
9083         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
9084         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
9085         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
9086         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
9087         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9088         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
9089         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9090         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
9091         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
9092         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
9093         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
9094         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9095         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9096         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9097         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9098         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
9099         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9100         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9102         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
9103         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9104         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
9105         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9106         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9107         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9108         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
9109         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
9110         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
9111         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9114 2019-03-23  Bruno Haible  <bruno@clisp.org>
9116         posix_spawn_file_actions_*: Document musl libc bugs.
9117         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9118         the bug.
9119         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
9120         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
9121         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
9122         cross-compiling to a musl system, guess no.
9123         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
9124         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
9126 2019-03-23  Bruno Haible  <bruno@clisp.org>
9128         futimens: Document musl libc bug.
9129         * doc/posix-functions/futimens.texi: Mention the bug.
9130         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
9131         cross-compiling, guess no on glibc and musl systems.
9133 2019-03-23  Bruno Haible  <bruno@clisp.org>
9135         Clarify that cross-compilation guesses are guesses.
9136         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
9137         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
9138         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
9139         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
9140         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
9141         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
9142         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
9143         gl_cv_glob_lists_symlinks.
9144         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
9145         'guessing ' to ac_cv_func_malloc_0_nonnull.
9146         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
9147         'guessing ' to ac_cv_func_realloc_0_nonnull.
9148         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
9149         'guessing ' to gl_cv_func_poll.
9150         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
9151         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
9152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
9154 2019-03-23  Bruno Haible  <bruno@clisp.org>
9156         strtold: Fix typo.
9157         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
9159 2019-03-23  Bruno Haible  <bruno@clisp.org>
9161         noreturn: In C++ mode with clang, use _Noreturn as fallback.
9162         Reported by Akim Demaille.
9163         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
9164         [[noreturn]] would not work, use _Noreturn instead.
9166 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
9168         libtextstyle-optional: Fix compiler warnings.
9169         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
9170         as unused.
9172 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
9174         bitset: fix memory leaks
9175         Reported by Bruno Haible.
9176         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
9177         * lib/bitset/vector.c (vbitset_free): New.
9178         (vbitset_vtable): Use it.
9180 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
9182         bitset: minor changes
9183         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
9184         * lib/bitset/table.c: Formatting changes.
9185         Remove useless braces.
9186         Prefer using else in cascades of if/else-if with returns.
9187         * lib/bitset/vector.c: Reduce scopes.
9189 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
9191         bitset: expose bitset_resize
9192         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
9193         * tests/test-bitset.c (check_attributes): Check bitset_resize.
9194         (main): Use a variable bitset as reference, since fixed does not support resize.
9196 2019-03-19  Bruno Haible  <bruno@clisp.org>
9198         doc: Document the 'stdnoreturn' and 'noreturn' modules.
9199         Reported by Akim Demaille.
9200         * doc/noreturn.texi: New file.
9201         * doc/gnulib.texi: Include it.
9203 2019-03-19  Bruno Haible  <bruno@clisp.org>
9205         doc: Document how to use 'static inline'.
9206         * doc/static-inline.texi: New file.
9207         * doc/gnulib.texi: Include it.
9209 2019-03-19  Bruno Haible  <bruno@clisp.org>
9211         libtextstyle-optional: Add tests.
9212         * tests/test-libtextstyle.c: New file, based on libtextstyle's
9213         adhoc-tests/hello.c.
9214         * tests/test-libtextstyle-default.css: New file, copied from
9215         libtextstyle's adhoc-tests/hello-default.css.
9216         * modules/libtextstyle-optional-tests: New file.
9218         libtextstyle-optional: New module.
9219         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
9220         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
9221         * modules/libtextstyle-optional: New file.
9223 2019-03-19  Bruno Haible  <bruno@clisp.org>
9225         c-stack: Make signal handlers more reliable.
9226         * lib/c-stack.c (progname): New variable.
9227         (die): Use it.
9228         (c_stack_action): Initialize it.
9229         (segv_handler): Save and restore errno.
9231 2019-03-19  Bruno Haible  <bruno@clisp.org>
9233         Help making signal handlers more reliable.
9234         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
9235         _GL_ASYNC_SAFE into config.h.
9236         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
9237         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
9238         argument.
9239         * lib/fatal-signal.c (action_t, uninstall_handlers,
9240         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
9241         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
9242         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
9243         _GL_ASYNC_SAFE.
9244         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
9245         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
9247 2019-03-18  Bruno Haible  <bruno@clisp.org>
9249         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
9250         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
9251         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
9253 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
9255         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
9256         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
9257         GCC 4.8.
9259 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
9261         fts: minor simplification
9262         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
9264 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
9266         bitset, timevar: Depend on c99.
9267         Reported by Bruno Haible.
9268         * modules/bitset, modules/timevar (Depends-on): Add c99.
9270 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
9272         bitset: a bit (...) more tests
9273         * tests/test-bitset.c (check_attributes): Check zero and ones.
9275 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
9277         bitset: fix overflows.
9278         Reported by Bruno Haible.
9279         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
9280         * lib/bitset/table.c (tbitset_test): last_bit is the position of
9281         the bit in the array of bitset_word, so be sure to take its modulo
9282         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
9283         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
9285 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
9287         bitset: style changes.
9288         * lib/bitset/table.c: Use NULL, not 0, for pointers.
9289         Formatting changes.
9290         (tbitset_list): Reduce scopes.
9292 2019-03-16  Bruno Haible  <bruno@clisp.org>
9294         fatal-signal: Pass the signal number to the action.
9295         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
9296         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
9297         (fatal_signal_handler): Pass the signal number to the action.
9298         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
9299         signal number as parameter.
9300         (create_temp_dir): Update.
9301         * lib/wait-process.c (cleanup_slaves_action): New function.
9302         (register_slave_subprocess): Update at_fatal_signal invocation.
9303         * NEWS: Mention the change.
9305 2019-03-16  Bruno Haible  <bruno@clisp.org>
9307         fatal-signal: Add function that lists the fatal signals.
9308         * lib/fatal-signal.h (get_fatal_signals): New declaration.
9309         * lib/fatal-signal.c (get_fatal_signals): New function.
9311 2019-03-14  Bruno Haible  <bruno@clisp.org>
9313         isatty: Make it return true in Cygwin consoles on native Windows.
9314         * lib/isatty.c: Include <string.h>.
9315         (GetProcAddress): New macro.
9316         (GetNamedPipeClientProcessIdFuncType): New type.
9317         (GetNamedPipeClientProcessIdFunc): New variable.
9318         (QueryFullProcessImageNameFuncType): New type.
9319         (QueryFullProcessImageNameFunc): New variable.
9320         (initialized): New variable.
9321         (initialize): New function.
9322         (IsCygwinConsoleHandle): New function.
9323         (isatty): Invoke it.
9324         * doc/posix-functions/isatty.texi: Mention the issue.
9326 2019-03-14  Bruno Haible  <bruno@clisp.org>
9328         all: Update URLs to msdn.microsoft.com.
9329         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
9330         was moved to docs.microsoft.com.
9332 2019-03-13  Bruno Haible  <bruno@clisp.org>
9334         gnulib-tool: Clarify the coding style.
9335         Suggested by Pavel Raiskup <praiskup@redhat.com>.
9336         * gnulib-tool: Add comment about coding style.
9338 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9340         strtod: fix clash with strtold
9341         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
9342         * lib/strtod.c (compute_minus_zero, minus_zero):
9343         Simplify by remving the macro / external variable,
9344         and having just a function.  User changed.  This avoids
9345         the need for an external variable that might clash.
9347 2019-03-10  Bruno Haible  <bruno@clisp.org>
9349         alloca-opt: Fix conflict mingw's new <alloca.h> file.
9350         Reported by Eli Zaretskii <eliz@gnu.org>.
9351         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
9352         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
9353         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
9355 2019-03-10  Bruno Haible  <bruno@clisp.org>
9357         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
9358         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
9359         is in use.
9360         * tests/test-printf-posix2.c: Likewise.
9362 2019-03-10  Bruno Haible  <bruno@clisp.org>
9364         uninorm tests: Free allocated memory.
9365         * tests/uninorm/test-u32-normalize-big.h
9366         (struct normalization_test_file): Remove 'const' from allocated member.
9367         (free_normalization_test_file): New declaration.
9368         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
9369         memory.
9370         (free_normalization_test_file): New function.
9371         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
9372         'struct normalization_test_file' contents.
9373         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
9374         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
9375         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
9377 2019-03-10  Bruno Haible  <bruno@clisp.org>
9379         di-set: Fix memory leak.
9380         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
9381         not free().
9383 2019-03-10  Bruno Haible  <bruno@clisp.org>
9385         tests: Free allocated memory.
9386         Reported by <deltatau@protonmail.com> via Assaf Gordon.
9387         * tests/test-astrxfrm.c (main): Free allocated memory.
9388         * tests/test-bitset.c (compare, check_attributes): Free allocated
9389         bitsets.
9390         * tests/test-filenamecat.c (main): Free allocated memory.
9391         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
9392         * tests/test-freadptr.c (main): Likewise.
9393         * tests/test-freadptr2.c (main): Free allocated memory.
9394         * tests/test-freadseek.c (main): Likewise.
9395         * tests/test-gc-arcfour.c (main): Close allocated context.
9396         * tests/test-gc-arctwo.c (main): Likewise.
9397         * tests/test-gc-des.c (main): Close all allocated contexts.
9398         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
9399         * tests/test-pipe-filter-ii1.c (main): Likewise.
9400         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
9401         allocated file actions.
9402         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
9403         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
9404         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
9405         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
9406         * tests/test-strfmon_l.c (main): Free allocated locales.
9407         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
9408         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
9409         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
9410         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
9411         * tests/unistr/test-chr.h (main): Free input32.
9412         * tests/unistr/test-strchr.h (test_strchr): Likewise.
9414 2019-03-10  Bruno Haible  <bruno@clisp.org>
9416         tests: Prepare for using valgrind.
9417         * tests/*.sh: Invoke all test programs through ${CHECKER}.
9418         * tests/*/*.sh: Likewise.
9419         * tests/test-freadptr.c (main): Update accordingly.
9420         * tests/test-freadseek.c (main): Likewise.
9422 2019-03-09  Bruno Haible  <bruno@clisp.org>
9424         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
9425         * lib/get-rusage-as.c (get_rusage_as): When compiled by
9426         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
9427         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
9428         before exiting.
9430 2019-03-09  Jim Meyering  <meyering@fb.com>
9432         test-userspec.c: don't print NULL
9433         * tests/test-userspec.c (main): A test release of gcc,
9434         9.0.1 20190310, warned that this test would attempt to
9435         print a NULL pointer via a %s printf format.  Fix that
9436         and remove the unnecessary preceding "!diag" conjunct.
9437         Also add a comment.
9439 2019-03-03  Bruno Haible  <bruno@clisp.org>
9441         getloadavg: Write NULL for the null pointer.
9442         Reported by Michal Privoznik <mprivozn@redhat.com>.
9443         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
9445 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
9447         alloca, tsearch-tests: Write NULL for the null pointer.
9448         * lib/alloca.c (i00afunc): Write NULL instead of 0.
9449         * tests/test-tsearch.c (mangle_tree): Likewise.
9451 2019-03-09  Bruno Haible  <bruno@clisp.org>
9453         strfmon_l: Fix -fsanitize=address finding.
9454         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
9455         <string.h>.
9456         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
9457         (directive_t, directives_t): New types.
9458         (fmon_parse): New function.
9459         (rpl_strfmon_l): Don't call va_arg more often than needed for the
9460         format string. Consume 'long double' arguments in places where the
9461         format string indicates so.
9462         * modules/strfmon_l (Depends-on): Add 'stdbool'.
9464 2019-03-09  Bruno Haible  <bruno@clisp.org>
9466         crypto/des: Fix undefined behaviour.
9467         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
9468         shift operations on 'int'.
9470 2019-03-09  Bruno Haible  <bruno@clisp.org>
9472         Fix undefined behaviour.
9473         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
9474         'unsigned int', to avoid shift operations on 'int'.
9475         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
9476         * tests/test-count-leading-zeros.c (main): Use a random number that has
9477         as many bits as TYPE, not only 2*15 or 2*31 bits.
9478         * tests/test-count-trailing-zeros.c (main): Likewise.
9479         * tests/test-count-one-bits.c (main): Likewise.
9480         * tests/test-memmem.c: Don't include "null-ptr.h".
9481         (main): Use zerosize_ptr() instead of null_ptr().
9482         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
9484 2019-03-08  Bruno Haible  <bruno@clisp.org>
9486         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
9487         Reported by Jeffrey Walton <noloader@gmail.com>.
9488         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
9489         invoke memset with a zero size.
9490         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
9491         Likewise.
9492         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
9493         Adjust accordingly.
9495 2019-03-08  Bruno Haible  <bruno@clisp.org>
9497         unistr/*, uniconv/*: Fix undefined behaviour.
9498         Reported by Jeffrey Walton <noloader@gmail.com>.
9499         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
9500         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
9501         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
9502         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9504 2019-03-08  Bruno Haible  <bruno@clisp.org>
9506         unistr/u8-cmp: Fix undefined behaviour.
9507         Reported by Jeffrey Walton <noloader@gmail.com>.
9508         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
9510 2019-03-08  Bruno Haible  <bruno@clisp.org>
9512         unictype/numeric: Fix undefined behaviour.
9513         Reported by Jeffrey Walton <noloader@gmail.com>.
9514         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
9515         on shift overflow, caught by "gcc -fsanitize=undefined".
9516         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
9517         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
9518         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
9520 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9522         git-version-gen: fix --version copyright year
9523         * build-aux/git-version-gen, build-aux/move-if-change (version):
9524         --version output copyright year is now taken from script year,
9525         so that it no longer needs to be updated by hand.
9527 2019-03-04  Bruno Haible  <bruno@clisp.org>
9529         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
9530         This approach supports relocatable installation of shared libraries
9531         which depend on other shared libraries from the same package.
9532         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
9533         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
9534         wrapper around the original LIBTOOL.
9535         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
9536         token '@loader_path' instead of '$ORIGIN'.
9537         * build-aux/libtool-reloc: New file.
9538         * modules/relocatable-prog (Files): Add it.
9539         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
9540         the recent changes. Document the need to set the *_LDFLAGS of libraries.
9541         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
9542         Makefile.am, not in configure.ac.
9544 2019-03-04  Bruno Haible  <bruno@clisp.org>
9546         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
9547         * build-aux/install-reloc: Revert change.
9548         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
9550 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9552         nstrftime: support the ‘+’ flag
9553         * lib/nstrftime.c (add, __strftime_internal):
9554         Add support for the ‘+’ flag introduced in POSIX.1-2017.
9555         (__strftime_internal): New arg ‘width’.  All uses changed.
9556         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
9558 2019-02-24  Bruno Haible  <bruno@clisp.org>
9560         relocatable-prog: Improve verbose output.
9561         * build-aux/install-reloc (func_verbose): Escape characters that would
9562         be interpreted by the shell.
9564 2019-02-24  Bruno Haible  <bruno@clisp.org>
9566         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
9567         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
9568         "sys/stat.h".
9569         * lib/lstat.c: Likewise.
9570         * lib/fstat.c: Likewise.
9571         * lib/fstatat.c: Likewise.
9573 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
9575         long-options: add parse_gnu_standard_options_only
9576         Discussed in https://bugs.gnu.org/33468 .
9578         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
9579         (parse_gnu_standard_options_only): Add function to process
9580         the GNU default options --help and --version and fail for
9581         any other unknown long or short option. See
9582         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
9583         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
9584         * modules/long-options (depends-on): Add stdbool, exitfail.
9585         * top/maint.mk (sc_prohibit_long_options_without_use): Update
9586         syntax-check rule, add new function name.
9588 2019-02-23  Bruno Haible  <bruno@clisp.org>
9590         relocatable-prog: Update documentation.
9591         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
9592         the recent changes.
9594 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9596         nstrftime: tweak arg order
9597         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
9598         All callers changed.  Suggested by TAMUKI Shoichi in:
9599         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
9601 2019-02-23  Bruno Haible  <bruno@clisp.org>
9603         relocatable-prog: Use wrapper-free installation also on Mac OS X.
9604         Reported by Paul Smith <psmith@gnu.org>.
9605         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
9606         (func_relativize): New function, from gnulib-tool.
9607         Handle mode 'macosx' through invocations of 'otool' and
9608         'install_name_tool'.
9609         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
9610         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
9611         'install-reloc' invocation with mode 'macosx'.
9613 2019-02-23  Bruno Haible  <bruno@clisp.org>
9615         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
9616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
9617         Hurd with glibc >= 2.27.
9619 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9621         nstrftime: merge glibc strftime changes
9622         This incorporates:
9623         2019-02-11 Fix a few whitespace arrangement inconsistencies
9624         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
9625         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
9626         2019-01-11 strftime: use the "L_" macro with character literals
9627         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
9628         callers changed.  Default width of %Ey is now 2.  This is needed
9629         for proper handling of Japanese dates starting on 2019-05-01.
9631 2019-02-19  Bruno Haible  <bruno@clisp.org>
9633         relocatable-prog: Use $ORIGIN trick on more platforms.
9634         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
9635         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
9636         Solaris >= 10, Haiku. But don't use it on Android.
9637         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
9638         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
9640 2019-02-19  Bruno Haible  <bruno@clisp.org>
9642         progreloc: Speed up executable lookup on various platforms.
9643         * lib/progreloc.c: Include <errno.h>.
9644         (safe_read, full_read): New functions.
9645         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
9646         prefer the information from the /proc file system to a PATH search.
9648 2019-02-19  Bruno Haible  <bruno@clisp.org>
9650         progreloc: Simplify code for Android.
9651         * lib/progreloc.c (executable_fd): Don't define on Android.
9652         (maybe_executable, find_executable): Don't use executable_fd on Android.
9654 2019-02-15  Bruno Haible  <bruno@clisp.org>
9656         gnulib-tool: Support --import with just a few tests, not --with-tests.
9657         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
9658         'inctests' when generating files; use 'inctests' only for computing the
9659         transitive closure.
9661 2019-02-14  Bruno Haible  <bruno@clisp.org>
9663         gnulib-tool: Improve handling of multiple --local-dir options.
9664         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
9665         options work.
9666         * gnulib-tool (func_path_prepend): Remove function.
9667         (func_path_foreach): Make IFS handling more robust.
9668         (local_gnulib_path): Collect --local-dir values using func_path_append,
9669         not func_path_prepend.
9670         (func_determine_path_separator): Make IFS handling more robust.
9671         (func_lookup_file_cb): New function.
9672         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
9673         func_lookup_local_file. Apply the patches in the reverse order of their
9674         origin in $local_gnulib_path.
9675         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
9676         * NEWS: Mention that the first --local-dir option is the one with
9677         highest priority.
9679 2019-02-10  Bruno Haible  <bruno@clisp.org>
9681         libtextstyle: New module.
9682         * m4/libtextstyle.m4: New file.
9683         * modules/libtextstyle: New file.
9685 2019-02-05  Bruno Haible  <bruno@clisp.org>
9687         declared.sh: Fix bug with variables of pointer type.
9688         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
9689         before the symbol to be omitted if the preceding character is a '*'.
9691 2019-02-04  Bruno Haible  <bruno@clisp.org>
9693         Add script for running tests under valgrind.
9694         * build-aux/run-test: New file, from GNU libunistring.
9695         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
9696         as well.
9698 2019-02-04  Bruno Haible  <bruno@clisp.org>
9700         declared.sh: Fix --version output.
9701         * build-aux/declared.sh (func_version): Update package name.
9703 2019-02-03  Bruno Haible  <bruno@clisp.org>
9705         Add script for determining the set of symbols to export from a library.
9706         * build-aux/declared.sh: New file, from GNU libunistring.
9707         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
9708         Mention it.
9710 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9712         vla: add commentary about VLA_ELEMS
9713         * lib/vla.h (VLA_ELEMS): Add commentary,
9714         some inspired by Bruno Haible’s proposal in:
9715         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
9717         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
9718         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
9719         assume the C99 signatures for strtod and strtold.  Programs that
9720         require stricter adherence to C99 should also use the strtod and
9721         strtold modules as needed, and we no longer need the
9722         HAVE_C99_STRTOLD macro.
9723         * NEWS: Mention this.
9724         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
9725         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
9726         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
9727         (Files): Remove m4/c-strtod.m4.
9728         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
9729         exists.
9731 2019-02-02  Bruno Haible  <bruno@clisp.org>
9733         fma: Improve code style.
9734         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
9736 2019-02-02  Colin Watson  <cjwatson@debian.org>
9738         *-map tests: Fix compilation error.
9739         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
9740         * tests/test-hash_map.c: Likewise.
9741         * tests/test-linkedhash_map.c: Likewise.
9743 2019-01-31  Bruno Haible  <bruno@clisp.org>
9745         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
9746         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
9747         GNULIB_defined_strtold_function): New macros.
9748         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
9749         (STRTOD): Ignore HAVE_C99_STRTOLD.
9750         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
9751         deemed buggy. But do use it on platforms where uselocale exists and is
9752         usable.
9753         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
9754         deemed buggy. On platforms where uselocale exists and is usable, use
9755         uselocale and strtod/strtold.
9756         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
9757         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
9758         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
9759         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
9760         (Depends-on): Add strtod.
9761         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
9762         (Depends-on): Add strtold.
9764 2019-01-31  Bruno Haible  <bruno@clisp.org>
9766         strtod, strtold: Use the locale's decimal point.
9767         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
9768         (decimal_point_char): New function, copied from lib/vasnprintf.c.
9769         (parse_number): Add a radixchar argument. Use it instead of '.'.
9770         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
9771         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
9772         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
9773         * tests/test-strtod1.c: New file.
9774         * tests/test-strtod1.sh: New file.
9775         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
9776         locale-fr.m4 and its dependencies.
9777         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
9778         (Makefile.am): Arrange to compile test-strtod1.c and run
9779         test-strtod1.sh.
9780         * tests/test-strtold1.c: New file.
9781         * tests/test-strtold1.sh: New file.
9782         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
9783         locale-fr.m4 and its dependencies.
9784         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
9785         (Makefile.am): Arrange to compile test-strtold1.c and run
9786         test-strtold1.sh.
9788 2019-01-31  Bruno Haible  <bruno@clisp.org>
9790         strtod, strtold tests: Simplify tests.
9791         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
9792         * tests/test-strtold.c (main): Likewise.
9794 2019-01-31  Bruno Haible  <bruno@clisp.org>
9796         strtod, strtold: Avoid unnecessary rounding errors.
9797         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
9798         decimal to DOUBLE conversion.
9800 2019-01-31  Bruno Haible  <bruno@clisp.org>
9802         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
9803         * lib/strtod.c (STRTOD): When there is an extra character after the
9804         exponent marker 'p', reparse the number.
9805         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
9806         * doc/posix-functions/strtold.texi: Likewise.
9808 2019-01-29  Bruno Haible  <bruno@clisp.org>
9810         strtold: Add tests.
9811         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
9812         * modules/strtold-tests: New file.
9814 2019-01-29  Bruno Haible  <bruno@clisp.org>
9816         strtold: New module.
9817         * lib/stdlib.in.h (strtold): New declaration.
9818         * lib/strtold.c: New file.
9819         * lib/strtod.c: Consider USE_LONG_DOUBLE.
9820         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
9821         USE_LDEXP): New macros.
9822         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
9823         USE_LONG_DOUBLE.
9824         (underlying_strtod): Remove function. Replace with some macros.
9825         Re-add the code for a missing underlying function that was removed on
9826         2013-02-19.
9827         * m4/strtold.m4: New file.
9828         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
9829         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
9830         REPLACE_STRTOLD.
9831         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
9832         REPLACE_STRTOLD.
9833         * modules/strtold: New file.
9834         * doc/posix-functions/strtold.texi: Document the new module.
9836 2019-01-29  Bruno Haible  <bruno@clisp.org>
9838         strtod: Fix compilation error on IRIX 6.5.
9839         * modules/strtod (Depends-on): Add 'math'.
9841 2019-01-28  Bruno Haible  <bruno@clisp.org>
9843         Fix build error when building a shared libunistring on Android.
9844         * tests/uninorm/test-nfc.c (n): Don't define on Android.
9845         (main): Add 'volatile', to defeat a GCC optimization that would
9846         eliminate the reference.
9847         * tests/uninorm/test-nfd.c (n): Don't define on Android.
9848         (main): Add 'volatile', to defeat a GCC optimization that would
9849         eliminate the reference.
9850         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
9851         (main): Add 'volatile', to defeat a GCC optimization that would
9852         eliminate the reference.
9853         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
9854         (main): Add 'volatile', to defeat a GCC optimization that would
9855         eliminate the reference.
9857 2019-01-27  Bruno Haible  <bruno@clisp.org>
9859         Avoid build errors due to wrong references between modules.
9860         * lib/uninorm/canonical-decomposition.c: Include
9861         "uninorm/decomposition-table.h", not "decomposition-table.h".
9862         * lib/uninorm/decomposition.c: Likewise.
9863         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
9864         not "decompose-internal.h".
9865         * lib/uninorm/u16-normalize.c: Likewise.
9866         * lib/uninorm/u32-normalize.c: Likewise.
9867         * lib/uninorm/uninorm-filter.c: Likewise.
9868         * lib/uninorm/nfkc.c: Likewise.
9869         * lib/uninorm/nfkd.c: Likewise.
9870         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
9871         "caseprop.h".
9872         * lib/unicase/u8-ct-totitle.c: Likewise.
9873         * lib/unicase/u8-prefix-context.c: Likewise.
9874         * lib/unicase/u8-suffix-context.c: Likewise.
9875         * lib/unicase/u16-casemap.c: Likewise.
9876         * lib/unicase/u16-ct-totitle.c: Likewise.
9877         * lib/unicase/u16-prefix-context.c: Likewise.
9878         * lib/unicase/u16-suffix-context.c: Likewise.
9879         * lib/unicase/u32-casemap.c: Likewise.
9880         * lib/unicase/u32-ct-totitle.c: Likewise.
9881         * lib/unicase/u32-prefix-context.c: Likewise.
9882         * lib/unicase/u32-suffix-context.c: Likewise.
9883         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
9884         "unicasemap.h".
9885         * lib/unicase/u8-toupper.c: Likewise.
9886         * lib/unicase/u8-ct-tolower.c: Likewise.
9887         * lib/unicase/u8-ct-toupper.c: Likewise.
9888         * lib/unicase/u16-tolower.c: Likewise.
9889         * lib/unicase/u16-toupper.c: Likewise.
9890         * lib/unicase/u16-ct-tolower.c: Likewise.
9891         * lib/unicase/u16-ct-toupper.c: Likewise.
9892         * lib/unicase/u32-tolower.c: Likewise.
9893         * lib/unicase/u32-toupper.c: Likewise.
9894         * lib/unicase/u32-ct-tolower.c: Likewise.
9895         * lib/unicase/u32-ct-toupper.c: Likewise.
9896         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
9897         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
9898         * lib/unicase/u16-ct-casefold.c: Likewise.
9899         * lib/unicase/u32-ct-casefold.c: Likewise.
9901 2019-01-27  Bruno Haible  <bruno@clisp.org>
9903         gperf: Fix error when this module is required by some test module.
9904         * modules/gperf (Applicability): Set to 'all'.
9906 2019-01-27  Bruno Haible  <bruno@clisp.org>
9908         tmpfile: Add support for Android.
9909         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
9910         works.
9911         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
9912         Android.
9913         * modules/tmpfile (Depends-on): Add 'stdbool'.
9914         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
9915         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
9917 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
9919         bitsetv: allow free on NULL.
9920         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
9922 2019-01-27  Bruno Haible  <bruno@clisp.org>
9924         test-framework-sh: Improve maintainability.
9925         * tests/init.sh: Clarify what belongs together. Reorder definitions.
9927 2019-01-27  Bruno Haible  <bruno@clisp.org>
9929         tests: Don't assume that /tmp exists.
9930         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
9931         * tests/test-copy-acl-1.sh: Likewise.
9932         * tests/test-file-has-acl-1.sh: Likewise.
9933         * tests/test-copy-file-1.sh: Likewise.
9935 2019-01-27  Bruno Haible  <bruno@clisp.org>
9937         tests: Accommodate a shell that is not in /bin/sh.
9938         * tests/init.sh (setup_): Set srcdir and builddir.
9939         (BOURNE_SHELL): New variable.
9940         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
9941         * modules/file-has-acl-tests (Depends-on): Likewise.
9942         * modules/copy-file-tests (Depends-on): Likewise.
9943         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
9944         scripts through $BOURNE_SHELL.
9945         * tests/test-set-mode-acl-2.sh: Likewise.
9946         * tests/test-copy-acl-1.sh: Likewise.
9947         * tests/test-copy-acl-2.sh: Likewise.
9948         * tests/test-file-has-acl-1.sh: Likewise.
9949         * tests/test-file-has-acl-2.sh: Likewise.
9950         * tests/test-copy-file-1.sh: Likewise.
9951         * tests/test-copy-file-2.sh: Likewise.
9952         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
9953         invoker.
9954         * tests/test-copy-acl.sh (builddir): Likewise.
9955         * tests/test-file-has-acl.sh (builddir): Likewise.
9956         * tests/test-copy-file.sh (builddir): Likewise.
9957         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
9958         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
9959         * tests/test-vc-list-files-git.sh: Likewise.
9961 2019-01-27  Bruno Haible  <bruno@clisp.org>
9963         tests: Fix some "unused variable" warnings.
9964         * tests/test-fts.c (fts_dealloc): Remove unused variable.
9965         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
9966         * tests/test-striconveh.c (main): Move some variable into the
9967         '#if HAVE_ICONV'.
9968         * tests/test-striconveha.c (main): Likewise.
9969         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9970         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9971         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9972         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
9973         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
9974         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
9975         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9976         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9977         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9978         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
9979         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
9980         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
9981         * tests/test-tsearch.c (main): Move some variable into the
9982         '#if HAVE_INITSTATE'.
9984 2019-01-27  Bruno Haible  <bruno@clisp.org>
9986         unigbrk/uc-grapheme-breaks: Fix build failure.
9987         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
9988         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
9990 2019-01-27  Bruno Haible  <bruno@clisp.org>
9992         mountlist: Merge two .m4 files.
9993         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
9994         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
9995         * m4/ls-mntd-fs.m4: Remove file.
9996         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
9998 2019-01-27  Bruno Haible  <bruno@clisp.org>
10000         tests: Enable Linux specific tests on Android.
10001         * tests/test-flock.c (main): Treat Android like Linux.
10002         * tests/test-openat-safer.c (main): Likewise.
10004 2019-01-27  Bruno Haible  <bruno@clisp.org>
10006         relocatable-prog: Use Linux code on Android.
10007         * lib/progreloc.c: Treat Android like Linux.
10009 2019-01-26  Bruno Haible  <bruno@clisp.org>
10011         getloadavg: Add support for Android.
10012         * lib/getloadavg.c: Treat Android like Linux.
10014 2019-01-26  Bruno Haible  <bruno@clisp.org>
10016         vma-iter: Add support for Android.
10017         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
10018         * lib/vma-iter.c: Treat Android like Linux.
10019         * lib/get-rusage-data.c (get_rusage_data): Likewise.
10021 2019-01-26  Bruno Haible  <bruno@clisp.org>
10023         fts: Optimize on Android.
10024         * lib/fts.c: Treat Android like Linux.
10026 2019-01-26  Bruno Haible  <bruno@clisp.org>
10028         fts: Add support for Android.
10029         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
10030         defined by this module and the ones in libc.
10031         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
10033 2019-01-26  Bruno Haible  <bruno@clisp.org>
10035         mountlist: Use Linux code on Android.
10036         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
10037         (unescape_tab, read_file_system_list): Enable Linux code on Android
10038         as well.
10039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
10040         and endmntent.
10041         * modules/mountlist (Depends-on): Add 'getline'.
10043 2019-01-26  Bruno Haible  <bruno@clisp.org>
10045         localename tests: Fix test failure on Android.
10046         * modules/localename-tests (Depends-on): Add 'setlocale'.
10048 2019-01-26  Bruno Haible  <bruno@clisp.org>
10050         mountlist: Port better to Android.
10051         * lib/mountlist.c (MOUNTED): Redefine on Android.
10052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
10053         Android.
10055 2019-01-26  Bruno Haible  <bruno@clisp.org>
10057         striconveh: Fix use of uninitialized iconv_t.
10058         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
10059         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
10060         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
10062 2019-01-26  Bruno Haible  <bruno@clisp.org>
10064         nonblocking-socket-tests: Fix test failure on Android 4.3.
10065         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
10066         also on Android.
10068 2019-01-26  Bruno Haible  <bruno@clisp.org>
10070         sh-filename: Add support for Android 4.3.
10071         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
10073 2019-01-26  Bruno Haible  <bruno@clisp.org>
10075         ptsname_r: Work around bug on Android 4.3.
10076         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
10077         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
10078         correct.
10079         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
10080         is defined, just fix the return value.
10081         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
10082         The behaviour of musl libc is nothing to be "fixed", since it is
10083         compliant with the next POSIX standard.
10085 2019-01-26  Bruno Haible  <bruno@clisp.org>
10087         ttyname_r: Work around bug on Android 4.3.
10088         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
10089         * lib/ttyname_r.c (ttyname_r): Implement for Android.
10090         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
10091         * doc/posix-functions/ttyname.texi: Likewise.
10093 2019-01-25  Bruno Haible  <bruno@clisp.org>
10095         getprogname: Port to Android 4.3.
10096         * lib/getprogname.c (getprogname): On Android, take only the last
10097         component of __progname.
10099 2019-01-25  Bruno Haible  <bruno@clisp.org>
10101         wcrtomb: Work around bug on Android 4.3.
10102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
10103         the C locale.
10104         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
10105         which does not have the 'wctomb' function.
10106         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
10107         * tests/test-wcrtomb.c (main): Accept argument '5'.
10108         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
10110 2019-01-25  Bruno Haible  <bruno@clisp.org>
10112         setlocale: Work around bug on Android 4.3.
10113         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
10114         the "C" locale.
10115         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
10116         * doc/posix-functions/setlocale.texi: Mention the Android bug.
10118 2019-01-24  Bruno Haible  <bruno@clisp.org>
10120         memchr: Work around bug on Android <= 5.0.
10121         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
10122         * doc/posix-functions/memchr.texi: Mention the Android bug.
10124 2019-01-24  Bruno Haible  <bruno@clisp.org>
10126         random: Fix compilation error on Android 4.3.
10127         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
10128         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
10129         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
10130         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
10131         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
10132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
10133         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
10134         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
10135         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
10136         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
10137         REPLACE_INITSTATE, REPLACE_SETSTATE.
10138         * doc/posix-functions/random.texi: Correct the description of the
10139         situation on Android.
10140         * doc/posix-functions/srandom.texi: Likewise.
10141         * doc/posix-functions/rand.texi: Likewise.
10142         * doc/posix-functions/srand.texi: Likewise.
10144 2019-01-24  Bruno Haible  <bruno@clisp.org>
10146         mbtowc: Fix compilation error on Android 4.3.
10147         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
10148         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
10149         HAVE_MBTOWC.
10150         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
10151         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
10152         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
10153         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
10154         * doc/posix-functions/mbtowc.texi: Mention the change.
10156 2019-01-24  Bruno Haible  <bruno@clisp.org>
10158         fdatasync: Fix compilation error on Android 4.3.
10159         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
10160         test whether fdatasync() exists.
10162 2019-01-24  Bruno Haible  <bruno@clisp.org>
10164         unlinkat: Fix compilation error on Android 4.3.
10165         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
10166         also on Android.
10167         * doc/posix-functions/unlinkat.texi: Mention the issue.
10169 2019-01-24  Bruno Haible  <bruno@clisp.org>
10171         renameat: Fix compilation error on Android 4.3.
10172         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
10173         * doc/posix-functions/renameat.texi: Mention the issue.
10175 2019-01-24  Bruno Haible  <bruno@clisp.org>
10177         fchownat: Fix compilation error on Android 4.3.
10178         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
10179         use.
10180         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
10181         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
10182         * doc/posix-functions/fchownat.texi: Mention the issue.
10184 2019-01-23  Bruno Haible  <bruno@clisp.org>
10186         gnulib-tool: Support running testdirs on Android.
10187         * build-aux/test-driver.diff: New file.
10188         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
10189         build-aux/test-driver after running automake.
10191 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
10193         relocatable-prog: avoid warnings from Automake
10194         * modules/relocatable-prog: Don't declare PHONY dependencies in
10195         Automake conditionals.
10197 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
10199         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
10200         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
10202 2019-01-23  Bruno Haible  <bruno@clisp.org>
10204         threadlib: Revert commit from 2018-06-25. We now have a better fix.
10205         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
10206         preceding -Wl,--as-needed option. Don't check whether the linker
10207         supports --as-needed/--no-as-needed and --push-state/--pop-state.
10209 2019-01-23  Bruno Haible  <bruno@clisp.org>
10211         thread: Force linking with -lpthread, even when --as-needed is in use.
10212         Reported by Richard W.M. Jones <rjones@redhat.com> in
10213         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
10214         * lib/glthread/thread.h (pthread_create): Don't declare weak.
10216 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
10217             Bruno Haible  <bruno@clisp.org>
10219         relocatable: avoid compiler warnings (-Wshadow)
10220         * lib/relocatable.c (compute_curr_prefix): Rename local variables
10221         to avoid name collisions with global variables.
10223 2019-01-22  Bruno Haible  <bruno@clisp.org>
10225         vasnprintf: Don't use %n on Android.
10226         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
10227         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
10228         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
10230 2019-01-22  Bruno Haible  <bruno@clisp.org>
10232         *printf: Support cross-compilation to Android.
10233         * m4/printf.m4: Add cross-compilation guesses for Android.
10235 2019-01-21  Bruno Haible  <bruno@clisp.org>
10237         diacrit: Mark deprecated.
10238         * modules/diacrit (Status, Notice): Mark as deprecated.
10239         * NEWS: Mention it.
10241 2019-01-20  Bruno Haible  <bruno@clisp.org>
10243         rintl: Override broken implementation on NetBSD.
10244         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
10245         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
10246         REPLACE_RINTL.
10247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
10248         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
10249         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
10250         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
10252 2019-01-20  Bruno Haible  <bruno@clisp.org>
10254         log10l: Work around inaccurate implementation on NetBSD.
10255         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
10256         * lib/log10l.c: Comment out too simplistic override.
10257         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
10259 2019-01-20  Bruno Haible  <bruno@clisp.org>
10261         logl: Work around inaccurate implementation on NetBSD.
10262         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
10263         * lib/logl.c: Comment out unused code.
10264         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
10266 2019-01-20  Bruno Haible  <bruno@clisp.org>
10268         expm1l: Work around inaccurate implementation on NetBSD.
10269         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
10270         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
10271         REPLACE_EXPM1L.
10272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
10273         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
10274         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
10275         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
10277 2019-01-20  Bruno Haible  <bruno@clisp.org>
10279         expl: Work around inaccurate implementation on NetBSD.
10280         * lib/math.in.h (expl): Test also REPLACE_EXPL.
10281         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
10282         REPLACE_EXPL.
10283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
10284         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
10285         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
10286         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
10288 2019-01-20  Bruno Haible  <bruno@clisp.org>
10290         exp2l: Work around inaccurate implementation on NetBSD.
10291         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
10292         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
10294 2019-01-20  Bruno Haible  <bruno@clisp.org>
10296         floor, floorl: Avoid autoconf warnings.
10297         * modules/floor (configure.ac): Use AC_REQUIRE.
10298         * modules/floorl (configure.ac): Likewise.
10300 2019-01-20  Bruno Haible  <bruno@clisp.org>
10302         Defeat current GCC optimizations in math autoconf tests.
10303         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
10304         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10305         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10306         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10307         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10308         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10309         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10310         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10311         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10312         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10313         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10314         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10315         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10316         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10317         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
10318         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
10319         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
10320         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10321         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10322         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10323         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10324         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10325         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10326         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10327         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10328         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10329         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10330         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10331         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10332         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10333         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10334         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10335         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10336         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10337         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10338         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10339         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10340         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10342 2019-01-19  Pádraig Brady  <P@draigBrady.com>
10344         gettext: support disabling use of VLAs
10345         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
10347 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
10349         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
10350         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
10352 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
10354         fcntl: Fix syntax error (regression from 2018-10-05).
10355         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
10357 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
10359         relocatable: improve documentation.
10360         * doc/relocatable-maint.texi (Supporting Relocation): For
10361         substitutions performed by config.status, we need more variables
10362         (for instance datarootdir defaults to '${prefix}/share' so we need
10363         prefix).
10365 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
10367         backup: update dependencies
10368         * modules/backup-rename (Depends-on): It now depends on opendirat
10369         instead of opendir.  It also uses stdint, and xalloc-oversized.
10370         But no longer dirfd.
10371         * modules/backupfile (Depends-on): Add xalloc-oversized.
10373 2019-01-13  Bruno Haible  <bruno@clisp.org>
10375         getcwd: Fix test failure when building on a Linux 9p file system.
10376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
10377         EINVAL from mkdir like ENAMETOOLONG.
10378         * tests/test-getcwd.c (test_long_name): Likewise.
10380 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
10382         Fix typos found by codespell.
10383         * lib/*.[hc]: Fix typos in comments.
10384         * pygnulib/*.py: Fix typos in error messages and comments.
10386 2019-01-12  Bruno Haible  <bruno@clisp.org>
10388         doc: Fix documentation about container data types.
10389         Reported by Werner Lemberg <wl@gnu.org>.
10390         * doc/containers.texi (Container data types): Fix typo.
10392 2019-01-10  Bruno Haible  <bruno@clisp.org>
10394         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
10395         Reported by Reuben Thomas <rrt@sc3d.org>.
10396         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
10398 2019-01-06  Bruno Haible  <bruno@clisp.org>
10400         maintainer-makefile: Make the configure.ac section optional.
10401         * top/maint.mk (GREP, SED): Define if not defined.
10403 2019-01-06  Bruno Haible  <bruno@clisp.org>
10405         localename: Assume setlocale function.
10406         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
10407         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
10409 2019-01-06  Bruno Haible  <bruno@clisp.org>
10411         doc: Add documentation about container data types.
10412         * doc/containers.texi: New file.
10413         * doc/gnulib.texi (Particular Modules): Include it.
10415 2019-01-06  Bruno Haible  <bruno@clisp.org>
10417         doc: Update documentation about 'progname' module.
10418         * doc/progname.texi: Rename from doc/error.texi. Change node name and
10419         title. Rewrite.
10420         * doc/gnulib.texi (Particular Modules): Update.
10422 2019-01-06  Bruno Haible  <bruno@clisp.org>
10424         doc: Document the xstdopen and *-safer modules.
10425         * doc/xstdopen.texi: New file.
10426         * doc/gnulib.texi (Particular Modules): Include it.
10428 2019-01-06  Bruno Haible  <bruno@clisp.org>
10430         xstdopen: Add tests.
10431         * tests/test-xstdopen.c: New file.
10432         * tests/test-xstdopen.sh: New file.
10433         * modules/xstdopen-tests: New file.
10435         xstdopen: New module.
10436         * lib/xstdopen.h: New file.
10437         * lib/xstdopen.c: New file.
10438         * modules/xstdopen: New file.
10440 2019-01-06  Bruno Haible  <bruno@clisp.org>
10442         stdopen: Fix compilation error with IRIX cc.
10443         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
10445 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10447         xfreopen need not include stdio--.h
10448         * lib/xfreopen.c: Do not include stdio--.h.
10450         xfreopen need not depend on freopen-safer
10451         * modules/xfreopen (Depends-on):
10452         Depend on freopen, not freopen-safer.
10454         stdopen: modernize and simplify
10455         * lib/stdopen.c: Update copyright date
10456         Do not include sys/types.h; no longer needed these days.
10457         (stdopen): Use C99-style decl in loop.  Return int errno
10458         value, rather than just a bool.  Do not worry about fd mismatches,
10459         since the caller cares only if 0, 1, 2 are occupied.
10460         * lib/stdopen.h: No need to include <stdbool.h>.
10461         * m4/stdopen.m4: Remove.
10462         * modules/stdopen: New file.
10464         stdopen: copy from last use in coreutils
10465         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
10466         New files, taken from their last commit in coreutils
10467         2007-07-23T12:35:58Z!jim@meyering.net
10468         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
10470 2019-01-05  Bruno Haible  <bruno@clisp.org>
10472         argp: Don't pass an invalid argument to dgettext().
10473         Reported by He X <xw897002528@gmail.com>.
10474         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
10475         dgettext().
10477 2019-01-05  Bruno Haible  <bruno@clisp.org>
10479         argp: Don't pass an invalid argument to dgettext().
10480         Reported by He X <xw897002528@gmail.com>.
10481         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
10482         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
10483         dgettext().
10485 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10487         stdioext: port to newer 32-bit Android
10488         Problem reported by Tom Yan in:
10489         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
10490         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
10491         (fp_) [__ANDROID__]: Use it.
10493 2019-01-04  Bruno Haible  <bruno@clisp.org>
10495         lock: Fix link error with --enable-threads=pth.
10496         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
10497         Mark as weak.
10499 2019-01-04  Bruno Haible  <bruno@clisp.org>
10501         Fix link errors in unit tests.
10502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10503         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
10504         * modules/array-map-tests (Makefile.am): Link test-array_map against
10505         libintl.
10506         * modules/array-set-tests (Makefile.am): Link test-array_set against
10507         libintl.
10508         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
10509         libintl.
10510         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
10511         libintl.
10512         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
10513         against libintl.
10514         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
10515         against libintl.
10517 2019-01-04  Bruno Haible  <bruno@clisp.org>
10519         Fix incorrect 'Link' sections.
10520         * modules/regex (Link): Mention the link requirement of module 'lock'.
10521         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
10523 2019-01-04  Bruno Haible  <bruno@clisp.org>
10525         Fix some 'Link' sections.
10526         * modules/c-stack (Link): Add link directive from the 'gettext-h'
10527         dependency.
10528         * modules/getaddrinfo (Link): Likewise.
10530 2019-01-04  Bruno Haible  <bruno@clisp.org>
10532         Remove redundant 'Link' sections.
10533         * modules/canon-host (Link): Remove section.
10534         * modules/timevar (Link): Likewise.
10536 2019-01-04  Bruno Haible  <bruno@clisp.org>
10538         Remove incorrect 'Link' sections.
10539         * modules/acl (Link): Remove section. Use combined 'Link' sections from
10540         the dependencies instead.
10541         * modules/crypto/md5 (Link): Likewise.
10542         * modules/crypto/sha1 (Link): Likewise.
10543         * modules/crypto/sha256 (Link): Likewise.
10544         * modules/crypto/sha512 (Link): Likewise.
10545         * modules/faccessat (Link): Likewise.
10546         * modules/fdutimensat (Link): Likewise.
10547         * modules/iconv_open-utf (Link): Likewise.
10548         * modules/propername (Link): Likewise.
10549         * modules/qacl (Link): Likewise.
10550         * modules/unicodeio (Link): Likewise.
10551         * modules/utimecmp (Link): Likewise.
10552         * modules/utimensat (Link): Likewise.
10553         * modules/xstriconv (Link): Likewise.
10554         * modules/xstriconveh (Link): Likewise.
10556 2019-01-04  Bruno Haible  <bruno@clisp.org>
10558         gnulib-tool: New option --extract-recursive-link-directive.
10559         * gnulib-tool (func_usage): Document the new options
10560         --extract-recursive-dependencies, --extract-recursive-link-directive.
10561         (func_verify_module): Document output variables.
10562         (func_get_dependencies_recursively): New function.
10563         (func_get_link_directive_recursively): New function.
10564         Use them to implement the new options
10565         --extract-recursive-dependencies, --extract-recursive-link-directive.
10566         * doc/gnulib-tool.texi (Link-time requirements): New section.
10568 2019-01-04  Bruno Haible  <bruno@clisp.org>
10570         Clarify meaning of 'Link' section in module description.
10571         * doc/gnulib.texi (Module description): Clarify the meaning of the
10572         'Link' section versus the one of the dependencies.
10573         * NEWS: Mention the change.
10575 2019-01-04  Bruno Haible  <bruno@clisp.org>
10577         pselect: Fix module description.
10578         * modules/pselect (Link): Put one link option per line.
10580 2019-01-04  Bruno Haible  <bruno@clisp.org>
10582         cosl: Fix module description.
10583         * modules/cosl (Link): Fix typo.
10584         * modules/mathl (configure.ac): Likewise.
10586 2019-01-04  Bruno Haible  <bruno@clisp.org>
10588         c-xvasprintf: Fix module dependencies.
10589         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
10591 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
10593         bootstrap: die when some submodules are not initialized
10594         * build-aux/bootstrap: Make sure all submodules are initialized.
10596 2019-01-04  Bruno Haible  <bruno@clisp.org>
10598         bitsetv: Fix module dependencies.
10599         * lib/bitsetv.c: Include xalloc.h.
10600         * modules/bitsetv (Depends-on): Add 'xalloc'.
10602 2019-01-04  Bruno Haible  <bruno@clisp.org>
10604         xmemdup0: Remove redundant code.
10605         * lib/xmemdup0.h (xalloc_die): Remove declaration.
10607 2019-01-04  Bruno Haible  <bruno@clisp.org>
10609         backupfile: Fix module dependencies.
10610         * modules/backupfile (Depends-on): Add 'xalloc'.
10612 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10614         bitset, crypto/gc: fix conflicts with Solaris 11
10615         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
10616         avoid clash with Solaris 11 <sys/bitset.h>.
10617         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
10618         with Solaris 11 <xorg/gc.h>.
10620 2019-01-04  Bruno Haible  <bruno@clisp.org>
10622         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
10623         Reported by Andy Fiddaman <andy@omniosce.org>.
10624         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
10626 2019-01-03  Eric Blake  <eblake@redhat.com>
10628         maintainer-makefile: fix typo in previous patch
10629         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
10630         of Roman's work.
10632 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
10634         maintainer-makefile: prefer $(GREP) over grep
10635         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
10636         defined.
10637         * top/maint.mk: Use it everywhere.
10639         maintainer-makefile: split long argument lines
10640         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
10641         it would be too long for exec limits on BSD.
10643 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10645         mkfifo: bring back HAVE_MKFIFO macro
10646         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
10647         Problem reported by Andrew Janke in:
10648         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
10650 2018-12-21  Bruno Haible  <bruno@clisp.org>
10652         Assume Autoconf >= 2.63.
10653         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
10654         versions < 2.60.
10656 2018-12-21  Bruno Haible  <bruno@clisp.org>
10658         memcmp: Mention the clang bug.
10659         * tests/test-memcmp.c: Add comment about a known test failure.
10660         * doc/posix-functions/memcmp.texi: Mention the clang bug.
10662 2018-12-20  Jim Meyering  <meyering@fb.com>
10664         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
10665         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
10666           echo '123-x'|LC_ALL=C grep -E '.\bx'
10667         The goal is to revert the first, but reverting it requires to restore
10668         the function deleted in the second. I ran this to restore the deleted
10669         function:
10670           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
10671             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
10672             | patch -R -p1
10673         * lib/dfa.c (charclass_context): Restore deleted function.
10674         Reverting the primary commit removes this change:
10675         dfa: Simplify a building state
10676         * lib/dfa.c (build_state): Simplify a building state.
10678 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10680         version-etc: allow zero authors
10681         * lib/version-etc.c (version_etc_arn): If no authors are given,
10682         omit authorship info instead of dumping core.
10684 2018-12-19  Bruno Haible  <bruno@clisp.org>
10686         lchown tests: Be more permissive regarding errno values.
10687         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
10688         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
10689         alternative to ENOSYS.
10690         * modules/lchown-tests (Depends-on): Add 'errno'.
10691         * modules/fchownat-tests (Depends-on): Likewise.
10693 2018-12-18  Bruno Haible  <bruno@clisp.org>
10695         duplocale: Avoid test failure on AIX 7.
10696         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
10697         (configure.ac): Invoke gt_FUNC_USELOCALE.
10698         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
10699         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
10700         works.
10702 2018-12-18  Bruno Haible  <bruno@clisp.org>
10704         localename: Fix test failure on AIX 7.
10705         Reported by Assaf Gordon in
10706         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
10707         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
10708         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
10709         instead of ac_cv_func_uselocale.
10710         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
10711         HAVE_USELOCALE.
10712         * lib/localename-table.h: Likewise.
10713         * lib/localename-table.c: Likewise.
10714         * tests/test-localename.c: Likewise.
10715         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
10717 2018-12-18  Bruno Haible  <bruno@clisp.org>
10719         localename: Update comments regarding Cygwin.
10720         * lib/localename.c: Update comment.
10721         * doc/posix-functions/uselocale.texi: Update platforms list.
10722         * doc/posix-functions/newlocale.texi: Likewise.
10723         * doc/posix-functions/duplocale.texi: Likewise.
10724         * doc/posix-functions/freelocale.texi: Likewise.
10726 2018-12-16  Bruno Haible  <bruno@clisp.org>
10728         c-stack: Fix for Linux/sparc.
10729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
10730         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
10732 2018-12-16  Bruno Haible  <bruno@clisp.org>
10734         localename: Avoid test failure on some glibc systems.
10735         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
10736         Unset environment variables that might disturb the first setlocale call,
10737         and verify that this setlocale call succeeds.
10739 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
10741         random: Fix build error on native Windows (regression from 2018-06-21).
10742         * lib/random.c (__srandom, __initstate, __setstate, __random,
10743         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
10744         to the symbols without '__' prefix.
10746 2018-12-16  Bruno Haible  <bruno@clisp.org>
10748         obstack, libc-config: Support HP-UX cc in C99 mode.
10749         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
10750         compiler, even when in C99 mode.
10751         * lib/cdefs.h (__flexarr): Likewise.
10752         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
10754 2018-12-16  Bruno Haible  <bruno@clisp.org>
10756         localename: Fix test failure on OpenBSD >= 6.2.
10757         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
10758         locale system. Define HAVE_FAKE_LOCALES in this case.
10759         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
10760         HAVE_USELOCALE.
10761         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
10762         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
10763         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
10764         platforms list.
10765         * doc/posix-functions/newlocale.texi: Likewise.
10766         * doc/posix-functions/duplocale.texi: Update platforms list.
10767         * doc/posix-functions/freelocale.texi: Likewise.
10769 2018-12-16  Bruno Haible  <bruno@clisp.org>
10771         duplocale tests: Re-enable the test on platforms without <monetary.h>.
10772         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
10773         of the test, on platforms without <monetary.h>.
10775 2018-12-16  Bruno Haible  <bruno@clisp.org>
10777         localename: Update comments.
10778         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
10780 2018-12-15  Jim Meyering  <meyering@fb.com>
10782         regex: fix indentation
10783         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
10785 2018-12-15  Bruno Haible  <bruno@clisp.org>
10787         openat-safer tests: Avoid test failure on NetBSD 8.
10788         * tests/test-openat-safer.c (main): Execute a Linux specific test only
10789         on Linux.
10791 2018-12-15  Jim Meyering  <meyering@fb.com>
10793         regex: work around a bug in glibc-2.27 and prior
10794         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
10795         assertion for /0|()0|\1|0/.
10796         * tests/test-regex.c (main): Add the same test here.
10798 2018-12-15  Bruno Haible  <bruno@clisp.org>
10800         localename: Fix use of uninitialized shell variable.
10801         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
10802         gt_cv_locale_solaris114 always before use. Remove assignment without
10803         effect.
10805 2018-12-15  Bruno Haible  <bruno@clisp.org>
10807         dfa tests: Avoid test failure on Alpine Linux.
10808         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
10809         command found on Alpine Linux.
10811 2018-12-15  Jim Meyering  <meyering@fb.com>
10813         dfa: avoid new warnings from gcc
10814         These would prevent building with -Werror and a Dec snapshot of gcc.
10815         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
10816         Rename each inner instance to "p".
10817         (charclass_context): Remove unused static function.
10819 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10821         mkdir-p: improve diagnostic for FUSE mounts
10822         Problem reported by Niklas Hambüchen in:
10823         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
10824         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
10825         errno to mkdir errno if the stat errno is likely more interesting.
10827 2018-12-14  Bruno Haible  <bruno@clisp.org>
10829         hash-map: Add tests.
10830         * tests/test-hash_map.c: New file.
10831         * modules/hash-map-tests: New file.
10833         linkedhash-map: Add tests.
10834         * tests/test-linkedhash_map.c: New file.
10835         * modules/linkedhash-map-tests: New file.
10837         array-map: Add tests.
10838         * tests/test-array_map.c: New file.
10839         * modules/array-map-tests: New file.
10841         xmap: New module.
10842         * lib/gl_xmap.h: New file.
10843         * lib/gl_xmap.c: New file.
10844         * modules/xmap: New file.
10846         hash-map: New module.
10847         * lib/gl_hash_map.h: New file.
10848         * lib/gl_hash_map.c: New file.
10849         * modules/hash-map: New file.
10851         linkedhash-map: New module.
10852         * lib/gl_linkedhash_map.h: New file.
10853         * lib/gl_linkedhash_map.c: New file.
10854         * lib/gl_anyhash1.h: Update comments.
10855         * lib/gl_anyhash2.h: Likewise.
10856         * modules/linkedhash-map: New file.
10858         array-map: New module.
10859         * lib/gl_array_map.h: New file.
10860         * lib/gl_array_map.c: New file.
10861         * modules/array-map: New file.
10863         map: New module.
10864         * lib/gl_map.h: New file.
10865         * lib/gl_map.c: New file.
10866         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
10867         conflict with gl_map.h.
10868         * modules/map: New file.
10870 2018-12-13  Bruno Haible  <bruno@clisp.org>
10872         select tests: Avoid test failure on Cygwin.
10873         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
10875 2018-12-13  Bruno Haible  <bruno@clisp.org>
10877         localtime-buffer: Avoid endless recursion in localtime and gmtime.
10878         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
10880 2018-12-13  Bruno Haible  <bruno@clisp.org>
10882         localeconv tests: Avoid test failure on Cygwin.
10883         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
10884         'mon_grouping' tests.
10886 2018-12-11  Bruno Haible  <bruno@clisp.org>
10888         omap: Don't dispose the old value when the function returns it.
10889         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
10890         here.
10891         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
10892         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
10893         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
10894         here.
10896         array-omap, avltree-omap, rbtree-omap: Tweak style.
10897         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
10898         false.
10899         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
10901         rbtree-omap: Add tests.
10902         * tests/test-rbtree_omap.c: New file.
10903         * modules/rbtree-omap-tests: New file.
10905         avltree-omap: Add tests.
10906         * tests/test-avltree_omap.c: New file.
10907         * modules/avltree-omap-tests: New file.
10909         array-omap: Add tests.
10910         * tests/test-array_omap.c: New file.
10911         * modules/array-omap-tests: New file.
10913         xomap: New module.
10914         * lib/gl_xomap.h: New file.
10915         * lib/gl_xomap.c: New file.
10916         * modules/xomap: New file.
10918         rbtree-omap: New module.
10919         * lib/gl_rbtree_omap.h: New file.
10920         * lib/gl_rbtree_omap.c: New file.
10921         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
10922         Parameterize.
10923         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
10924         * modules/rbtree-omap: New file.
10925         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
10926         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
10928         avltree-omap: New module.
10929         * lib/gl_avltree_omap.h: New file.
10930         * lib/gl_avltree_omap.c: New file.
10931         * lib/gl_avltree_ordered.h: Code moved to here from
10932         lib/gl_avltree_oset.c. Parameterize.
10933         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
10934         * lib/gl_anytree_omap.h: New file.
10935         * modules/avltree-omap: New file.
10936         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
10937         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
10939         array-omap: New module.
10940         * lib/gl_array_omap.h: New file.
10941         * lib/gl_array_omap.c: New file.
10942         * modules/array-omap: New file.
10944         omap: New module.
10945         * lib/gl_omap.h: New file.
10946         * lib/gl_omap.c: New file.
10947         * modules/omap: New file.
10949 2018-12-11  Bruno Haible  <bruno@clisp.org>
10951         hash-set, linkedhash-set: Reduce code duplication.
10952         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
10953         lib/gl_anyhash_set1.h.
10954         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
10955         lib/gl_anyhash_set2.h. Parameterize.
10956         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
10957         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
10958         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
10959         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
10960         * lib/gl_rbtreehash_list.c: Likewise.
10961         * lib/gl_linkedhash_list.c: Likewise.
10962         (hash_resize_after_add): Remove function.
10963         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
10964         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
10965         * gl_hash_set.c: Likewise.
10966         * modules/avltreehash-list (Files, Makefile.am): Update file list.
10967         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
10968         * modules/linkedhash-list (Files, Makefile.am): Likewise.
10969         * modules/linkedhash-set (Files, Makefile.am): Likewise.
10970         * modules/hash-set (Files, Makefile.am): Likewise.
10972 2018-12-11  Bruno Haible  <bruno@clisp.org>
10974         array-set: Optimize.
10975         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
10976         outside the loop, not inside the loop.
10978 2018-12-11  Bruno Haible  <bruno@clisp.org>
10980         times: Fix tests.
10981         * tests/test-times.c (doublecmp): Implement a total order.
10983 2018-12-11  Bruno Haible  <bruno@clisp.org>
10985         array-set, linkedhash-set, hash-set: Fix tests.
10986         * tests/test-array_set.c (cmp_objects_in_array): New function.
10987         (check_equals): Use it.
10988         * tests/test-hash_set.c: Likewise.
10989         * tests/test-linkedhash_set.c: Likewise.
10991 2018-12-08  Bruno Haible  <bruno@clisp.org>
10993         Fix comments.
10994         * lib/gl_list.h (gl_list_free): Clarify what it does.
10995         * lib/gl_oset.h (gl_oset_free): Likewise.
10996         * lib/gl_set.h (gl_set_free): Likewise.
10997         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
10998         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
10999         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
11000         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
11002 2018-12-03  Bruno Haible  <bruno@clisp.org>
11004         hash-set: Add tests.
11005         * tests/test-hash_set.c: New file.
11006         * modules/hash-set-tests: New file.
11008         linkedhash-set: Add tests.
11009         * tests/test-linkedhash_set.c: New file.
11010         * modules/linkedhash-set-tests: New file.
11012         array-set: Add tests.
11013         * tests/test-array_set.c: New file.
11014         * modules/array-set-tests: New file.
11016         xset: New module.
11017         * lib/gl_xset.h: New file.
11018         * lib/gl_xset.c: New file.
11019         * modules/xset: New file.
11021         hash-set: New module.
11022         * lib/gl_hash_set.h: New file.
11023         * lib/gl_hash_set.c: New file.
11024         * modules/hash-set: New file.
11026         linkedhash-set: New module.
11027         * lib/gl_linkedhash_set.h: New file.
11028         * lib/gl_linkedhash_set.c: New file.
11029         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
11030         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
11031         * lib/gl_anyhash_primes.h: New file, extracted from
11032         lib/gl_anyhash_list2.h.
11033         * lib/gl_anyhash_list2.h: Include it.
11034         (primes, next_prime): Remove definitions.
11035         * modules/linkedhash-set: New file.
11036         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
11037         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
11038         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
11039         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
11040         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
11041         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
11043         array-set: New module.
11044         * lib/gl_array_set.h: New file.
11045         * lib/gl_array_set.c: New file.
11046         * modules/array-set: New file.
11048         set: New module.
11049         * lib/gl_set.h: New file.
11050         * lib/gl_set.c: New file.
11051         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
11052         gl_set.h.
11053         * modules/set: New file.
11055 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
11057         bison: don't force the Yacc mode
11058         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
11059         errors when Bison features are used in the grammar file.  Some of
11060         these features (such as %expect) were flagged non-yacc recently.  Most
11061         of the time, -y is actually used to please Automake's ylwrap which
11062         expects the output to be y.tab.c.
11063         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
11065 2018-12-01  Bruno Haible  <bruno@clisp.org>
11067         gnupload: Document short options.
11068         * build-aux/gnupload (usage): Document the short options.
11070 2018-11-28  Ben Elliston  <bje@gnu.org>
11072         gnupload: Support option -h as alias of --help.
11073         * build-aux/gnupload: Support -h.
11075 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
11077         memrchr: port better to clang
11078         * lib/memrchr.c (__memrchr): Cast to void * instead of to
11079         longword *, to pacify clang -Wcast-align (Bug#33544).
11081 2018-11-29  Eric Blake  <eblake@redhat.com>
11083         docs: mention printf %m considerations
11084         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
11085         is not portable, and is easy enough to work around.
11086         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
11087         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
11088         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
11089         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
11090         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11091         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11092         * doc/posix-functions/printf.texi (printf): Likewise.
11093         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
11094         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
11095         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
11096         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11097         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11098         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11099         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11100         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11101         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
11102         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
11103         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11104         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11106 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
11108         bitset: rename ebitset/expandable.* as tbitset/table.*
11109         See
11110         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
11111         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
11112         * lib/bitset/table.h, lib/bitset/table.c: these.
11113         Rename all the ebitset* symbols as tbitset*.
11114         Adjust dependencies.
11116 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
11118         bitset: check the operations
11119         * tests/test-bitset.c (bitset_random): New.
11120         Use it.
11121         * lib/bitset/expandable.c (ebitset_not): Fix typo.
11123 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
11125         bitset: properly use false/true instead of 0/1 for Booleans
11126         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
11127         0/1, as Booleans.
11129 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
11131         bitset: rename BITSET_VARRAY as BITSET_VECTOR
11132         For consistency with the name of the file.
11133         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
11134         * lib/bitset/stats.c, lib/bitset/vector.c
11135         (BITSET_VARRAY): Rename as...
11136         (BITSET_VECTOR): this.
11138 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
11140         strerror_r-posix: memmove, not memcpy
11141         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
11142         since the source and destination might overlap in the call
11143         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
11144         Simplify.
11146 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
11148         bitsetv: new module
11149         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
11151 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
11153         bitset: add tests and doc
11154         First stabs at providing a documentation and test for the bitset
11155         module.
11156         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
11158 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
11160         bitset: new module
11161         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
11162         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
11163         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
11164         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
11165         * lib/bitset/vector.h, modules/bitset:
11166         New.
11168 2018-11-23  Bruno Haible  <bruno@clisp.org>
11170         localename: Fix gettext test failures on mingw.
11171         * lib/localename.c (gl_locale_name_posix): Convert the result of
11172         gl_locale_name_environ to XPG syntax.
11174 2018-11-23  Karl Berry  <karl@freefriends.org>
11176         * config/srclistvars.txt,
11177         * config/srclist.txt: remove all gettext references;
11178         the gettext maintainers will sync as needed.
11180 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
11182         mktime: add libc-config dependency
11183         I missed this when we synced from glibc.
11184         * modules/mktime (Depends-on): Add libc-config.
11186 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
11188         longlong: fix comment typo
11189         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
11191 2018-11-11  Bruno Haible  <bruno@clisp.org>
11193         havelib: Remove the need to include asm-underscore.m4.
11194         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
11195         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
11196         gl_HOST_CPU_C_ABI.
11197         * modules/havelib (Files): Add host-cpu-c-abi.m4.
11198         (Depends-on): Remove host-cpu-c-abi.
11200 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11202         parse-datetime: simplify test for mktime failure
11203         * lib/parse-datetime.y (mktime_ok): Simplify.
11204         Remove args TZ and T; no longer needed.  Callers changed.
11206         posixtm: simplify test for mktime failure
11207         * lib/posixtm.c (posixtime): Simplify.
11209         nstrftime: simplify test for mktime failure
11210         * lib/nstrftime.c (__strftime_internal): Simplify.
11212 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11214         gnulib-common.m4: port _Noreturn to C++
11215         Problem reported by Akim Demaille in:
11216         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
11217         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
11218         Merge adjustments from _Noreturn.h and from glibc into the non-C++
11219         version.
11220         * lib/_Noreturn.h: Match gnulib-common.
11222 2018-10-30  Bruno Haible  <bruno@clisp.org>
11224         gnu-make: Fix for NetBSD 8 'make'.
11225         Reported by Reuben Thomas in
11226         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
11227         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
11228         output, ignoring exit codes.
11230 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
11232         maintainer-makefile: fix syntax-check rule for "same.h"
11233         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
11234         for 'same_nameat', too.
11236 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11238         havelib: fix nested ‘configure’ chatter
11239         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
11240         AC_CACHE_CHECK calls, which resulted in confusing output like
11241         “checking for the common suffixes of directories in the library
11242         search path... checking for 64-bit host... no lib,lib”.
11244         backupfile: tweak for better code
11245         * lib/backupfile.c: Sort include directives, and remove
11246         unnecessary <limits.h> include.
11247         (FALLTHROUGH): New macro, copied from other modules.
11248         (backupfile_internal): Use it to avoid code duplication.
11249         This lets GCC 8.2.1 generate better code by inlining the
11250         call to check_extension.
11252 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11254         backupfile: new dir_fd args
11255         New module opendirat with code taken from fts.
11256         Use this module to let backupfile use a directory file descriptor.
11257         * NEWS: Document the incompatible change.
11258         * lib/backup-find.c (find_backup_file_name):
11259         * lib/backup-rename.c (backup_file_rename):
11260         New arg DIR_FD.
11261         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
11262         (SIZE_MAX): Remove.
11263         Include opendirat.h rather than dirent--.h.
11264         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
11265         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
11266         (backupfile_internal): New arg DIR_FD.  All callers changed.
11267         * lib/fts.c: Include opendirat.h.
11268         (opendirat): Move to opendirat.c.
11269         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
11270         * modules/backupfile (Depends-on): Remove dirfd, opendir.
11271         Add opendirat.
11272         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
11273         Add opendirat.
11275 2018-10-23  Bruno Haible  <bruno@clisp.org>
11277         localename: Simplify support for per-thread locales on Solaris 11.4.
11278         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
11279         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
11280         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
11281         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
11282         specific code.
11283         * lib/localename-table.h: Update comments.
11284         * lib/localename-table.c: Update comments.
11285         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
11286         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
11287         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
11288         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
11289         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
11290         HAVE_NAMELESS_LOCALES here.
11291         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
11292         m4/intlsolaris.m4.
11293         * modules/gettext (Files): Likewise.
11295 2018-10-22  Bruno Haible  <bruno@clisp.org>
11297         std-gnu11: Support Autoconf versions < 2.64.
11298         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
11299         when _AC_DO_LIMIT does not exist.
11301 2018-10-22  Bruno Haible  <bruno@clisp.org>
11303         Assume Autoconf >= 2.63.
11304         * DEPENDENCIES: Mention the requirement.
11306         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
11307         (func_get_filelist): Don't list m4/onceonly.m4 any more.
11308         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
11309         * m4/onceonly.m4: Remove file.
11311         * m4/openmp.m4: Remove file.
11312         * modules/openmp (Files): Remove m4/openmp.m4.
11314         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
11315         htmldir, dvidir, pdfdir, psdir, localedir.
11316         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
11318         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
11319         Autoconf < 2.60.
11320         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
11321         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
11323         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
11324         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
11325         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
11327         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
11328         exists.
11329         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
11331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
11332         Autoconf < 2.61.
11334         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
11335         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
11336         Autoconf >= 2.52.
11338         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
11339         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
11340         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
11342 2018-10-22  Bruno Haible  <bruno@clisp.org>
11344         Assume Automake >= 1.11.
11345         * m4/configmake.m4: Update comments.
11346         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
11347         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
11348         of 'eval'.
11349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
11350         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
11351         requires Automake >= 1.11.
11353 2018-10-22  Bruno Haible  <bruno@clisp.org>
11355         localename: Fix typo in comment.
11356         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
11358 2018-10-22  Bruno Haible  <bruno@clisp.org>
11360         Fix failure of 'gnulib-tool --create-testdir' with all modules.
11361         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
11363 2018-10-21  Bruno Haible  <bruno@clisp.org>
11365         locale: Ease integration with GNU libintl.
11366         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
11367         GNULIB_defined_freelocale): New macros.
11369 2018-10-21  Bruno Haible  <bruno@clisp.org>
11371         localename: Fine-tune support for per-thread locales on Solaris 11.4.
11372         * lib/localename-table.h: New file, extracted from lib/localename.c.
11373         * lib/localename-table.c: Likewise.
11374         * lib/localename.c: Include localename-table.h.
11375         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
11376         locale_hash_function instead of pointer_hash.
11377         * modules/localename (Files): Add lib/localename-table.h,
11378         lib/localename-table.c.
11379         (lib_SOURCES): Add localename-table.c.
11380         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
11381         for Solaris 11.4 locale system only on Solaris. Test for it
11382         independently whether getlocalename_l exists.
11383         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
11384         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
11385         HAVE_NAMELESS_LOCALES.
11386         * modules/gettext (Files): Add m4/intlsolaris.m4.
11388 2018-10-21  Bruno Haible  <bruno@clisp.org>
11390         Small update from gettext.
11391         * m4/intl.m4: Update from gettext:
11392         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
11393         mode on AIX.
11394         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
11395         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
11397 2018-10-16  Bruno Haible  <bruno@clisp.org>
11399         mountlist: Remove support for Cray with UNICOS 9.
11400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
11401         MOUNTED_LISTMNTENT.
11402         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
11404 2018-10-16  Bruno Haible  <bruno@clisp.org>
11406         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
11407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
11408         STAT_STATFS2_FS_DATA.
11409         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
11410         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
11411         MOUNTED_GETMNT.
11412         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
11413         * lib/getloadavg.c (decstation): Remove definition and case.
11414         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
11415         * lib/getgroups.c: Likewise.
11416         * doc/posix-functions/getgroups.texi: Likewise.
11417         * lib/time.in.h: Update comments.
11419 2018-10-16  Bruno Haible  <bruno@clisp.org>
11421         getloadavg: Remove support for ConvexOS.
11422         * lib/getloadavg.c: Remove convex case.
11424 2018-10-16  Bruno Haible  <bruno@clisp.org>
11426         getloadavg: Remove support for Sony NEWS.
11427         * lib/getloadavg.c: Remove sony_news case.
11429 2018-10-16  Bruno Haible  <bruno@clisp.org>
11431         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
11432         * lib/fsusage.c: Remove _SEQUENT_ case.
11433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
11434         * lib/mountlist.c: Don't test for MNTTABNAME.
11435         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
11436         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
11437         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
11438         * lib/stat-size.h: Don't mention the Sequent bug.
11439         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
11441 2018-10-16  Bruno Haible  <bruno@clisp.org>
11443         fsusage: Remove support for AIX 3.
11444         * lib/fsusage.c: Remove code for AIX 3.
11445         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
11447 2018-10-16  Bruno Haible  <bruno@clisp.org>
11449         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
11450         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
11451         * lib/fsusage.c: Remove code for AIX PS/2.
11452         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
11453         * lib/getloadavg.c: Likewise.
11455 2018-10-16  Bruno Haible  <bruno@clisp.org>
11457         getloadavg: Remove support for HP-UX on m68k.
11458         * lib/getloadavg.c: Remove hp9000s300 case.
11460 2018-10-16  Bruno Haible  <bruno@clisp.org>
11462         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
11463         * lib/fsusage.c: Remove DOLPHIN case.
11464         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
11465         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
11467 2018-10-16  Bruno Haible  <bruno@clisp.org>
11469         getloadavg: Remove support for Alliant FX/2800.
11470         * lib/getloadavg.c: Remove alliant case.
11472 2018-10-16  Bruno Haible  <bruno@clisp.org>
11474         getloadavg: Remove support for tek4300.
11475         * lib/getloadavg.c: Remove tek4300 case.
11477 2018-10-16  Bruno Haible  <bruno@clisp.org>
11479         getloadavg: Remove support for Ardent.
11480         * lib/getloadavg.c: Remove ardent case.
11482 2018-10-16  Bruno Haible  <bruno@clisp.org>
11484         mountlist: Remove support for SVR2.
11485         Reported by Andrew Borodin <aborodin@vmail.ru> in
11486         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
11487         * lib/mountlist.c: Remove MOUNTED_FREAD case.
11488         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
11489         MOUNTED_FREAD.
11491 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11493         libc-config: merge from glibc
11494         * lib/cdefs.h (__glibc_has_attribute): New macro.
11496         regex: depend on libc-config
11497         * modules/regex (Depends-on): Add libc-config.
11498         This is needed after the recent autoupdate from glibc.
11500 2018-10-14  Bruno Haible  <bruno@clisp.org>
11502         localename: Add support for per-thread locales on Solaris 11.4.
11503         * lib/locale.in.h (newlocale, freelocale): New declarations.
11504         (duplocale): Declare also when the 'localename' module requests it.
11505         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
11506         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
11507         (struniq): Update.
11508         (struct locale_categories_names, struct locale_hash_node): New types.
11509         (LOCALE_HASH_TABLE_SIZE): New constant.
11510         (locale_hash_table, locale_lock): New variables.
11511         (pointer_hash, get_locale_t_name): New functions.
11512         (newlocale, duplocale, freelocale): New overridden functions.
11513         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
11514         * m4/intlsolaris.m4: New file.
11515         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
11516         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
11517         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
11518         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
11519         declared.
11520         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
11521         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
11522         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
11523         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
11524         * modules/localename (Files): Add intlsolaris.m4.
11525         (Depends-on): Add 'locale'.
11526         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
11527         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
11528         the signatures.
11530 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
11532         timevar: use gethrxtime to get wall clock time
11533         clock_gettime is not portable.  gethrxtime takes the best available
11534         option to get the wall clock time, including clock_gettime (monotonic
11535         clock), and gettime (non monotonic).
11536         Also, using xtime_t instead of float preserves the precision.
11537         Suggested by Bruno Haible.
11538         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
11539         * modules/timevar (Depends-on): We need gethrxtime.
11540         We no longer use times().
11541         (Link): Update.
11542         * lib/timevar.h (timevar_time_def): Use xtime_t.
11543         * lib/timevar.c (set_to_current_time): Use gethrxtime.
11544         (timevar_print): Instead of checking whether the timings themselves
11545         are large enough for the timevar to be printed, check the percentages.
11547 2018-10-14  Bruno Haible  <bruno@clisp.org>
11549         wcsnrtombs: Work around Solaris 11.4 bug.
11550         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
11551         macro.
11552         (gl_FUNC_WCSNRTOMBS): Invoke it.
11553         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
11555 2018-10-14  Bruno Haible  <bruno@clisp.org>
11557         mbsnrtowcs: Work around Solaris 11.4 bug.
11558         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
11559         macro.
11560         (gl_FUNC_MBSNRTOWCS): Invoke it.
11561         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
11563 2018-10-14  Bruno Haible  <bruno@clisp.org>
11565         doc: Update for Solaris 11.4.
11566         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
11567         mention Solaris 11.4.
11568         * m4/printf.m4: Update comments about Solaris.
11569         * m4/log.m4: Likewise.
11570         * m4/log10.m4: Likewise.
11571         * m4/logb.m4: Likewise.
11572         * m4/logbf.m4: Likewise.
11573         * m4/logbl.m4: Likewise.
11574         * m4/rename.m4: Likewise.
11575         * m4/wcrtomb.m4: Likewise.
11576         * m4/hostent.m4: Likewise.
11577         * m4/servent.m4: Likewise.
11579 2018-10-14  Bruno Haible  <bruno@clisp.org>
11581         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
11582         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
11583         pointer.
11584         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
11585         pointer.
11586         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
11587         pointer.
11588         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
11589         pointer.
11590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
11591         pointer.
11593 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
11595         bootstrap: fix wget command for po files.
11596         * build-aux/bootstrap (po_download_command_format): Fix comment,
11597         and adjust callers.
11599 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
11601         timevar: improve the output format
11602         Suggested by Bruno Haible.
11603         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
11604         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
11605         wall, since its resolution is much higher.
11607 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
11609         timevar: expect that getrusage is available.
11610         Don't keep both times and getrusage as backend: both are guaranteed by
11611         gnulib, a single one suffices.  Using getrusage is open to possibly
11612         tracking other types of resources in the future.
11613         * modules/timevar (Depends-on): Add getrusage.
11614         (configure.ac): Remove gl_TIMEVAR.
11615         (Files): Remove m4/timevar.m4.
11616         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
11617         * lib/timevar.h (timevar_enabled): Clarify documentation.
11618         * lib/timevar.c: Remove all the code about times.
11619         Remove all the CPP guards about getrusage: expect it to be present
11620         (courtesy of gnulib).
11622 2018-10-12  Bruno Haible  <bruno@clisp.org>
11624         mountlist: Improve support for Solaris in 64-bit mode.
11625         Reported by David Wood <David.Wood@deshaw.com> in
11626         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
11627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
11628         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
11629         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
11631 2018-10-12  Bruno Haible  <bruno@clisp.org>
11633         mountlist: Add support for Minix.
11634         Reported by Assaf Gordon in
11635         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
11636         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
11637         AC_CHECK_FUNCS to check for 'getmntinfo'.
11638         * lib/mountlist.c: Update comments.
11640 2018-10-12  Bruno Haible  <bruno@clisp.org>
11642         Make better use of Autoconf.
11643         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
11644         * m4/manywarnings.m4: Likewise.
11645         * m4/manywarnings-c++.m4: Likewise.
11646         * m4/socklen.m4: Likewise.
11647         * m4/sockpfaf.m4: Likewise.
11648         * m4/stdarg.m4: Likewise.
11649         * m4/visibility.m4: Likewise.
11650         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
11651         indentation.
11652         * m4/ls-mntd-fs.m4: Likewise.
11654 2018-10-11  Bruno Haible  <bruno@clisp.org>
11656         mountlist: Modernize platform lists.
11657         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
11658         platforms, deemphasizing the obsolete ones.
11659         * lib/mountlist.c: Likewise.
11661 2018-10-11  Bruno Haible  <bruno@clisp.org>
11663         getprogname: Add support for 32-bit programs on HP-UX.
11664         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
11665         try the similar functions 32-bit programs on 64-bit HP-UX.
11667 2018-10-11  Bruno Haible  <bruno@clisp.org>
11669         getprogname: Work around program name truncation when possible.
11670         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
11671         possibly use pst_cmd instead.
11673 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11675         fts: cleanup after FTS_NOATIME removal
11676         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
11677         (FTS_STOP): Shrink to minimal values.  We don’t need to
11678         worry about binary compatibility in Gnulib, and the old way
11679         of doing things had a hole in the user options that caused
11680         FTS_OPTIONMASK to not work as desired.
11682 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
11684         fts: remove FTS_NOATIME
11685         This reverts commit da4d6974013c822af1498941e32db774b2031765.
11686         We cannot guarantee that O_NOATIME works: e.g. openat fails
11687         with EPERM if the effective user ID of the caller does not match
11688         the owner of the file and the caller is not privileged.
11689         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
11690         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
11691         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
11692         (FTS_OPTIONMASK): Adjust.
11693         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
11694         (fd_ring_check): Likewise.
11696 2018-10-08  Bruno Haible  <bruno@clisp.org>
11698         csharpcomp*, csharpexec*: Remove support for pnet.
11699         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
11700         HAVE_CSCC.
11701         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
11702         Don't test HAVE_CSCC.
11703         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
11704         (compile_csharp_class): Don't invoke it.
11705         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
11706         HAVE_ILRUN.
11707         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
11708         Don't test HAVE_ILRUN.
11709         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
11710         (execute_csharp_program): Don't invoke it.
11711         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
11712         any more.
11714 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
11716         renameatu: prefer renameat2 to syscall
11717         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
11718         Use renameat2 instead of syscall (Bug#32796).
11719         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
11721 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
11723         bootstrap, gnulib-tool: use https instead of insecure rsync
11724         * build-aux/bootstrap (download_po_files, po_download_command_format):
11725         Don't try using rsync; always use wget over https to fetch PO files.
11726         * gnulib-tool (func_import): Likewise.
11727         * pygnulib/GLImport.py (GLImport.execute): Likewise.
11729 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
11731         bootstrap, gnulib-tool: correct the translations wget command
11732         * build-aux/bootstrap (po_download_command_format2): Restrict
11733         recursion to a single level.
11734         * gnulib-tool (func_import): Likewise.
11735         * pygnulib/GLImport.py (GLImport.execute): Likewise.
11737 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
11739         doc: the gnulib snapshots are not maintained
11740         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
11742 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
11744         timevar: add to lib_SOURCES
11745         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
11747 2018-10-07  Bruno Haible  <bruno@clisp.org>
11749         dirent: Update documentation.
11750         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
11752 2018-10-05  Bruno Haible  <bruno@clisp.org>
11754         strpbrk: Make it possible to namespace the defined symbol.
11755         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
11757 2018-10-05  Bruno Haible  <bruno@clisp.org>
11759         strcspn: Make it possible to namespace the defined symbol.
11760         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
11762 2018-10-05  Bruno Haible  <bruno@clisp.org>
11764         raise: Make it possible to namespace the defined symbol.
11765         * lib/raise.c (raise): Undefine only after the replacement function has
11766         been defined.
11767         (raise): Renamed from rpl_raise.
11768         (raise_nothrow): Move to the end of the compilation unit.
11770 2018-10-05  Bruno Haible  <bruno@clisp.org>
11772         memcmp: Make it possible to namespace the defined symbol.
11773         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
11775 2018-10-05  Bruno Haible  <bruno@clisp.org>
11777         explicit_bzero: Make it possible to namespace the defined symbol.
11778         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
11779         glibc.
11781 2018-10-05  Bruno Haible  <bruno@clisp.org>
11783         mkdir-p: Depend on 'mkdir'.
11784         * modules/mkdir-p (Depends-on): Add 'mkdir'.
11786 2018-10-05  Bruno Haible  <bruno@clisp.org>
11788         tempname: Depend on 'mkdir'.
11789         Reported by Maarten Bosmans <mkbosmans@gmail.com>
11790         at <https://savannah.gnu.org/bugs/?33379>.
11791         * modules/tempname (Depends-on): Add 'mkdir'.
11793 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
11795         timevar: rely on gnulib modules for time portability.
11796         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
11797         * m4/timevar.m4: Don't check for clock_t and struct tms,
11798         guaranteed by gnulib.
11799         * lib/timevar.h: Use extern "C" protection.
11800         Include <stdio.h> for FILE.
11801         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
11802         they are guaranteed by gnulib.
11803         Remove uses of clock as (now useless) fallback.
11805 2018-10-04  Bruno Haible  <bruno@clisp.org>
11807         sh-filename: New module.
11808         * m4/sh-filename.m4: New file.
11809         * modules/sh-filename: New file.
11810         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
11811         "/bin/sh".
11812         * tests/test-posix_spawn1.c (main): Likewise.
11813         * tests/test-posix_spawn2.c (main): Likewise.
11814         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
11815         is_envjavac_gcj43): Likewise.
11816         * lib/javaexec.c (execute_java_class): Likewise.
11817         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
11818         * modules/posix_spawnp-tests (Depends-on): Likewise.
11819         * modules/javacomp (Depends-on): Likewise.
11820         * modules/javaexec (Depends-on): Likewise.
11822 2018-10-04  Bruno Haible  <bruno@clisp.org>
11824         spawn-pipe tests: Avoid test failure on native Windows.
11825         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
11826         that fd 2 is closed.
11828 2018-10-04  Bruno Haible  <bruno@clisp.org>
11830         fcntl: Make it possible to namespace the defined symbol.
11831         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
11832         been defined.
11833         (fcntl): Renamed from rpl_fcntl.
11834         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
11835         from fcntl.
11836         (klibc_fcntl): Move to the end of the compilation unit.
11838 2018-10-02  Bruno Haible  <bruno@clisp.org>
11840         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
11841         * tests/test-vasnprintf.c (test_function): Change the test added on
11842         2018-09-23 to check only the 18 most significant digits.
11844         vasnprintf tests: Avoid test failure on Cygwin.
11845         * tests/test-vasnprintf.c (test_function): Change the test added on
11846         2018-09-23 to check only the 42 most significant digits.
11848 2018-10-01  Bruno Haible  <bruno@clisp.org>
11850         mkostemp, mkostemps: Update documentation.
11851         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
11852         * doc/glibc-functions/mkostemps.texi: Likewise.
11854 2018-10-01  Tom Tromey  <tom@tromey.com>
11856         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
11857         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
11858         on OS X.
11860 2018-09-30  Pádraig Brady  <P@draigBrady.com>
11862         hmac-*: refactor to remove repetitive code
11863         * lib/hmac.c: A new parameterized single implementation.
11864         * lib/hmac-md5.c: Define parameters and include implementation.
11865         * lib/hmac-sha1.c: Likewise.
11866         * lib/hmac-sha256.c: Likewise.
11867         * lib/hmac-sha512.c: Likewise.
11868         * modules/crypto/hmac-md5: Reference the new implementation file.
11869         * modules/crypto/hmac-sha1: Likewise.
11870         * modules/crypto/hmac-sha256: Likewise.
11871         * modules/crypto/hmac-sha512: Likewise.
11872         * tests/test-hmac-md5.c: Refactor common code to a single function.
11873         * tests/test-hmac-sha1.c: Likewise.
11874         * tests/test-hmac-sha256.c: Likewise.
11875         * tests/test-hmac-sha512.c: Likewise.
11877 2018-09-30  Zhang Qing  <zhangqingl@126.com>
11879         hmac-sha512: fix hash for keys > blocksize (128 bytes)
11880         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
11881         key length to that output by sha512, not the blocksize.
11882         Otherwise uninitialized data from the stack
11883         is used when computing the hash.
11884         * tests/test-hmac-sha512.c: Add a shortened key test case.
11885         Reported at https://github.com/coreutils/gnulib/pull/5
11887 2018-09-30  Bruno Haible  <bruno@clisp.org>
11889         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
11890         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
11891         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
11892         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
11893         'unsigned int' before comparison with an unsigned value.
11895 2018-09-30  Bruno Haible  <bruno@clisp.org>
11897         grantpt: Remove unnecessary dependency.
11898         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
11900 2018-09-30  Bruno Haible  <bruno@clisp.org>
11902         timevar: Small tweaks.
11903         * lib/timevar.h: Fix comments. Add parameter names to function
11904         declarations.
11905         * lib/timevar.c: Include timevar.h immediately after config.h.
11906         * lib/timevar.def: Fix comments.
11907         * modules/timevar (Maintainer): List Akim Demaille.
11909 2018-09-30  Bruno Haible  <bruno@clisp.org>
11911         timevar: Include documentation in gnulib manual.
11912         * doc/timevar.texi: Change node and section name to 'Profiling of
11913         program phases'.
11914         In the code snippets, tweak the #includes and use GNU coding style.
11915         * doc/gnulib.texi: Include timevar.texi.
11917 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
11919         timevar: import from Bison.
11920         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
11921         New files.
11922         * lib/timevar.def: New file.
11923         * doc/timevar.texi: New file.
11925 2018-09-26  Bruno Haible  <bruno@clisp.org>
11927         javacomp-script, javacomp: Add preliminary support for Java 12..17.
11928         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
11929         * lib/javacomp.c (default_target_version): Likewise.
11931 2018-09-26  Bruno Haible  <bruno@clisp.org>
11933         javacomp-script, javacomp: Add support for Java 11.
11934         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
11935         target-version 11.
11936         * lib/javaversion.h: Update comments.
11937         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11938         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11939         TARGET_VERSION_BOUND, target_version_index,
11940         corresponding_classfile_version): Accept source_version 11 and
11941         target_version 11.
11942         * lib/javacomp.h: Update comments accordingly.
11944 2018-09-23  Bruno Haible  <bruno@clisp.org>
11946         vasnprintf: Fix heap memory overrun bug.
11947         Reported by Ben Pfaff <blp@cs.stanford.edu> in
11948         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
11949         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
11950         memory.
11951         * tests/test-vasnprintf.c (test_function): Add another test.
11953 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11955         maint: mktime.c now shared with glibc
11956         * config/srclist.txt: intprops.h, timegm.c and mktime.c
11957         are now the same in Gnulib and glibc.
11959         mktime: fix _LIBC typo
11960         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
11962 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11964         dfa: optimization for state merge
11965         * lib/dfa.c (merge2): New function.
11966         (merge_nfa_state): Use it.
11968 2018-09-18  Jim Meyering  <meyering@fb.com>
11970         dfa: trivial comment fix: s/is/if/
11971         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
11973 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11975         dfa: use more-informative function name
11976         * lib/dfa.c (maybe_disable_superset_dfa):
11977         Rename from dfautf8noss.  Use change.
11979         dfa: tweak allocation performance
11980         * lib/dfa.c (merge_nfa_state, dfaoptimize):
11981         Prefer ptrdiff_t for indexes some more.
11982         Use char for flags, as it’s wide enough.
11983         Allocate queue and flags together, with one malloc call.
11984         No need to use xnmalloc since the multiplication and
11985         addition cannot overflow (it’s already been checked by
11986         earlier allocation).  Prefer memset to open-coding.
11988         dfa: prune states as we go
11989         * lib/dfa.c (prune): Remove.
11990         dfa: reorder enum for efficiency
11991         (merge_nfa_state): Prune as we go instead of at the end.
11992         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
11994         * lib/dfa.c (END): Now -1 again.  Reorder other elements
11995         of the enumeration to make it easier for GCC to generate
11996         efficient code by using fewer comparisons to check for
11997         ranges of values.
11998         (atom): Take advantage of the reordering.
12000 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
12002         dfa: optimize alternation in NFA
12003         Even when similar states exist in alternation, the DFA treats them
12004         as separate items, which may complicate the transition in NFA and
12005         cause slowdown.  This change assembles the states into one.  For
12006         example, ab|ac is changed into a(b|c).  This change speeds-up
12007         matching for many branched patterns.  For example, grep speeds up
12008         more than 30× in:
12010           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
12011           time -p env LC_ALL=C grep -vf in in
12013         * lib/dfa.c (prune): New function.
12014         (merge_nfa_state): New function.  It merges similar NFA states.
12015         (dfaoptimize): New function.  It seeks merged and removed nodes.
12016         (dfaanalyze): Call new function.
12017         (dfautf8noss): Change name from dfaoptimize because of addition of new
12018         function.
12019         (dfacomp): Update caller.
12021         dfa: simplify initial state
12022         Simplifying the initial state enables easier optimization of the NFA.
12023         * lib/dfa.c (enum token): Add new element BEG.
12024         (prtok): Adjust due to adding element BEG.
12025         (dfaparse): Put BEG at a head of tokens.
12026         (state_index): Adjust due to adding element BEG.
12027         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
12028         build initial state.
12029         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
12031 2018-09-18  Bruno Haible  <bruno@clisp.org>
12033         file-has-acl: Fix test failure on Cygwin 2.9.
12034         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
12035         * lib/acl-internal.h: Likewise.
12036         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
12037         * lib/acl-internal.c: Update comments regarding Cygwin.
12038         * lib/acl_entries.c: Likewise.
12039         * lib/file-has-acl.c: Likewise.
12040         (file_has_acl): For Cygwin, use a different way to determine whether
12041         the "default" ACL of a directory is nontrivial.
12042         * lib/get-permissions.c: Update comments regarding Cygwin.
12043         * lib/set-permissions.c: Likewise.
12045 2018-09-18  Bruno Haible  <bruno@clisp.org>
12047         stat-time tests: Fix test failure on Cygwin.
12048         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
12050 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12052         doc: OS X 10.11 lacked ns time functions
12053         According to <https://github.com/zeromq/libzmq/issues/2175>,
12054         nanosecond-resolution timestamp functions were introduced
12055         in macOS 10.12, so document the last version (OS X 10.11)
12056         where they were absent.
12058         gettime: nanotime never existed
12059         Problem reported by Bruno Haible in:
12060         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
12061         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
12062         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
12064 2018-09-18  Bruno Haible  <bruno@clisp.org>
12066         doc: Update statement about target platforms.
12067         Reported by Simon Sobisch.
12068         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
12069         restrictions on MSVC versions.
12071 2018-09-18  Bruno Haible  <bruno@clisp.org>
12073         posix_spawn tests: Fix link error on 64-bit Cygwin.
12074         * tests/test-posix_spawn1.c (environ): Remove declaration.
12075         * tests/test-posix_spawn2.c (environ): Likewise.
12076         * tests/test-posix_spawn3.c (environ): Likewise.
12077         * tests/test-posix_spawn4.c (environ): Likewise.
12078         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
12079         * modules/posix_spawnp-tests (Depends-on): Likewise.
12081 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12083         timespec: new function current_timespec
12084         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
12085         and don’t worry about it failing on a CLOCK_REALTIME arg.
12086         POSIX requires it to succeed and I don’t know of any
12087         counterexamples where the fallbacks would work.
12088         (current_timespec): New function, taken from Emacs.  It is more
12089         convenient than gettime, and can help register allocation.
12090         * lib/timespec.h: Include arg-nonnull.h.
12091         (current_timespec): New declaration.
12092         (gettime, settime): Declare args to be nonnull.
12093         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
12095 2018-09-16  Bruno Haible  <bruno@clisp.org>
12097         setlocale: Improve locale handling on macOS 10.12 or newer.
12098         * lib/setlocale.c: Include header files for CoreFoundation. Declare
12099         gl_locale_name_canonicalize.
12100         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
12101         and LC_MESSAGES.
12102         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
12104 2018-09-16  Bruno Haible  <bruno@clisp.org>
12106         Update list of locale names with scripts on macOS.
12107         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
12108         match Mac OS X 10.13 and recent glibc.
12110 2018-09-16  Bruno Haible  <bruno@clisp.org>
12112         gettext: Use newer macOS APIs when possible.
12113         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
12114         CFLocaleCopyPreferredLanguages.
12116 2018-09-16  Bruno Haible  <bruno@clisp.org>
12118         localename: Revisit macOS specific code.
12119         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
12120         Fix comments about Mac OS X versions.
12122 2018-09-15  Bruno Haible  <bruno@clisp.org>
12124         setlocale: Improve support for locales not supported by libc.
12125         Reported by Dapeng Gao <peter@dpgao.cc> at
12126         <https://savannah.gnu.org/bugs/?54479>.
12127         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
12128         (libintl_setlocale): Use a more error-tolerant strategy when the locale
12129         to be set is not supported by libc: Emit warnings instead of failing.
12131 2018-09-15  Bruno Haible  <bruno@clisp.org>
12133         strstr, strcasestr: Add workaround against glibc-2.28 bug.
12134         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
12135         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
12136         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
12137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
12138         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
12139         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
12140         * doc/glibc-functions/strcasestr.texi: Likewise.
12142 2018-09-14  Bruno Haible  <bruno@clisp.org>
12144         doc: Fix bottom of top-level page.
12145         Reported by Akim Demaille <akim.demaille@gmail.com> in
12146         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
12147         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
12148         mode.
12149         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
12150         accordingly.
12152 2018-09-12  Bruno Haible  <bruno@clisp.org>
12154         Add test case from a recent glibc bug.
12155         * tests/test-strstr.c (main): Add test of long needle.
12156         * tests/test-strcasestr.c (main): Likewise.
12157         * tests/test-c-strstr.c (main): Likewise.
12158         * tests/test-c-strcasestr.c (main): Likewise.
12159         * tests/test-memmem.c (main): Likewise.
12161 2018-09-12  Bruno Haible  <bruno@clisp.org>
12163         Apply Eric Blake's improvements from 2011-02-25 to more tests.
12164         * tests/test-c-strstr.c (main): Add the same tests here as well.
12166 2018-09-12  Bruno Haible  <bruno@clisp.org>
12168         Apply Jim Meyering's fix from 2015-01-11 to more tests.
12169         * tests/test-memmem.c (main): Free haystack.
12170         * tests/test-strcasestr.c (main): Likewise.
12171         * tests/test-c-strcasestr.c (main): Likewise.
12173 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
12175         xstrtol: fix missing-TYPE_SIGNED typo
12176         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
12178 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12180         timespec: fix resolution confusion
12181         In normal usage, clock resolution is given in seconds, but the
12182         code was mistakenly using inverse seconds and calling it
12183         “resolution”.  Fix this, partly by renaming two identifiers.
12184         The old names will be kept for a bit, to ease transition.
12185         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
12186         New constants, replacing TIMESPEC_RESOLUTION and
12187         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
12188         All uses changed.
12190 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
12192         mktime: simplify in prep for glibc merge
12193         * lib/mktime.c, lib/timegm.c [_LIBC]:
12194         Include mktime-internal.h (a small file just for glibc)
12195         instead of using a typedef.
12197 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12199         intprops: minor clarification of code
12200         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
12201         Use _GL_INT_CONVERT rather than reinventing it.
12203 2018-09-07  Bruno Haible  <bruno@clisp.org>
12205         Fix a comment.
12206         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
12208 2018-09-07  Bruno Haible  <bruno@clisp.org>
12210         posix_spawn_file_actions_addchdir: Add tests.
12211         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
12212         * tests/test-posix_spawn4.c: New file.
12213         * modules/posix_spawn_file_actions_addchdir-tests: New file.
12215 2018-09-07  Bruno Haible  <bruno@clisp.org>
12217         posix_spawn_file_actions_addchdir: New module.
12218         Suggested by Eric Blake in
12219         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
12220         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
12221         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
12222         union member 'chdir_action'.
12223         * lib/spawn_faction_addchdir.c: New file.
12224         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
12225         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
12226         HAVE_WORKING_POSIX_SPAWN.
12227         * lib/spawn_faction_adddup2.c: Likewise.
12228         * lib/spawn_faction_addopen.c: Likewise.
12229         * m4/posix_spawn_faction_addchdir.m4: New file.
12230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
12231         'posix_spawn_file_actions_addchdir' is present and whether
12232         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
12233         instead of HAVE_WORKING_POSIX_SPAWN.
12234         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
12235         posix_spawn_file_actions_addchdir is declared.
12236         (gl_SPAWN_H_DEFAULTS): Initialize
12237         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
12238         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
12239         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
12240         * modules/spawn (Makefile.am): Substitute
12241         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
12242         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
12243         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
12244         * modules/posix_spawn_file_actions_addchdir: New file.
12245         * modules/posix_spawn_file_actions_addclose (Depends-on,
12246         configure.ac): Test also REPLACE_POSIX_SPAWN.
12247         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
12248         configure.ac): Likewise.
12249         * modules/posix_spawn_file_actions_addopen (Depends-on,
12250         configure.ac): Likewise.
12251         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
12252         signature.
12253         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12254         * doc/posix-functions/posix_spawnp.texi: Likewise.
12256 2018-09-06  Bruno Haible  <bruno@clisp.org>
12258         stddef: Override max_align_t on NetBSD 8.0/x86.
12259         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
12260         the value of __alignof__ (max_align_t).
12261         * doc/posix-headers/stddef.texi: Mention the issue.
12263 2018-09-06  Bruno Haible  <bruno@clisp.org>
12265         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
12266         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
12267         system fcntl.
12268         * doc/posix-functions/fcntl.texi: Document the issue.
12270 2018-09-06  Bruno Haible  <bruno@clisp.org>
12272         count-trailing-zeros tests: Rely on limits-h module.
12273         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
12274         definition.
12275         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
12277 2018-09-06  Bruno Haible  <bruno@clisp.org>
12279         count-leading-zeros tests: Rely on limits-h module.
12280         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
12281         definition.
12282         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
12284 2018-09-06  Bruno Haible  <bruno@clisp.org>
12286         count-one-bits tests: Rely on limits-h module.
12287         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
12288         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
12290 2018-09-06  Bruno Haible  <bruno@clisp.org>
12292         xstrtoll: Rely on limits-h module.
12293         * lib/xstrtol.c: Don't include intprops.h.
12294         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
12295         * modules/xstrtol (Depends-on): Remove 'intprops'.
12296         * modules/xstrtoll (Depends-on): Add 'limits-h'.
12298 2018-09-06  Bruno Haible  <bruno@clisp.org>
12300         strtoll, strtoull: Rely on limits-h module.
12301         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
12302         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
12303         * modules/strtoll (Depends-on): Add limits-h.
12304         * modules/strtoull (Depends-on): Likewise.
12306 2018-09-06  Bruno Haible  <bruno@clisp.org>
12308         intprops tests: Fix compilation error with pre-C99 compiler.
12309         * tests/test-intprops.c (verify_stmt): New macro.
12310         (VERIFY, main): Use it.
12312 2018-09-06  Bruno Haible  <bruno@clisp.org>
12314         limits-h: Provide numerical limits macros.
12315         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
12316         IRIX and for GCC.
12317         (WORD_BIT, LONG_BIT): Define.
12318         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
12319         <limits.h> does not define LLONG_MAX or WORD_BIT.
12320         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
12321         TYPE_MAXIMUM): New macros, from intprops.h.
12322         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
12323         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
12324         provides.
12326 2018-09-05  Bruno Haible  <bruno@clisp.org>
12328         fcntl: Don't access nonexistent optional argument.
12329         Reported by Frank Busse <f.busse@imperial.ac.uk> in
12330         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
12331         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
12332         don't consume an argument. For actions that take an 'int' argument,
12333         consume an 'int' argument.
12335 2018-09-05  Eric Blake  <eblake@redhat.com>
12337         doc: mention environ pitfall
12338         * doc/posix-functions/environ.texi (environ): Assigning NULL to
12339         environ is a glibc extension.
12341 2018-09-03  Bruno Haible  <bruno@clisp.org>
12343         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
12344         Reported by Antoine Luong <antoine.luong@c-s.fr> in
12345         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
12346         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
12347         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
12348         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
12350 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12352         mktime: fix unlikely race+overflow bug
12353         Problem reported by Alexandre Oliva in:
12354         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
12355         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
12356         to avoid an unlikely race if the compiler delays a load and
12357         if this cascades into a signed integer overflow.
12359 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12361         mktime, timegm: simplify glibc time64_t
12362         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
12363         Now long int, not time_t, since long int is the longstanding type
12364         for this in glibc and there is no need to change it even if time_t
12365         becomes 64 bits - even int would do, though this would be a change
12366         to the glibc generated code.  When this change is merged into
12367         glibc, it should simplify the time_t vs time64_t situation.
12369         mktime, timegm: simplify merge to glibc
12370         Move code around to make a merge to glibc easier to audit.
12371         This should not change behavior.
12372         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12373         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12374         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12375         simplify later conditionals; default the others to zero.  In uses
12376         of these conditionals, explicitly spell out how _LIBC affects
12377         things, so it’s easier to review from a glibc viewpoint.
12378         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12379         compartmentalize tzset issues.  Move system-dependent tzsettish
12380         code here from mktime.
12381         (mktime): Move tzsettish code to my_tzset, and move
12382         localtime_offset to within mktime so that it doesn’t
12383         need a separate ifdef.
12385 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12387         intprops: avoid evaluation of some expressions
12388         This makes EXPR_SIGNED (e) easier to use, as it no longer
12389         evaluates the expression E.  Formerly, E was required to be free
12390         of side effects.
12391         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
12392         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
12393         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
12395 2018-08-23  Bruno Haible  <bruno@clisp.org>
12397         getcwd: Add cross-compilation guesses.
12398         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
12399         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
12400         Based on a patch by Paul Eggert.
12401         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
12402         guesses for all GNU systems.
12404 2018-08-19  Bruno Haible  <bruno@clisp.org>
12406         glob-h: Formalize side effects from other modules.
12407         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
12408         * m4/glob.m4 (gl_GLOB): Invoke it.
12410         fnmatch-h: Formalize side effects from other modules.
12411         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
12412         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
12414         limits-h: Formalize side effects from other modules.
12415         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
12416         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
12418 2018-08-19  Bruno Haible  <bruno@clisp.org>
12420         getpass: Move declaration to <unistd.h>.
12421         * lib/unistd.in.h (getpass): New declaration.
12422         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
12423         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
12424         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
12425         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
12426         On glibc systems, don't set REPLACE_GETPASS to 1.
12427         * modules/getpass (Depends-on): Add 'unistd'.
12428         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
12429         (Include): Specify <unistd.h> instead of "getpass.h".
12430         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
12431         (configure.ac): Sync with the configure.ac section of modules/getpass.
12432         (Include): Specify <unistd.h> instead of "getpass.h".
12433         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
12434         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
12435         REPLACE_GETPASS.
12436         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
12437         REPLACE_GETPASS.
12438         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
12439         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
12440         and musl.
12441         * NEWS: Mention the change.
12443 2018-08-19  Bruno Haible  <bruno@clisp.org>
12445         glob: Fix over-optimization due to attribute __nonnull__.
12446         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
12448 2018-08-19  Bruno Haible  <bruno@clisp.org>
12450         glob: Fix another compilation error when glob.h is not replaced.
12451         Reported by Reuben Thomas <rrt@sc3d.org> in
12452         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
12453         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
12454         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
12456 2018-08-18  Bruno Haible  <bruno@clisp.org>
12458         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
12459         Reported by Reuben Thomas <rrt@sc3d.org> in
12460         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
12461         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
12462         in config.h.
12464 2018-08-18  Bruno Haible  <bruno@clisp.org>
12466         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
12467         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
12468         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
12469         Solution proposed by Eli Zaretskii.
12470         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
12471         * lib/gettimeofday.c (GetProcAddress): Likewise.
12472         * lib/link.c (GetProcAddress): Likewise.
12473         * lib/physmem.c (GetProcAddress): Likewise.
12474         * lib/poll.c (GetProcAddress): Likewise.
12475         * lib/select.c (GetProcAddress): Likewise.
12476         * lib/stat-w32.c (GetProcAddress): Likewise.
12478 2018-08-18  Bruno Haible  <bruno@clisp.org>
12480         glob: Fix another compilation error when glob.h is not replaced.
12481         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
12482         * lib/globfree.c: Include <libc-config.h>.
12484 2018-08-18  Bruno Haible  <bruno@clisp.org>
12486         glob: Fix compilation error when glob.h is not replaced.
12487         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
12488         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
12489         * lib/glob_pattern_p.c: Include <libc-config.h>.
12490         * modules/glob (Depends-on): Add libc-config.
12492 2018-08-18  Bruno Haible  <bruno@clisp.org>
12494         scratch_buffer: Add tests.
12495         * tests/test-scratch-buffer.c: New file.
12496         * modules/scratch_buffer-tests: New file.
12498 2018-08-18  Bruno Haible  <bruno@clisp.org>
12500         scratch_buffer: Fix include file.
12501         Reported by Reuben Thomas <rrt@sc3d.org> in
12502         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
12503         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
12504         double-inclusion guard.
12506 2018-08-18  Bruno Haible  <bruno@clisp.org>
12508         glob-h: Revert Paul Eggert's revert.
12509         * m4/glob_h.m4: Revert to previous state.
12510         * modules/glob-h: Likewise.
12512 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12514         glob-h: always build glob.h
12515         This works around a problem reported by Reuben Thomas in:
12516         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
12517         This workaround always builds glob.h, even on platforms that
12518         do not need it; perhaps this could be improved someday.
12519         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
12520         is always created now.
12521         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
12523 2018-08-13  Bruno Haible  <bruno@clisp.org>
12525         monetary: Simplify m4 code.
12526         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
12527         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
12529 2018-08-13  Bruno Haible  <bruno@clisp.org>
12531         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
12532         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
12533         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
12534         and by Paul J. Lucas <paul@lucasmail.org> in
12535         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
12536         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
12538 2018-08-11  Bruno Haible  <bruno@clisp.org>
12540         setlocale: Trivial simplification.
12541         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
12543 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12545         verify: port 'assume' to traditional tools
12546         * lib/verify.h (assume): Port better to Oracle Studio 12.6
12547         and other tools that use /*NOTREACHED*/ comments.
12549 2018-08-10  Bruno Haible  <bruno@clisp.org>
12551         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
12552         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12553         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
12554         'fnmatch-gnu' is in use.
12556 2018-08-07  Bruno Haible  <bruno@clisp.org>
12558         glob-h: Add tests.
12559         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
12560         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
12561         tests/test-glob-h.c.
12562         * modules/glob-h-tests: New file.
12563         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
12564         conditions.
12565         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
12566         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
12568 2018-08-07  Bruno Haible  <bruno@clisp.org>
12570         glob-h: New module.
12571         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
12572         replacements.
12573         * lib/glob.c: Include <config.h>.
12574         * m4/glob_h.m4: New file.
12575         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
12576         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
12577         REPLACE_GLOB_PATTERN_P as appropriate.
12578         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
12579         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
12580         * modules/glob-h: New file.
12581         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
12582         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
12583         lstat, sys_stat. Change conditions.
12584         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
12585         REPLACE_GLOB_PATTERN_P. Set module indicator.
12586         (Makefile.am): Remove code that is moved to glob-h.
12587         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
12588         * modules/posixcheck (Depends-on): Add glob-h.
12590 2018-08-06  Bruno Haible  <bruno@clisp.org>
12592         Force generation of substitute .h file when C++ support is enabled.
12593         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
12594         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
12595         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
12596         FNMATCH_H to non-empty.
12597         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
12598         ICONV_H to non-empty.
12599         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
12600         MONETARY_H to non-empty.
12601         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
12602         non-empty.
12604 2018-08-06  Bruno Haible  <bruno@clisp.org>
12606         fnmatch-h: Fix test compilation error on mingw (regression from today).
12607         * lib/fnmatch.in.h: Fix conditions.
12609 2018-08-06  Bruno Haible  <bruno@clisp.org>
12611         sys_resource: Relicense under LGPLv2+.
12612         John Malmberg's approval is in
12613         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
12614         * modules/sys_resource (License): Change to LGPLv2+.
12616 2018-08-06  Bruno Haible  <bruno@clisp.org>
12618         fnmatch-h: Add tests.
12619         * tests/test-fnmatch-h.c: New file.
12620         * modules/fnmatch-h-tests: New file.
12621         * tests/test-fnmatch-h-c++.cc: New file.
12622         * modules/fnmatch-h-c++-tests: New file.
12624 2018-08-06  Bruno Haible  <bruno@clisp.org>
12626         fnmatch-h: New module.
12627         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
12628         replacements.
12629         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
12630         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
12631         'posixcheck' warning.
12632         * m4/fnmatch_h.m4: New file.
12633         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
12634         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
12635         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
12636         as appropriate.
12637         * modules/fnmatch-h: New file.
12638         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
12639         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
12640         conditions.
12641         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
12642         indicator.
12643         (Makefile.am): Remove code that is moved to fnmatch-h.
12644         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
12645         REPLACE_FNMATCH.
12646         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
12647         * modules/posixcheck (Depends-on): Add fnmatch-h.
12649 2018-08-06  Bruno Haible  <bruno@clisp.org>
12651         Enable more C++ tests.
12652         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
12653         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
12654         * modules/strings-tests (Depends-on): Add strings-c++-tests.
12655         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
12656         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
12658 2018-08-06  Bruno Haible  <bruno@clisp.org>
12660         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
12661         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
12662         getopt.h.
12663         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
12665 2018-08-05  Bruno Haible  <bruno@clisp.org>
12667         utime-h: Generate header file when module 'posixcheck' is in use.
12668         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
12669         UTIME_H to non-empty.
12671 2018-08-05  Bruno Haible  <bruno@clisp.org>
12673         monetary: Generate header file when module 'posixcheck' is in use.
12674         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
12675         use, set MONETARY_H to non-empty.
12677 2018-08-05  Bruno Haible  <bruno@clisp.org>
12679         iconv-h: Generate header file when module 'posixcheck' is in use.
12680         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
12681         set ICONV_H to non-empty.
12683 2018-08-05  Bruno Haible  <bruno@clisp.org>
12685         Optimize the "checking whether ... is declared without a macro" checks.
12686         Suggested by Paul Eggert in
12687         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
12688         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
12689         Gnulib module 'posixcheck' is not in use.
12691 2018-08-05  Bruno Haible  <bruno@clisp.org>
12693         iconv-h: Enable 'posixcheck' warnings.
12694         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
12695         iconv_open.
12696         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
12698 2018-08-05  Bruno Haible  <bruno@clisp.org>
12700         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
12701         * m4/extern-inline.m4: Add more comments.
12702         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
12703         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
12704         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
12706 2018-08-04  Bruno Haible  <bruno@clisp.org>
12708         New module 'posixcheck'.
12709         * modules/posixcheck: New file.
12710         * m4/posixcheck.m4: New file.
12711         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
12712         (Which modules?): Reference it.
12714 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
12716         dfa: fix memory leak
12717         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
12719 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
12721         ieee754-h: new module
12722         It looks like Emacs can use this for some NaN processing.
12723         Emacs uses it only on double NaNs so it should be safe.
12724         * MODULES.html.sh (func_all_modules): Add ieee754-h.
12725         * config/srclist.txt: Mention ieee754.h in a comment.
12726         * doc/glibc-headers/ieee754.texi (ieee754.h):
12727         Gnulib now has a substitute that should work
12728         except for long double and for non-IEEE platforms.
12729         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
12730         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
12732 2018-07-27  Bruno Haible  <bruno@clisp.org>
12734         iswcntrl: Mention minor problem on macOS.
12735         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
12737 2018-07-26  Colin Watson  <cjwatson@debian.org>
12739         bootstrap, gnulib-tool: fix translations rsync
12740         Previously, we created files such as $pobase/Makefile.in.in and then the
12741         subsequent rsync would immediately delete them.
12742         * build-aux/bootstrap (po_download_command_format): Avoid deleting
12743         non-.po files in target directory when rsyncing translations.
12744         * gnulib-tool (func_import): Likewise.
12745         * pygnulib/GLImport.py (GLImport.execute): Likewise.
12747 2018-07-25  Jim Meyering  <meyering@fb.com>
12749         bootstrap: reinstate definition fo gnulib_mk.
12750         That variable is used at least by cppi.
12751         * build-aux/bootstrap (gnulib_mk): Restore definition.
12752         This reverts the deletion from v0.1-1844-gc66dba9ba.
12754 2018-07-23  Bruno Haible  <bruno@clisp.org>
12756         doc: For module names, use texinfo markup @code{} or @samp{}.
12757         * doc/alloca.texi: Mark gnulib module names with @code.
12758         * doc/alloca-opt.texi: Likewise.
12759         * doc/quote.texi: Likewise.
12760         * doc/posix-functions/freopen.texi: Likewise.
12761         * doc/posix-functions/open.texi: Likewise.
12762         * doc/posix-functions/readlink.texi: Likewise.
12763         * doc/posix-functions/readlinkat.texi: Likewise.
12764         * doc/posix-functions/stdout.texi: Likewise.
12765         * doc/posix-functions/stderr.texi: Likewise.
12766         * doc/posix-functions/unlink.texi: Likewise.
12767         * doc/posix-functions/unlinkat.texi: Likewise.
12768         * doc/posix-functions/utime.texi: Likewise.
12769         * doc/posix-functions/utimensat.texi: Likewise.
12770         * doc/posix-functions/utimes.texi: Likewise.
12771         * doc/posix-headers/stdint.texi: Likewise.
12772         * doc/glibc-functions/futimesat.texi: Likewise.
12773         * doc/glibc-functions/lutimes.texi: Likewise.
12774         * doc/glibc-functions/memmem.texi: Likewise.
12776 2018-07-23  Werner LEMBERG  <wl@gnu.org>
12778         doc: Avoid some overfull lines in the TeX output.
12779         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
12780         @example.
12781         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
12782         newline before the long URL.
12783         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
12784         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
12785         Add line breaks in code snippets.
12787 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
12789         hard-locale: simplify by removing hard-locale.m4
12790         * m4/hard-locale.m4: Remove.
12791         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
12792         (configure.ac): Do not call gl_HARD_LOCALE.
12794         gnulib-tool: limit line length for git send-email
12795         * gnulib-tool (func_import): Break actioncmd log line
12796         into multiple lines.
12798 2018-07-16  Bruno Haible  <bruno@clisp.org>
12800         ffs: Ensure declaration on mingw.
12801         Reported by Daniel P. Berrangé <berrange@redhat.com>
12802         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
12803         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
12804         also declared.
12806 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12808         regex-tests: add dependency
12809         * modules/regex-tests (Depends-on): Add gettext-h.
12810         This is needed given the recent changes to regex,
12811         which no longer depends on gettext-h.
12813 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12815         regex: now in sync with glibc
12816         * config/srclist.txt: Gnulib and glibc regex code
12817         are synchronized again.
12819 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12821         renameatu: rename from renameat2
12822         It's looking like Glibc will add a renameat2 function
12823         that is incompatible with Gnulib renameat2; see:
12824         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
12825         To help avoid future confusion, rename renameat2 to something else.
12826         Use the name 'renameatu', as the Gnulib function is close to the
12827         Glibc function.  Perhaps someday there will also be a renameat2
12828         Gnulib module, which mimicks the future glibc renameat2, but that
12829         can wait as nobody seems to need such a module now.
12830         * NEWS: Mention this.
12831         * lib/renameatu.c: Rename from lib/renameat2.c.
12832         * lib/renameatu.h: Rename from lib/renameat2.h.
12833         * modules/renameatu: Rename from modules/renameat2.
12834         * modules/renameatu-tests: Rename from modules/renameat2-tests.
12835         All uses of "renameat2" in identifiers or file name
12836         changed to "renameatu", except for two instances in
12837         lib/renameatu.c that deal with the Linux kernel's
12838         renameat2 syscall.
12840 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12842         gnulib-tool: minor tweaks for --gnu-make
12843         * gnulib-tool: Do not allow --gnu-make in test modes,
12844         since they all require automake.
12845         (func_emit_lib_Makefile_am): Don’t emit automake comment
12846         if --gnu-make.
12848         regex: work around conditional-dependencies glitch
12849         * modules/regex (Depends-on): Add langinfo.
12850         Without this change, I had problems building an experimental
12851         version of GNU Emacs.  The symptom of the bug was a message
12852         ‘./configure: line 12726: test: =: unary operator expected’.
12853         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
12854         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
12855         was unset.  Although gl_FUNC_NL_LANGINFO has
12856         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
12857         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
12858         --conditional-dependencies sometimes arranges for the
12859         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
12860         code.  Since the regex code includes <langinfo.h> it should be
12861         depending on the langinfo module anyway, and this happens to work
12862         around the bug, so install that as a workaround for now.  To
12863         reproduce the original problem, run the following shell script on
12864         the version of Gnulib just before this patch was installed.
12865                 rm -fr foo
12866                 mkdir foo
12867                 cat >foo/configure.ac <<'EOF'
12868                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
12869                 gl_EARLY
12870                 gl_INIT
12871                 AC_OUTPUT
12872                 EOF
12873                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
12874                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
12875                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
12876                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
12877                 cd foo
12878                 aclocal -I m4
12879                 autoconf
12880                 ./configure --with-included-regex
12882 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12884         wchar: fix bug when checking for ‘inline’
12885         I discovered this when looking into using the regex module
12886         with Emacs.
12887         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
12888         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
12889         conftest1.c and conftest2.c but these files were not created.
12890         As far as I can see, this check never worked and nobody reported
12891         it until now, which is a bit worrisome.
12893 2018-06-30  Jim Meyering  <meyering@fb.com>
12895         bootstrap: s/--option val/--option=val/
12896         * build-aux/bootstrap (gnulib_tool_options): Change the
12897         spelling of "--option val" pairs to "--option=val", for
12898         aesthetics, and also so that this file no longer triggers
12899         a common help2man syntax-check warning when copied into
12900         projects like grep, gzip, etc.
12902 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12904         manywarnings: omit -Wswitch-default
12905         This should make things more consistent, as we already ignore
12906         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
12907         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
12908         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
12909         Add -Wswitch-default.
12910         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
12911         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12912         Remove -Wswitch-default.
12914         regex: revert most trimming
12915         Problems reported by Bruno Haible in:
12916         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
12917         * modules/regex (Depends-on): Add lock, memcmp, memmove,
12918         and wctype back in.  lock because regex users shouldn’t
12919         need to know that regex needs locking, and the rest because
12920         gnulib-tool should ordinarily ignore them anyway.
12922 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12924         regex: trim module dependencies
12925         * modules/regex (Depends-on): Remove gettext-h and lock,
12926         since the regex code should work OK without these modules,
12927         and Emacs uses it that way.  Also remove memcmp, memmove,
12928         and wctype, as these modules are obsolete and should not be
12929         needed any more.
12931 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
12933         regex: glibc does not use intprops.h
12934         Maybe we can talk glibc into using intprops.h someday, but
12935         now doesn’t seem to be a good time.
12936         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
12937         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
12938         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
12940 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
12942         regex: port to recently proposed glibc regex merge
12943         This patch is inspired by Adhemerval Zanella's recent proposal
12944         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
12945         to merge glibc and Gnulib regex.  It aims to simplify the merge on
12946         the glibc side, without keeping Gnulib portable.
12947         * lib/regex.h: Fix a problem with glibc installed-header checking,
12948         as follows:
12949         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
12950         (_Restrict_arr_): Prefer __restrict_arr if defined,
12951         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
12952         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
12953         (build_wcs_upper_buffer, build_upper_buffer)
12954         (re_string_translate_buffer, re_string_context_at):
12955         Move decls here from lib/regex_internal.h, for glibc internal tests.
12956         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
12957         glibc BZ #18496.
12958         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
12959         -Wunused-value.
12960         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
12961         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
12962         (bitset_mask): Now static inline, and without any __attribute__
12963         ((unused)) decoration, for glibc internal tests.
12965 2018-06-25  Bruno Haible  <bruno@clisp.org>
12967         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
12968         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
12969         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
12970         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
12971         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
12972         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
12973         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
12974         / -lthread / -lpth does not get optimized away by a preceding
12975         --as-needed option.
12977 2018-06-25  Bruno Haible  <bruno@clisp.org>
12979         Continue to use spaces for indentation, not tabs.
12980         * MODULES.html.sh: Untabify.
12981         * doc/regex.texi: Likewise.
12982         * lib/acl-internal.c: Likewise.
12983         * lib/dfa.c: Likewise.
12984         * lib/exclude.c: Likewise.
12985         * lib/exclude.h: Likewise.
12986         * lib/get-permissions.c: Likewise.
12987         * lib/gettimeofday.c: Likewise.
12988         * lib/parse-datetime.y: Likewise.
12989         * lib/pselect.c: Likewise.
12990         * lib/set-permissions.c: Likewise.
12991         * lib/time.in.h: Likewise.
12992         * m4/canonicalize.m4: Likewise.
12993         * m4/gc.m4: Likewise.
12994         * m4/gnulib-common.m4: Likewise.
12995         * m4/pthread_sigmask.m4: Likewise.
12996         * m4/vararrays.m4: Likewise.
12997         * tests/test-digest.h: Likewise.
12998         * tests/test-fcntl-h.c: Likewise.
12999         * tests/test-timespec.c: Likewise.
13000         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
13002 2018-06-25  Bruno Haible  <bruno@clisp.org>
13004         manywarnings: Don't enable -Wjump-misses-init warnings by default.
13005         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
13006         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
13007         -Wjump-misses-init.
13009 2018-06-25  Jim Meyering  <meyering@fb.com>
13011         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
13012         * lib/acl-internal.h (free_permission_context): Remove that
13013         attribute directive.  Otherwise, it would provoke this from GCC 9:
13014         lib/acl-internal.h:300:3: error: 'const' attribute on function \
13015           returning 'void' [-Werror=attributes]
13017 2018-06-24  Jim Meyering  <meyering@fb.com>
13019         parse-datetime: accommodate gcc-4.8.5
13020         Bruno Haible reported the build failure in
13021         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
13022         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
13023         on declaration of new local.
13025 2018-06-24  Bruno Haible  <bruno@clisp.org>
13027         af_alg: Fail in continuable manner on Linux/powerpc64le.
13028         Reported by Assaf Gordon <assafgordon@gmail.com>
13029         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
13030         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
13031         byte send() as the first round.
13033 2018-06-24  Bruno Haible  <bruno@clisp.org>
13035         af_alg: Fix state of stream after sendfile() succeeds.
13036         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
13037         the stream is correctly positioned afterwards.
13038         * modules/crypto/af_alg (Depends-on): Add fflush.
13039         * tests/test-digest.h (test_digest_on_files): Verify that after the
13040         operation the stream is positioned at end of file.
13042 2018-06-24  Jim Meyering  <meyering@fb.com>
13044         canon-host: take GCC9's advice rather than ignoring warning
13045         Pádraig Brady suggested not to ignore this GCC9 advice.
13046         * lib/canon-host.c: Undo preceding change.
13047         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
13049         parse-datetime.y: avoid spurious GCC 9 warning
13050         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
13051         a function local prior to the first "goto fail".  The prior use would
13052         evoke this:
13053         parse-datetime.y: In function 'parse_datetime2':
13054         parse-datetime.y:1791:19: error: jump skips variable initialization \
13055           [-Werror=jump-misses-init]
13056         parse-datetime.y:2385:2: note: label 'fail' defined here
13057         parse-datetime.y:188:43: note: '({anonymous})' declared here
13058         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
13060         canon-host.c: avoid spurious GCC 9 warning
13061         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
13063         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
13064         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
13065         * m4/manywarnings.m4: Remove them.
13066         Otherwise, building coreutils, I would see this:
13067         cc1: error: deprecated command line option '-Wchkp' [-Werror]
13068         cc1: error: -Wabi won't warn about anything [-Werror=abi]
13069         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
13070           which is also used by default
13071         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
13073 2018-06-24  Bruno Haible  <bruno@clisp.org>
13075         af_alg tests: Add another test.
13076         * tests/test-digest.h (test_digest_on_files): Also check a large file
13077         with a skipped header.
13078         * tests/test-md5.c: Include macros.h.
13079         * tests/test-sha1.c: Likewise.
13080         * tests/test-sha256.c: Likewise.
13081         * tests/test-sha512.c: Likewise.
13082         * modules/crypto/md5-tests (Files): Add tests/macros.h.
13083         * modules/crypto/sha1-tests (Files): Likewise.
13084         * modules/crypto/sha256-tests (Files): Likewise.
13085         * modules/crypto/sha512-tests (Files): Likewise.
13087 2018-06-24  Pádraig Brady  <P@draigBrady.com>
13089         maint: clarify comments about sticky EOF
13090         * lib/af_alg.c: Be more direct that we can't
13091         assume stickiness of EOF for portability reasons.
13092         * lib/md5.c: Clarify that this isn't just a glibc issue.
13093         * lib/sha1.c: Likewise.
13094         * lib/sha256.c: Likewise.
13095         * lib/sha512.c: Likewise.
13097 2018-06-24  Bruno Haible  <bruno@clisp.org>
13099         af_alg: Comment and style improvements.
13100         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
13101         (afalg_buffer, afalg_stream): Improve comments.
13103 2018-06-24  Pádraig Brady  <P@draigBrady.com>
13105         af_alg: disable kernel hash functions by default
13106         All the kernel routines were seen to be significantly slower
13107         with these relatively recent components on an i3-2310M system:
13108           kernel-4.10.6-200.fc25.x86_64
13109           openssl-1.0.2m-1.fc25.x86_64
13110         sha1 was nearly twice as slow in the kernel for example.
13111         Further considerations why this should not be the default, at:
13112         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
13114         * m4/af_alg.m4: Require --with-linux-crypto to enable.
13115         * m4/gl-openssl.m4: Tweak accordingly.
13117 2018-06-24  Pádraig Brady  <P@draigBrady.com>
13119         af_alg: avoid hangs when reading from streams
13120         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
13121         and thus avoid doing a fread() when feof() is set.
13122         * lib/md5.c: Ensure feof() is called before fread().
13123         * lib/sha1.c: Likewise.
13124         * lib/sha256.c: Likewise.
13125         * lib/sha512.c: Likewise.
13127 2018-06-24  Pádraig Brady  <P@draigBrady.com>
13129         af_alg: fix error handling when hash not returned
13130         * lib/af_alg.c (afalg_stream): Handle the case where we've
13131         successfully written data to the kernel in the read/write loop,
13132         but the kernel doesn't respond with the hash.
13134 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13136         libc-config: merge from glibc
13137         * lib/cdefs.h (__inline, __restrict):
13138         Copy from current glibc.  This fixes glibc bug 17721,
13139         which Gnulib had already fixed in a different way.
13140         (__nonnull): Lessen the distance from glibc by using the
13141         glibc definition inside an ‘#ifndef __nonnull’.
13142         (__attribute_nonstring__): New macro, copied from
13143         current glibc.
13144         * lib/libc-config.h (__attribute_nonstring__): New undef.
13145         (__restrict): Remove; workaround no longer needed.
13146         Keep the __inline workaround, though, as it uses HAVE___INLINE to
13147         support more compilers than the glibc __inline can.
13149 2018-06-24  Bruno Haible  <bruno@clisp.org>
13151         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
13152         * lib/mbrtowc.c (enc_t): New enum type.
13153         (locale_enc, locale_enc_cached): New functions.
13154         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
13155         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
13156         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
13157         instead.
13158         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
13159         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
13160         * modules/wcwidth (configure.ac): Invoke it.
13162 2018-06-24  Bruno Haible  <bruno@clisp.org>
13164         wchar-single: Fix test failure in wcwidth tests.
13165         * tests/test-wcwidth.c (main): If the wchar-single module is present,
13166         skip the tests in the C locale.
13168 2018-06-23  Pádraig Brady  <P@draigBrady.com>
13170         crypto: mention --without-linux-crypto in --with-openssl --help
13171         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
13172         routines take precedence in --with-openssl help output.
13174 2018-06-23  Pádraig Brady  <P@draigBrady.com>
13176         wchar-single: a new module to enable optimizations in wchar replacements
13177         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
13178         GNULIB_WCHAR_SINGLE is enabled.
13179         * lib/wcwidth.c (wcwidth): Likewise.
13181 2018-06-23  Bruno Haible  <bruno@clisp.org>
13183         libc-config: Fix conflict with FreeBSD include files.
13184         * lib/cdefs.h (__nonnull): Remove definition.
13185         * lib/libc-config.h (__nonnull): Remove undefinition.
13187 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13189         random_r: do not crash if state is unaligned
13190         Problem reported by Bruce Korb in:
13191         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
13192         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
13193         with 'cc -O2 -xmemalign=8s'.
13194         * lib/random_r.c: Include string.h, for memcpy.
13195         (get_int32, set_int32): New functions.
13196         (__srandom_r, __initstate_r, __setstate_r, __random_r):
13197         Use them to avoid assumption that state pointer is aligned.
13198         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
13199         * tests/test-random_r.c (test_failed): New function.
13200         (main): Use it, to test for alignment bugs.
13202         random_r: omit unnecessary include
13203         * lib/random_r.c: Do not include limits.h.
13205         random, random_r: merge from glibc
13206         * lib/random.c, lib/random_r.c:
13207         Include libc-config.h if !_LIBC, not config.h unilaterally.
13208         * lib/random.c:
13209         Do not include stdint.h or time.h; not needed.
13210         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
13211         (unsafe_state): Rename from generator.  All uses changed.
13212         Use C99-style initializers.
13213         (__random, __srandom, __initstate, __setstate): Rename from
13214         non-underscored version, but define it to non-underscored version
13215         on Gnulib.  Add a lock.
13216         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
13217         Likewise.
13218         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
13219         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
13220         (__srandom_r): Use int32_t instead of long int where int32_t will do.
13221         (__random_r): Use uint32 to fix glibc bug 17343.
13222         * modules/random, modules/random_r (Depends-on): Add libc-config.
13223         Depend on stdint only if $HAVE_RANDOM = 0.
13225 2018-06-19  Jim Meyering  <meyering@fb.com>
13227         README-release: also run any check-very-expensive tests
13228         * top/README-release: Adjust instructions so they run the
13229         check-very-expensive tests when there is such a target.
13231 2018-06-18  Bruno Haible  <bruno@clisp.org>
13233         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
13234         * m4/pthread_rwlock_rdlock.m4: Add comment.
13235         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
13236         are reader-preferring in glibc.
13237         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
13238         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13240 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13242         crypto: use byteswap
13243         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
13244         * lib/sm3.c: Include <byteswap.h>.
13245         (SWAP): Use its macros rather than reinventing the wheel.
13246         * modules/crypto/md4, modules/crypto/md5-buffer:
13247         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
13248         * modules/crypto/sha512-buffer, modules/crypto/sm3:
13249         (Depends-on): Add byteswap.
13251 2018-06-17  Pádraig Brady  <P@draigBrady.com>
13253         gendocs.sh: fix support for legacy --texi2html
13254         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
13255         to the default makeinfo invocation.
13256         Reported by Bruce Korb
13258 2018-06-17  Bruno Haible  <bruno@clisp.org>
13260         gettext po infrastructure: Update from current gettext git.
13261         Reported by Akim Demaille <akim@lrde.epita.fr>.
13262         * build-aux/po/Makefile.in.in: Update from current gettext git.
13263         * build-aux/po/remove-potcdate.sin: Likewise.
13264         * config/srclist.txt: Temporarily disable sync for these files.
13266 2018-06-17  Bruno Haible  <bruno@clisp.org>
13268         getloadavg: Return 0 on Windows without Cygwin.
13269         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
13271 2018-06-17  Paul Smith  <psmith@gnu.org>
13273         getloadavg: Allow building on Windows without Cygwin
13274         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
13275         * m4/getloadavg.m4: Check for unistd.h.
13277 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
13279         Port crypto/af_alg to GCC 4.8.4
13280         Problem reported by Peter Simons in:
13281         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
13282         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
13284 2018-05-27  Colin Watson  <cjwatson@debian.org>
13286         bootstrap: document source fetching in --help
13287         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
13289 2018-04-09  Colin Watson  <cjwatson@debian.org>
13291         bootstrap: allow non-submodule control of gnulib
13292         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
13293         bootstrap.conf when fetching gnulib using "git clone" or via
13294         GNULIB_SRCDIR.
13296 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13298         crypto: omit stream ops Emacs doesn’t need
13299         * lib/md5.c (md5_stream):
13300         * lib/sha1.c (sha1_stream):
13301         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
13302         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
13303         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
13304         defined.  Emacs needs this, as it does not use the stream
13305         operations and doesn’t need all the af_alg stuff we’ve recently
13306         added.  Perhaps a similar change is needed to the other crypto
13307         modules, but this patch changes only those needed for Emacs.
13308         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
13309         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
13310         New modules, used by Emacs.
13311         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
13312         * modules/crypto/sha512: Rewrite to depend on the new modules.
13314 2018-05-20  Pádraig Brady  <P@draigBrady.com>
13316         fts: avoid a memory leak edge case
13317         * lib/fts.c (fts_open): Set an appropriate fts_level
13318         so that an immediate fts_close() will free the allocation.
13319         * tests/test-fts.c (fts_dealloc): Add a test case which
13320         will trigger under valgrind or address sanitizer.
13321         Fixes https://bugs.gnu.org/31439
13323 2018-05-20  Bruno Haible  <bruno@clisp.org>
13325         wcwidth tests: Fix link error.
13326         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
13327         $(LIBUNISTRING).
13329 2018-05-20  Bruno Haible  <bruno@clisp.org>
13331         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
13332         * modules/regex (Files): Add m4/glibc21.m4.
13334 2018-05-20  Bruno Haible  <bruno@clisp.org>
13336         localcharset: Optimize.
13337         * lib/localcharset.c (alias_table): Comment out no-op mappings for
13338         platforms where these don't matter. This reduces the table size,
13339         which in turn reduces the lookup time.
13341 2018-05-19  Bruno Haible  <bruno@clisp.org>
13343         localcharset: Map the locale encodings found in newer OSes.
13344         * lib/localcharset.c (alias_table): Add mapping for locale encodings
13345         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
13346         IRIX 6.5, Minix 3.3.
13347         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
13349 2018-05-19  Bruno Haible  <bruno@clisp.org>
13351         localcharset: Move mapping tables into the code. Use a binary search.
13352         * lib/localcharset.h: Document the GNU canonical names for character
13353         encodings here.
13354         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
13355         relocatable.h, configmake.h.
13356         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
13357         macros.
13358         (charset_aliases): Remove variable.
13359         (get_charset_aliases): Remove function.
13360         (struct table_entry): New type.
13361         (alias_table, locale_table): New constants.
13362         (locale_charset): Use the alias_table or locale_table to get the
13363         canonicalized encoding name.
13364         * lib/config.charset: Remove file.
13365         * lib/ref-add.sin: Remove file.
13366         * lib/ref-del.sin: Remove file.
13367         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
13368         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
13369         * modules/localcharset (Notice): Remove.
13370         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
13371         glibc21.m4.
13372         (Depends-on): Remove configmake.
13373         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
13374         (Makefile.am): Simplify.
13375         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
13377 2018-05-19  Bruno Haible  <bruno@clisp.org>
13379         localcharset: Add a manual test.
13380         * tests/test-localcharset.c: New file.
13381         * modules/localcharset-tests: New file.
13383 2018-05-19  Bruno Haible  <bruno@clisp.org>
13385         localcharset: Remove support for obsolete platforms.
13386         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
13387         Mac OS X 10.2. Comment out dubious entry for Solaris.
13389 2018-05-19  Jim Meyering  <meyering@fb.com>
13391         gnupload: adjust comment
13392         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
13393         more likely we'll remove the just-added code in a year or two.
13395 2018-05-19  Bruno Haible  <bruno@clisp.org>
13397         gnupload: Fix "gpg-agent is not available in this session" error.
13398         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
13400 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13402         crypto/af_alg: fix --help
13403         * m4/af_alg.m4: Avoid spurious newline in --help output.
13405 2018-05-13  Bruno Haible  <bruno@clisp.org>
13407         nl_langinfo: Fix compilation error on Android.
13408         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
13409         INT_CURR_SYMBOL, etc. only if these items are defined.
13411 2018-05-13  Bruno Haible  <bruno@clisp.org>
13413         truncate: Fix compilation error on Android.
13414         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
13415         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
13416         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
13417         HAVE_TRUNCATE.
13418         * modules/truncate: Likewise.
13419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
13420         not HAVE_TRUNCATE.
13421         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
13422         HAVE_TRUNCATE.
13423         * doc/posix-functions/truncate.texi: Mention the issue.
13425 2018-05-13  Bruno Haible  <bruno@clisp.org>
13427         pthread: Fix compilation error on Android.
13428         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
13429         recursive inclusion of this file.
13431 2018-05-13  Bruno Haible  <bruno@clisp.org>
13433         posix_spawn: Fix compilation error on Android.
13434         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
13435         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
13436         (posix_spawn_file_actions_t): Consider also the case
13437         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
13439 2018-05-13  Bruno Haible  <bruno@clisp.org>
13441         tsearch: Move from K&R C to ANSI C.
13442         * lib/tsearch.c (tfind): Convert definition to ANSI C.
13444 2018-05-13  Bruno Haible  <bruno@clisp.org>
13446         tsearch: Fix compilation error on Android.
13447         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
13448         is 0.
13449         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
13450         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
13451         GNULIB_defined_tsearch is true.
13452         (twalk): Define only if GNULIB_defined_twalk is true.
13453         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
13454         is 0.
13455         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
13456         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
13457         * modules/search (Makefile.am): Substitute HAVE_TWALK.
13459 2018-05-13  Bruno Haible  <bruno@clisp.org>
13461         imaxdiv: Fix compilation error on Android.
13462         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
13463         is not defined.
13464         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
13465         HAVE_DECL_IMAXDIV, is 0.
13466         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
13467         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
13469 2018-05-13  Bruno Haible  <bruno@clisp.org>
13471         Support selective inclusion mechanism of recent mingw.org header files.
13472         Reported by Eli Zaretskii <eliz@gnu.org>.
13473         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
13474         __need_ssize_t, or __need_time_t is defined, just include the system's
13475         <sys/types.h>.
13476         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
13477         include the system's <locale.h>.
13479 2018-05-13  Bruno Haible  <bruno@clisp.org>
13481         Avoid compilation error due to 'mmap' on Android.
13482         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
13483         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
13484         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
13485         Undefine on Android.
13487 2018-05-13  Bruno Haible  <bruno@clisp.org>
13489         Add cross-compilation guesses for Linux systems without glibc.
13490         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
13491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13492         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13493         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13494         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
13495         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13496         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13497         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13498         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
13499         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
13500         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13501         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13502         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13503         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13504         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13505         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
13506         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13507         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13509 2018-05-13  Bruno Haible  <bruno@clisp.org>
13511         getpagesize: Fix compilation error on Android.
13512         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
13513         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
13514         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
13515         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
13516         HAVE_GETPAGESIZE accordingly.
13517         * modules/getcwd (Files): Add m4/getpagesize.m4.
13519 2018-05-13  Bruno Haible  <bruno@clisp.org>
13521         tcgetsid: Fix compilation error on Android.
13522         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
13523         AC_CHECK_FUNC.
13525 2018-05-13  Bruno Haible  <bruno@clisp.org>
13527         getpass: Fix configure test for Android.
13528         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
13529         AC_CHECK_FUNC.
13531 2018-05-13  Bruno Haible  <bruno@clisp.org>
13533         ffs: Fix compilation error on Android.
13534         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
13536 2018-05-13  Bruno Haible  <bruno@clisp.org>
13538         mkfifo: Fix compilation error on Android.
13539         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
13540         AC_CHECK_FUNC.
13542 2018-05-13  Bruno Haible  <bruno@clisp.org>
13544         c-strtod: Fix configure test for Android.
13545         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
13546         AC_CHECK_FUNC.
13548 2018-05-13  Bruno Haible  <bruno@clisp.org>
13550         random: Fix compilation error on Android.
13551         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
13552         AC_CHECK_FUNC.
13554 2018-05-13  Bruno Haible  <bruno@clisp.org>
13556         grantpt: Fix compilation error on Android.
13557         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
13558         AC_CHECK_FUNC.
13560 2018-05-13  Bruno Haible  <bruno@clisp.org>
13562         stdioext: Fix compilation errors with newer Android headers.
13563         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
13564         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
13565         fallbacks for Android.
13566         * lib/fpending.c: Update comments.
13567         * lib/fpurge.c: Likewise.
13568         * lib/freadable.h: Likewise.
13569         * lib/freadable.c: Likewise.
13570         * lib/freadahead.c: Likewise.
13571         * lib/freading.h: Likewise.
13572         * lib/freadptr.c: Likewise.
13573         * lib/fseterr.c: Likewise.
13574         * lib/fwritable.h: Likewise.
13575         * lib/fwritable.c: Likewise.
13576         * lib/fwriting.h: Likewise.
13577         * lib/fwriting.c: Likewise.
13579 2018-05-13  Bruno Haible  <bruno@clisp.org>
13581         doc: Add info about Android versions 2.0 to 8.1.
13582         * doc/**/*.texi: Add info about functions in all released versions of
13583         Bionic.
13585 2018-05-12  Bruno Haible  <bruno@clisp.org>
13587         fseeko: On mingw, don't use the hidden function _fseeki64.
13588         Reported by Eli Zaretskii <eliz@gnu.org>.
13589         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
13590         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
13592 2018-05-12  Bruno Haible  <bruno@clisp.org>
13594         glob: Choose 'dirent_type' in a way that works better on mingw.
13595         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
13596         * lib/glob.c (dirent_type): Define as uint_fast32_t.
13598 2018-05-12  Bruno Haible  <bruno@clisp.org>
13600         execute, spawn-pipe: Avoid warning about redefining 'close'.
13601         Reported by Eli Zaretskii <eliz@gnu.org>.
13602         * lib/execute.c: Undefine 'close' before redefining it.
13603         * lib/spawn-pipe.c: Likewise.
13605 2018-05-12  Bruno Haible  <bruno@clisp.org>
13607         nanosleep: Avoid test failure on mingw when it has nanosleep.
13608         Reported by Eli Zaretskii <eliz@gnu.org>.
13609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
13610         If it does not exist, use a simpler test program that does not call
13611         alarm().
13613 2018-05-10  Bruno Haible  <bruno@clisp.org>
13615         lock, cond, thread, tls: Use a different symbol as libpthread witness.
13616         Reported by Devin Hussey <husseydevin@gmail.com>.
13617         Based on a patch by Paul Eggert.
13618         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
13619         as witness of libpthread.
13620         * lib/glthread/cond.h (pthread_in_use): Likewise.
13621         * lib/glthread/thread.h (pthread_in_use): Likewise.
13622         * lib/glthread/tls.h (pthread_in_use): Likewise.
13624 2018-05-10  Bruno Haible  <bruno@clisp.org>
13626         cond tests: Fix compilation error on Solaris.
13627         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
13628         macro.
13630 2018-05-10  Bruno Haible  <bruno@clisp.org>
13632         doc: Add partial info about Android 4.3.
13633         * doc/*-functions/*.texi: Add info about functions that were added
13634         to Bionic between Android 4.3 and Android 9.0.
13636 2018-05-10  Bruno Haible  <bruno@clisp.org>
13638         doc: Add info about Android 9.0.
13639         * doc/**/*.texi: Add info about functions and headers in Bionic from
13640         Android 9.0.
13642 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13644         af_alg: fix my typo in afalg_buffer
13645         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
13646         (afalg_stream): Simplify and avoid the need for a runtime test
13647         at the end.
13649         af_alg: recover better from crypto failures
13650         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
13651         input stream is seekable, by repositioning the stream back to
13652         where it was, possibly by just calling sendfile with an offset
13653         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
13654         cases, which lets our callers try again with user-mode code.
13655         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
13656         instead of on fflush and lseek.
13658         af_alg: distiguish I/O errors better
13659         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
13660         not -EIO, if it’s OK for the caller to try again with user-mode code.
13661         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
13662         some other error number) if fflush fails, as the caller should not
13663         try again that case.
13665         af_alg: avoid gotos
13666         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
13667         gotos, as they were a source of unreliability and made the code a
13668         bit harder to follow.
13670         af_alg: don’t leak file descriptors into children
13671         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
13672         This code should be compiled only on recent GNU/Linux platforms
13673         so we shouldn’t have to also depend on the accept4 module.
13675         af_alg: coalesce socket creation
13676         * lib/af_alg.c (alg_socket): New function.
13677         (afalg_buffer, afalg_stream): Use it.  This avoids some
13678         code duplication and gotos.
13680         af_alg: fix file descriptor leak
13681         * lib/af_alg.c (afalg_stream): Close leak.
13683         af_alg: Pacify --enable-gcc-warnings on GCC 8
13684         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
13685         and checking to pacify gcc -Wjump-misses-init on GCC 8.
13687 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13689         af_alg: Pacify --enable-gcc-warnings
13690         Problem reported by Assaf Gordon in:
13691         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
13692         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
13693         gcc -Wjump-misses-init.
13694         * lib/sha512.c (shaxxx_stream): Now static.
13696 2018-05-06  Bruno Haible  <bruno@clisp.org>
13698         af_alg: Add ability to use Linux kernel crypto API on data in memory.
13699         * lib/af_alg.h (afalg_buffer): New declaration.
13700         * lib/af_alg.c (afalg_buffer): New function.
13702 2018-05-06  Bruno Haible  <bruno@clisp.org>
13704         af_alg: Avoid warnings.
13705         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
13706         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
13708 2018-05-06  Bruno Haible  <bruno@clisp.org>
13710         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
13711         * tests/bench-digest.h: New file.
13712         * tests/bench-md5.c: New file.
13713         * tests/bench-sha1.c: New file.
13714         * tests/bench-sha224.c: New file.
13715         * tests/bench-sha256.c: New file.
13716         * tests/bench-sha384.c: New file.
13717         * tests/bench-sha512.c: New file.
13718         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
13719         tests/bench-digest.h.
13720         (Depends-on): Add getrusage, gettimeofday.
13721         (Makefile.am): Add variables to build bench-md5.
13722         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
13723         tests/bench-digest.h.
13724         (Depends-on): Add getrusage, gettimeofday.
13725         (Makefile.am): Add variables to build bench-sha1.
13726         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
13727         tests/bench-sha256.c, tests/bench-digest.h.
13728         (Depends-on): Add getrusage, gettimeofday.
13729         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
13730         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
13731         tests/bench-sha512.c, tests/bench-digest.h.
13732         (Depends-on): Add getrusage, gettimeofday.
13733         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
13735 2018-05-06  Bruno Haible  <bruno@clisp.org>
13737         af_alg: Fix a resource leak.
13738         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
13739         New local variable 'result'.
13741 2018-05-06  Bruno Haible  <bruno@clisp.org>
13743         af_alg: Fix bug with streams that are not at position 0.
13744         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
13745         assume that the stream is positioned at position 0.
13746         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
13747         of the stream.
13748         * lib/md5.h (md5_stream): Likewise.
13749         * lib/sha1.h (sha1_stream): Likewise.
13750         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
13751         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
13752         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
13754         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
13755         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
13756         stream that is not positioned at the beginning.
13758 2018-05-06  Bruno Haible  <bruno@clisp.org>
13760         af_alg: Add configure option to enable/disable use of Linux crypto API.
13761         Suggested by Assaf Gordon <assafgordon@gmail.com>.
13762         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
13763         USE_LINUX_CRYPTO_API.
13764         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
13765         * lib/af_alg.c: Likewise.
13767 2018-05-06  Bruno Haible  <bruno@clisp.org>
13769         Followup to 'af_alg: New module.'.
13770         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
13771         * modules/crypto/sha1 (Depends-on): Likewise.
13772         * modules/crypto/sha256 (Depends-on): Likewise.
13773         * modules/crypto/sha512 (Depends-on): Likewise.
13775 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13777         crypto/{md5,sha1,sha256,sha512}: simplify
13778         * lib/md5.c (md5_stream):
13779         * lib/sha1.c (sha1_stream):
13780         * lib/sha256.c (shaxxx_stream):
13781         Simplify, partly by assuming C99.
13782         * lib/sha256.c (shaxxx_stream):
13783         New function, which implements both sha256 and sha224.
13784         Simplify, partly by assuming C99.
13785         (sha256_stream, sha224_stream):
13786         Use it to avoid code duplication, removing a FIXME.
13787         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
13788         Likewise.
13790         af_alg: Improve comments.
13791         * lib/af_alg.h: Use imperatives and tighten up wording.
13793 2018-05-05  Bruno Haible  <bruno@clisp.org>
13795         af_alg: Improve comments.
13796         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
13798 2018-05-05  Bruno Haible  <bruno@clisp.org>
13800         af_alg: New module.
13801         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
13802         * lib/af_alg.c: Include "af_alg.h" before the other header files.
13803         * lib/md5.c: Include "af_alg.h" unconditionally.
13804         (md5_stream): Invoke afalg_stream unconditionally.
13805         * lib/sha1.c: Include "af_alg.h" unconditionally.
13806         (sha1_stream): Invoke afalg_stream unconditionally.
13807         * lib/sha256.c: Include "af_alg.h" unconditionally.
13808         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
13809         * lib/sha512.c: Include "af_alg.h" unconditionally.
13810         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
13811         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
13812         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
13813         * modules/crypto/af_alg: New file.
13814         * modules/crypto/md5 (Files): Remove files that are now in the
13815         'crypto/af_alg' module.
13816         (Depends-on): Add crypto/af_alg.
13817         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13818         (Makefile.am): Don't mention af_alg.c here.
13819         * modules/crypto/sha1 (Files): Remove files that are now in the
13820         'crypto/af_alg' module.
13821         (Depends-on): Add crypto/af_alg.
13822         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13823         (Makefile.am): Don't mention af_alg.c here.
13824         * modules/crypto/sha256 (Files): Remove files that are now in the
13825         'crypto/af_alg' module.
13826         (Depends-on): Add crypto/af_alg.
13827         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13828         (Makefile.am): Don't mention af_alg.c here.
13829         * modules/crypto/sha512 (Files): Remove files that are now in the
13830         'crypto/af_alg' module.
13831         (Depends-on): Add crypto/af_alg.
13832         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13833         (Makefile.am): Don't mention af_alg.c here.
13835 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13837         crypto tests: pacify GCC
13838         * tests/test-digest.h (test_digest_on_files):
13839         Don’t assume digest size fits in int (!).
13841         af_alg: minor style improvements
13842         * lib/af_alg.c (afalg_stream): Prefer C99 style
13843         decl-after-statement, since we’re already assuming C99.  Clarify
13844         by strengthening the bind test and omit unnecessary assignment.
13846 2018-05-05  Bruno Haible  <bruno@clisp.org>
13848         af_alg: Fix bug on empty files.
13849         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
13850         stream is empty.
13852 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13854         sys-limits.h: new file for crypto and safe I/O
13855         * lib/af_alg.c: Include sys-limits.h.
13856         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
13857         (afalg_stream): Also reject negative sizes for sendfile; they
13858         should not happen and the code is a bit cleaner and faster this way.
13859         * lib/safe-read.c: Include sys-limits.h.
13860         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
13861         * lib/sys-limits.h: New file, with values and commentary derived
13862         from the old safe-read.c and from GNU Emacs sysdep.c.
13863         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
13864         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
13865         Add lib/sys-limits.h to Files section.
13867 2018-05-05  Bruno Haible  <bruno@clisp.org>
13869         af_alg: Improve function signature.
13870         * lib/af_alg.h (afalg_stream): Swap second and third argument.
13871         * lib/af_alg.c (afalg_stream): Likewise.
13872         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
13874 2018-05-05  Bruno Haible  <bruno@clisp.org>
13876         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
13877         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
13878         * modules/crypto/sha1 (Depends-on): Likewise.
13879         * modules/crypto/sha256 (Depends-on): Likewise.
13880         * modules/crypto/sha512 (Depends-on): Likewise.
13882 2018-05-05  Bruno Haible  <bruno@clisp.org>
13884         crypto/{md5,sha1,sha256,sha512}: Fix module description.
13885         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
13886         * modules/crypto/sha1 (Depends-on): Likewise.
13887         * modules/crypto/sha256 (Depends-on): Likewise.
13888         * modules/crypto/sha512 (Depends-on): Likewise.
13890 2018-05-05  Bruno Haible  <bruno@clisp.org>
13892         af_alg: Add documentation.
13893         * lib/af_alg.h: Add comments.
13895 2018-05-05  Bruno Haible  <bruno@clisp.org>
13897         sha512: Add tests.
13898         * tests/test-sha512.c: New file.
13899         * modules/crypto/sha512-tests: New file.
13901 2018-05-05  Bruno Haible  <bruno@clisp.org>
13903         sha256: Add tests.
13904         * tests/test-sha256.c: New file.
13905         * modules/crypto/sha256-tests: New file.
13907 2018-05-05  Bruno Haible  <bruno@clisp.org>
13909         sha1 tests: Add test for sha1_stream.
13910         * tests/test-sha1.c: Include test-digest.h.
13911         (main): Invoke test_digest_on_files on 'sha1_stream'.
13912         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
13914 2018-05-05  Bruno Haible  <bruno@clisp.org>
13916         md5 tests: Add test for md5_stream.
13917         * tests/test-digest.h: New file.
13918         * tests/test-md5.c: Include test-digest.h.
13919         (main): Invoke test_digest_on_files on 'md5_stream'.
13920         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
13922 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13924         md5sum: Use AF_ALG when available.
13925         * lib/md5.c: Include af_alg.h.
13926         (md5_stream): Use afalg_stream when available.
13927         * modules/crypto/md5 (Files): Add the af_alg files.
13928         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13929         (Makefile.am): Add af_alg.c.
13931 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13933         sha512sum: Use AF_ALG when available.
13934         * lib/sha512.c: Include af_alg.h.
13935         (sha512_stream, sha384_stream): Use afalg_stream when available.
13936         * modules/crypto/sha512 (Files): Add the af_alg files.
13937         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13938         (Makefile.am): Add af_alg.c.
13940 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13942         sha256sum: Use AF_ALG when available.
13943         * lib/sha256.c: Include af_alg.h.
13944         (sha256_stream, sha224_stream): Use afalg_stream when available.
13945         * modules/crypto/sha256 (Files): Add the af_alg files.
13946         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13947         (Makefile.am): Add af_alg.c.
13949 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13951         sha1sum: Use AF_ALG when available.
13952         * lib/af_alg.h: New file.
13953         * lib/af_alg.c: New file.
13954         * lib/sha1.c: Include af_alg.h.
13955         (sha1_stream): Use afalg_stream when available.
13956         * m4/linux-if-alg.m4: New file.
13957         * modules/crypto/sha1 (Files): Add the new files.
13958         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13959         (Makefile.am): Add af_alg.c.
13961 2018-05-05  Bruno Haible  <bruno@clisp.org>
13963         all: Replace more http URLs by https URLs.
13964         * lib/localename.c: Use https: URL.
13965         * lib/timespec.h: Likewise.
13967 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13969         maint: port more modules to GCC 8
13970         * lib/dirname.h (base_name):
13971         * lib/exclude.h (new_exclude):
13972         * lib/xstrndup.h (xstrndup):
13973         Add malloc attribute.
13974         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
13975         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
13976         This pacifies GCC 8.
13977         * m4/gnulib-common.m4 (gl_COMMON_BODY):
13978         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
13980 2018-05-03  Bruno Haible  <bruno@clisp.org>
13982         Simplify code. Drop support for Borland C++ on Windows.
13983         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
13984         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
13985         'defined _WIN32'.
13986         * lib/canonicalize-lgpl.c: Likewise.
13987         * lib/classpath.c: Likewise.
13988         * lib/clean-temp.c: Likewise.
13989         * lib/csharpexec.c: Likewise.
13990         * lib/ctime.c: Likewise.
13991         * lib/dosname.h: Likewise.
13992         * lib/dup2.c: Likewise.
13993         * lib/errno.in.h: Likewise.
13994         * lib/error.c: Likewise.
13995         * lib/euidaccess.c: Likewise.
13996         * lib/execute.c: Likewise.
13997         * lib/fcntl.in.h: Likewise.
13998         * lib/fcntl.c: Likewise.
13999         * lib/filename.h: Likewise.
14000         * lib/findprog.c: Likewise.
14001         * lib/flock.c: Likewise.
14002         * lib/fopen.c: Likewise.
14003         * lib/freopen.c: Likewise.
14004         * lib/fstat.c: Likewise.
14005         * lib/fsync.c: Likewise.
14006         * lib/gc-gnulib.c: Likewise.
14007         * lib/get-rusage-data.c: Likewise.
14008         * lib/getaddrinfo.c: Likewise.
14009         * lib/getdelim.c: Likewise.
14010         * lib/getdtablesize.c: Likewise.
14011         * lib/gethostname.c: Likewise.
14012         * lib/getlogin.c: Likewise.
14013         * lib/getlogin_r.c: Likewise.
14014         * lib/getopt.c: Likewise.
14015         * lib/getpagesize.c: Likewise.
14016         * lib/getpass.c: Likewise.
14017         * lib/getrusage.c: Likewise.
14018         * lib/gettimeofday.c: Likewise.
14019         * lib/glob.c: Likewise.
14020         * lib/inttypes.in.h: Likewise.
14021         * lib/isapipe.c: Likewise.
14022         * lib/javaexec.c: Likewise.
14023         * lib/link.c: Likewise.
14024         * lib/localcharset.c: Likewise.
14025         * lib/localename.h: Likewise.
14026         * lib/localename.c: Likewise.
14027         * lib/localtime.c: Likewise.
14028         * lib/lseek.c: Likewise.
14029         * lib/mbsinit.c: Likewise.
14030         * lib/mkdir.c: Likewise.
14031         * lib/msvc-nothrow.h: Likewise.
14032         * lib/nanosleep.c: Likewise.
14033         * lib/nl_langinfo.c: Likewise.
14034         * lib/nonblocking.c: Likewise.
14035         * lib/nproc.c: Likewise.
14036         * lib/open.c: Likewise.
14037         * lib/openpty.c: Likewise.
14038         * lib/pathmax.h: Likewise.
14039         * lib/pipe-filter-aux.c: Likewise.
14040         * lib/pipe-filter-gi.c: Likewise.
14041         * lib/pipe-filter-ii.c: Likewise.
14042         * lib/pipe.c: Likewise.
14043         * lib/pipe2.c: Likewise.
14044         * lib/poll.c: Likewise.
14045         * lib/popen.c: Likewise.
14046         * lib/posix_openpt.c: Likewise.
14047         * lib/printf-parse.c: Likewise.
14048         * lib/progreloc.c: Likewise.
14049         * lib/putenv.c: Likewise.
14050         * lib/read.c: Likewise.
14051         * lib/relocatable.c: Likewise.
14052         * lib/rename.c: Likewise.
14053         * lib/same-inode.h: Likewise.
14054         * lib/secure_getenv.c: Likewise.
14055         * lib/select.c: Likewise.
14056         * lib/sethostname.c: Likewise.
14057         * lib/setlocale.c: Likewise.
14058         * lib/sigaction.c: Likewise.
14059         * lib/sigprocmask.c: Likewise.
14060         * lib/sleep.c: Likewise.
14061         * lib/spawn-pipe.h: Likewise.
14062         * lib/spawn-pipe.c: Likewise.
14063         * lib/spawni.c: Likewise.
14064         * lib/stat-time.h: Likewise.
14065         * lib/stat-w32.c: Likewise.
14066         * lib/stat.c: Likewise.
14067         * lib/stdio.in.h: Likewise.
14068         * lib/stdio-impl.h: Likewise.
14069         * lib/stdio-read.c: Likewise.
14070         * lib/stdio-write.c: Likewise.
14071         * lib/stdlib.in.h: Likewise.
14072         * lib/strerror_r.c: Likewise.
14073         * lib/strftime-fixes.c: Likewise.
14074         * lib/sys_stat.in.h: Likewise.
14075         * lib/sys_types.in.h: Likewise.
14076         * lib/sys_wait.in.h : Likewise.
14077         * lib/system-quote.h: Likewise.
14078         * lib/system-quote.c: Likewise.
14079         * lib/tmpdir.c: Likewise.
14080         * lib/tzset.c: Likewise.
14081         * lib/uname.c: Likewise.
14082         * lib/unistd.in.h: Likewise.
14083         * lib/utime.in.h: Likewise.
14084         * lib/utime.c: Likewise.
14085         * lib/utimecmp.c: Likewise.
14086         * lib/utimens.c: Likewise.
14087         * lib/vasnprintf.c: Likewise.
14088         * lib/vma-iter.h: Likewise.
14089         * lib/vma-iter.c: Likewise.
14090         * lib/wait-process.c: Likewise.
14091         * lib/wcsftime.c: Likewise.
14092         * lib/wctype.in.h: Likewise.
14093         * lib/write.c: Likewise.
14094         * tests/nap.h: Likewise.
14095         * tests/test-cloexec.c: Likewise.
14096         * tests/test-dup-safer.c: Likewise.
14097         * tests/test-dup2.c: Likewise.
14098         * tests/test-dup3.c: Likewise.
14099         * tests/test-fcntl.c: Likewise.
14100         * tests/test-get-rusage-data.c: Likewise.
14101         * tests/test-getaddrinfo.c: Likewise.
14102         * tests/test-getlogin.h: Likewise.
14103         * tests/test-isatty.c: Likewise.
14104         * tests/test-localename.c: Likewise.
14105         * tests/test-mbrtowc-w32.c: Likewise.
14106         * tests/test-nonblocking.c: Likewise.
14107         * tests/test-nonblocking-pipe-main.c: Likewise.
14108         * tests/test-nonblocking-socket-main.c: Likewise.
14109         * tests/test-nonblocking-socket.h: Likewise.
14110         * tests/test-pipe.c: Likewise.
14111         * tests/test-pipe2.c: Likewise.
14112         * tests/test-poll.c: Likewise.
14113         * tests/test-pthread_sigmask1.c: Likewise.
14114         * tests/test-select.h: Likewise.
14115         * tests/test-sethostname2.c: Likewise.
14116         * tests/test-sigprocmask.c: Likewise.
14117         * tests/test-spawn-pipe-child.c: Likewise.
14118         * tests/test-stat-time.c: Likewise.
14119         * tests/test-system-quote-main.c: Likewise.
14120         * tests/test-utimens-common.h: Likewise.
14121         * tests/test-wcrtomb-w32.c: Likewise.
14122         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
14123         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14124         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
14125         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
14126         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
14127         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14128         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14129         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14131         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14132         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
14133         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
14134         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
14135         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14136         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
14137         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14139 2018-05-02  Bruno Haible  <bruno@clisp.org>
14141         localename: Fix test failures on mingw.
14142         * lib/localename.c (gl_locale_name_thread): Remove code specific to
14143         native Windows.
14144         (gl_locale_name_posix): Move code specific to native Windows here.
14145         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
14146         Accept result without charset suffix, as it appears on mingw.
14148 2018-04-28  Paul Smith  <psmith@gnu.org>
14150         bootstrap: Avoid gnulib operations if not needed
14151         * build-aux/bootstrap: Remove unused variable gnulib_mk.
14152         Set $gnulib_extra_files early so it can be overridden in .conf.
14153         Remove redundant --import flag from $gnulib_tool_options.
14154         Set $use_gnulib to false if no gnulib modules or files are needed.
14155         If $use_gnulib is false, don't do anything related to gnulib.
14156         A lot of this is just whitespace (indentation) changes.
14158 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14160         manywarnings: port to GCC 8.0
14161         * build-aux/gcc-warning.spec: Add -Wcatch-value,
14162         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
14163         fact that the GCC help message now mentions operands for
14164         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
14165         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
14166         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
14167         and -Wunused-const-variable.
14168         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
14169         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
14170         -Wmissing-attributes, -Wmultistatement-macros,
14171         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
14172         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
14174 2018-04-24  Bruno Haible  <bruno@clisp.org>
14176         sys_socket: Make SO_REUSEPORT available across platforms.
14177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14178         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
14179         * doc/posix-headers/sys_socket.texi: Mention the issue.
14180         * tests/test-poll.c (SO_REUSEPORT): Remove.
14181         * tests/test-select.h: Include <sys/socket.h>.
14182         (SO_REUSEPORT): Remove.
14183         * modules/select-tests (Depends-on): Add 'sys_socket'.
14185 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
14187         localcharset: short-circuit the search for an alias on a Mac
14188         * lib/localcharset.c (get_charset_aliases): Add a tautological
14189         UTF-8 entry to speed up the search for this case.
14190         Most machines default to a UTF-8 locale nowadays, so begin the
14191         list of aliases with a dummy UTF-8 entry so it will be found
14192         immediately and a time-consuming search through the rest of
14193         the list is avoided.
14195 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
14197         fts: add comment
14198         * lib/fts.c (fts_build): Explain why ==, not >.
14199         See remark by Bernhard Voelker in:
14200         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
14202         fts: fix bug in find across filesystems
14203         This fixes a bug I introduced last summer.
14204         Problem reported by Kamil Dudka in:
14205         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
14206         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
14207         (leaf_optimization):
14208         New arg for file descriptor.  All callers changed.
14209         (fts_build): Check for whether inodes should be sorted
14210         before closing the directory.
14212 2018-04-07  Bruno Haible  <bruno@clisp.org>
14214         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
14215         Reported by Genki Sky <sky@genki.is>.
14216         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
14217         version 0.9.10 or newer.
14218         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
14219         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
14220         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
14221         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
14222         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
14224 2018-04-07  Bruno Haible  <bruno@clisp.org>
14226         execute: Update comment.
14227         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
14229 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14231         fts: treat CIFS like NFS
14232         Problem reported by Kamil Dudka in:
14233         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
14234         * lib/fts.c (S_MAGIC_CIFS): New macro.
14235         (dirent_inode_sort_may_be_useful, leaf_optimization):
14236         Treat CIFS like NFS.
14238 2018-03-28  Bruno Haible  <bruno@clisp.org>
14240         c-stack: Fix possible build failure on some platforms.
14241         * lib/c-stack.c (die): Define whenever this function is referenced.
14243 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
14245         time_rz: fix workaround for Mac OS X 10.6 infloop
14246         Problems reported by Charles A. Roelli (Bug#27736#117).
14247         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
14248         Also, discard output, which clutters the 'configure' log.
14250 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14252         havelib: port to Solaris 10 /bin/sh
14253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
14254         instead of '! test EXPR'.
14256 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
14258         time_rz: work around Mac OS X 10.6 infloop
14259         * doc/posix-functions/localtime.texi:
14260         * doc/posix-functions/localtime_r.texi: Mention the bug.
14261         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
14262         better to fix localtime and localtime_r instead, but that would be
14263         more work and is not needed to fix the Emacs problem.
14264         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
14266 2018-03-24  Jim Meyering  <meyering@fb.com>
14268         test-version-etc.sh: don't use diff directly: use init.sh's compare
14269         We'd rather not sacrifice readable "diff -u" output even for
14270         "diff -c" output (not supported by busybox) or for even less
14271         readable ed-style "diff" output.  So use init.sh's compare function
14272         * tests/test-version-etc.sh: Source init.sh and add "." to path.
14273         Remove "./" from invocation of test-version-etc, so we use path.
14274         And s/diff/compare/.
14275         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
14276         to get init.sh.
14277         Prompted by Eric Blake's comments in
14278         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
14280 2018-03-24  Bruno Haible  <bruno@clisp.org>
14282         javacomp-script, javacomp: Add support for Java 10.
14283         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
14284         target-version 10.
14285         * lib/javaversion.h: Update comments.
14286         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14287         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14288         TARGET_VERSION_BOUND, target_version_index,
14289         corresponding_classfile_version): Accept source_version 10 and
14290         target_version 10.
14291         * lib/javacomp.h: Update comments accordingly.
14293 2018-03-24  Bruno Haible  <bruno@clisp.org>
14295         javacomp-script, javacomp: Update comments.
14296         * m4/javacomp.m4: Update comments regarding gcj.
14297         * lib/javacomp.h: Likewise.
14299 2018-03-24  Bruno Haible  <bruno@clisp.org>
14301         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
14302         * lib/javaversion.h: Update comments.
14303         * lib/javacomp.h: Likewise.
14304         * lib/javacomp.c (default_target_version, source_version_index,
14305         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
14306         "1.9".
14307         (TARGET_VERSION_BOUND): Bump to 9.
14308         (target_version_index, corresponding_classfile_version): Recognize "9"
14309         instead of "1.9".
14310         (get_source_version_for_javac): New function.
14311         (is_envjavac_nongcj_usable, is_javac_usable): Add
14312         source_version_for_javac argument.
14313         (compile_java_class): Determine and pass source_version_for_javac.
14314         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
14315         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
14316         appropriate.
14318 2018-03-23  Jim Meyering  <meyering@fb.com>
14320         test-version-etc.sh: port to diff without -c
14321         * tests/test-version-etc.sh: Don't use diff's -c option.
14322         This caused spurious test failure on Alpine Linux, which
14323         uses busybox's diff. Reported by Assaf Gordon in
14324         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
14326 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14328         c-stack: port to recent GCC build
14329         Problem reported by The Fireplace (Bug#30913).
14330         * lib/c-stack.c (die): Define only if used.
14332 2018-03-20  Bruno Haible  <bruno@clisp.org>
14334         euidaccess: Port to native Windows.
14335         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
14336         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
14338 2018-03-19  Bruno Haible  <bruno@clisp.org>
14340         javacomp: Add support for Java 7, 8, 9.
14341         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14342         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14343         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
14344         and target_version 1,7, 1.8, 1.9.
14345         * lib/javacomp.h: Update comments accordingly.
14347 2018-03-19  Bruno Haible  <bruno@clisp.org>
14349         javacomp-script: Add support for Java 9.
14350         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
14351         target-version 1.9.
14353 2018-03-16  Bruno Haible  <bruno@clisp.org>
14355         glob: Don't compile replacements on recent glibc systems.
14356         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
14357         REPLACE_GLOB is 0, include the system's <glob.h> and use
14358         _GL_CXXALIAS_SYS.
14359         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
14360         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
14361         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
14362         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
14363         Remove snippet/warn-on-use.
14364         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
14365         (Makefile.am): Create glob.h always. Update list of substitutions in
14366         glob.h. Don't depend on $(WARN_ON_USE_H).
14368 2018-03-16  Bruno Haible  <bruno@clisp.org>
14370         glob: Fix link error on native Windows.
14371         * modules/glob (Depends-on): Add 'lstat'.
14373 2018-03-15  Bruno Haible  <bruno@clisp.org>
14375         glob: Fix compilation error in C++ mode.
14376         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
14378 2018-03-15  Bruno Haible  <bruno@clisp.org>
14380         host-cpu-c-abi: Support for RISC-V CPU.
14381         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
14382         riscv32 and riscv64 ABIs.
14383         References:
14384         https://github.com/riscv/riscv-toolchain-conventions
14385         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
14386         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
14388 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
14390         fflush: be more paranoid about libio.h change
14391         Suggested by Eli Zaretskii in:
14392         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
14393         * lib/fbufmode.c (fbufmode):
14394         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14395         (disable_seek_optimization, rpl_fflush):
14396         * lib/fpending.c (__fpending):
14397         * lib/fpurge.c (fpurge):
14398         * lib/freadable.c (freadable):
14399         * lib/freadahead.c (freadahead):
14400         * lib/freading.c (freading):
14401         * lib/freadptr.c (freadptr):
14402         * lib/freadseek.c (freadptrinc):
14403         * lib/fseeko.c (fseeko):
14404         * lib/fseterr.c (fseterr):
14405         * lib/fwritable.c (fwritable):
14406         * lib/fwriting.c (fwriting):
14407         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
14409 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14411         maint: write-file-hooks -> before-save-hook
14412         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
14413         it's time to use the recommended replacement.
14414         Problem reported by Glenn Morris in:
14415         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
14416         * build-aux/announce-gen, build-aux/bootstrap:
14417         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
14418         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
14419         * build-aux/gnu-web-doc-update, build-aux/gnupload:
14420         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
14421         * build-aux/update-copyright, build-aux/useless-if-before-free:
14422         * build-aux/vc-list-files:
14423         Update hook usage for files where Gnulib is the canonical source.
14425 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14427         binary-io: pacify gcc -Wunused-parameter
14428         Problem reported by Reuben Thomas in:
14429         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
14430         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
14431         Use _GL_UNUSED where appropriate.
14433         fflush: adjust to glibc 2.28 libio.h removal
14434         Problem reported by Daniel P. Berrangé in:
14435         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
14436         * lib/fbufmode.c (fbufmode):
14437         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14438         (disable_seek_optimization, rpl_fflush):
14439         * lib/fpending.c (__fpending):
14440         * lib/fpurge.c (fpurge):
14441         * lib/freadable.c (freadable):
14442         * lib/freadahead.c (freadahead):
14443         * lib/freading.c (freading):
14444         * lib/freadptr.c (freadptr):
14445         * lib/freadseek.c (freadptrinc):
14446         * lib/fseeko.c (fseeko):
14447         * lib/fseterr.c (fseterr):
14448         * lib/fwritable.c (fwritable):
14449         * lib/fwriting.c (fwriting):
14450         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
14451         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
14452         Define if not already defined.
14454 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
14456         environ: fix link error on 32-bit Cygwin
14457         Problem reported for GNU Emacs by Ken Brown in:
14458         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
14459         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
14461 2018-02-24  Bruno Haible  <bruno@clisp.org>
14463         mbrtowc tests: Fix regression on glibc.
14464         Reported by Bernhard Voelker.
14465         * tests/test-mbrtowc.c (main): Fix expected value of wc.
14467 2018-02-24  Bruno Haible  <bruno@clisp.org>
14469         striconveha, uniconv/*: Avoid test failures on musl libc.
14470         * tests/iconvsupport.c: New file.
14471         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
14472         does not support the ISO-2022-JP-2 encoding.
14473         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14474         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14475         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14476         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14477         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14478         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14479         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
14480         (Makefile.am): Link test-striconveha with iconvsupport.o.
14481         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
14482         tests/iconvsupport.c.
14483         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
14484         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
14485         tests/iconvsupport.c.
14486         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
14487         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
14488         tests/iconvsupport.c.
14489         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
14490         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
14491         tests/iconvsupport.c.
14492         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
14493         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
14494         tests/iconvsupport.c.
14495         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
14496         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
14497         tests/iconvsupport.c.
14498         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
14500 2018-02-24  Bruno Haible  <bruno@clisp.org>
14502         localename: Add support for musl libc.
14503         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
14504         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
14505         on Linux platforms which define NL_LOCALE_NAME.
14507 2018-02-24  Bruno Haible  <bruno@clisp.org>
14509         mbrtowc tests: Don't make assumptions about the charset the C locale.
14510         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
14511         particular mapping in the C locale.
14513 2018-02-24  Bruno Haible  <bruno@clisp.org>
14515         ptsname_r: Don't expect that this function sets errno.
14516         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
14517         from ptsname_r().
14518         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
14520 2018-02-23  Bruno Haible  <bruno@clisp.org>
14522         xmalloca: pacify gcc -Wbad-function-cast
14523         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
14525 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14527         nl_langinfo: pacify gcc -Wunused-function
14528         * lib/nl_langinfo.c (ctype_codeset): Do not define if
14529         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
14530         this case.  Without this change, I got a diagnostic when building
14531         coreutils on Fedora 27 with gcc 7.3.1 20180130.
14533         same: pacify gcc -Wunused-variable
14534         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
14535         Omit unused variable.
14537         malloca: pacify gcc -Wbad-function-cast
14538         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
14539         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
14540         To pacify GCC, I had to cast alloca’s result to some type other
14541         than void * before casting that to uintptr_t.
14543 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14545         utimecmp: new function utimecmpat
14546         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
14547         Do not include utimens.h.
14548         (utimecmpat): New function, generalizing utimecmp.
14549         (utimecmp): Now a thin layer around utimecmpat.
14550         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
14551         utimensat instead of on lstat and utimens.
14553         same: new function same_nameat
14554         * lib/same.c: Include fcntl.h.
14555         * lib/same.c (same_nameat): New function, generalizing same_name.
14556         (same_name): Now a thin layer around same_nameat.
14557         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
14558         * modules/same (Depends-on): Depend on fstatat, openat.
14560 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
14562         warnings: Add support for Objective C.
14563         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
14564         macro.
14566 2018-02-17  Bruno Haible  <bruno@clisp.org>
14568         lock: Fix test-once1 crash on FreeBSD11.
14569         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
14570         'pthread_create', not 'pthread_cancel'.
14572 2018-02-17  Bruno Haible  <bruno@clisp.org>
14574         lock: Add test of gl_once.
14575         * tests/test-once.c: New file.
14576         * modules/lock-tests (Files): Add it.
14577         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
14579 2018-02-17  Bruno Haible  <bruno@clisp.org>
14581         thread: Fix compilation error on IRIX.
14582         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
14583         needed; include it outside the C++ extern "C" {} block.
14584         * doc/posix-headers/pthread.texi: Mention the problem with
14585         pthread_atfork on IRIX.
14587 2018-02-04  Bruno Haible  <bruno@clisp.org>
14589         nl_langinfo: Override the system's nl_langinfo() when needed.
14590         Reported by Jim Meyering.
14591         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
14592         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
14594 2018-02-04  Bruno Haible  <bruno@clisp.org>
14596         signal-h, monetary, strings: Fix build failure in some cases.
14597         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14598         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
14599         as delimiter in sed command, not '|'.
14600         * modules/monetary (Makefile.am): Likewise.
14601         * modules/strings (Makefile.am): Likewise.
14603 2018-02-03  Jim Meyering  <meyering@fb.com>
14605         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
14606         * top/maint.mk (sc_file_system): Don't complain about
14607         "/proc/filesystems".
14609 2018-02-03  Bruno Haible  <bruno@clisp.org>
14611         stdlib: Fix compilation error on OpenIndiana.
14612         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
14613         <sys/time.h>.
14614         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14615         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14617 2018-02-03  Bruno Haible  <bruno@clisp.org>
14619         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
14620         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
14621         and use $EGREP instead of 'grep -E'.
14622         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
14623         'grep -E'.
14625 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14627         malloca: Add a compile-time verification.
14628         * lib/malloca.c (small_t): Verify that it is wide enough.
14629         * modules/malloca (Depends-on): Add verify.
14631 2018-02-02  Bruno Haible  <bruno@clisp.org>
14633         malloca: Add an argument check.
14634         Suggested by Paul Eggert.
14635         * lib/malloca.c (freea): Check against an invalid argument.
14637 2018-02-02  Bruno Haible  <bruno@clisp.org>
14639         localename: Add support for OpenIndiana.
14640         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
14641         Solaris 11 variants with uselocale() but without getlocalename_l().
14643 2018-02-02  Bruno Haible  <bruno@clisp.org>
14645         malloca, xmalloca: Make multithread-safe.
14646         Reported by Florian Weimer <fweimer@redhat.com>.
14647         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
14648         * lib/malloca.h (malloca): In the stack allocation case, return a
14649         pointer that is a multiple of 2 * sa_alignment_max.
14650         (sa_increment): Remove enum item.
14651         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
14652         a pointer that is a multiple of 2 * sa_alignment_max.
14653         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
14654         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
14655         HASH_TABLE_SIZE, mmalloca_results): Remove.
14656         (small_t): New type.
14657         (mmalloca, free): Rewritten.
14658         * lib/malloca.valgrind: Remove file.
14659         * modules/malloca (Files): Remove it.
14660         (Depends-on): Remove verify.
14662 2018-01-31  Bruno Haible  <bruno@clisp.org>
14664         environ: Fix link error on 64-bit Cygwin.
14665         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
14666         __declspec(dllimport) attribute.
14667         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
14669 2018-01-30  Bruno Haible  <bruno@clisp.org>
14671         get-rusage-data: Add support for Minix 3.
14672         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
14674 2018-01-30  Bruno Haible  <bruno@clisp.org>
14676         vma-iter: Add support for Minix 3.
14677         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
14678         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
14680 2018-01-27  Bruno Haible  <bruno@clisp.org>
14682         Fix malfunction of socket functions on HP-UX in 64-bit mode.
14683         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
14684         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
14685         _HPUX_ALT_XOPEN_SOCKET_API.
14686         * modules/accept (Depends-on): Add 'extensions'.
14687         * modules/getpeername (Depends-on): Likewise.
14688         * modules/getsockname (Depends-on): Likewise.
14689         * modules/getsockopt (Depends-on): Likewise.
14690         * modules/recvfrom (Depends-on): Likewise.
14691         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
14692         * doc/posix-functions/getpeername.texi: Likewise.
14693         * doc/posix-functions/getsockname.texi: Likewise.
14694         * doc/posix-functions/getsockopt.texi: Likewise.
14695         * doc/posix-functions/recvfrom.texi: Likewise.
14697 2018-01-27  Bruno Haible  <bruno@clisp.org>
14699         getsockname tests: More tests.
14700         * tests/test-getsockname.c (open_server_socket): New function, mostly
14701         copied from test-poll.c.
14702         (main): Check that getsockname fills in addr.
14703         * modules/getsockname-tests (Depends-on): Add the necessary
14704         dependencies.
14705         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
14707 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14709         manywarnings: fix maintainer comment
14710         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
14711         it does not mistakenly think that ‘-1)’ is an option.
14713 2018-01-26  Bruno Haible  <bruno@clisp.org>
14715         langinfo: Fix last commit.
14716         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14717         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
14719 2018-01-24  Bruno Haible  <bruno@clisp.org>
14721         langinfo, nl_langinfo: Add support for alternative month names.
14722         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
14723         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
14724         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
14725         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
14726         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
14727         * doc/posix-functions/nl_langinfo.texi: Likewise.
14729 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14731         Merge strftime.c changes from glibc
14732         This incorporates:
14733         2017-11-14 [BZ #10871] Implement alternative month names
14734         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
14735         2017-06-20 Use locale_t, not __locale_t, throughout glibc
14736         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
14737         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
14738         Use locale_t, not __locale_t.
14739         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
14740         (__strftime_internal): Add support for alternate months.
14742 2018-01-23  Bruno Haible  <bruno@clisp.org>
14744         doc: Mention another prerequisite for using Gnulib.
14745         Reported at <https://stackoverflow.com/questions/48378214/>.
14746         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
14747         AC_CONFIG_HEADERS.
14749 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
14751         build: GuixSD doesn't have /bin/bash
14752         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
14754 2018-01-21  Bruno Haible  <bruno@clisp.org>
14756         Avoid test failures on Microsoft Windows Subsystem for Linux.
14757         * tests/test-fcntl.c (main): Allow a different errno.
14758         * tests/test-rename.h (test_rename): Likewise.
14759         * tests/test-renameat.c (main): Likewise.
14760         * tests/test-renameat2.c (main): Likewise.
14762 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
14764         filenamecat: make base a suffix of result
14765         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
14766         (mfile_name_concat): Always make BASE a suffix of the result, as
14767         cp expects this.  To implement this, separate with '.' instead of
14768         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
14769         * tests/test-filenamecat.c (main): Adjust tests to match
14770         current behavior.  Check that BASE_IN_RESULT points to
14771         a copy of BASE and is a suffix of the resultk, and that DIR
14772         is a prefix of the result that is no longer than the prefix
14773         indicated by BASE_IN_RESULT.
14775 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
14777         update-copyright: Handle use of ©
14778         * build-aux/update-copyright ($circle_c_re): Update regex to
14779         handle use of © in headers.
14781 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
14783         Fix -Wundef warning in user-included header lib/cdefs.h.
14784         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
14786 2018-01-04  Bruno Haible  <bruno@clisp.org>
14788         pthread_sigmask: Avoid compilation error on mingw.
14789         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14790         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
14791         macro.
14793 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14795         test-framework-sh: ‘ps -ef’, not ‘ps ef’
14796         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
14797         Suggested by Bob Proulx (Bug#29968).
14798         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
14800 2018-01-02  Eric Blake  <eblake@redhat.com>
14802         stat-time: silence -Wunused-parameter regression
14803         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
14804         Prefer attribute over cast-to-void.
14805         (stat_time_normalize): Mark st as potentially unused.
14807 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14809         test-framework-sh: avoid netstat
14810         Problem reported by Kristýna Streitová (Bug#29947).
14811         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
14812         deprecated on SuSE and it's not that important anyway.
14814 2018-01-01  Jim Meyering  <meyering@fb.com>
14816         update-copyright: add code to handle more special cases
14817         After running "make update-copyright" this year, five files
14818         required additional manual changes.  Automate those adjustments
14819         for next year.
14820         * Makefile (_year_and_prev): Define.
14821         (update-copyright): Add perl commands to induce this year's post-
14822         update-copyright adjustments.
14824 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14826         version-etc: new year
14827         * build-aux/gendocs.sh (version):
14828         * doc/gendocs_template:
14829         * doc/gendocs_template_min:
14830         * doc/gnulib.texi:
14831         * lib/version-etc.c (COPYRIGHT_YEAR):
14832         Update copyright dates by hand in templates and the like.
14834         maint: fix 'make update-copyright'
14835         * Makefile (update-copyright): Adjust to 2016-11-23 change
14836         to config/srclist-update, which changed the format of srclist.txt.
14838 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14840         chdir-safer: remove this module
14841         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
14842         * NEWS: Document removal.
14843         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
14844         * modules/chdir-safer: Remove these files.
14846 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
14848         Add cross-compilation results for GNU/Hurd.
14849         * m4/calloc.m4: Add GNU/Hurd guess.
14850         * m4/cbrtl.m4: Likewise.
14851         * m4/ceil.m4: Likewise.
14852         * m4/ceilf.m4: Likewise.
14853         * m4/ceill.m4: Likewise.
14854         * m4/chown.m4: Likewise.
14855         * m4/duplocale.m4: Likewise.
14856         * m4/exp2l.m4: Likewise.
14857         * m4/expm1.m4: Likewise.
14858         * m4/fchdir.m4: Likewise.
14859         * m4/floor.m4: Likewise.
14860         * m4/floorf.m4: Likewise.
14861         * m4/fmod.m4: Likewise.
14862         * m4/fmodf.m4: Likewise.
14863         * m4/fmodl.m4: Likewise.
14864         * m4/getcwd.m4: Likewise.
14865         * m4/getgroups.m4: Likewise.
14866         * m4/gettimeofday.m4: Likewise.
14867         * m4/hypot.m4: Likewise.
14868         * m4/hypotf.m4: Likewise.
14869         * m4/hypotl.m4: Likewise.
14870         * m4/link-follow.m4: Likewise.
14871         * m4/link.m4: Likewise.
14872         * m4/linkat.m4: Likewise.
14873         * m4/log.m4: Likewise.
14874         * m4/log10.m4: Likewise.
14875         * m4/log10f.m4: Likewise.
14876         * m4/log1p.m4: Likewise.
14877         * m4/log1pf.m4: Likewise.
14878         * m4/log1pl.m4: Likewise.
14879         * m4/log2.m4: Likewise.
14880         * m4/log2f.m4: Likewise.
14881         * m4/logf.m4: Likewise.
14882         * m4/lstat.m4: Likewise.
14883         * m4/malloc.m4: Likewise.
14884         * m4/mbrlen.m4: Likewise.
14885         * m4/mbrtowc.m4: Likewise.
14886         * m4/mkdir.m4: Likewise.
14887         * m4/mkfifo.m4: Likewise.
14888         * m4/mknod.m4: Likewise.
14889         * m4/mkstemp.m4: Likewise.
14890         * m4/modf.m4: Likewise.
14891         * m4/modff.m4: Likewise.
14892         * m4/modfl.m4: Likewise.
14893         * m4/printf.m4: Likewise.
14894         * m4/pselect.m4: Likewise.
14895         * m4/ptsname.m4: Likewise.
14896         * m4/putenv.m4: Likewise.
14897         * m4/readlink.m4: Likewise.
14898         * m4/realloc.m4: Likewise.
14899         * m4/remainder.m4: Likewise.
14900         * m4/remainderf.m4: Likewise.
14901         * m4/remainderl.m4: Likewise.
14902         * m4/rmdir.m4: Likewise.
14903         * m4/round.m4: Likewise.
14904         * m4/roundf.m4: Likewise.
14905         * m4/roundl.m4: Likewise.
14906         * m4/select.m4: Likewise.
14907         * m4/setenv.m4: Likewise.
14908         * m4/signbit.m4: Likewise.
14909         * m4/sleep.m4: Likewise.
14910         * m4/stat.m4: Likewise.
14911         * m4/strerror.m4: Likewise.
14912         * m4/strtok_r.m4: Likewise.
14913         * m4/symlink.m4: Likewise.
14914         * m4/symlinkat.m4: Likewise.
14915         * m4/trunc.m4: Likewise.
14916         * m4/truncf.m4: Likewise.
14917         * m4/truncl.m4: Likewise.
14918         * m4/tzset.m4: Likewise.
14919         * m4/ungetc.m4: Likewise.
14920         * m4/usleep.m4: Likewise.
14921         * m4/wcwidth.m4: Likewise.
14923 2017-12-28  Bruno Haible  <bruno@clisp.org>
14925         gnulib-tool: Make --conditional-dependencies work better.
14926         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
14927         * gnulib-tool (Options): Don't reject the combination of
14928         --conditional-dependencies with --with-tests.
14929         (func_emit_autoconf_snippets): Add argument referenceable_modules.
14930         Don't reference $modules.
14931         (func_import, func_create_testdir): Pass it.
14933 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14935         regex: use re_malloc etc. consistently
14936         Problem and original patch reported by Arnold Robbins in:
14937         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
14938         * lib/regcomp.c (re_comp):
14939         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
14940         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
14942 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
14943             Paul Eggert  <eggert@cs.ucla.edu>
14945         glob: Silence warning about void pointer arithmetic.
14946         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
14947         arithmetic.
14949 2017-12-15  Bruno Haible  <bruno@clisp.org>
14951         spawn-pipe: Silence a clang warning.
14952         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14953         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
14954         in this file.
14956 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14958         explicit_bzero: port to macOS + Clang 9.0.0
14959         Problem reported by Marcus Johnson (Bug#29658).
14960         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
14961         Don’t use asm.
14963 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
14965         doc: Improve explanation of supporting relocatable libraries.
14966         * doc/relocatable-maint.texi (Supporting Relocation): Explain
14967         properly how to build the relocatable module for
14968         libraries. (Method and example code from Bruno Haible.)
14970 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
14972         doc: Use better texinfo tags in a few cases.
14973         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
14974         instead of @samp in a few places.
14976 2017-12-11  Bruno Haible  <bruno@clisp.org>
14978         unistr/base: Update comment.
14979         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
14981 2017-12-10  Pádraig Brady  <P@draigBrady.com>
14983         test-faccessat.c: unlink temp file to avoid subsequent test failure
14984         * tests/test-faccessat.c: Remove the file to avoid failure
14985         to open the file on subsequent runs due to being created
14986         with no permissions.
14988 2017-12-10  Bruno Haible  <bruno@clisp.org>
14990         doc: New sect. "Modifying the build rules of a Gnulib import directory".
14991         * doc/gnulib-tool.texi (Modified build rules): New node.
14993 2017-12-10  Bruno Haible  <bruno@clisp.org>
14995         doc: Tweak wording.
14996         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
14997         "binaries".
14999 2017-12-05  Sam Steingold  <sds@gnu.org>
15000             Bruno Haible  <bruno@clisp.org>
15002         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
15003         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
15004         AC_EGREP_CPP pattern.
15006 2017-12-03  Bruno Haible  <bruno@clisp.org>
15008         all: Replace more http URLs by https URLs.
15009         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
15010         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
15011         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
15012         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
15014 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15016         Port better to CentOS 5
15017         Problems reported by Tom G. Christensen in:
15018         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
15019         * doc/glibc-functions/strverscmp.texi (strverscmp):
15020         Document strverscmp bug with glibc 2.9 and earlier.
15021         * doc/posix-functions/tzset.texi (tzset):
15022         Document that TZ with angle brackets is POSIX-2001 and later.
15023         * tests/test-nstrftime.c: Include unistd.h.
15024         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
15025         (TZ): Use it to skip tests with angle brackets in TZ,
15026         for older systems.
15028         stat: add missing module dependencies
15029         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
15030         Add stat-time.
15032 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
15034         stat: fix compilation failure on macOS Sierra
15035         Reported by Marius Schamschula <mschamschula@gmail.com> in:
15036         https://savannah.gnu.org/bugs/?52546
15037         * lib/stat.c: Add missing include of stat-time.h.
15039 2017-11-28  Jim Meyering  <meyering@fb.com>
15041         test-faccessat.c: correct BASE definition to avoid parallel test failure
15042         * tests/test-faccessat.c (BASE): Define using this file's name, not
15043         that of test-lstat.c.  Using the latter caused this test to fail
15044         sometimes when run concurrently with test-lstat.
15046 2017-11-27  Daiki Ueno  <ueno@gnu.org>
15048         unicase: fix VPATH build
15049         * modules/unicase/special-casing (Makefile.am): Ensure that the
15050         base directory is created when generating
15051         unicase/special-casing.h.
15053 2017-11-27  Daiki Ueno  <ueno@gnu.org>
15055         libunistring: update to Unicode 9.0.0
15056         * lib/gen-uni-tables.c (fill_properties): Recognize
15057         Sentence_Terminal and Prepended_Concatenation_Mark.
15058         (is_property_default_ignorable_code_point): Exclude U+08E2.
15059         (fill_arabicshaping): Allow missing whitespace when parsing;
15060         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
15061         (output_blocks): Increase the element size of the level1 table to
15062         accommodate more blocks.
15063         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
15064         Update each class according to the standard.
15065         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
15066         E_Base_GAZ characters.
15067         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
15068         Glue_After_Zwj, and E_Base_GAZ characters.
15069         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
15070         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
15071         enum value.
15072         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
15073         value.
15074         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
15075         LBP_ZWJ, LBP_EB, and LBP_EM.
15076         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
15077         enum value.
15078         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
15079         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
15080         declaration.
15081         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
15082         (uniwbrk_table): Implement WB14.
15083         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
15084         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
15085         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
15086         uc-is-grapheme-break.
15087         * modules/unigbrk/uc-grapheme-breaks: New module.
15088         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
15089         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
15090         enum value.
15091         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
15092         * lib/unigbrk/u-grapheme-breaks.h: New file.
15093         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
15094         u-grapheme-breaks.h instead of uc_is_grapheme_break.
15095         * lib/unigbrk/uc-grapheme-breaks.c: New file.
15096         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
15097         29.
15098         * tests/unigbrk/test-uc-gbrk-prop.c
15099         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
15100         GBP_GAZ, and GBP_EBG.
15101         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
15102         * tests/unigbrk/test-uc-is-grapheme-break.c
15103         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
15104         GBP_GAZ, and GBP_EBG.
15105         (main): Skip unsupported rules involving 3 or more characters,
15106         namely GB10, GB12, and GB13.
15107         * lib/uniwidth/width.c (nonspacing_table_data): Update.
15108         * all generated files under lib/uni* and tests/uni*: Regenerate.
15109         * all the affected modules: Bump version.
15111 2017-11-26  Bruno Haible  <bruno@clisp.org>
15113         strfmon_l: Fix compilation error with glibc 2.5.
15114         Reported by Tom G. Christensen <tgc@jupiterrise.com>
15115         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
15116         * lib/monetary.in.h: Include also <locale.h>.
15118 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15120         posixtm: remove PDS_LEADING_YEAR
15121         This changes the API slightly, in a hopefully-innocuous way.
15122         Without this change the code had undefined behavior when a
15123         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
15124         Problem reported by Pádraig Brady in:
15125         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
15126         * NEWS: Mention this.
15127         * lib/posixtm.c (posix_time_parse): Treat the absence of
15128         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
15129         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
15130         present, but define it as zero, for compatibility with existing
15131         source code).  All other PDS_* values moved up.
15132         * tests/test-posixtm.c (LY): New macro.
15133         (T): Use it.  Do not expect a particular numeric encoding
15134         for PDS_CENTURY etc.
15136 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15138         stat: work around Solaris bug with tv_nsec < 0
15139         * doc/posix-functions/fstat.texi (fstat):
15140         * doc/posix-functions/fstatat.texi (fstatat):
15141         * doc/posix-functions/lstat.texi (lstat):
15142         * doc/posix-functions/stat.texi (stat):
15143         Mention Solaris 11 bug.
15144         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
15145         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
15146         * lib/lstat.c (rpl_lstat):
15147         * lib/stat.c (rpl_stat):
15148         Normalize resulting timestamps.
15149         * lib/fstatat.c (normal_fstatat): New function.
15150         (rpl_fstatat): Use it.
15151         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
15152         (stat_time_normalize): New function.
15153         * m4/fstat.m4 (gl_FUNC_FSTAT):
15154         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
15155         * m4/lstat.m4 (gl_FUNC_LSTAT):
15156         * m4/stat.m4 (gl_FUNC_STAT):
15157         Replace on Solaris.
15158         * modules/fstat (Depends-on):
15159         * modules/fstatat (Depends-on):
15160         Add stat-time.
15161         * modules/stat-time (Depends-on): Add errno, intprops.
15163 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
15165         regex: merge from glibc
15166         * lib/regcomp.c (init_word_char): Add comments.
15168 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15170         regex: merge from glibc
15171         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
15172         * lib/regex_internal.h (internal_function): Remove.
15173         All uses removed.
15175 2017-11-20  Bruno Haible  <bruno@clisp.org>
15177         crypto/gc-sm3: Fix buffer overrun.
15178         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
15179         Reported by Coverity.
15181 2017-11-12  Jim Meyering  <meyering@fb.com>
15183         maint: shorten https://lists.gnu.org/archive/html/... links
15184         Each /archive/html/ part can be replace with /r/.
15185         Run this to induce the change:
15186         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
15187         * ChangeLog: Perform that substitution.
15188         * Makefile: Likewise.
15189         * STATUS-libposix: Likewise.
15190         * build-aux/bootstrap: Likewise.
15191         * doc/maintain.texi: Likewise.
15192         * gnulib-tool: Likewise.
15193         * lib/allocator.h: Likewise.
15194         * lib/argp-ba.c: Likewise.
15195         * lib/argp-pv.c: Likewise.
15196         * lib/canon-host.c: Likewise.
15197         * lib/canonicalize-lgpl.c: Likewise.
15198         * lib/float.in.h: Likewise.
15199         * lib/fstat.c: Likewise.
15200         * lib/getdelim.c: Likewise.
15201         * lib/getprogname.c: Likewise.
15202         * lib/glthread/thread.h: Likewise.
15203         * lib/intprops.h: Likewise.
15204         * lib/mbsrtowcs-state.c: Likewise.
15205         * lib/safe-read.c: Likewise.
15206         * lib/signal.in.h: Likewise.
15207         * lib/stat.c: Likewise.
15208         * lib/stdbool.in.h: Likewise.
15209         * lib/stdio-impl.h: Likewise.
15210         * lib/stdio.in.h: Likewise.
15211         * lib/sysexits.in.h: Likewise.
15212         * lib/timespec.h: Likewise.
15213         * lib/wcsrtombs-state.c: Likewise.
15214         * m4/alloca.m4: Likewise.
15215         * m4/extern-inline.m4: Likewise.
15216         * m4/fstatat.m4: Likewise.
15217         * m4/gnulib-common.m4: Likewise.
15218         * m4/lib-ignore.m4: Likewise.
15219         * m4/printf.m4: Likewise.
15220         * m4/regex.m4: Likewise.
15221         * m4/stat-size.m4: Likewise.
15222         * m4/std-gnu11.m4: Likewise.
15223         * m4/stdbool.m4: Likewise.
15224         * m4/sys_types_h.m4: Likewise.
15225         * m4/threadlib.m4: Likewise.
15226         * m4/vararrays.m4: Likewise.
15227         * pygnulib/GLImport.py: Likewise.
15228         * tests/test-exp.h: Likewise.
15229         * tests/test-exp2.h: Likewise.
15230         * tests/test-expm1.h: Likewise.
15231         * tests/test-fflush2.c: Likewise.
15232         * tests/test-getopt_long.h: Likewise.
15233         * tests/test-intprops.c: Likewise.
15234         * tests/test-log.h: Likewise.
15235         * tests/test-log10.h: Likewise.
15236         * tests/test-log1p.h: Likewise.
15237         * tests/test-log2.h: Likewise.
15238         * tests/test-printf-posix.h: Likewise.
15239         * tests/test-regex.c: Likewise.
15240         * tests/test-snprintf-posix.h: Likewise.
15241         * tests/test-sprintf-posix.h: Likewise.
15242         * tests/test-stdalign.c: Likewise.
15243         * tests/test-stdbool.c: Likewise.
15244         * tests/test-vasnprintf-posix.c: Likewise.
15245         * tests/test-vasprintf-posix.c: Likewise.
15246         * top/maint.mk: Likewise.
15248 2017-11-12  Bruno Haible  <bruno@clisp.org>
15250         faccessat: Make the last change more robust.
15251         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
15252         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
15254 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15256         faccessat: port to macOS (Bug#29231)
15257         macOS faccessat has the same bug that lstat does: if the file
15258         name ends in '/' it ignores the trailing slash.
15259         Problem reported for Emacs by Vincent Zhang.
15260         * doc/posix-functions/faccessat.texi (faccessat): Document this.
15261         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
15262         around the initial includes.  Include errno.h, string.h, sys/stat.h.
15263         (orig_faccessat) [HAVE_FACCESSAT]: New function.
15264         Include "unistd.h" after defining it.
15265         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
15266         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
15267         Handle in the usual way.
15268         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
15269         lstat dereferences symlinks, since faccessat is likely to
15270         have the same problem.
15271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
15272         * modules/faccessat (Depends-on): Add fstatat.
15273         Depend if REPLACE_FACCESSAT is 1, too.
15274         (configure.ac): Link if REPLACE_FACCESSAT is 1.
15275         * modules/faccessat-tests (Depends-on): Add symlink.
15276         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
15277         * tests/test-faccessat.c (main): Test for the bug.
15279 2017-11-11  Bruno Haible  <bruno@clisp.org>
15281         getprogname: Fix compilation error on IRIX.
15282         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
15283         'namesize'.
15285 2017-11-11  Bruno Haible  <bruno@clisp.org>
15287         year2038: Tweak last patch.
15288         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
15290 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15292         year2038: be more insistent about 64-bit time_t
15293         Applications requiring access to arbitrary files should not be
15294         built with 32-bit time_t on hosts that have 64-bit timestamps,
15295         as this can lead to real trouble at runtime.
15296         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
15297         Check on all systems, not just MinGW.  Use a heuristic involving
15298         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
15299         output a failure or just a warning, to make it more likely that
15300         builders will select 64-bit time_t.
15302 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15304         havelib: fix typo in previous change
15305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
15307         Don’t use AC_EGREP_CPP if affected by CFLAGS
15308         * m4/float_h.m4 (gl_FLOAT_H):
15309         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
15310         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
15311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
15312         * m4/year2038.m4 (gl_YEAR2038):
15313         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
15314         likely to be affected by the choice of CFLAGS, since CFLAGS are
15315         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
15316         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
15318         fstatat: pacify GCC on unusual platform
15319         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
15320         Omit, as it’s unused in this case.
15322 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15324         timespec: prefer ‘assume’ to ‘assure’
15325         This avoids some runtime tests.  The rest of the module makes
15326         similar assumptions and there is little point to testing here.
15327         * lib/timespec.h: Include verify.h instead of assure.h.
15328         (timespec_cmp): Use ‘assume’, not ‘assure’.
15329         Also, remove an unnecessary cast to ‘int’, as lots of other
15330         code in this module now causes -Wconversion to complain, and
15331         this is a problem with -Wconversion not with the code.
15333         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
15335         Port recent gnulib-tool change to Dash
15336         * gnulib-tool (func_create_testdir): Don't assume that the shell
15337         retokenizes after expanding "$@" inside the call to
15338         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
15340 2017-10-27  Jim Meyering  <meyering@fb.com>
15342         timespec.h: use "assure" to avoid a spurious warning
15343         * lib/timespec.h: Include "assure.h" and use it to help
15344         gcc7's -Wstrict-overflow avoid a false positive warning
15345         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
15346         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
15347         * modules/timespec (Depends-on): Add assure.
15349 2017-10-29  Bruno Haible  <bruno@clisp.org>
15351         Avoid several test failures with traditional locales on Haiku.
15352         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
15353         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
15354         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
15355         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
15356         LOCALE_ZH_CN=none.
15358 2017-10-29  Bruno Haible  <bruno@clisp.org>
15360         strerror_r-posix: Fix behaviour and test failure on Haiku.
15361         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
15362         are positive. Work around return value 0 instead of ERANGE on Haiku.
15363         For unknown error numbers, use a format string consistent with perror().
15364         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
15365         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
15366         are positive.
15368 2017-10-29  Bruno Haible  <bruno@clisp.org>
15370         get-rusage-data: Avoid crash on Haiku.
15371         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
15373 2017-10-29  Bruno Haible  <bruno@clisp.org>
15375         get-rusage-as: Avoid crash on Haiku.
15376         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
15378 2017-10-29  Bruno Haible  <bruno@clisp.org>
15380         ilogbl: Ensure replacement on Haiku.
15381         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
15382         REPLACE_ILOGBL if ilogbl does not work.
15383         (gl_FUNC_ILOGBL_WORKS): New macro.
15384         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
15385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
15386         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
15387         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
15388         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
15390 2017-10-29  Bruno Haible  <bruno@clisp.org>
15392         expl: Ensure replacement on Haiku.
15393         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
15394         zero.
15395         * doc/posix-functions/expl.texi: Mention the Haiku problem.
15397 2017-10-29  Bruno Haible  <bruno@clisp.org>
15399         math: Fix test failure on Haiku.
15400         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
15401         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
15402         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15403         * doc/posix-headers/math.texi: Mention the Haiku problem.
15405 2017-10-29  Bruno Haible  <bruno@clisp.org>
15407         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
15408         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
15409         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
15411 2017-10-29  Bruno Haible  <bruno@clisp.org>
15413         crypto/*: Verify that the header file is self-contained.
15414         * tests/test-gc-*.c: Include the module's header file immediately after
15415         <config.h>.
15416         * tests/test-hmac-*.c: Likewise.
15417         * tests/test-arcfour.c: Likewise.
15418         * tests/test-arctwo.c: Likewise.
15419         * tests/test-des.c: Likewise.
15420         * tests/test-md2.c: Likewise.
15421         * tests/test-md4.c: Likewise.
15422         * tests/test-md5.c: Likewise.
15423         * tests/test-rijndael.c: Likewise.
15424         * tests/test-sha1.c: Likewise.
15425         * tests/test-sm3.c: Likewise.
15427 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15428             Bruno Haible  <bruno@clisp.org>
15430         crypto/gc: fix build failure with -Werror=suggest-attribute=const
15431         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
15433 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15435         New module: crypto/gc-sm3
15436         * lib/gc.h: Declare SM3-related stuffs.
15437         * lib/gc-gnulib.c: Support sm3 in internal functions.
15438         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
15439         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
15440         * modules/crypto/gc-sm3: Define gc-sm3 module.
15441         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
15442         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
15443         * MODULES.html.sh: List gc-sm3 module.
15445 2017-10-29  Bruno Haible  <bruno@clisp.org>
15447         random, random_r: Mention different prototypes on Haiku.
15448         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
15449         * doc/glibc-functions/random_r.texi: Likewise.
15450         * doc/glibc-functions/initstate_r.texi: Likewise.
15451         * doc/glibc-functions/setstate_r.texi: Likewise.
15453 2017-10-28  Bruno Haible  <bruno@clisp.org>
15455         posix_spawn: Avoid spurious message in configure output.
15456         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
15457         'cmp' command.
15459 2017-10-28  Bruno Haible  <bruno@clisp.org>
15461         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
15462         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
15463         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15465 2017-10-28  Bruno Haible  <bruno@clisp.org>
15467         ioctl: Override non-POSIX declaration on Haiku.
15468         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
15469         * lib/sys_ioctl.in.h: Add comment about Haiku.
15470         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
15471         * doc/glibc-headers/sys_ioctl.texi: Likewise.
15473 2017-10-28  Bruno Haible  <bruno@clisp.org>
15475         crypto/sm3: Add overview documentation to the .h file.
15476         * lib/sm3.h: Add comments.
15478 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15480         New module: crypto/sm3
15481         This new module can be used to compute SM3 message digest of files or
15482         memory blocks according to the specification GM/T 004-2012
15483         Cryptographic Hash Algorithm SM3, published by State Cryptography
15484         Administration, China.
15485         The official SM3 cryptographic hash algorithm specification is
15486         available at
15487         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
15488         * lib/sm3.h: Declare the APIs of sm3 module.
15489         * lib/sm3.c: Implement SM3 hash algorithm.
15490         * m4/sm3.m4: m4 file for sm3 module.
15491         * modules/crypto/sm3: Define sm3 module.
15492         * tests/test-sm3.c: Implement SM3 test case.
15493         * modules/crypto/sm3-tests: Define sm3 test module.
15494         * MODULES.html.sh: List sm3 module.
15496 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15498         gc-libgcrypt: fix undefined enum type in switch statement
15499         Resolve the following build failure:
15500         lib/gc-libgcrypt.c: In function 'gc_hash_open':
15501         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
15502         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
15503              case 0:
15504              ^~~~
15505         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
15506         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
15508 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15510         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
15511         Resolve the following build failure:
15512         lib/gc-libgcrypt.c: In function 'gc_hash_read':
15513         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
15514         in signedness [-Werror=pointer-sign]
15515             digest = gcry_md_read (ctx->gch, 0);
15516                    ^
15517         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
15519 2017-10-26  Bruno Haible  <bruno@clisp.org>
15521         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
15522         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
15523         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
15525 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
15527         glob: fix another heap buffer overflow
15528         Problem reported by Tim Rühsen in:
15529         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
15530         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
15532 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
15534         quotearg: pacify compiler re unsigned
15535         * lib/quotearg.c (quotearg_n_options):
15536         Rewrite to avoid diagnostic from overly-picky compiler.
15537         Problem reported by Sami Kerola in:
15538         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
15540         glob: fix heap buffer overflow
15541         * lib/glob.c (glob): Fix off-by-one error introduced into
15542         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
15543         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
15544         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
15545         Fix suggested by Bruno Haible.
15547 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15549         glob: pacify fuzzer for mempcpy
15550         Problem reported by Tim Rühsen in:
15551         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
15552         * lib/glob.c (glob): Do not pass NULL to mempcpy.
15554 2017-10-12  Bruno Haible  <bruno@clisp.org>
15556         doc: Fix syntax error (regression from 2017-10-03).
15557         * doc/posix-functions/strncpy.texi: Fix syntax error.
15559 2017-10-12  Bruno Haible  <bruno@clisp.org>
15561         doc: Update for Solaris 11.3.
15562         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
15563         mention Solaris 11.3.
15564         * m4/log2.m4: Fix comments.
15565         * m4/log2f.m4: Likewise.
15566         * m4/printf.m4: Update comments.
15567         * m4/rename.m4: Likewise.
15568         * m4/strncat.m4: Likewise.
15570         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
15572 2017-10-10  Bruno Haible  <bruno@clisp.org>
15574         doc: Improve doc about ioctl.
15575         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
15576         prototype.
15578 2017-10-09  Bruno Haible  <bruno@clisp.org>
15580         wcwidth: Don't use obsolete syntax of 'test'.
15581         Reported by Eric Blake.
15582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
15583         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
15585 2017-10-09  Bruno Haible  <bruno@clisp.org>
15587         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
15588         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
15589         and Daniel P. Berrange <berrange@redhat.com>.
15590         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
15591         on glibc systems. The getopt-pfx-core.h file declares exactly what
15592         unistd.h needs, nothing more.
15594 2017-10-08  Bruno Haible  <bruno@clisp.org>
15596         vma-iter: Improve support for FreeBSD.
15597         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
15598         vma_iterate.
15599         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
15601 2017-10-08  Bruno Haible  <bruno@clisp.org>
15603         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
15604         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
15606 2017-10-07  KO Myung-Hun  <komh@chollian.net>
15608         test-framework-sh: Fix 'invalid path dir' error.
15609         On OS/2, a path separator is ';' not ':'. And ':' is used as a
15610         separator between a drive letter and directory parts.
15611         As a result, an absolute path such as x:/path/to/dir on OS/2 is
15612         treated as an invalid path dir.
15613         * tests/init.sh (PATH_SEPARATOR): Set at startup.
15614         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
15615         instead of hard coded ':'.
15617 2017-10-07  Bruno Haible  <bruno@clisp.org>
15619         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
15620         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
15621         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
15622         (rof_open): On Linux, do multiple read() calls and make sure
15623         MIN_LEFTOVER bytes are left when read() returns.
15625 2017-10-07  Bruno Haible  <bruno@clisp.org>
15627         vma-iter: Improve support for GNU/Hurd.
15628         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
15629         API, not the /proc file system.
15631 2017-10-07  Bruno Haible  <bruno@clisp.org>
15633         test-framework-sh: Don't require bash on Windows and OS/2.
15634         Reported by KO Myung-Hun.
15635         * tests/test-init.sh: Use 'shopt' only when running in bash.
15637 2017-10-06  KO Myung-Hun  <komh@chollian.net>
15639         wcwidth: check a macro version of wcwidth () as well
15640         * lib/wchar.in.h: Revert commit from 2016-01-14.
15641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
15643 2017-10-06  Bruno Haible  <bruno@clisp.org>
15645         getopt-posix: Clarify copyright header.
15646         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
15647         * lib/getopt-pfx-core.h: Likewise.
15648         * lib/getopt-pfx-ext.h: Likewise.
15649         * lib/getopt-cdefs.in.h: Likewise.
15651 2017-10-03  Bruno Haible  <bruno@clisp.org>
15653         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
15654         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
15655         gl_HOST_CPU_C_ABI.
15657 2017-10-03  Bruno Haible  <bruno@clisp.org>
15659         doc: warn about misuse of strncpy and wcsncpy.
15660         * doc/posix-functions/strcpy.texi: Describe requirements on prior
15661         memory allocation.
15662         * doc/posix-functions/wcscpy.texi: Likewise.
15663         * doc/posix-functions/strncpy.texi: Describe what this function is not
15664         useful for.
15665         * doc/posix-functions/wcsncpy.texi: Likewise.
15667 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15669         fsuage: fix typo in previous change
15670         * lib/fsusage.c: Remove stray include of full-read.h.
15671         Problem reported by Sam Steingold for macOS (Bug#28669).
15673 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15675         fsusage: remove SVR2 support
15676         SVR2 was obsolete by 1986 and is no longer supported by anybody,
15677         and its code was getting in the way of use of this module by
15678         Emacs, which has its own ‘read’ function anyway.
15679         * lib/fsusage.c: Do not include sys/filsys.h.
15680         (get_fs_usage): Remove SVR2-specific code.
15681         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
15682         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
15683         * modules/fsusage (Depends-on): Do not depend on full-read.
15685         Simplify autoupdate of licenses
15686         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
15687         place.
15689 2017-10-01  Bruno Haible  <bruno@clisp.org>
15691         vma-iter: Add support for GNU/Hurd.
15692         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
15693         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
15695 2017-09-30  Bruno Haible  <bruno@clisp.org>
15697         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
15698         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
15699         fail when module 'largefile' is in use.
15700         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
15701         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
15702         Don't test HAVE_SYS_PROCFS_H.
15704 2017-09-30  Bruno Haible  <bruno@clisp.org>
15706         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
15707         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
15708         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
15709         * modules/havelib (Depends-on): Add host-cpu-c-abi.
15711 2017-09-30  Bruno Haible  <bruno@clisp.org>
15713         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
15714         * lib/uniname/uniname.c (unicode_name_character): Add braces around
15715         scope of local variables.
15717 2017-09-28  Bruno Haible  <bruno@clisp.org>
15719         string: code style
15720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
15721         substitutable variables.
15722         * modules/string (Makefile.am): Likewise.
15724 2017-09-26  Bruno Haible  <bruno@clisp.org>
15726         uniname/uniname-tests: Tighten code.
15727         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
15728         local variables into one.
15730 2017-09-26  Bruno Haible  <bruno@clisp.org>
15732         vma-iter: Improvements for Linux and BSD platforms.
15733         - Add support for DragonFly BSD.
15734         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
15735         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
15736         Read the entire file into memory in a single system call.
15737         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
15738         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
15740 2017-09-26  Bruno Haible  <bruno@clisp.org>
15742         vma-iter: Provide the protection flags on FreeBSD.
15743         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
15744         skip three fields between the addresses and the protection flags.
15746 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15748         glob: remove bogus extern decl
15749         * lib/glob.c (__glob_pattern_type): Remove now-spurious
15750         extern declaration.  Problem reported by Adhemerval Zanella in:
15751         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
15753 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
15755         uniname/uniname-tests: integer overflow fix
15756         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
15757         Check for integer overflow.
15759         duplocale-tests: fix unlikely crash
15760         * tests/test-duplocale.c (get_locale_dependent_values):
15761         Don’t crash with absurdly long month names.
15763         maint: fix overflow checking in nap.h
15764         * modules/chown-tests:
15765         * modules/fchownat-tests, modules/fdutimensat-tests:
15766         * modules/futimens-tests, modules/lchown-tests:
15767         * modules/stat-time-tests, modules/utime-tests:
15768         * modules/utimens-tests, modules/utimensat-tests:
15769         Depend on intprops.
15770         * tests/nap.h: Include intprops.h.
15771         (diff_timespec): Handle overflow properly.
15773         sys_types: update URL
15774         * m4/sys_types_h.m4: Use https: URL.
15776         parse-datetime: fix dependency
15777         * modules/parse-datetime (Depends-on): Depend
15778         on nstrftime, not strftime.
15780         parse-datetime, posixtm: avoid uninit access
15781         * lib/parse-datetime.y (parse_datetime2):
15782         * lib/posixtm.c (posixtime):
15783         Do not access uninitialized storage, even though the resulting
15784         value is never used.
15786 2017-09-25  Bruno Haible  <bruno@clisp.org>
15788         vma-iter: Improvements for BSD platforms.
15789         - Add support for GNU/kFreeBSD.
15790         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
15791         - Speed up on OpenBSD.
15792         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
15793         (vma_iterate_bsd): New function.
15794         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
15795         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
15796         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
15797         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
15799 2017-09-23  Bruno Haible  <bruno@clisp.org>
15801         strfmon_l: New module.
15802         * modules/strfmon_l: New file.
15803         * lib/strfmon_l.c: New file.
15804         * m4/strfmon_l.m4: New file.
15805         * doc/posix-functions/strfmon_l.texi: Mention the new module.
15806         * modules/strfmon_l-tests: New file.
15807         * tests/test-strfmon_l.c: New file.
15809         monetary: New module.
15810         * modules/monetary: New file.
15811         * lib/monetary.in.h: New file.
15812         * m4/monetary_h.m4: New file.
15813         * doc/posix-headers/monetary.texi: Mention the new module.
15814         * modules/monetary-tests: New file.
15815         * tests/test-monetary.c: New file.
15816         * modules/monetary-c++-tests: New file.
15817         * tests/test-monetary-c++.cc: New file.
15818         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
15820 2017-09-23  Bruno Haible  <bruno@clisp.org>
15822         duplocale tests: Fix test crash on Linux/x86.
15823         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
15824         locale from the current thread before freeing it.
15826 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
15828         mktime: port to OpenVMS
15829         Problem reported by John E. Malmberg in:
15830         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
15831         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
15833 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15835         manywarnings: port to GCC on 64-bit MS-Windows
15836         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
15837         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
15838         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
15840 2017-09-13  Bruno Haible  <bruno@clisp.org>
15842         all: Replace many more http URLs by https URLs. Update stale URLs.
15843         * users.txt: Remove mention of 'newts'.
15844         * lib/localename.c: Update comment about LANG_SOTHO.
15846 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15848         all: Replace many http URLs by https URLs.
15850 2017-09-12  Bruno Haible  <bruno@clisp.org>
15852         doc: Prefer https URLs where possible.
15853         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
15854         * doc/ld-output-def.texi: Remove unavailable URL.
15856 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15858         maintainer-makefile: FTP -> HTTPS
15859         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
15860         of FTP, which is planned to be decommissioned on 2017-11-01.
15862 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
15864         libc-config: Fix __GNUC_PREREQ macro.
15865         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
15866         __GNUC_MINOR.
15868 2017-09-09  Bruno Haible  <bruno@clisp.org>
15870         gnulib-tool: Simplify commit from 2015-08-20.
15871         * gnulib-tool (func_add_or_update): Remove local variable
15872         is_binary_file.
15874 2017-09-08  Bruno Haible  <bruno@clisp.org>
15876         stddef: Avoid conflict with system-defined max_align_t.
15877         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
15878         Reported by Werner Lemberg <wl@gnu.org> in
15879         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
15880         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
15881         (max_align_t): Define as a macro.
15882         (GNULIB_defined_max_align_t): New macro. Guards against multiple
15883         definitions of rpl_max_align_t in different copies of gnulib-generated
15884         <stddef.h>.
15886 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15888         libc-config: port to MSVC
15889         Problems reported by Gisle Vanem in:
15890         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
15891         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
15892         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
15893         * m4/__inline.m4: New file.
15894         * modules/libc-config (Files): Add it.
15895         (Depends-on): Use it.
15897         glob: Use enum for __glob_pattern_type result
15898         From a patch proposed by Adhemerval Zanella in:
15899         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
15900         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
15901         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
15902         * lib/glob_internal.h (__glob_pattern_type):
15903         * lib/glob.c (glob):
15904         * lib/glob_pattern_p.c (__glob_pattern_p):
15905         Use them.
15907         glob: fix for use in glibc
15908         Problem reported by Adhemerval Zanella in:
15909         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
15910         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
15911         Do not redefine if _LIBC.
15913 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15915         glob: fix bugs with long login names
15916         Problem reported by Adhemerval Zanella in:
15917         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
15918         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
15919         (glob): Use the same scratch buffer for both getlogin_r and
15920         getpwnam_r.  Don’t require preallocation of the login name.  This
15921         simplifies storage allocation, and corrects the handling of
15922         long login names.
15924 2017-09-02  Bruno Haible  <bruno@clisp.org>
15926         dirent: Update doc.
15927         * doc/posix-headers/dirent.texi: More concrete list of platforms.
15929 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15931         glob: fix getpwnam_r errno typo
15932         * lib/glob.c (glob): Fix longstanding misuse of errno after
15933         getpwnam_r, which returns an error number rather than setting
15934         errno.
15936         glob: fix typo in recent change
15937         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
15938         Fix recently-introduced typo.
15940 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15942         glob: don't save and restore errno unnecessarily
15943         * lib/glob.c (glob): Don't save and restore errno
15944         merely because we have getpwnam_r.
15946         glob: don't assume getpwnam_r
15947         * lib/glob.c (glob): Port recent patches to platforms
15948         lacking getpwnam_r.
15950         scratch_buffer: don’t use private glibc API
15951         Suggested by Florian Weimer in:
15952         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
15953         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
15954         * lib/scratch_buffer_grow.c: Rename to
15955         lib/malloc/scratch_buffer_grow.c.
15956         * lib/scratch_buffer_grow_preserve.c: Rename to
15957         lib/malloc/scratch_buffer_grow_preserve.c.
15958         * lib/scratch_buffer_set_array_size.c: Rename to
15959         lib/malloc/scratch_buffer_set_array_size.c.
15960         * lib/scratch_buffer.h: New file.
15961         * modules/scratch_buffer (Files, Makefile.am):
15962         Adjust to source-file renaming.
15964 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15966         glob: use scratch_buffer instead of extend_alloca
15967         Much of the lib/glob.c part of this patch comes from a glibc patch
15968         proposed by Adhemerval Zanella in:
15969         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
15970         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
15971         included via glob.h, does this for us now.
15972         (__set_errno): Remove, as libc-config does this for us now.
15973         Include <scratch_buffer.h>.
15974         (GETPW_R_SIZE_MAX): Remove.
15975         (glob): Use struct scratch_buffer instead of extend_alloca.
15976         * lib/glob.in.h: Include libc-config.h rather than
15977         including <sys/cdefs.h> conditionally.
15978         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
15979         (__glibc_unlikely, __restrict, weak_alias):
15980         Remove, as libc-config does this for us now.
15981         * m4/glob.m4 (gl_PREREQ_GLOB):
15982         Remove sys/cdefs.h tests; no longer needed.
15983         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
15984         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
15986         scratch_buffer: new module
15987         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
15988         * lib/scratch_buffer_grow_preserve.c:
15989         * lib/scratch_buffer_set_array_size.c:
15990         New files, copied from glibc with very minor changes that can be
15991         copied back.
15992         * modules/scratch_buffer: New file.
15994         libc-config: new module
15995         * MODULES.html.sh: Add libc-config.
15996         * lib/cdefs.h: New file, copied from the GNU C Library with very
15997         minor changes that can be copied back.
15998         * lib/libc-config.h, modules/libc-config: New files.
16000 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16002         glob: match dangling symlinks
16003         This fixes a bug I inadvertently introduced to Gnulib when I
16004         merged glibc glob back into gnulib on 2007-10-16.  This fix is
16005         inspired by a patch proposed for glibc by Adhemerval Zanella in:
16006         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
16007         * doc/posix-functions/glob.texi: Update list of affected platforms.
16008         * lib/glob.c (__lstat64): New macro.
16009         (is_dir): New function.
16010         (glob, glob_in_dir): Match symlinks even if they are dangling.
16011         (link_stat, link_exists_p): Remove.  All uses removed.
16012         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
16013         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
16014         * modules/glob-tests (Depends-on): Add symlink.
16015         * tests/test-glob.c: Include errno.h, unistd.h.
16016         (BASE): New macro.
16017         (main): Test dangling symlinks, if symlinks are supported.
16019         glob, backupfile: inode 0 is a valid inode number
16020         * doc/posix-functions/readdir.texi (readdir):
16021         * doc/posix-headers/dirent.texi (dirent.h):
16022         Document more readdir portability issues.
16023         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
16024         (numbered_backup): Don’t treat inode 0 any differently from
16025         other inode values.
16026         * lib/glob.c (struct readdir_result): Remove skip_entry member.
16027         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
16028         All uses removed.
16029         * modules/glob (Depends-on): Remove d-ino.
16031         glob: simplify symlink detection
16032         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
16033         uint8_t, as C99 does not require uint8_t.
16034         (struct readdir_result): Use it.  Do not define skip_entry unless
16035         it is needed; this saves a byte on platforms lacking d_ino.
16036         (readdir_result_type, readdir_result_skip_entry):
16037         New functions, replacing ...
16038         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
16039         ... these functions, which were removed.  This makes the callers
16040         easier to read.  All callers changed.
16041         (D_INO_TO_RESULT): Now empty if there is no d_ino.
16043 2017-08-30  Pádraig Brady  <P@draigBrady.com>
16045         fts-tests: tag as a longrunning-test so not included by default
16046         * modules/fts-tests: This test takes about 20s on current systems,
16047         and uses about 285M of space on ext4.
16049 2017-08-30  Pádraig Brady  <P@draigBrady.com>
16051         renameat2: fix compilation on alpine linux
16052         * m4/renameat.m4: Check for <linux/fs.h> presence.
16053         * lib/renameat2.h: Only include <linux/fs.h> if present.
16054         Reported by Assaf Gordon on Alpine Linux.
16056 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16058         glob: try to port recent changes to MS-Windows
16059         Problem reported by Bruno Haible in:
16060         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
16061         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
16062         * lib/glob.in.h (__glob_pattern_p): ... to here.
16064 2017-08-24  Eric Blake  <eblake@redhat.com>
16066         warnings: fix compilation with old autoconf
16067         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
16068         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
16069         AC_DEFUN.
16070         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
16071         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
16073 2017-08-24  Bruno Haible  <bruno@clisp.org>
16075         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
16076         * modules/glob (Depends-on): Add c99.
16078 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16080         glob: fix typo that broke platforms lacking d_ino
16081         This typo also hurt performance on GNU/Linux and similar hosts.
16082         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
16083         in previous change.
16085 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16087         glob: merge from glibc with Zanella glob changes
16088         Merge glob from glibc, with changes for glob proposed
16089         by Adhemerval Zanella in the thread starting here:
16090         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
16091         plus some fixes for this merge.
16092         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
16093         New files, ported from glibc.
16094         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
16095         with __restrict.
16096         (__size_t): Remove.  All uses replaced by size_t.
16097         (size_t): Define by defining __need_size_t and including <stddef.h>.
16098         This should work even in non-glibc platforms, where any name
16099         pollution is OK.
16100         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
16101         (struct stat64): Don’t worry about __GLOB_GNULIB.
16102         (glob, globfree, glob_pattern_p): Remove macros for
16103         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
16104         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
16105         but set errno.
16106         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
16107         removed since the glibc behavior works on null pointers.
16108         Do not include stdio.h; old SunOS is irrelevant now.
16109         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
16110         Include glob_internal.h.
16111         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
16112         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
16113         worked only coincidentally.
16114         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
16115         Remove macros; now done in glob.in.h.
16116         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
16117         (glob): Properly initialize glob structure with
16118         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
16119         Remove old code using SHELL since Bash no longer
16120         uses this.
16121         (glob, prefix_array): Separate MS code better.
16122         (glob, glob_in_dir): Use C99 decls before statements when glibc
16123         does.
16124         (glob_in_dir): Remove old Amiga and VMS code.
16125         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
16126         separate files.
16127         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
16128         (__glibc_unlikely):
16129         Move here from glob.c.
16130         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
16131         (weak_alias): New macro.
16132         (__size_t): Remove.  All uses replaced by size_t.
16133         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
16134         * modules/glob (Files): Add +lib/glob_internal.h,
16135         lib/glob_pattern_p.c, lib/globfree.c.
16136         (Depends-on): Remove snippet/arg-nonnull.
16138 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16140         glob: port to clang's Undefined Sanitizer
16141         Problem reported by Tim Rühsen in:
16142         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
16143         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
16144         (glob_in_dir): Do not rely on undefined behavior in accessing
16145         struct members beyond their bounds.  Use a flexible array member
16146         instead.
16148 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16150         vc-list-files: port to Solaris 10
16151         * build-aux/vc-list-files: Don't assume test -e works.
16153 2017-08-21  Karl Berry  <karl@freefriends.org>
16155         * doc/posix-functions/srandom.texi (srandom): typo }.
16157 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16159         git-version-gen: port to Solaris 10
16160         Problem reported by Dagobert Michelsen in:
16161         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
16162         * build-aux/git-version-gen (v_from_git):
16163         Use expr instead of shell substitution.
16165 2017-08-19  Bruno Haible  <bruno@clisp.org>
16167         host-cpu-c-abi: Improve detection of MIPS ABI.
16168         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
16169         _MIPS_SIM.
16171 2017-08-17  Bruno Haible  <bruno@clisp.org>
16173         hypot tests: Fix test failure on FreeBSD 11.0/x86.
16174         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
16176 2017-08-17  Bruno Haible  <bruno@clisp.org>
16178         float: Fix LDBL_MIN value on FreeBSD/x86.
16179         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
16181 2017-08-17  Bruno Haible  <bruno@clisp.org>
16183         random: Fix test compilation failure on Cygwin 1.5.25.
16184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
16185         HAVE_DECL_SETSTATE.
16186         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
16187         declared.
16188         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
16189         HAVE_DECL_SETSTATE.
16190         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
16191         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
16192         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
16193         * doc/posix-functions/random.texi: Likewise.
16194         * doc/posix-functions/setstate.texi: Likewise.
16195         * doc/posix-functions/srandom.texi: Likewise.
16197 2017-08-16  Bruno Haible  <bruno@clisp.org>
16199         stdnoreturn: Fix test compilation failure on Cygwin.
16200         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
16201         <stdnoreturn.h> replacement.
16202         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
16203         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
16205 2017-08-16  Bruno Haible  <bruno@clisp.org>
16207         thread: Fix conflict with pthread_sigmask module.
16208         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
16209         it's defined as a macro.
16210         * modules/thread (Depends-on): Add pthread_sigmask.
16212 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16214         rename: port better to NetBSD
16215         * doc/posix-functions/rename.texi (rename): NetBSD 7
16216         does not have the link-count bug.
16217         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
16218         broken merely because rename ("a", "b") removes "a" when the two
16219         names are hard links to the same file.
16221 2017-08-16  Bruno Haible  <bruno@clisp.org>
16223         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
16224         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
16225         the target file names with '$(srcdir)/'.
16226         * modules/unicase/locale-language (Makefile.am): Likewise.
16227         * modules/unicase/special-casing (Makefile.am): Likewise.
16228         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
16229         * modules/unictype/category-byname (Makefile.am): Likewise.
16230         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
16231         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
16232         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
16233         * modules/unictype/property-byname (Makefile.am): Likewise.
16234         * modules/unictype/scripts (Makefile.am): Likewise.
16235         * modules/uninorm/composition (Makefile.am): Likewise.
16237 2017-08-16  Bruno Haible  <bruno@clisp.org>
16239         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
16240         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
16241         value for OpenBSD.
16243 2017-08-16  Bruno Haible  <bruno@clisp.org>
16245         rename, renameat: Update doc regarding NetBSD.
16246         * doc/posix-functions/rename.texi: Clarify that when using
16247         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
16248         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
16249         version.
16251 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16253         renameat2: port better to macOS
16254         * lib/renameat2.c (renameat2): Use renameatx_np if available.
16256         futimens: don’t assume struct timespec layout
16257         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
16258         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
16259         * tests/test-fdutimensat.c (main):
16260         * tests/test-futimens.h (test_futimens):
16261         * tests/test-lutimens.h (test_lutimens):
16262         * tests/test-utimens.h (test_utimens):
16263         * tests/test-utimensat.c (main):
16264         Don’t assume that struct timespec is a two-member structure in
16265         tv_sec, tv_nsec order.  Although this is true on all platforms we
16266         know about, POSIX does not guarantee it.
16268         rename: document+test NetBSD rename
16269         Test failure reported by Bruno Haible in:
16270         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
16271         This is an area where NetBSD is better-behaved than POSIX,
16272         so allow the NetBSD behavior in tests.
16273         * doc/posix-functions/rename.texi:
16274         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
16275         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
16277 2017-08-15  Bruno Haible  <bruno@clisp.org>
16279         renameat: Ensure declaration in <stdio.h> on NetBSD.
16280         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
16281         * doc/posix-functions/renameat.texi: Mention this problem.
16283 2017-08-15  Bruno Haible  <bruno@clisp.org>
16285         duplocale: Work around NetBSD 7.0 bug.
16286         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
16287         * lib/duplocale.c: Add comment about NetBSD problem.
16288         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
16290 2017-08-15  Bruno Haible  <bruno@clisp.org>
16292         duplocale tests: Verify use with *_l functions.
16293         * modules/duplocale-tests (configure.ac): Test for uselocale and
16294         some *_l functions.
16295         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
16296         from main.
16297         (get_locale_dependent_values_from, test_with_locale_parameter): New
16298         functions.
16299         (main): Test both test_with_uselocale and test_with_locale_parameter.
16301 2017-08-15  Bruno Haible  <bruno@clisp.org>
16303         extensions: Enable NetBSD specific extensions.
16304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
16306 2017-08-14  Bruno Haible  <bruno@clisp.org>
16308         open, openat: Update doc about O_CLOEXEC.
16309         * doc/posix-functions/open.texi: More concrete list of platforms.
16310         * doc/posix-functions/openat.texi: Likewise.
16312 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16314         open: support O_CLOEXEC
16315         * NEWS, doc/posix-functions/open.texi:
16316         * doc/posix-functions/openat.texi: Document this.
16317         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
16318         (GNULIB_defined_O_CLOEXEC): New symbol.
16319         * lib/open.c: Include cloexec.h.
16320         (open): Support O_CLOEXEC.
16321         * lib/openat.c: Include cloexec.h.
16322         (rpl_openat): Support O_CLOEXEC.
16323         * lib/popen-safer.c: Do not include cloexec.h.
16324         (open_noinherit): Remove.
16325         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
16326         * lib/save-cwd.c: Do not include cloexec.h.
16327         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
16328         * m4/open-cloexec.m4: New file.
16329         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
16330         Replace 'open' if O_CLOEXEC is not present.
16331         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
16332         Replace 'openat' if O_CLOEXEC is not present.
16333         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
16334         * modules/open (Files): Add m4/open-cloexec.m4.
16335         (Depends-on): Depend on cloexec if replacing 'open'.
16336         * modules/openat (Files): Add m4/open-cloexec.m4.
16337         (Depends-on): Depend on cloexec if replacing openat.
16338         * modules/popen-safer (Depends-on): Remove cloexec.
16339         * modules/save-cwd (Depends-on): Remove cloexec, and add
16340         fd-safer-flag and 'open'.
16342 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16344         reallocarray: minor fixes
16345         * doc/glibc-functions/reallocarray.texi: Update version numbers.
16346         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
16347         * modules/reallocarray (License): Change from GPL to LGPL.
16348         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
16349         Indent properly and don't use tabs.
16351 2017-08-13  Darshit Shah  <darnir@gnu.org>
16353         reallocarray: New module
16354         reallocarray is a new function in glibc 2.26 to safely allocate an array
16355         of memory locations with integer overflow protection.
16356         * MODULES.html.sh: Add reallocarray.
16357         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
16358         * lib/reallocarray.c: New file to implement module reallocarray.
16359         * lib/stdlib.in.h: Add function declarations for reallocarray.
16360         * m4/reallocarray.m4: New file.
16361         * m4/stdlib_h.m4: Declare reallocarray.
16362         * modules/reallocarray: New file.
16363         * modules/reallocarray-test: New file.
16364         * modules/stdlib: Coerce stdlib.h to export reallocarray.
16365         * tests/test-reallocarray.c: New test.
16367 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16369         dirent-safer: fix cloexec race
16370         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
16371         (opendir_safer): Use F_DUPFD_CLOEXEC.
16372         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
16373         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
16374         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
16375         instead of dup_safer.
16377         fts: fix cloexec races
16378         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
16379         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
16380         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
16381         (fd_ring_check): Set cloexec flag on new file descriptors.
16382         (fts_build, fd_ring_check): While we’re at it, make sure the
16383         resulting file descriptor is not 0, 1, or 2, since that is easy.
16385 2017-08-11  Bruno Haible  <bruno@clisp.org>
16387         fts tests: Fix link error.
16388         Reported by Tom G. Christensen in
16389         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
16390         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
16392 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16394         fts: port recent changes to CentOS 6
16395         Problem reported by Tom G. Christensen in:
16396         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
16397         * lib/fts.c (fsword): New type.
16398         (struct dev_type, filesystem_type): Use it.
16399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
16400         Also, check for f_type only if fstatfs and sys/vfs.h work.
16402 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16404         tempname: do not depend on secure_getenv
16405         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
16406         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
16407         * modules/tempname (Depends-on): Remove secure_getenv.
16409 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16411         extensions: add _OPENBSD_SOURCE
16412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
16414 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
16415             Bruno Haible  <bruno@clisp.org>
16417         manywarnings: Add support for C++.
16418         * build-aux/g++-warning.spec: New file.
16419         * m4/manywarnings-c++.m4: New file.
16420         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
16421         redirects to manywarnings-c++.m4.
16422         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
16424 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16426         git-version-gen: another fix for tags with "-"
16427         * build-aux/git-version-gen: Improve fix for tags containing "-".
16428         Suggested by Markus Armbruster in:
16429         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
16431 2017-08-06  Bruno Haible  <bruno@clisp.org>
16433         warnings, manywarnings: Add support for multiple languages, not just C.
16434         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
16435         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
16436         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
16437         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
16438         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
16439         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
16440         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
16441         of the current language. If C++ is the current language, modify
16442         WARN_CXXFLAGS instead of WARN_CFLAGS.
16443         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
16444         gl_MANYWARN_ALL_GCC.
16445         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
16447 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
16449         git-version-gen: Fix for tags containing '-'
16451         Really old versions of git-describe (before v1.5.0, Feb 2007)
16452         don't have the number of commits in their long format output,
16453         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
16454         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
16455         recognizes both patterns, and normalizes the old format to the new one.
16457         Unfortunately, this normalization code gets confused when the tag
16458         contains '-'.  Reproducer:
16460             $ git-tag -m test v0.2-rc1
16461             $ build-aux/git-version-gen .tarball-version; echo
16462             build-aux/git-version-gen: WARNING: git rev-list failed
16463             UNKNOWN
16465         We take exact tag "v0.2-rc1" for the old format, extract the presumed
16466         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
16467         commits since tha tag.  Fails, because tag "v0.2" does not exist.
16469         * git-version-gen: We could perhaps drop support for versions from
16470         more than a decade ago.  But tightening the pattern match is easy
16471         enough, so do that.  Still breaks when you use version tags ending in
16472         something matching -g????, but you arguably get what you deserve then.
16474 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16476         valgrind-tests: use ls, and cache
16477         * m4/valgrind-tests.m4: Test ls, not bash.
16478         Problem reported by Reuben Thomas.
16479         Also, cache the result so that it can be overridden.
16481 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16483         manywarnings: port to 64-bit GCC builds of Emacs
16484         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
16485         object size rather than hardwiring 2147483647.  This is needed to
16486         build GNU Emacs, which has one conditional (and used
16487         only-in-theory) call to malloc with a literal greater than
16488         2147483647.
16490 2017-08-04  Bruno Haible  <bruno@clisp.org>
16492         Relax the license of some modules with no runtime code.
16493         * modules/std-gnu11 (License): Set to 'unlimited'.
16494         * modules/c99 (License): Likewise.
16495         Reported by Reuben Thomas <rrt@sc3d.org>.
16496         * modules/d-ino (License): Set to 'LGPL'.
16497         * modules/host-os (License): Likewise.
16498         * modules/longlong (License): Likewise.
16500 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16502         renameat2: port to RHEL 7 + NFS
16503         * lib/renameat2.c (renameat2) [SYS_renameat2]:
16504         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
16505         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
16507 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
16509         renameat2: port to non-renameat platforms
16510         Problem reported for MSVC-2015 by Gisle Vanem in:
16511         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
16512         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
16513         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
16515 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16517         manywarnings: port to 32-bit GCC bug
16518         Problem reported by Pino Toscano in:
16519         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
16520         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
16521         not 2**63 - 1, to work around the following GCC bug:
16522         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
16524 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
16526         backupfile: new function to validate backup suffix
16527         * lib/backupfile.c (set_simple_backup_suffix): New function.
16528         (backupfile_internal): Use it.
16530         canonicalize: fix EOVERFLOW commentary
16531         Problem reported by Bruno Haible in:
16532         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
16533         * lib/canonicalize.c (canonicalize_filename_mode):
16534         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
16536         Don't interpret EOVERFLOW to mean nonexistence
16537         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
16538         may be EOVERFLOW; this is likely more useful than reporting the
16539         stat errno.
16540         * lib/glob.c (link_stat): Rename from link_exists2_p and
16541         return -1/0 instead of 0/1.  Caller changed.
16542         * lib/glob.c (link_exists_p):
16543         * lib/renameat2.c (rename_noreplace, renameat2):
16544         * lib/tempname.c (try_nocreate):
16545         If errno == EOVERFLOW then the directory entry exists, so do not
16546         act as if it does not exist.
16548         backup-rename: new module
16549         It is like backupfile, except it avoids some race conditions,
16550         and it does not output to stderr or exit.
16551         * MODULES.html.sh: Add backup-rename.
16552         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
16553         * modules/backup-rename: New files.
16554         * lib/backupfile.c: Turn this into an internals file, which
16555         contains code common to backupfile and backup_rename.  Include
16556         backupfile-internal.h instead of backupfile.h.  Do not include
16557         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
16558         renameat2.h and fcntl.h.
16559         (BACKUP_NOMEM): New constant.
16560         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
16561         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
16562         (backupfile_internal): Rename from find_backup_file_name.
16563         Support new arg RENAME.
16564         (backup_args, backup_types, get_version, xget_version):
16565         Move to lib/backup-find.c.
16566         * lib/backupfile.h (backup_file_rename): New decl.
16567         * modules/backupfile (Files): Add lib/backup-internal.h,
16568         lib/backup-find.c.
16569         (Depends-on): Add dirfd, fcntl, renameat2.
16570         (lib_SOURCES): Add backup-find.c.
16572         renameat2: port better to older Solaris
16573         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
16574         Add goto to use a label, to silence picky compilers.
16576         fts-tests: port to gcc -Wwrite-strings
16577         * tests/test-fts.c (base, base_d): New static vars.
16578         (argv, remove_tree, main): Use them.
16580 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
16582         relocatable-lib{,-lgpl}: improve documentation
16583         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
16584         Various other updates.
16586 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
16587             Bruno Haible  <bruno@clisp.org>
16589         relocatable-lib{,-lgpl}: add Valgrind suppressions
16590         * lib/relocatable.valgrind: New file.
16591         * modules/relocatable-lib (Files): Add relocatable.valgrind.
16592         * modules/relocatable-lib-lgpl: Likewise.
16594 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
16596         relocatable: Make the license on the sources the GPL.
16597         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
16598         LGPL, which was a special case so that the relocatable source files
16599         could be used without gnulib-tool, to GPL. They can still be used under
16600         the LGPL, using the --lgpl option to gnulib-tool.
16602 2017-07-30  Bruno Haible  <bruno@clisp.org>
16604         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
16605         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
16606         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
16607         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
16608         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
16610 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
16612         faccessat: document AT_SYMLINK_NOFOLLOW issue
16613         * doc/posix-functions/faccessat.texi: Modernize platform list.
16614         Document AT_SYMLINK_NOFOLLOW limitation.
16616         renameat2: port to Solaris 10
16617         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
16618         with AT_SYMLINK_NOFOLLOW (which is not portable).
16619         (renameat): Undef before using, to avoid endless recursion when
16620         the replacement renameat calls renameat2 which calls the
16621         replacement renameat.
16622         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
16623         * modules/renameat2 (Depends-on): Remove faccessat.
16624         * modules/renameat-tests (test_renameat_LDADD):
16625         * modules/renameat2-tests (test_renameat2_LDADD):
16626         Remove $(LIB_EACCESS).
16628         renameat2: new module
16629         Although the Linux syscall renameat2 is not in glibc (yet?), it is
16630         useful to have access to its RENAME_NOREPLACE flag.
16631         * MODULES.html.sh (func_all_modules): Add renameat2.
16632         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
16633         * modules/renameat2-tests, tests/test-renameat2.c: New files.
16634         * lib/renameat.c (renameat): Move most of the implementation
16635         to renameat2, and just call renameat2.
16636         * modules/renameat (Files): Remove lib/at-func2.c.
16637         (Depends-on): Depend only on renameat2.
16638         (Include): Remove <fcntl.h>.
16639         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
16640         since renameat (via renameat2) might use faccessat.
16642 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
16644         vc-list-files: Adjust the script to support git worktrees
16645         * build-aux/vc-list-files: Require existence, not directory.
16647 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
16649         doc: bring MODULES.html.sh up to date
16650         Somehow a few months ago we stopped updating MODULES.html.sh.
16651         I don’t recall explicitly deciding this, so I updated it now.
16652         Alternatively I suppose we could remove it.
16653         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
16654         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
16655         truncate, utime, utime-h, windows-stat-inodes,
16656         windows-stat-override, windows-stat-timespec, year2038.  Sort.
16658 2017-07-26  Jim Meyering  <meyering@fb.com>
16660         fprintftime: fix build-break caused by recent renaming
16661         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
16662         "strftime.c".
16663         * modules/fprintftime: Depend directly on nstrftime.
16665 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
16667         regex: work with GCC7's -Werror=implicit-fallthrough=
16668         * lib/regex_internal.h (FALLTHROUGH): New macro.
16669         * lib/regcomp.c (peek_token_bracket, parse_expression):
16670         * lib/regexec.c (check_node_accept): Use it.
16672 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16674         fts: simplify fts_build
16675         * lib/fts.c (fts_build): Simplify, and be lazier about
16676         calling leaf_optimization.
16678         fts: three levels of leaf optimization
16679         * lib/fts.c (enum leaf_optimization): New type with three values.
16680         (S_MAGIC_AFS): New macro.  Sort them.
16681         (leaf_optimization): Rename from leaf_optimization_applies, and
16682         return enum leaf_optimization instead of bool.  All uses changed.
16683         Add cases for unknown type and for AFS.
16684         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
16686         fts: cache dirent_inode_sort_may_be_useful too
16687         * lib/fts.c (struct dev_type): New struct.
16688         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
16689         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
16690         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
16691         Now takes FTSENT const *, not int.  All uses changed.  Use
16692         filesystem_type to cache.
16693         (link_count_optimize_ok): Remove.  Caller changed to use
16694         leaf_optimization_applies, which now uses shared cache.
16696         fts: introduce MIN_DIR_NLINK
16697         * lib/fts.c (MIN_DIR_NLINK): New constant.
16698         Use it instead of 2, whenever we are talking about link counts.
16700         fts: nlink_t signedness fixups
16701         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
16702         so that root need not be a special case later.
16703         (fts_read): Remove now-redundant test for fts_level.
16704         Do not assume that nlink_t is signed.
16705         (fts_build): Remove useless decrement of nlinks.
16706         (fts_stat): Avoid unlikely signed integer overflow later, if
16707         nlink_t is signed.
16709         fts-tests: new module
16710         * modules/fts-tests, tests/test-fts.c: New files.
16712 2017-07-23  Bruno Haible  <bruno@clisp.org>
16714         Rename module 'strftime' to 'nstrftime'.
16715         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
16716         * lib/nstrftime.c: Renamed from lib/strftime.c.
16717         * modules/nstrftime: Renamed from modules/strftime.
16718         (Files, Makefile.am): Update.
16719         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
16720         Fix comment.
16721         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
16722         (Files, Makefile.am): Update.
16723         * modules/strftime: New file, an obsolete indirection.
16724         * doc/posix-functions/strftime.texi: Update reference.
16725         * config/srclist.txt: Update info.
16726         * NEWS: Mention the change.
16728 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
16730         malloca: Silence a warning from clang's memory sanitizer.
16731         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
16732         (freea): Use it.
16734 2017-07-18  Bruno Haible  <bruno@clisp.org>
16736         host-cpu-c-abi: Fix detection of MIPS ABI.
16737         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
16738         ABI, not the CPU instruction set.
16740 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16742         explicit_bzero: new module
16743         The explicit_bzero function has been added to glibc.
16744         This module is intended to supports its use in GNU programs.
16745         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
16746         * m4/explicit_bzero.m4, modules/explicit_bzero:
16747         New files.
16748         * doc/gnulib.texi (Glibc string.h): Link to new doc.
16749         * lib/string.in.h (explicit_bzero): Declare.
16750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
16751         * modules/string (string.h): Substitute its vars.
16753 2017-07-16  Bruno Haible  <bruno@clisp.org>
16755         threadlib: Support static linking.
16756         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
16757         set gl_cv_have_weak to 'no'.
16759 2017-07-16  Bruno Haible  <bruno@clisp.org>
16761         unicase/locale-language: Fix link dependencies.
16762         * modules/unicase/locale-language (Link): New section.
16763         * modules/unicase/locale-language-tests (Makefile.am): Link
16764         test-locale-language program with $(LIBTHREAD).
16766 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
16768         sys_socket: Add support for OpenVMS.
16769         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
16770         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
16772 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
16774         sys_resource: Add support for OpenVMS.
16775         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
16776         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
16778 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
16779             Bruno Haible  <bruno@clisp.org>
16781         math: Add support for OpenVMS.
16782         * lib/math.in.h [__VMS]: Include <fp.h>.
16783         * doc/posix-headers/math.texi: Mention OpenVMS issues.
16785 2017-07-15  Bruno Haible  <bruno@clisp.org>
16787         getdtablesize: Add minimal support for OpenVMS.
16788         Reported by John E. Malmberg <wb8tyw@qsl.net>.
16789         * modules/getdtablesize (Description): Fix.
16790         * lib/getdtablesize.c: Fix comment.
16791         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
16792         getdtablesize() function, even though the test fails.
16793         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
16794         limitation on OpenVMS.
16796 2017-07-13  Bruno Haible  <bruno@clisp.org>
16798         Revisit cross-compilation guesses.
16799         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
16801 2017-07-13  Bruno Haible  <bruno@clisp.org>
16803         Improve cross-compilation guesses for native Windows.
16804         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
16805         Windows.
16806         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
16807         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
16808         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16809         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
16810         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
16811         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16812         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16813         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16814         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16815         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
16816         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16817         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
16818         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16819         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16820         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
16821         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16822         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
16823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16824         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16825         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
16826         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16827         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16828         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
16829         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
16830         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
16831         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16832         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16833         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16834         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16835         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
16836         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
16838         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16839         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
16840         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
16841         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16842         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16843         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16844         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16845         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16846         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16847         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16848         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
16849         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
16850         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
16851         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
16852         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
16853         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
16854         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16855         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
16856         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16857         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
16858         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
16859         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
16860         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
16861         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
16862         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
16863         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16864         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
16865         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
16866         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16867         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
16868         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16869         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16870         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16872         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
16873         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16874         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
16875         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
16876         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
16877         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16878         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16879         * m4/regex.m4 (gl_REGEX): Likewise.
16880         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16881         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
16882         gl_FUNC_REMAINDERF_WORKS): Likewise.
16883         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
16884         gl_FUNC_REMAINDERL_WORKS): Likewise.
16885         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16886         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16888         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16889         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16891         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16892         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16893         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
16894         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16895         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
16896         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
16897         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16898         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16899         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16900         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16901         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16902         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16903         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16904         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
16905         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
16906         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16907         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16908         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
16909         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16910         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16911         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16912         Likewise.
16913         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16914         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
16915         Windows. Enable also on Autoconf 2.70.
16916         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16917         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16918         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16919         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
16920         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16921         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
16922         for native Windows.
16923         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16924         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
16926 2017-07-13  Bruno Haible  <bruno@clisp.org>
16928         Improve cross-compilation guesses for native Windows.
16929         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
16930         Windows.
16931         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
16932         memchr.m4.
16933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16935 2017-07-13  Bruno Haible  <bruno@clisp.org>
16937         Improve cross-compilation guesses for native Windows.
16938         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
16939         native Windows.
16940         (gl_FUNC_FFLUSH): Update accordingly.
16941         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
16942         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
16944 2017-07-11  Bruno Haible  <bruno@clisp.org>
16946         More systematic m4 quoting and indentation.
16947         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
16948         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16949         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
16950         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16951         * m4/host-os.m4 (gl_HOST_OS): Likewise.
16952         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
16953         gl_WINSIZE_IN_PTEM): Likewise.
16954         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
16955         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
16956         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16957         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
16958         Correct indentation.
16959         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
16960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16961         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
16962         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16963         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
16964         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16966 2017-07-10  Bruno Haible  <bruno@clisp.org>
16968         round, roundf: Avoid compiler warning in configure test.
16969         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
16970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16972 2017-07-10  Bruno Haible  <bruno@clisp.org>
16974         getlogin tests: Avoid #ifdefs when sharing code between modules.
16975         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
16976         * modules/getlogin-tests (Files): Likewise. Remove
16977         tests/test-getlogin_r.c.
16978         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
16979         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
16980         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
16981         getlogin().
16983 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16985         getlogin: don’t assume one name per uid
16986         Problem reported by Wolfgang F. Muthmann (Bug#27640).
16987         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
16988         (ttyname): Remove test.
16989         * modules/getlogin_r-tests (ttyname): Remove test.
16990         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
16991         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
16992         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
16993         getlogin rather than getlogin_r.  This avoids code duplication.
16994         (main): Use isatty and fstat rather than ttyname and stat.
16995         Use getpwnam instead of getpwuid, to be portable to test platforms
16996         that have multiple login names for the same uid.
16998 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
16999             Bruno Haible  <bruno@clisp.org>
17001         glob: Fix more memory leaks.
17002         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
17003         returning.
17004         Reported by Tim Rühsen.
17006 2017-07-10  Bruno Haible  <bruno@clisp.org>
17008         Make sure $host and $host_os are defined when used.
17009         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
17010         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
17011         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
17012         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17013         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17014         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17015         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
17016         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
17017         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17018         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
17019         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
17020         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
17021         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17022         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
17023         m4_ifdef block.
17025 2017-07-09  Bruno Haible  <bruno@clisp.org>
17027         *printf: Fix cross-compilation guess for Solaris.
17028         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
17029         2010-12-21.
17031 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
17032             Bruno Haible  <bruno@clisp.org>
17034         vasnprintf: port to macOS 10.13
17035         Problem reported by comex in:
17036         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
17037         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
17039 2017-07-06  Bruno Haible  <bruno@clisp.org>
17041         imaxdiv tests: Fix logic.
17042         * tests/test-imaxdiv.c (main): Use == instead of =.
17043         Reported by Coverity.
17045 2017-07-06  Bruno Haible  <bruno@clisp.org>
17047         uninorm/filter: Fix use-after-free bug.
17048         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
17049         sortbuf == filter->sortbuf invariant.
17050         Reported by Coverity.
17052 2017-07-06  Bruno Haible  <bruno@clisp.org>
17054         glob: Fix more memory leaks.
17055         * lib/glob.c (glob): Free dirname before returning.
17056         Reported by Coverity and Tim Rühsen.
17058 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17060         parse-datetime: fix uninit var bug
17061         Reported by Bruno Haible in:
17062         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
17063         * lib/parse-datetime.y (parse_datetime2): Do not use
17064         uninitialized.
17066 2017-07-05  Bruno Haible  <bruno@clisp.org>
17068         doc: Update for MSVC 14.
17069         * doc/posix-headers/*.texi: Add info about MSVC 14.
17070         * doc/posix-functions/*.texi: Likewise.
17071         * doc/pastposix-functions/*.texi: Likewise.
17072         * doc/glibc-headers/*.texi: Likewise.
17073         * doc/glibc-functions/*.texi: Likewise.
17075 2017-07-05  Bruno Haible  <bruno@clisp.org>
17077         sched: Fix build failure on native Windows (regression from 2017-06-19).
17078         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
17080 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
17082         stdioext: Port to OpenVMS.
17083         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
17084         * lib/fpending.c (fpending): Remove non-working VMS specific code.
17085         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
17086         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
17087         * lib/fpurge.c (fpurge): Likewise.
17088         * lib/freadable.c (freadable): Likewise.
17089         * lib/freadahead.c (freadahead): Likewise.
17090         * lib/freading.c (freading): Likewise.
17091         * lib/freadptr.c (freadptr): Likewise.
17092         * lib/freadseek.c (freadseek): Likewise.
17093         * lib/fseeko.c (fseeko): Likewise.
17094         * lib/fseterr.c (fseterr): Likewise.
17095         * lib/fwritable.c (fwriteable): Likewise.
17096         * lib/fwriting.c (fwriting): Likewise.
17098 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
17100         glob: Declare variables at the very start of their scope.
17101         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
17102         its separate scope, so the functions will compile on Haiku.
17104 2017-07-01  Bruno Haible  <bruno@clisp.org>
17106         logbl: Work around a glibc bug on PowerPC64LE.
17107         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
17108         numbers.
17109         * doc/posix-functions/logbl.texi: Update.
17111 2017-06-29  Bruno Haible  <bruno@clisp.org>
17113         stat, fstat: Compile stat-w32.c only on platforms that need it.
17114         Suggested by Paul Eggert.
17115         * modules/stat (configure.ac): Request stat-w32.o only on native
17116         Windows.
17117         * modules/fstat (configure.ac): Likewise.
17119 2017-06-25  Bruno Haible  <bruno@clisp.org>
17121         stat: Improve last change.
17122         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
17124 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17126         stat: port to xlc 12.01
17127         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
17128         12.01 complains "Compilation unit is empty."
17130 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17132         xalloc-oversized: port to icc
17133         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
17134         __builtin_mul_overflow if ICC is defined, as this results in
17135         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
17136         20170213.
17138 2017-06-19  Bruno Haible  <bruno@clisp.org>
17140         classpath: Avoid including config.h twice, as it produces warnings.
17141         Reported by John E. Malmberg <wb8tyw@gmail.com>.
17142         * lib/classpath.h: Conditionalize the include of config.h.
17144 2017-06-19  Bruno Haible  <bruno@clisp.org>
17145             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
17147         sched: Fix compilation failure on OpenVMS.
17148         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
17149         test whether <pthread.h> exists and defines struct sched_param.
17150         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
17152 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17154         diffseq: port to GCC 7 with --enable-gcc-warnings
17155         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
17156         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
17157         not complain about big_snake being defined but not used.
17159 2017-06-15  Bruno Haible  <bruno@clisp.org>
17161         gettext-h: Update theoretical condition for use of variable size arrays.
17162         Reported by Paul Eggert.
17163         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
17164         to include the theoretical condition for availability of variable size
17165         arrays, if we could trust the value of __STDC_VERSION__.
17167 2017-06-12  Bruno Haible  <bruno@clisp.org>
17169         Relicense some modules under LGPLv2+.
17170         Daiki Ueno's approval is in
17171         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
17172         * modules/uniwidth/base (License): Change to LGPLv2+.
17173         * modules/uniwidth/width (License): Likewise.
17175 2017-06-11  Bruno Haible  <bruno@clisp.org>
17177         localename: Fix test failure on DragonFly BSD.
17178         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
17179         like FreeBSD.
17181 2017-06-11  Bruno Haible  <bruno@clisp.org>
17183         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
17184         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
17185         * lib/float.in.h: Likewise.
17186         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
17188 2017-06-11  Bruno Haible  <bruno@clisp.org>
17190         gnulib-tool: Clean up after autotools.
17191         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
17192         useless directory left over by the Autotools.
17194 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
17196         getopt-posix: port to glibc 2.25.90
17197         Problem reported by Daniel P. Berrange in:
17198         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
17199         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
17200         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
17201         #undef if __GETOPT_PREFIX is defined.
17203 2017-06-11  Bruno Haible  <bruno@clisp.org>
17205         strtod-obsolete: Fix license.
17206         * modules/strtod-obsolete (License): Change to LGPL.
17208 2017-06-10  Jim Meyering  <meyering@fb.com>
17210         maint: update to work with GCC7's -Werror=implicit-fallthrough=
17211         * lib/savewd.c (FALLTHROUGH): Define.
17212         (savewd_save, savewd_restore): Use this, rather than a comment,
17213         whenever one switch case falls through into the next.
17215 2017-06-08  Bruno Haible  <bruno@clisp.org>
17217         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
17218         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
17219         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
17220         case.
17222 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
17224         doc: remove robots, add prereqs
17225         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
17226         builds.  Simon's robot site does not seem to be up, so remove
17227         mentions of it for now.
17229 2017-06-08  Bruno Haible  <bruno@clisp.org>
17231         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
17232         * gnulib-tool (func_symlink_target): New function, extracted from
17233         func_symlink.
17234         (func_symlink, func_symlink_if_changed): Use it.
17236 2017-06-08  Bruno Haible  <bruno@clisp.org>
17238         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
17239         * gnulib-tool (func_ln_s): Determine cp_src correctly.
17241 2017-06-07  Bruno Haible  <bruno@clisp.org>
17243         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
17244         Reported by John E. Malmberg <wb8tyw@gmail.com> in
17245         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
17246         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
17247         override, pass 2 arguments to getcwd, not 3.
17249 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
17251         same-inode: port better to VMS 8.2 and later
17252         Problem reported by John E. Malmberg in:
17253         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
17254         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
17255         Use the usual POSIX definition.
17256         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
17258 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17260         error: fix POSIX violation for va_end
17261         Problem reported by Bruno Haible in:
17262         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
17263         * lib/error.c (error_tail): Do not call va_end here.
17264         (error, error_at_line): Call it here instead.
17266 2017-05-28  Bruno Haible  <bruno@clisp.org>
17268         c-strtod: Make it usable in C++ mode.
17269         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
17271 2017-05-25  Jim Meyering  <meyering@fb.com>
17273         quotearg: fix compilation failure due to FALLTHROUGH misuse
17274         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
17275         macro back to /* fall through */ comment.  The macro can apply only
17276         to a following case statement.  Reported by Assaf Gordon.
17278 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
17280         intprops: port to recent icc
17281         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
17282         but does not support __builtin_add_overflow etc.
17283         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
17284         Define to 0.
17286 2017-05-23  Karl Berry  <karl@freefriends.org>
17288         * config/srclist.txt (iconv.m4): sync broken, comment out
17289         until (hopefully) the next gettext release.
17291 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
17293         Remove repeated words in comments.
17295 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
17297         fallthrough: reinstate a FALLTHROUGH instance in quotearg
17298         quotearg.c: Reinstate this instance which is significant
17299         when the if branch is not taken.
17301 2017-05-21  Bruno Haible  <bruno@clisp.org>
17303         gnulib-tool: Add options to create hard links.
17304         * gnulib-tool (func_usage): Document options --hardlink,
17305         --local-hardlink, --more-hardlinks.
17306         (func_symlink): Renamed from func_ln.
17307         (func_symlink_if_changed): Renamed from func_ln_if_changed.
17308         (func_hardlink): New function.
17309         (copymode, lcopymode): New variables.
17310         (symbolic, lsymbolic): Remove variables.
17311         (Options): Implement options --hardlink, --local-hardlink,
17312         --more-hardlinks.
17313         (func_should_link): Renamed from func_should_symlink. Set copyaction.
17314         (func_add_file, func_update_file): Update invocation of
17315         func_should_link. Invoke func_hardlink when appropriate.
17316         (func_import): Update comments.
17317         (func_create_testdir): Update invocation of func_should_link. Invoke
17318         func_hardlink when appropriate.
17319         Finally, invoke 'git update-index --refresh' to mitigate the effects of
17320         the hard links on git.
17322 2017-05-20  Bruno Haible  <bruno@clisp.org>
17324         argp: Simplify bit manipulation.
17325         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
17326         on a signed integer type.
17328 2017-05-20  Bruno Haible  <bruno@clisp.org>
17330         Avoid wrong configure results with gcc -fsanitize=address.
17331         This completes the work done on 2016-02-06 on this topic.
17332         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
17333         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17336         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
17337         returning.
17338         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
17339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
17340         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17341         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17342         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17343         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
17344         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
17345         free allocated memory before returning.
17346         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17347         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
17348         objects before returning.
17349         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
17350         returning.
17352 2017-05-20  Bruno Haible  <bruno@clisp.org>
17354         gnulib-tool: Don't create hard links between gnulib and its testdirs.
17355         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
17357 2017-05-20  Bruno Haible  <bruno@clisp.org>
17359         argp, tsearch tests: Fix file list.
17360         * modules/argp-tests (Files): Add tests/macros.h.
17361         * modules/tsearch-tests (Files): Likewise.
17363 2017-05-20  Bruno Haible  <bruno@clisp.org>
17365         getopt-posix tests: Remove redundant include.
17366         * tests/test-getopt.h: Don't include "macros.h". It's already included
17367         by tests/test-getopt-main.h.
17369 2017-05-19  Jim Meyering  <meyering@fb.com>
17371         dfa: two small simplifications
17372         * lib/dfa.c (build_state): Avoid repeating longer expressions.
17374 2017-05-18  Jim Meyering  <meyering@fb.com>
17376         fallthrough: update for GCC 7/8
17377         * lib/quotearg.c (FALLTHROUGH): New macro.
17378         Use it whenever one switch case falls through into the next,
17379         replacing "/* Fall through */" comments.  This exposed one
17380         instance of an unwarranted "fall through" comment: unwarranted
17381         because it preceded a "goto" label not a case statement.
17382         * lib/freopen-safer.c (freopen_safer): Likewise.
17383         * lib/fts.c (leaf_optimization_applies): Likewise.
17384         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
17385         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
17386         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
17387         tests/macros.h for the definition.
17388         * tests/test-argp.c (group1_parser): Likewise.
17389         * tests/test-getopt.h (getopt_loop): Likewise.
17391 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17393         argp: fix shift bug
17394         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
17395         behavior on shift overflow, caught by gcc -fsanitize=undefined.
17397         argp: fix pointer-subtraction bug
17398         * lib/argp-help.c (hol_append): Don’t subtract pointers to
17399         different arrays, as this can run afoul of -fcheck-pointer-bounds.
17400         See the thread containing Bruno Haible’s report in:
17401         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
17403 2017-05-19  Bruno Haible  <bruno@clisp.org>
17405         printf-posix tests: Avoid test failure with "gcc --coverage".
17406         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17407         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
17408         than 5000000.
17409         * tests/test-fprintf-posix2.c (main): Likewise.
17411 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17413         closeout: don’t close stderr when sanitizing
17414         * NEWS: Document this.
17415         * lib/closeout.c (__has_feature): New macro, if not already defined.
17416         (SANITIZE_ADDRESS): New constant.
17417         (close_stdout): Don’t close stderr if sanitizing addresses.
17419 2017-05-19  Bruno Haible  <bruno@clisp.org>
17421         get-rusage-data tests: Avoid failure on Linux/glibc.
17422         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
17423         on glibc systems.
17425 2017-05-18  Bruno Haible  <bruno@clisp.org>
17427         localename: Include necessary header files on Cygwin.
17428         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
17429         where NL_LOCALE_NAME is defined.
17431 2017-05-18  Bruno Haible  <bruno@clisp.org>
17433         gettext: Update macros from gettext git.
17434         * m4/intldir.m4: Require Autoconf >= 2.60.
17435         * m4/progtest.m4: Fix typos in copyright notice.
17437 2017-05-18  Bruno Haible  <bruno@clisp.org>
17439         copy-file tests: Fix link error (regression from 2017-05-01).
17440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17441         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
17442         $(LIB_CLOCK_GETTIME).
17444 2017-05-18  Bruno Haible  <bruno@clisp.org>
17446         unicase/special-casing: Fix incompatibility with gperf-3.0.4
17447         (regression from 2017-02-13).
17448         * lib/unicase/special-casing.in.h: Renamed from
17449         lib/unicase/special-casing.h.
17450         * modules/unicase/special-casing (Files): Add
17451         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
17452         (Makefile.am): Add rule for generating unicase/special-casing.h.
17453         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
17454         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
17455         not "special-casing.h".
17456         * lib/unicase/u*.c: Likewise.
17458 2017-05-17  Bruno Haible  <bruno@clisp.org>
17460         README: Don't ask people to read a TeXinfo file.
17461         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17462         * README: Tell people how to read the HTML formatted manual.
17464 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
17466         parse-datetime: Fix memleak
17467         * lib/parse-datetime.y (parse_datetime2): Cleanup on
17468         localtime_rz() failure.
17470 2017-05-16  Bruno Haible  <bruno@clisp.org>
17472         javacomp: Fix handle leak.
17473         Found by Coverity.
17474         * lib/javacomp.c (get_classfile_version): Close fd before returning.
17476 2017-05-16  Bruno Haible  <bruno@clisp.org>
17478         relocate: Make it easier to reclaim allocated memory.
17479         * lib/relocatable.h (relocate2): New declaration/macro.
17480         * lib/relocatable.c (relocate2): New function.
17481         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
17482         relocate2 function.
17483         * lib/localcharset.c (relocate2): Define fallback.
17484         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
17485         allocated memory.
17486         * lib/javaversion.c (relocate2): Define fallback.
17487         (javaexec_version): Invoke relocate2 instead of relocate. Free the
17488         allocated memory.
17490 2017-05-16  Bruno Haible  <bruno@clisp.org>
17492         relocate: Simplify EMX specific code.
17493         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
17494         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
17496 2017-05-16  Bruno Haible  <bruno@clisp.org>
17498         sigpipe tests: Fix file list.
17499         * modules/sigpipe-tests (Files): Add tests/macros.h.
17501 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17503         manywarnings: update for GCC 7
17504         * build-aux/gcc-warning.spec:
17505         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17506         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
17507         requires a non-comment fallthrough attribute.  This is a bit
17508         cleaner than the comment versions.
17509         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
17510         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
17511         Use it whenever one switch case falls through into the next.
17512         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
17513         Use FALLTHROUGH macro.
17515 2017-05-15  Bruno Haible  <bruno@clisp.org>
17517         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
17518         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
17519         @ALLOCA@, not @LTALLOCA@.
17521 2017-05-15  Bruno Haible  <bruno@clisp.org>
17523         sys_select: Avoid "was expanded before it was required" warning.
17524         * modules/sys_select (configure.ac): Require, not invoke,
17525         gl_HEADER_SYS_SELECT.
17527 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17529         gnulib-tool: improve GNU Make debugging
17530         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
17531         Report autoconf diagnostics when it fails, in the output makefile.
17533 2017-05-14  Bruno Haible  <bruno@clisp.org>
17535         stat-time tests: Improve comment.
17536         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
17538 2017-05-14  Bruno Haible  <bruno@clisp.org>
17540         same-inode: Adapt for windows-stat-inodes.
17541         * lib/same-inode.h: Include <sys/types.h>.
17542         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
17543         * modules/same-inode (Depends-on): Add sys_types.
17545 2017-05-14  Bruno Haible  <bruno@clisp.org>
17547         windows-stat-inodes: New module.
17548         * m4/windows-stat-inodes.m4: New file.
17549         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
17550         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
17551         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
17552         (_GL_WINDOWS_STAT_INODES): New macro.
17553         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
17554         (GetFileInformationByHandleExFunc): New variable.
17555         (initialize): Initialize it.
17556         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
17557         st_ino appropriately.
17558         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
17559         a fallback, because it does not provide st_dev and st_ino values.
17560         * modules/fstat (Depends-on): Add 'verify'.
17561         * modules/windows-stat-inodes: New file.
17562         * doc/windows-stat-inodes.texi: New file.
17563         * doc/gnulib.texi: Include it.
17564         * doc/posix-headers/sys_stat.texi: Mention the new module.
17566 2017-05-14  Bruno Haible  <bruno@clisp.org>
17568         stat-time tests: Workaround for native Windows.
17569         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
17570         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
17571         New variables.
17572         (initialize_filenames): New function.
17573         (main): Invoke it.
17574         (cleanup, prepare_test): Update.
17576 2017-05-14  Bruno Haible  <bruno@clisp.org>
17578         stat-time: Adapt for windows-stat-timespec.
17579         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
17580         entire st_ctim field.
17582 2017-05-13  Jim Meyering  <meyering@fb.com>
17584         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
17585         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
17586         file that uses the assume macro, claiming that verify.h is unused.
17588 2017-05-13  Bruno Haible  <bruno@clisp.org>
17590         Use symbolic values for _WIN32_WINNT.
17591         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
17592         * lib/sethostname.c (_WIN32_WINNT): Likewise.
17594 2017-05-13  Bruno Haible  <bruno@clisp.org>
17596         year2038: New module.
17597         * m4/year2038.m4: New file.
17598         * modules/year2038: New file.
17599         * doc/year2038.texi: New file.
17600         * doc/gnulib.texi: Include it.
17602 2017-05-13  Bruno Haible  <bruno@clisp.org>
17604         largefile: Simplify.
17605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
17606         of _GL_WINDOWS_64_BIT_ST_SIZE.
17608 2017-05-13  Bruno Haible  <bruno@clisp.org>
17610         largefile: Improve and document.
17611         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
17612         the mingw headers already define 'stat' appropriately.
17613         * modules/largefile (Description): Clarify.
17614         * doc/largefile.texi: New file.
17615         * doc/gnulib.texi: Include it.
17616         * doc/posix-headers/sys_types.texi: Update.
17618 2017-05-13  Bruno Haible  <bruno@clisp.org>
17620         truncate: New module.
17621         * lib/unistd.in.h (truncate): New declaration.
17622         * lib/truncate.c: New file.
17623         * m4/truncate.m4: New file.
17624         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
17625         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
17626         REPLACE_TRUNCATE.
17627         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
17628         HAVE_TRUNCATE, REPLACE_TRUNCATE.
17629         * modules/truncate: New file.
17630         * tests/test-unistd-c++.cc (truncate): Test signature.
17631         * doc/posix-functions/truncate.texi: Mention the new module.
17633         * tests/test-truncate.c: New file.
17634         * modules/truncate-tests: New file.
17636 2017-05-13  Bruno Haible  <bruno@clisp.org>
17638         windows-stat-timespec: New module.
17639         * modules/windows-stat-timespec: New file.
17640         * m4/windows-stat-timespec.m4: New file.
17641         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
17642         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
17643         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
17644         fields st_atim, st_mtim, st_ctim.
17645         (st_atime, st_mtime, st_ctime): Define as macros.
17646         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
17647         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
17648         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
17649         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
17650         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
17651         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
17652         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
17653         FILETIME to 'struct timespec', not 'time_t'.
17654         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
17655         FILETIME to 'struct timespec', not 'time_t'.
17656         * lib/stat-time.h (STAT_TIMESPEC): Define also if
17657         _GL_WINDOWS_STAT_TIMESPEC.
17658         * doc/windows-stat-timespec.texi: New file.
17659         * doc/gnulib.texi: Include it.
17661 2017-05-13  Bruno Haible  <bruno@clisp.org>
17663         windows-stat-override: New module.
17664         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
17665         definition. Define GNULIB_defined_struct_stat.
17666         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
17667         link error if this symbol is used and the corresponding module is not
17668         in use.
17669         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
17670         GNULIB_OVERRIDES_STRUCT_STAT.
17671         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17672         GNULIB_OVERRIDES_STRUCT_STAT.
17673         * modules/sys_stat (Makefile.am): Substitute
17674         GNULIB_OVERRIDES_STRUCT_STAT.
17675         * modules/windows-stat-override: New file.
17677 2017-05-13  Bruno Haible  <bruno@clisp.org>
17679         fstat: Fix module dependency conditions.
17680         * modules/fstat (Depends-on): Fix typo.
17682 2017-05-13  Bruno Haible  <bruno@clisp.org>
17684         stat, fstat: Complete removal of old native Windows code.
17685         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
17686         * lib/fstat.c: Likewise.
17687         * lib/stat-w32.c: Likewise.
17689 2017-05-13  Bruno Haible  <bruno@clisp.org>
17691         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
17692         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
17694 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17696         getopt-posix: port to mingw
17697         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
17698         Problem reported by Daniel P. Berrage in:
17699         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
17701 2017-05-11  Bruno Haible  <bruno@clisp.org>
17703         gettimeofday: Increase precision on mingw.
17704         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
17705         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
17706         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
17707         GetSystemTimePreciseAsFileTime based implementation always.
17708         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
17709         mingw.
17711 2017-05-11  Bruno Haible  <bruno@clisp.org>
17713         poll: Fix confusion between SOCKETs and FDs on native Windows.
17714         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
17715         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
17717 2017-05-11  Bruno Haible  <bruno@clisp.org>
17719         doc: Clarify doc about socket functions on native Windows.
17720         This reworks doc that was added on 2008-09-29.
17721         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
17722         clearer wording.
17723         * doc/posix-functions/accept.texi: Use clearer wording.
17724         * doc/posix-functions/bind.texi: Likewise.
17725         * doc/posix-functions/connect.texi: Likewise.
17726         * doc/posix-functions/getpeername.texi: Likewise.
17727         * doc/posix-functions/getsockname.texi: Likewise.
17728         * doc/posix-functions/getsockopt.texi: Likewise.
17729         * doc/posix-functions/ioctl.texi: Likewise.
17730         * doc/posix-functions/listen.texi: Likewise.
17731         * doc/posix-functions/recv.texi: Likewise.
17732         * doc/posix-functions/recvfrom.texi: Likewise.
17733         * doc/posix-functions/send.texi: Likewise.
17734         * doc/posix-functions/sendto.texi: Likewise.
17735         * doc/posix-functions/setsockopt.texi: Likewise.
17736         * doc/posix-functions/shutdown.texi: Likewise.
17737         * doc/posix-functions/socket.texi: Likewise.
17739 2017-05-10  Bruno Haible  <bruno@clisp.org>
17741         poll: Fix link error on native Windows.
17742         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
17744 2017-05-10  Bruno Haible  <bruno@clisp.org>
17746         time: Fix missing initialization of HAVE_TIMEZONE_T.
17747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
17748         here...
17749         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
17750         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
17751         gl_HEADER_SYS_TIME_H_DEFAULTS.
17752         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
17753         (configure.ac): Remove useless quoting.
17755 2017-05-10  Bruno Haible  <bruno@clisp.org>
17757         Implement a way to opt out from MSVC support, part 2.
17758         * modules/msvc-inval (Include): Document recommended idiom.
17759         * modules/msvc-nothrow (Include): Likewise.
17761         Implement a way to opt out from MSVC support.
17762         This is useful for Emacs.
17763         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
17764         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
17765         * lib/error.c: Likewise.
17766         * lib/fcntl.c: Likewise.
17767         * lib/flock.c: Likewise.
17768         * lib/fstat.c: Likewise.
17769         * lib/fsync.c: Likewise.
17770         * lib/ioctl.c: Likewise.
17771         * lib/isapipe.c: Likewise.
17772         * lib/lseek.c: Likewise.
17773         * lib/nonblocking.c: Likewise.
17774         * lib/poll.c: Likewise.
17775         * lib/select.c: Likewise.
17776         * lib/sockets.h: Likewise.
17777         * lib/sockets.c: Likewise.
17778         * lib/stdio-read.c: Likewise.
17779         * lib/stdio-write.c: Likewise.
17780         * lib/utimens.c: Likewise.
17781         * lib/w32sock.h: Likewise.
17782         * lib/w32spawn.h: Likewise.
17783         * tests/test-cloexec.c: Likewise.
17784         * tests/test-dup-safer.c: Likewise.
17785         * tests/test-dup2.c: Likewise.
17786         * tests/test-dup3.c: Likewise.
17787         * tests/test-fcntl.c: Likewise.
17788         * tests/test-pipe.c: Likewise.
17789         * tests/test-pipe2.c: Likewise.
17790         * lib/ftruncate.c: Likewise.
17791         (chsize_nothrow): Renamed from chsize.
17792         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
17793         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
17794         * lib/close.c: Likewise.
17795         * lib/dup.c: Likewise.
17796         * lib/fclose.c: Likewise.
17797         * lib/raise.c: Likewise.
17798         * tests/test-fgetc.c: Likewise.
17799         * tests/test-fputc.c: Likewise.
17800         * tests/test-fread.c: Likewise.
17801         * tests/test-fwrite.c: Likewise.
17802         * lib/getdtablesize.c: Likewise.
17803         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
17804         * lib/isatty.c: Don't include msvc-inval.h if
17805         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
17806         Include <io.h> as an alternative to msvc-nothrow.h.
17807         * lib/read.c: Likewise.
17808         * lib/write.c: Likewise.
17809         * lib/dup2.c: Likewise.
17810         (dup2_nothrow): New function.
17811         (ms_windows_dup2): Use it.
17812         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
17813         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
17814         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
17815         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
17816         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
17817         * m4/read.m4 (gl_FUNC_READ): Likewise.
17818         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
17819         * doc/windows-without-msvc.texi: New file.
17820         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
17821         section.
17823 2017-05-10  Bruno Haible  <bruno@clisp.org>
17825         wait-process: Adjust native Windows support.
17826         * lib/wait-process.c: Use the usual condition for recognizing a native
17827         Windows platform.
17829 2017-05-10  Bruno Haible  <bruno@clisp.org>
17831         doc: New chapter "Native Windows Support".
17832         * doc/gnulib.texi (Native Windows Support): New chapter.
17833         * doc/windows-libtool.texi: Small wording changes.
17834         * doc/windows-sockets.texi: Small wording and formatting changes.
17836 2017-05-10  Bruno Haible  <bruno@clisp.org>
17838         doc: Move section "Library version handling".
17839         * doc/gnulib.texi: Move section "Library version handling"
17840         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
17842 2017-05-10  Bruno Haible  <bruno@clisp.org>
17844         doc: Move section "Running self-tests under valgrind".
17845         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
17846         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
17848 2017-05-10  Bruno Haible  <bruno@clisp.org>
17850         doc: New chapter "Build Infrastructure Modules".
17851         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
17853 2017-05-10  Bruno Haible  <bruno@clisp.org>
17855         Prepare for reordering sections in the manual.
17856         * doc/gnulib.texi: Move several sections to separate files. Include
17857         these files.
17858         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
17859         * doc/obsolete.texi: Likewise.
17860         * doc/extra-tests.texi: Likewise.
17861         * doc/transversal.texi: Likewise.
17862         * doc/namespace.texi: Likewise.
17863         * doc/check-version.texi: Likewise.
17864         * doc/windows-sockets.texi: Likewise.
17865         * doc/windows-libtool.texi: Likewise.
17866         * doc/licenses-texi.texi: Likewise.
17867         * doc/build-automation.texi: Likewise.
17868         * doc/c-locale.texi: Likewise.
17870 2017-05-10  Bruno Haible  <bruno@clisp.org>
17872         Fix instructions how to update manual on www.gnu.org.
17873         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
17875 2017-05-09  Bruno Haible  <bruno@clisp.org>
17877         tzset: Expand comment about TZ problem on native Windows.
17878         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
17879         Paul Eggert.
17880         * lib/ctime.c (rpl_ctime): Likewise.
17881         * lib/localtime.c (rpl_localtime): Likewise.
17882         * lib/mktime.c (mktime): Likewise.
17883         * lib/strftime-fixes.c (rpl_strftime): Likewise.
17884         * lib/wcsftime.c (rpl_wcsftime): Likewise.
17886 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17888         intprops: don’t depend on ‘verify’
17889         Problem reported by Ævar Arnfjörð Bjarmason in:
17890         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
17891         * lib/intprops.h: Do not include verify.h, and move compile-time
17892         checks from here ...
17893         * tests/test-intprops.c (main): ... to here, if they’re not here
17894         already.  Check widths of other standard integer types.
17895         * modules/intprops (Depends-on): Remove ‘verify’.
17897 2017-05-07  Bruno Haible  <bruno@clisp.org>
17899         utimens: On native Windows, support 100ns resolution also if fd < 0.
17900         * lib/utime.in.h: Include <time.h>.
17901         (_gl_utimens_windows): New declaration.
17902         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
17903         (utime): Invoke it.
17904         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
17905         instead of utime.
17906         * modules/utime (Depends-on): Add 'time'.
17908 2017-05-07  Bruno Haible  <bruno@clisp.org>
17910         utimens: Improve error code on native Windows.
17911         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
17912         error code EACCES, not EINVAL.
17914 2017-05-07  Bruno Haible  <bruno@clisp.org>
17916         utime: Handle more Windows error codes.
17917         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
17918         Based on explanations by Billy O'Neal.
17920 2017-05-05  Bruno Haible  <bruno@clisp.org>
17922         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
17923         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
17924         union.
17925         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
17926         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
17927         value of cipher->IV.
17929 2017-05-05  Bruno Haible  <bruno@clisp.org>
17931         wctype-h-c++-tests: Update.
17932         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
17934 2017-05-05  Bruno Haible  <bruno@clisp.org>
17936         wchar-c++-tests: Update.
17937         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
17939 2017-05-05  Bruno Haible  <bruno@clisp.org>
17941         utime-h-c++-tests: New module.
17942         * tests/test-utime-h-c++.cc: New file.
17943         (utime): Declare, missing since 2017-04-30.
17944         * modules/utime-h-c++-tests: New file.
17946 2017-05-05  Bruno Haible  <bruno@clisp.org>
17948         unistd-c++-tests: Update.
17949         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
17950         (read): Declare, missing since 2011-04-15.
17951         (sethostname): Declare, missing since 2011-12-03.
17953 2017-05-05  Bruno Haible  <bruno@clisp.org>
17955         time-c++-tests: Update.
17956         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
17957         (localtime, gmtime): Declare, missing since 2017-04-30.
17958         (ctime): Declare, missing since 2017-04-30.
17959         (strftime): Declare, missing since 2017-04-30.
17960         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
17961         2015-07-24.
17963 2017-05-05  Bruno Haible  <bruno@clisp.org>
17965         sys_resource-c++-tests: New module.
17966         * tests/test-sys_resource-c++.cc: New file.
17967         (getrusage): Declare, missing since 2012-04-13.
17968         * modules/sys_resource-c++-tests: New file.
17970 2017-05-05  Bruno Haible  <bruno@clisp.org>
17972         strings-c++-tests: New module.
17973         * tests/test-strings-c++.cc: New file.
17974         (ffs): Declare, missing since 2011-07-12.
17975         * modules/strings-c++-tests: New file.
17977 2017-05-05  Bruno Haible  <bruno@clisp.org>
17979         string-c++-tests: Update.
17980         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
17981         (ffsll): Declare, missing since 2011-07-15.
17983 2017-05-05  Bruno Haible  <bruno@clisp.org>
17985         stdlib-c++-tests: Update.
17986         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
17987         2011-10-18.
17988         (ptsname_r): Declare, missing since 2011-11-07.
17989         (qsort_r): Declare, missing since 2014-08-29.
17990         (random, srandom, initstate, setstate): Declare, missing since
17991         2012-01-14.
17992         (secure_getenv): Declare, missing since 2013-02-05.
17994 2017-05-05  Bruno Haible  <bruno@clisp.org>
17996         stdio-c++-tests: Update.
17997         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
17999 2017-05-05  Bruno Haible  <bruno@clisp.org>
18001         signal-h-c++-tests: Update.
18002         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
18004 2017-05-05  Bruno Haible  <bruno@clisp.org>
18006         math-c++-tests: Update.
18007         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
18008         (fma): Declare, missing since 2011-10-17.
18009         (fmal): Declare, missing since 2011-10-17.
18011 2017-05-05  Bruno Haible  <bruno@clisp.org>
18013         locale-c++-tests: Update.
18014         * tests/test-locale-c++.cc (localeconv): Declare, missing since
18015         2012-03-25.
18017 2017-05-05  Bruno Haible  <bruno@clisp.org>
18019         inttypes-c++-tests: New module.
18020         * tests/test-inttypes-c++.cc: New file.
18021         (strtoimax): Declare, missing since 2012-01-05.
18022         (strtoumax): Declare, missing since 2012-01-05.
18023         * modules/inttypes-c++-tests: New file.
18025 2017-05-05  Bruno Haible  <bruno@clisp.org>
18027         dirent-c++-tests: Update.
18028         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
18029         (rewinddir): Declare, missing since 2011-09-13.
18030         (dirfd): Declare, missing since 2010-03-08.
18032 2017-05-04  Bruno Haible  <bruno@clisp.org>
18034         argp: Fix mistake in 2017-04-23 commit.
18035         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
18036         assume that strerror_r returns 'int', not 'char *'.
18038 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
18040         argp: Fix typo.
18041         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
18043 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18045         utimens: port to Emacs + MS-Windows
18046         Skip the new MS-Windows-specific code if Emacs.
18047         * lib/utimens.c [EMACS_CONFIGUATION]:
18048         Avoid new MS-Windows-specific code.
18049         (USE_SETFILETIME): New macro.
18050         (fdutimens): Use it.
18052 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
18054         tzset: update doc for TZ problems on MS-Windows
18055         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
18056         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
18057         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
18058         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
18059         * doc/posix-functions/wcsftime.texi:
18060         Mention some issues with TZ under MS-Windows.
18062 2017-05-01  Bruno Haible  <bruno@clisp.org>
18064         copy-file: Fix build error on mingw.
18065         * modules/copy-file (Depends-on): Add 'close'.
18067 2017-05-01  Bruno Haible  <bruno@clisp.org>
18069         tzset: Work around TZ problem on native Windows.
18070         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
18071         Windows, set REPLACE_TZSET to 1.
18072         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
18073         invoke '_tzset' instead of 'tzset'.
18074         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
18076         * modules/time_rz (Depends-on): Add tzset.
18077         * lib/time_rz.c (tzset): Remove fallback definition.
18078         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
18080 2017-05-01  Bruno Haible  <bruno@clisp.org>
18082         mktime: Fix dependencies.
18083         * modules/mktime (Depends-on): Add 'time'.
18085 2017-05-01  Bruno Haible  <bruno@clisp.org>
18087         New module 'localtime-buffer', split off from module 'gettimeofday'.
18088         * lib/localtime-buffer.h: New file.
18089         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
18090         * lib/time.in.h (tzset): New declaration.
18091         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
18092         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
18093         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
18094         moved to lib/localtime-buffer.c or lib/tzset.c.
18095         * m4/localtime-buffer.m4: New file.
18096         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
18097         HAVE_TZSET, REPLACE_TZSET.
18098         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
18099         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
18100         gl_LOCALTIME_BUFFER_NEEDED.
18101         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
18102         since 2007-01-18.
18103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
18104         tzset.
18105         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
18106         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
18107         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
18108         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
18109         * modules/localtime-buffer: New file.
18110         * modules/time (Depends-on): Remove 'gettimeofday'.
18111         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
18112         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
18113         * modules/tzset (Description): Enable hyperlink to POSIX spec.
18114         (Files): Add lib/tzset.c.
18115         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
18116         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
18117         gl_TIME_MODULE_INDICATOR.
18118         * modules/gettimeofday (Depends-on): Add localtime-buffer.
18120 2017-05-01  Bruno Haible  <bruno@clisp.org>
18122         copy-file: Preserve sub-second time stamps.
18123         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
18124         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
18125         transport the time stamps from the original file to the destination
18126         file.
18127         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
18128         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
18129         utime-h.
18131 2017-05-01  Bruno Haible  <bruno@clisp.org>
18133         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
18134         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
18135         also on MSVC.
18136         Reported by Eli Zaretskii <eliz@gnu.org>.
18138 2017-05-01  Bruno Haible  <bruno@clisp.org>
18140         wchar: Fix compilation error with the original mingw.org mingw.
18141         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
18142         <stddef.h> instead.
18143         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
18144         gl_WCTYPE_H.
18145         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
18146         gl_TYPE_WINT_T_PREREQ instead.
18147         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
18148         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
18149         Reported by Eli Zaretskii <eliz@gnu.org>.
18151 2017-04-30  Bruno Haible  <bruno@clisp.org>
18153         utimecmp: Add support for native Windows.
18154         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
18156 2017-04-30  Bruno Haible  <bruno@clisp.org>
18158         utimens: Add support for native Windows.
18159         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
18160         (fdutimens): Provide a native Windows implementation, like utime.c with
18161         added tv_nsec support.
18162         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
18163         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
18165 2017-04-30  Bruno Haible  <bruno@clisp.org>
18167         wcsftime: New module.
18168         * lib/wchar.in.h (wcsftime): New declaration.
18169         * lib/wcsftime.c: New file.
18170         * m4/wcsftime.m4: New file.
18171         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
18172         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
18173         HAVE_WCSFTIME, REPLACE_WCSFTIME.
18174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
18175         HAVE_WCSFTIME, REPLACE_WCSFTIME.
18176         * modules/wcsftime: New file.
18177         * doc/posix-functions/wcsftime.texi: Mention the new module.
18179 2017-04-30  Bruno Haible  <bruno@clisp.org>
18181         strftime-fixes: New module.
18182         * lib/time.in.h (strftime): New declaration.
18183         * lib/strftime-fixes.c: New file.
18184         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
18185         (gl_FUNC_STRFTIME): Remove macro.
18186         * m4/strftime-fixes.m4: New file.
18187         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
18188         REPLACE_STRFTIME.
18189         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
18190         REPLACE_STRFTIME.
18191         * modules/strftime-fixes: New file.
18192         * doc/posix-functions/strftime.texi: Mention the new module.
18194 2017-04-30  Bruno Haible  <bruno@clisp.org>
18196         mktime: Work around TZ problem on native Windows.
18197         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
18198         from the native Windows workaround.
18199         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
18200         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
18201         'guessing no'.
18202         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
18203         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
18204         NEED_MKTIME_WINDOWS.
18205         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
18206         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
18207         NEED_MKTIME_INTERNAL.
18208         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
18209         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
18210         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
18211         not REPLACE_MKTIME.
18212         * doc/posix-functions/mktime.texi: Mention the native Windows
18213         workaround.
18215 2017-04-30  Bruno Haible  <bruno@clisp.org>
18217         localtime: New module.
18218         * lib/time.in.h (localtime): Declare also if requested by module
18219         'localtime'.
18220         * lib/localtime.c: New file.
18221         * m4/localtime.m4: New file.
18222         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
18223         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
18224         * modules/localtime: New file.
18225         * doc/posix-functions/localtime.texi: Mention the new module.
18227 2017-04-30  Bruno Haible  <bruno@clisp.org>
18229         ctime: New module.
18230         * lib/time.in.h (ctime): New declaration.
18231         * lib/ctime.c: New file.
18232         * m4/ctime.m4: New file.
18233         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
18234         REPLACE_CTIME.
18235         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
18236         * modules/ctime: New file.
18237         * doc/posix-functions/ctime.texi: Mention the new module.
18239 2017-04-30  Bruno Haible  <bruno@clisp.org>
18241         gettimeofday: Provide higher resolution on native Windows.
18242         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
18243         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
18244         (initialize): Initialize it.
18245         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
18246         'struct timeval'. Don't use _ftime().
18247         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
18248         <sys/timeb.h> and _ftime.
18250 2017-04-30  Bruno Haible  <bruno@clisp.org>
18252         Document the problem with the Cygwin environment variable TZ.
18253         * doc/posix-functions/tzset.texi: Add note about TZ.
18254         * doc/posix-functions/ctime.texi: Likewise.
18255         * doc/posix-functions/localtime.texi: Likewise.
18256         * doc/posix-functions/mktime.texi: Likewise.
18257         * doc/posix-functions/strftime.texi: Likewise.
18258         * doc/posix-functions/wcsftime.texi: Likewise.
18259         * doc/pastposix-functions/ftime.texi: Likewise.
18261 2017-04-30  Bruno Haible  <bruno@clisp.org>
18263         utime-tests: New module.
18264         * tests/test-utime.c: New file, based on tests/test-utimens.h.
18265         * tests/test-utimens-common.h: Include <sys/stat.h>.
18266         * modules/utime-tests: New file.
18268 2017-04-29  Bruno Haible  <bruno@clisp.org>
18270         utime: New module.
18271         * lib/utime.in.h: Add comment for snippets.
18272         (utime): New declaration.
18273         * lib/utime.c: New file.
18274         * m4/utime.m4: New file.
18275         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
18276         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
18277         REPLACE_UTIME.
18278         * modules/utime-h (Depends-on): Add snippets.
18279         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
18280         Insert snippets.
18281         * modules/utime: New file.
18282         * doc/posix-functions/utime.texi: Mention the new module.
18284 2017-04-29  Bruno Haible  <bruno@clisp.org>
18286         utime-h: Modernize handling of 'struct utimbuf'.
18287         * lib/utime.in.h: Include next <utime.h> if it exists.
18288         (utimbuf): Define to _utimbuf on native Windows.
18289         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
18290         Set UTIME_H on native Windows.
18291         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
18292         * modules/utime-h (Depends-on): Add include_next.
18293         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
18294         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
18296         * lib/utimens.c (utimbuf): Remove fallback definition.
18297         * m4/utimens.m4 (gl_UTIMENS): Don't require
18298         gl_CHECK_TYPE_STRUCT_UTIMBUF.
18299         * m4/utimbuf.m4: Remove file.
18300         * modules/utimens (Files): Remove m4/utimbuf.m4.
18302 2017-04-29  Bruno Haible  <bruno@clisp.org>
18304         Make use of module 'utime-h'.
18305         * modules/copy-file (Depends-on): Add utime-h.
18306         * lib/copy-file.c: Assume that <utime.h> exists.
18307         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
18309         * modules/utimens (Depends-on): Add utime-h.
18310         * lib/utimens.c: Assume that <utime.h> exists.
18312 2017-04-29  Bruno Haible  <bruno@clisp.org>
18314         utime-h: New module.
18315         * m4/utime_h.m4: New file.
18316         * lib/utime.in.h: New file.
18317         * modules/utime-h: New file.
18318         * doc/posix-headers/utime.texi: Mention the new module.
18320         * tests/test-utime-h.c: New file.
18321         * modules/utime-h-tests: New file.
18323 2017-04-30  Bruno Haible  <bruno@clisp.org>
18325         Fix a few typos.
18326         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
18327         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
18328         * doc/posix-functions/fstat.texi: Fix a plural typo.
18329         * doc/posix-functions/stat.texi: Likewise.
18330         * m4/include_next.m4: Update comments.
18332 2017-04-29  Bruno Haible  <bruno@clisp.org>
18334         error: Fix mistake in 2017-04-23 commit.
18335         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
18336         assume that strerror_r returns 'int', not 'char *'.
18338 2017-04-29  Bruno Haible  <bruno@clisp.org>
18340         stat: Fix time_t values and other problems on native Windows platforms.
18341         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
18342         implementations of stat().
18343         * lib/stat.c: Include filename.h instead of dosname.h. Include
18344         malloca.h, stat-w32.h.
18345         (is_unc_root): New function.
18346         (rpl_stat): New implementation for native Windows. Remove
18347         REPLACE_FUNC_STAT_DIR code.
18348         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
18349         Don't define REPLACE_FUNC_STAT_DIR.
18350         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
18351         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
18352         (Depends-on): Remove dosname. Add filename, malloca.
18353         (configure.ac): Also compile lib/stat-w32.c.
18355 2017-04-29  Bruno Haible  <bruno@clisp.org>
18357         fstat: Fix time_t values on native Windows platforms.
18358         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
18359         * lib/stat-w32.h: New file.
18360         * lib/stat-w32.c: New file.
18361         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
18362         stat-w32.h instead.
18363         (fstat_nothrow): Remove function.
18364         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
18365         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
18366         always.
18367         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
18368         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
18369         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
18370         (configure.ac): Also compile lib/stat-w32.c.
18372 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
18374         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
18375         Problem reported by Assaf Gordon and Gavin Smith in:
18376         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
18377         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
18378         #define this, too.
18380 2017-04-29  Bruno Haible  <bruno@clisp.org>
18382         strerror_r-posix: Fixes for MSVC 14.
18383         * lib/strerror_r.c: Include <stdarg.h>.
18384         (strerror_r): Provide error messages for errno values 100...140.
18385         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
18387 2017-04-28  Bruno Haible  <bruno@clisp.org>
18389         noreturn: New module.
18390         * lib/noreturn.h: New file.
18391         * modules/noreturn: New file.
18392         * tests/test-noreturn.c: New file.
18393         * modules/noreturn-tests: New file.
18394         * tests/test-noreturn-c++.cc: New file.
18395         * modules/noreturn-c++-tests: New file.
18397 2017-04-27  Bruno Haible  <bruno@clisp.org>
18399         wctype-h: Fix compilation error with the original mingw.org mingw.
18400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
18401         HAVE_CRTDEFS_H.
18402         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
18403         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
18404         <stddef.h> instead.
18405         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
18407 2017-04-26  Pádraig Brady  <P@draigBrady.com>
18409         nap.h: Fix compilation on non windows platforms
18410         * tests/nap.h: Move misplaced endif.
18412 2017-04-26  Pádraig Brady  <P@draigBrady.com>
18413         and Paul Eggert  <eggert@cs.ucla.edu>
18415         time_rz: fix heap buffer overflow vulnerability
18416         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
18417         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
18418         whether there is enough buffer space available, thus avoiding
18419         the problematic promotion of signed to unsigned causing an invalid
18420         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
18421         the start of the buffer.
18422         * tests/test-parse-datetime.c (main): Add a test case written by
18423         Paul Eggert, which overwrites enough of the heap so that
18424         standard glibc will fail with "free(): invalid pointer"
18425         without the patch applied.
18427 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18429         xalloc: add missing integer overflow check
18430         * lib/xalloc.h (x2nrealloc): Also check for multiplication
18431         overflow when P is null.
18433 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18435         parse-datetime: make it standalone
18436         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
18437         (_GL_ATTRIBUTE_FORMAT): New macro.
18438         These are needed to get './gnulib-tool --test parse-datetime' to work.
18440 2017-04-23  Bruno Haible  <bruno@clisp.org>
18442         nap.h: Port to native Windows.
18443         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
18444         use nap_fd instead. On native Windows, close and reopen nap_fd.
18445         (nap_works): Don't compare the ctimes, because on native Windows, these
18446         are the creation times.
18447         (nap): Update.
18449 2017-04-23  Bruno Haible  <bruno@clisp.org>
18451         nap.h: Fix logic.
18452         * tests/nap.h (nap): Avoid signed integer overflow in loop.
18454 2017-04-23  Bruno Haible  <bruno@clisp.org>
18456         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
18457         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
18458         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
18459         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
18460         * lib/argp-help.c (__argp_failure): Likewise.
18462 2017-04-23  Bruno Haible  <bruno@clisp.org>
18464         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
18465         * m4/strerror_r.m4: Revert changes since 2016-10-16.
18466         * lib/strerror_r.c: Likewise.
18468 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
18470         Target a C99 subset, not a C89 subset
18471         For many years Gnulib has targeted C89 and has resisted using C99
18472         features, as some Gnulib-using programs still wanted to target
18473         C89.  As this no longer seems to be the case, relax the porting
18474         requirements to allow some C99 features.  This is merely a change
18475         to the documentation, to give other Gnulib developers a chance to
18476         weigh in on the topic.
18477         * doc/extern-inline.texi (extern inline):
18478         * doc/gnulib-readme.texi (Portability guidelines):
18479         * doc/gnulib-tool.texi (Initial import):
18480         * doc/gnulib.texi (Header files):
18481         Modernize to talk about C99 and C11 instead of C89 and C99.
18482         * doc/gnulib-readme.texi (Portability guidelines):
18483         Now a section, not merely a subsection, so that it
18484         can be split up.  Modernize a bit.
18485         (C language versions, C99 features assumed)
18486         (C99 features avoided):
18487         New sections.
18489 2017-04-23  Bruno Haible  <bruno@clisp.org>
18491         doc: New section "Modules that modify the way other modules work".
18492         * doc/gnulib.texi (Modules that modify the way other modules work): New
18493         section.
18495 2017-04-23  Bruno Haible  <bruno@clisp.org>
18497         stat-time: Update comments.
18498         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
18499         * tests/test-utimens-common.h: Add reference regarding st_ctime on
18500         Windows.
18502 2017-04-01  Bruno Haible  <bruno@clisp.org>
18504         glob: Fix more memory leaks.
18505         * lib/glob.c (glob): Free allocated memory before returning.
18506         Reported by Coverity via Tim Rühsen.
18508 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18510         poll: improve fast check for out-of-range NFD
18511         * lib/poll.c: Do not include intprops.h.
18512         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
18513         * modules/poll (Depends-on): Remove intprops.
18515         ftoastr: cite a newer paper
18516         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
18517         instead of Loitsch 2010.
18519 2017-04-22  Bruno Haible  <bruno@clisp.org>
18521         poll: Enable argument check also in the Windows implementation.
18522         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
18523         Reported by Paul Eggert.
18525 2017-04-22  Bruno Haible  <bruno@clisp.org>
18527         getlogin_r: Work around bug in Mac OS X 10.12.
18528         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
18529         bug.
18530         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
18531         given size minus 1, call getlogin_r a second time, on a larger buffer.
18532         * modules/getlogin_r (Depends-on): Add malloca.
18533         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
18535 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18537         parse-datetime: fix %z and prefer signed int
18538         %z problem reported by Pádraig Brady in:
18539         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
18540         While fixing it, I decided to prefer signed ints to size_t, as
18541         they are less error-prone (e.g., ubsan catches overflow).
18542         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
18543         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
18544         counts, since signed integers make for better debugging.
18545         (date): Don’t assume %z works in printf formats.
18546         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
18547         sizes of buffers known to be small, e.g., because we’re using snprintf.
18548         (parse_datetime2): Simplify call to debug_mktime_not_ok.
18550 2017-04-22  Bruno Haible  <bruno@clisp.org>
18552         *printf: Work around rounding bug on Mac OS X.
18553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
18554         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
18555         Mac OS X and FreeBSD.
18556         * doc/glibc-functions/*printf.texi: Likewise.
18558 2017-04-22  Bruno Haible  <bruno@clisp.org>
18560         vasnprintf tests: Avoid warnings.
18561         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
18562         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
18563         test.
18565 2017-04-22  Bruno Haible  <bruno@clisp.org>
18567         sys_file tests: Avoid warning.
18568         * tests/test-sys_file.c (main): Add a default clause to the switch
18569         statement.
18571 2017-04-22  Bruno Haible  <bruno@clisp.org>
18573         sethostname: Update doc.
18574         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
18575         Mac OS X.
18577 2017-04-22  Bruno Haible  <bruno@clisp.org>
18579         quotearg tests: Avoid warnings.
18580         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
18581         false.
18583 2017-04-22  Bruno Haible  <bruno@clisp.org>
18585         poll: Enable argument check.
18586         * lib/poll.c: Include intprops.h.
18587         (poll): Check value of nfd correctly.
18588         * modules/poll (Depends-on): Add intprops.
18590 2017-04-22  Bruno Haible  <bruno@clisp.org>
18592         get-rusage-data: Avoid warnings on Mac OS X.
18593         * lib/get-rusage-data.c: On Mac OS X, don't define
18594         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
18595         (get_rusage_data) [Mac OS X]: Just return 0.
18597 2017-04-22  Bruno Haible  <bruno@clisp.org>
18599         xbinary-io: Fix build error.
18600         * modules/xbinary-io (Depends-on): Add gettext-h.
18601         * lib/xbinary-io.c: Include gettext.h and define _().
18602         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
18603         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
18605 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18607         parse-datetime: overflow and debug cleanups
18608         This long patch was triggered by this bug report from Ruediger Meier:
18609         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
18610         I fixed the bug he noted, then found some others nearby, and then
18611         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
18612         up some of the code to follow GNU standards while I was at it.
18613         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
18614         use c_isdigit.
18615         (EPOCH_YEAR): Remove; unused.
18616         (TM_YEAR_BASE): Now an enum rather than a macro.
18617         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
18618         time zone offset, since timezones now are in terms of seconds and
18619         not minutes.
18620         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
18621         appropriate.  Verify that intmax_t is wide enough.
18622         (time_overflow, time_zone_str): New functions, used to deal
18623         more reliably with overflow.
18624         (dbg_printf): Add printf attribute, to help catch integer width errors.
18625         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
18626         (%union, to_hour, yylex, parse_datetime2):
18627         Use intmax_t instead of long int and/or long_time_t.
18628         All uses changed.
18629         (DBGBUFSIZE): Move earlier.
18630         (relative_time, set_hhmmss, parser_control):
18631         Just use int for nanoseconds and for time zones; that’s wide enough.
18632         (parser_control): Use bool for members like year_seen that can
18633         be booleans instead of counters.  All uses changed.
18634         Remove debug_default_input_timezone; no longer needed.
18635         All uses removed.
18636         (apply_relative_time): Return a bool overflow flag.
18637         All uses changed to check for overflow.
18638         (apply_relative_time, zone, date, relunit, relunit_snumber)
18639         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
18640         Check for integer overflow portably.
18641         (str_days): Use just int for N, as it’s wide enough.
18642         Prefer 2D char arrays to arrays of char * when it looks like
18643         2D is a win on typical platforms.
18644         Prefer snprintf to strncpy/strncat, for simplicity;
18645         all buffers are smaller than INT_MAX so this is safe.
18646         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
18647         (debug_print_current_time): Don’t assume tv_nsec is of type long,
18648         as this is not true on x32.  Output "." before any nanoseconds.
18649         (debug_print_current_time, parse_datetime2):
18650         Output local zones using a more-consistent format.
18651         (debug_print_current_time, date, parse_datetime2):
18652         (main) [TEST]:
18653         Don’t assume time_t is the same width as long.
18654         (print_rel_part): New function, replacing ...
18655         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
18656         (debug_print_relative_time): Use bool for boolean.
18657         (local_zone): dsts_seen now counts only tDST instances.
18658         (date): Fix printf of size_t to use %z.  Do not assume numeric
18659         tokens have negative values merely because the context suggests
18660         a syntax with "-" separating tokens.
18661         (time_zone_hhmm): Return bool success indicator, which checks for
18662         overflow.  Store result into PC->time_zone instead.  All callers
18663         changed.
18664         (tm_year_str): New function.  Return a bool success indicator and
18665         store the result into a buffer.  All callers changed.  Output the
18666         numerically correct string even if adding 1900 to the year would
18667         overflow.
18668         (to_tm_year): New function, replacing the old to_year.  All
18669         callers changed.
18670         (tm_diff): Sync with glibc.
18671         (lookup_word): Use to_uchar instead of doing it by hand.
18672         (TZBUFSIZE): Now local to the only function that needs it.
18673         (debug_strfdatetime): Simplify now that time zones are int seconds.
18674         (debug_strfdate): Work even if tm_year + 1900 would overflow.
18675         (get_effective_timezone): Remove.  All uses removed.
18676         (parse_datetime2): Use fprintf in pieces instead of snprintfing
18677         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
18678         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
18679         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
18680         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
18681         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
18682         * modules/parse-datetime (Depends-on): Add inttypes.
18684 2017-04-21  Bruno Haible  <bruno@clisp.org>
18686         gettext-h: Avoid -Wundef warning.
18687         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
18688         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
18689         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
18691 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
18693         error: Avoid "function declaration isn't a prototype" warning.
18694         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
18696 2017-04-21  Bruno Haible  <bruno@clisp.org>
18698         vasnprintf: Fix for MSVC 14.
18699         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
18700         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
18701         of !HAVE_SNPRINTF_RETVAL_C99.
18703 2017-04-21  Bruno Haible  <bruno@clisp.org>
18705         mbrtowc tests: Fix test failures on MSVC 14.
18706         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
18707         behaviour for invalid input.
18709 2017-04-21  Bruno Haible  <bruno@clisp.org>
18711         mbsinit: Fix for MSVC 14.
18712         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
18713         implementation that is in sync with mbrtowc.c. On other platforms, use
18714         an adequate ad-hoc implementation.
18716 2017-04-21  Bruno Haible  <bruno@clisp.org>
18718         Fix test-mbrtowc5.sh failure on native Windows.
18719         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
18720         "C".
18722 2017-04-21  Bruno Haible  <bruno@clisp.org>
18724         Avoid accidental use of native Windows APIs on Cygwin.
18725         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
18726         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
18727         * lib/localename.c (WINDOWS_NATIVE): Likewise.
18729 2017-04-20  Bruno Haible  <bruno@clisp.org>
18731         Remove red warnings from the generated MODULES.html.
18732         * modules/fcntl (Description): Disambiguate function references.
18733         * modules/getcwd-lgpl (Description): Likewise.
18734         * modules/hostent (Description): Likewise.
18735         * modules/servent (Description): Likewise.
18736         * modules/tempname (Description): Likewise.
18738 2017-04-20  Bruno Haible  <bruno@clisp.org>
18740         verify tests: Fix spurious failure with parallel make.
18741         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
18742         EXTRA_PROGRAMS.
18743         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
18744         * tests/test-verify-try.c: New file.
18745         * modules/verify-tests (Files): Add it.
18746         (EXTRA_PROGRAMS): Add test-verify-try.
18747         (MOSTLYCLEANFILES): Update accordingly.
18748         Reported by Adam James Stewart <ajstewart@anl.gov>.
18750 2017-04-18  Bruno Haible  <bruno@clisp.org>
18752         vma-iter: Fix compilation error on Solaris 7.
18753         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
18754         like on IRIX, OSF/1.
18755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18757 2017-04-18  Bruno Haible  <bruno@clisp.org>
18759         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
18760         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
18761         included.
18762         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
18763         <sys/procfs.h>.
18764         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
18765         <sys/procfs.h> cannot be included.
18766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18768 2017-04-18  Bruno Haible  <bruno@clisp.org>
18770         getopt-gnu: Add comments.
18771         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
18772         * modules/getopt-gnu (configure.ac): Likewise.
18774 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
18776         regex: port better to Solaris 10
18777         Solaris 10 <locale.h> includes <libintl.h>, which #defines
18778         gettext, and this causes a double #define.
18779         Problem reported by Gavin Smith in:
18780         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
18781         * lib/regex_internal.h (gettext): #undef before #defining.
18783 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
18785         intprops: improve comments
18786         * lib/intprops.h: Improve and shorten commentary.
18787         For the record, if we ever run into a pedantic compiler that
18788         behaves differently from GCC when converting an out-of-range value
18789         to a signed integer, we can work around the problem with something
18790         like the following code, where UCT is the signed counterpart of T
18791         (UCT is sometimes narrower than UT) and all callers are changed
18792         accordingly:
18793         #if __SUNPRO_C <= 0x5120
18794         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
18795            ((t) ((ut) (a) op (ut) (b)))
18796         #else
18797         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
18798            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
18799             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
18800                + TYPE_MINIMUM (t)) \
18801             : (t) (uct) ((ut) (a) op (ut) (b)))
18802         #endif
18804 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
18806         intprops: try to avoid tickling similar bugs
18807         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
18808         needs to be the same width as T; it can be wider.
18809         Change callers so that UT is at least as wide as unsigned int,
18810         as I suspect that this is less likely to run into compiler bugs.
18812         intprops: port to Oracle Studio 12.3 x86
18813         Problem reported by Gavin Smith in:
18814         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
18815         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
18816         Convert unsigned to signed via the usual rather than the standard way,
18817         to avoid a compiler bug in Oracle Studio 12.3 x86.
18819 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18821         getopt: prefer - to _ in new file names
18822         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
18823         * lib/getopt-core.h: Rename from lib/getopt_core.h.
18824         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
18825         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
18826         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
18827         All uses changed.
18829         getopt: port recent getopt changes to macOS
18830         Problem reported by Harald Maier (Bug#26398).
18831         The macOS C compiler uses __nonnull for its own purposes and that
18832         clashes with glibc's __nonnull.
18833         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
18834         * lib/getopt_cdefs.in.h (__nonnull): Remove.
18835         * lib/getopt_core.h (getopt):
18836         * lib/getopt_ext.h (getopt_long, getopt_long_only):
18837         Use _GL_ARG_NONNULL, not __nonnull.
18838         * lib/unistd.in.h: Move snippet hooks to before where the getopt
18839         .h files are included, so that _GL_ARG_NONNULL is defined in time.
18840         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
18841         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
18843 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18845         getopt-gnu: omit some duplicate code
18846         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
18847         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
18848         gnulib-tool already does this.
18849         * modules/getopt-gnu (configure.ac): Omit code duplicated from
18850         getopt-posix, which we depend on.
18852         getopt-posix: use angle-bracket include
18853         * lib/getopt1.c: Include <config.h>, not "config.h".
18855 2017-04-06  Zack Weinberg  <zackw@panix.com>
18857         getopt: annotate files with relationship to glibc
18859         As the final act in this patchset, adjust the message at the top of
18860         each file to indicate which files are synced with glibc.  (This has
18861         already been done for most of the headers.)
18863         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
18864         Mention in top-of-file boilerplate that these files are shared
18865         between glibc and gnulib.
18868         getopt: split up getopt.in.h and eliminate __need_getopt
18870         Over in glibc, all of the __need macros are being phased out in favor
18871         of small headers that declare only the necessary components, as this
18872         is much simpler and less prone to bugs.  As getopt is shared with
18873         glibc, gnulib needs to do the same for __need_getopt.
18875         __need_getopt is misnamed; what it really means is "we want only the
18876         getopt features specified in POSIX, not the GNU extensions".  glibc
18877         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
18878         these files can be shared verbatim with gnulib.  The portability
18879         wrapper, on the other hand, they have renounced altogether; glibc's
18880         getopt.h will no longer be shared with gnulib at all.  In exchange,
18881         certain glibc-specific quirks (having to do with __posix_getopt) no
18882         longer need appear in gnulib's headers at all.
18884         This patch merges getopt_core.h and getopt_ext.h from glibc, and
18885         splits up the current gnulib-side portability wrapper into three
18886         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
18887         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
18888         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
18889         unistd.in.h just use them.  All new files are clearly marked with
18890         whether they are shared with glibc.
18892         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
18893         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
18894         with glibc, and ...
18895         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
18896         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
18897         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
18898         instead of defining __need_getopt and including the full getopt.h.
18900         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
18901         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
18902         * modules/getopt-posix (Files): Add new headers and sort list.
18903         (Depends-on): No longer need snippet/arg-nonnull.
18904         (Makefile.am): Generate getopt_cdefs.h.
18907         getopt: better handling of ambiguous options
18909         glibc's getopt uses alloca to construct a linked list of possibilities
18910         for an "ambiguous" long option.  In gnulib, malloc should be used
18911         instead.  Providing for both cases complicates things a fair bit.
18913         This patch rewrites ambiguous-option handling to use a boolean vector
18914         instead of a linked list.  There is then only one allocation that
18915         might need freeing; in glibc it can honor __libc_use_alloca as usual,
18916         and in gnulib we define __libc_use_alloca to always be false, so we
18917         don't need ifdefs in the middle of the function.  This should also be
18918         slightly more efficient in the normal case of long options being fully
18919         spelled out -- I think most people aren't even aware they _can_
18920         sometimes abbreviate long options.
18922         One interesting consequence is that the list of possibilities is now
18923         printed in exactly the order they appear in the list of long options,
18924         instead of the first possibility being shuffled to the end.
18926         (The patch looks bigger than it really is because there's a fair bit
18927         of reindentation and code rearrangement.)
18929         * lib/getopt.c: When used standalone, define __libc_use_alloca
18930         as always false and alloca to abort if called.
18931         (process_long_option): Rewrite handling of ambiguous long options
18932         to use a single boolean vector, not a linked list; use
18933         __libc_use_alloca to decide whether to allocate this using alloca.
18936         getopt: refactor long-option handling
18938         There were two copies of the bulk of the code to handle long options.
18939         Now there is only one.
18941         This change temporarily removes the logic to avoid using alloca when
18942         standalone; the next patch in the series will restore it.
18944         * lib/getopt.c (process_long_option): New function split out
18945         from _getopt_internal_r.
18946         (_getopt_internal_r): Replace both copies of the long-option
18947         processing code with calls to process_long_option.
18950         getopt: tidy up _getopt_initialize a bit
18952         _getopt_data.__posixly_correct is completely redundant to
18953         _getopt_data.__ordering, and some work that logically belongs in
18954         _getopt_initialize was being done by _getopt_internal_r, making the
18955         code harder to understand.
18957         As a side effect, getenv will no longer be called if the first
18958         character of the options string is '+' or '-', which is probably a
18959         Good Thing.  (Perhaps we should have a flag character that
18960         specifically asks for the permutation behavior?)
18962         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
18963         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
18964         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
18967         getopt: merge from glibc: repetition reduction
18969         The definitions of the entry point functions 'getopt' and
18970         '__posix_getopt' can be made substantially less repetitive with a
18971         helper macro.
18973         While I was merging the const-correctness changes from gnulib into
18974         glibc I noticed there are still some unnecessary casts in
18975         _getopt_internal_r.
18977         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
18978         a macro.  Consistently cast 'argv' to 'char **' when calling
18979         _getopt_internal.
18980         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
18983         getopt: clean up error reporting
18985         getopt can print a whole bunch of error messages, and when used
18986         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
18987         cancellation point and getopt isn't, and also applying fprintf to a
18988         stream in wide-character mode is not allowed.  So every single error
18989         reporting case has an #ifdef _LIBC block in which it calls internal
18990         libc functions instead.  The counterpart patch series in glibc makes
18991         it possible to simplify all of that down to a set of #defines at the
18992         top of the file; core code is written as if it is safe to just call
18993         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
18994         call any *other* stdio functions.)
18996         * lib/getopt.c: When _LIBC is defined, define fprintf to
18997         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
18998         to _IO_funlockfile.  When neither _LIBC nor
18999         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
19000         funlockfile as no-ops.
19001         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
19002         standalone error-printing code can now be used for libc as well.
19003         Add an flockfile/funlockfile pair around one case where the error
19004         message is printed in several chunks.  Don't use fputc.
19007         getopt: fix fencepost error in ambiguous-W-option handling
19009         getopt_long contains an undocumented (AFAICT) feature in which, if you
19010         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
19011         treated as equivalent to '--foo'.  This is implemented with a partial
19012         second copy of the code for handling long options, and that code
19013         increments optind one too many times when recovering from an ambiguous
19014         abbreviated option, which can cause the main loop to walk past the end
19015         of argv and crash.
19017         I discovered this while writing a test case that tries to exercise all
19018         of getopt's error reporting paths; I wouldn't be surprised to learn
19019         that this feature is never used by real applications.
19021         * lib/getopt.c (_getopt_internal_r): Don't increment
19022         d->optind a second time when reporting ambiguous -W options.
19025         getopt: clean up getopt.c and getopt1.c file headers
19027         In getopt.c, there is no need to include wchar.h at all, and it is
19028         safe nowadays to assume that stdlib.h does declare getenv (several
19029         other gnulib modules make this assumption).
19031         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
19032         by using "" inclusions consistently, and there is no actual need to
19033         include stdlib.h (except in the #ifdef TEST block, where it should be
19034         unconditional), nor to provide a backup definition of NULL at all.
19036         * lib/getopt1.c: Simplify #ifdeffage at top of file.
19037         Move inclusion of stdlib.h to #ifdef TEST block and make
19038         unconditional.  Do not define NULL.
19039         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
19040         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
19041         * modules/getopt-gnu, modules/getopt-posix: Don't call
19042         gl_PREREQ_GETENV.
19045         getopt: harmonize comments with glibc
19047         The comments explaining how the behavior of 'getopt' varies depending
19048         on whether it's the standalone version and whether there are special
19049         characters at the beginning of the options string were inconsistent
19050         between gnulib and glibc, and also out of sync with the code.
19052         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
19055         getopt: remove USE_NONOPTION_FLAGS
19057         getopt includes code to parse an environment variable named
19058         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
19059         in decimal); but all of it has been #ifdefed out since 2001, with no
19060         official way to turn it back on.
19062         According to commentary in glibc's config.h.in, bash version 2.0
19063         set this environment variable to indicate argv elements that were
19064         the result of glob expansion and therefore should not be treated
19065         as options, but the feature was "disabled later" because "it
19066         caused problems".  According to bash's CHANGES file, "later" was
19067         release 2.01; it gives no more detail about what the problems
19068         were.
19070         Version 2.0 of bash was released on the last day of 1996, and version
19071         2.01 in June of 1997.  Twenty years later, I think it is safe to
19072         assume that this environment variable isn't coming back.
19074         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
19075         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
19076         __libc_argc and __libc_argv externs, which were only used by
19077         #ifdef USE_NONOPTION_FLAGS blocks.
19080         getopt: tabify, in preparation for merge with glibc
19082         glibc sticks to the GNU default of indenting with a mix of
19083         8-column tabs and spaces; make the gnulib copy match.
19085         getopt.h is not included because it is *not* going to be merged in its
19086         present form.
19088         * getopt.c, getopt1.c, getopt_int.h: Tabify.
19090 2017-04-02  Bruno Haible  <bruno@clisp.org>
19092         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
19093         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
19094         like it was done in modules/relocatable-lib on 2011-05-21 and in
19095         modules/relocatable-prog on 2011-08-15.
19096         Reported by Reuben Thomas <rrt@sc3d.org>.
19098 2017-03-31  Bruno Haible  <bruno@clisp.org>
19100         glob: Fix invalid free() call.
19101         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
19102         static storage to home_dir.
19103         Reported by Coverity via Tim Rühsen.
19105 2017-03-31  Bruno Haible  <bruno@clisp.org>
19107         glob: Fix memory leaks.
19108         * lib/glob.c (glob): Free allocated memory before returning.
19109         Reported by Coverity via Tim Rühsen.
19111 2017-03-31  Bruno Haible  <bruno@clisp.org>
19113         md5, sha1, sha256, sha512: Add comments regarding correctness.
19114         * lib/md5.h (buflen): Add comments regarding range.
19115         * lib/sha1.h (buflen): Likewise.
19116         * lib/sha256.h (buflen): Likewise.
19117         * lib/sha512.h (buflen): Likewise.
19118         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
19119         * lib/sha1.c (sha1_process_bytes): Likewise.
19120         * lib/sha256.c (sha256_process_bytes): Likewise.
19121         * lib/sha512.c (sha512_process_bytes): Likewise.
19122         Reported by Coverity via Tim Rühsen.
19124 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
19126         getopt: merge from glibc
19127         This does not change anything substantial; it merely simplifies
19128         hypothetical merges back to glibc.
19129         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
19130         Change copyright notice to match what is in glibc.
19131         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
19132         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
19133         __open_memstream rather than open_memstream and __glibc_likely
19134         instead of __builtin_expect.
19135         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
19137 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19139         dfa: make [0-9] faster in non-C locales
19140         Problem reported by John P. Linderman (Bug#26193).
19141         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
19142         If both ends of the range are ASCII digits, do not worry about
19143         multi-character collating sequences and the like.  Be consistent
19144         about using isalpha as a precondition for setbit_case_fold_c.
19146 2017-03-19  Bruno Haible  <bruno@clisp.org>
19148         lock: Fix compilation error with HP-UX IA64 cc.
19149         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
19150         weak on non-glibc platforms.
19152 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19154         stdalign: tweak version# and test for HP-UX IA64
19155         Problems reported by Bruno Haible in:
19156         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
19157         * lib/stdalign.in.h (_Alignas):
19158         * m4/stdalign.m4 (gl_STDALIGN_H):
19159         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
19160         used octal (as that is how they document it), but it is decimal in
19161         practice now and the ancient implementations no longer matter.
19162         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
19164 2017-03-19  Bruno Haible  <bruno@clisp.org>
19166         vma-iter: Add support for Solaris.
19167         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
19168         approach.
19169         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
19170         * lib/get-rusage-as.c: Update comment about Solaris.
19171         * lib/get-rusage-data.c: Likewise.
19173 2017-03-19  Bruno Haible  <bruno@clisp.org>
19175         vma-iter: Prefer HP-UX specific API on HP-UX.
19176         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
19177         * lib/vma-iter.h: Update.
19178         Just in case HP-UX ever implements mquery().
19180 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19182         stdalign: restore previous behavior for HP-UX IA64
19183         See Bruno Haible's email in:
19184         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
19185         which cites p 150 of a manual saying that 'aligned' works on Itanium.
19186         * lib/stdalign.in.h (_Alignas):
19187         Assume the '061200' applies to Itanium, not to PA-RISC.
19188         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
19190 2017-03-17  Bruno Haible  <bruno@clisp.org>
19192         stat-time, timespec: Support use of the header files in C++ mode.
19193         * lib/stat-time.h: Add "C" linkage declaration.
19194         * lib/timespec.h: Likewise.
19196 2017-03-17  Bruno Haible  <bruno@clisp.org>
19198         stdalign: Make it work with HP-UX cc.
19199         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
19200         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
19201         for HP-UX cc.
19203 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
19205         flexmember: try to detect HP-UX 11.31 cc bug
19206         Problem reported by Bruno Haible in:
19207         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
19208         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19209         Attempt to detect bug in HP-UX 11.31 cc.
19211 2017-03-16  Bruno Haible  <bruno@clisp.org>
19213         stdint: Fix test compilation failure with HP-UX 11 cc.
19214         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
19215         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
19216         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
19217         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
19219 2017-03-14  Bruno Haible  <bruno@clisp.org>
19221         gnulib-tool: Don't produce a tests directory with only snippet .h files.
19222         * gnulib-tool (func_modules_transitive_closure_separately): If
19223         testsrelated_modules ends up with no "real" modules, aside from
19224         modules with applicability 'all', set it to empty.
19226 2017-03-14  Bruno Haible  <bruno@clisp.org>
19228         vma-iter: Add support for HP-UX.
19229         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
19230         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
19231         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
19232         * lib/get-rusage-as.c: Update comment about HP-UX.
19233         * lib/get-rusage-data.c: Likewise.
19234         (get_rusage_data): Use get_rusage_data_via_setrlimit.
19236 2017-03-14  Bruno Haible  <bruno@clisp.org>
19238         limits-h: Make it work with HP-UX cc.
19239         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
19240         defined.
19242 2017-03-14  Bruno Haible  <bruno@clisp.org>
19244         Fix test failures on DragonFlyBSD.
19245         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
19246         * tests/test-select.h (test_bad_fd): Likewise.
19247         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
19249 2017-03-14  Bruno Haible  <bruno@clisp.org>
19251         freadahead: Silence warning on DragonFlyBSD.
19252         * lib/freadahead.c (__sreadahead): Declare ourselves.
19254 2017-03-14  Bruno Haible  <bruno@clisp.org>
19256         vma-iter: Add comment about AIX.
19257         * lib/vma-iter.c: Add comment about why this module is not implemented
19258         on AIX.
19260 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19262         snippets: move unadjusted snippet sources to lib
19263         Problem reported by Michal Privoznik in:
19264         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
19265         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
19266         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
19267         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
19268         * lib/unused-parameter.h: Rename from
19269         build-aux/snippet/unused-parameter.h.
19270         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
19271         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
19272         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
19273         * modules/snippet/c++defs (Files:, CXXDEFS_H):
19274         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
19275         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
19276         Adjust to file renamings.
19278 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
19280         gnulib-tool: don't automatically distribute files from top/
19281         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
19282         not distribute top/README-release by default, don't distribute files
19283         from top/ unconditionally.
19284         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
19285         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
19287 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19289         gnulib-tool: fix typo in comment output
19290         * gnulib-tool (func_import): Fix typo with previous change.
19292         snippets: work around GNU Make 3.82 VPATH
19293         When using 'gnulib-tool --gnu-make' on Emacs, and building
19294         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
19295         an out-of-source (VPATH) build failed because the sans-copyright
19296         snippet file was not built before the file that used it.
19297         Presumably this is some sort of VPATH thing.  Work around the
19298         problem by using the original snippet, i.e., don’t bother to
19299         remove its copyright notice.
19300         * modules/snippet/_Noreturn, modules/snippet/link-warning:
19301         Don’t assume Automake in comments.  Omit long-incorrect comment.
19302         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
19303         (MOSTLYCLEANFILES):
19304         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
19305         (MOSTLYCLEANFILES):
19306         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
19307         (MOSTLYCLEANFILES):
19308         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
19309         (MOSTLYCLEANFILES):
19310         Remove.
19311         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
19312         * modules/snippet/c++defs (CXXDEFS_H):
19313         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
19314         * modules/snippet/warn-on-use (WARN_ON_USE_H):
19315         Don’t bother to remove the copyright notice; just use the
19316         original snippet as-is.
19318 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19320         gnulib-tool: minor --gnu-make fixups
19321         * gnulib-tool (func_emit_lib_Makefile_am):
19322         Remove useless code that was a blind alley during implementation.
19323         Problem reported by Thien-Thi Nguyen in:
19324         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
19325         (func_import): Note the "--gnu-make" option in the output comment.
19327 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19329         gnulib-tool: new option --gnu-make
19330         This is for applications like GNU Emacs that use GNU Make
19331         features instead of Automake.
19332         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
19333         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
19334         Do not assume Automake.
19335         * gnulib-tool (func_determine_path_separator)
19336         (func_modules_transitive_closure, func_update_file)
19337         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19338         (func_import): Add support for --gnu-make.
19340 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
19342         gnulib-common.m4: avoid aclocal.m4 bloat
19343         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
19344         Hide AM_PROG_AR from aclocal, so that aclocal does not
19345         install irrelevant macro definitions into aclocal.m4.
19347 2017-03-10  Bruno Haible  <bruno@clisp.org>
19349         vma-iter: Let callers know about error.
19350         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
19351         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
19353 2017-03-05  Bruno Haible  <bruno@clisp.org>
19355         Fix value of LD for 64-bit compilers on AIX.
19356         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
19357         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
19359 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19361         dtotimespec: simplify
19362         * lib/dtotimespec.c (dtotimespec): Simplify.
19364 2017-03-04  Bruno Haible  <bruno@clisp.org>
19366         test-calloc-gnu: Reenable test also for GCC 7.
19367         * tests/test-calloc-gnu.c (eight): New function.
19368         (main): Don't skip test; use eight() instead.
19370 2017-03-04  Jim Meyering  <meyering@fb.com>
19372         test-calloc-gnu: port to GCC7
19373         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
19374         that attempts to calloc more than SIZE_MAX bytes, because GCC7
19375         and newer would detect that at compilation time.
19377 2017-03-04  Bruno Haible  <bruno@clisp.org>
19379         tests: Avoid compiler warning about uses of null_ptr.
19380         * tests/null-ptr.h: New file.
19381         * tests/test-canonicalize.c: Include null-ptr.h.
19382         (null_ptr): Remove function.
19383         * tests/test-canonicalize-lgpl.c: Likewise.
19384         * tests/test-memmem.c: Likewise.
19385         * tests/test-ptsname_r.c: Likewise.
19386         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
19387         * modules/canonicalize-lgpl-tests: Likewise.
19388         * modules/memmem-tests: Likewise.
19389         * modules/ptsname_r-tests: Likewise.
19390         Reported by Jim Meyering.
19392 2017-03-03  Bruno Haible  <bruno@clisp.org>
19394         doc: Mention Mac OS X deficiencies regarding semaphores.
19395         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
19396         * doc/posix-functions/sem_destroy.texi: Likewise.
19397         * doc/posix-functions/sem_getvalue.texi: Likewise.
19399 2017-03-03  Bruno Haible  <bruno@clisp.org>
19401         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
19402         Reported by Assaf Gordon <assafgordon@gmail.com> via
19403         Pádraig Brady <P@draigBrady.com>.
19404         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
19405         semaphores.
19406         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
19407         (atomic_int_semaphore): New macro.
19409 2017-02-28  Bruno Haible  <bruno@clisp.org>
19411         perror tests: Tweak for z/OS.
19412         Reported by Daniel Richard G. <skunk@iskunk.org>.
19413         * tests/test-perror.sh: Don't fail z/OS style perror output.
19415 2017-02-26  Bruno Haible  <bruno@clisp.org>
19417         nproc: Refactor large function.
19418         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
19419         from num_processors.
19420         (num_processors): In this function, only deal with OMP.
19422 2017-02-26  Pádraig Brady  <P@draigBrady.com>
19424         nproc: adjust handling of OpenMP environment variables
19425         to match the return value from omp_get_num_threads(), i.e.:
19426          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
19427          - Treat 0 as an invalid value and ignore
19428         Also remove the call to omp_get_num_threads() because
19429         it's ineffective without the omp pragmas in place.
19430         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
19431         so that it can be ignored.
19432         (num_processors): Honor OMP_THREAD_LIMIT even without
19433         OMP_NUM_THREADS being set.  Also fix a typo in the environment
19434         variable being checked, from the previous recent commit.
19436 2017-02-26  Pádraig Brady  <P@draigBrady.com>
19438         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
19439         * lib/nproc.c (parse_omp_threads): A new function refactored
19440         from num_processors() to support parsing both of the
19441         above environment variables.
19442         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
19443         to accurately reflect the current OpenMP nesting level.
19444         Also support the OMP_THREAD_LIMIT environment variable
19445         to limit the max value determined from OMP_NUM_THREADS.
19446         * modules/nproc: Depend on minmax header.
19447         Suggested by Oliver Heimlich.
19449 2017-02-25  Bruno Haible  <bruno@clisp.org>
19451         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
19452         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
19454 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19456         ftoastr: port to -Wdouble-promotion
19457         Work around -Wdouble-promotion false alarm in recent GCCs.
19458         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
19459         (ftoastr_snprintf, FTOASTR): Use it.
19461 2017-02-21  Bruno Haible  <bruno@clisp.org>
19463         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
19464         Reported by Rene Saavedra <rennes@openmailbox.org> in
19465         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
19466         * lib/glthread/lock.h: On glibc systems without
19467         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
19468         implementation of rwlocks.
19469         * lib/glthread/lock.c: Likewise.
19471 2017-02-20  Bruno Haible  <bruno@clisp.org>
19473         lock tests: Fix build failure on z/OS.
19474         Reported by Daniel Richard G. <skunk@iskunk.org>.
19475         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
19476         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
19477         exist.
19479 2017-02-19  Bruno Haible  <bruno@clisp.org>
19481         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
19482         This helps when CC=clang.
19483         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
19484         of /usr/bin/gcc.
19486         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
19487         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
19489 2017-02-19  Bruno Haible  <bruno@clisp.org>
19491         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
19492         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
19493         --with-tests --single-configure is specified.
19495 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19497         users.txt: Update links, use HTTPS where possible
19498         * users.txt: Updated to HTTPS where possible,
19499         fixed some links to new locations.
19501 2017-02-16  Bruno Haible  <bruno@clisp.org>
19503         xbinary-io: Fix inlining.
19504         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
19506 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19508         xbinary-io: rename from xsetmode
19509         This patch is taken from suggestions by Bruno Haible in:
19510         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
19511         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
19512         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
19513         not ENOTTY, when it is an inappropriate device.
19514         * lib/binary-io.h (SET_BINARY): Resurrect.
19515         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
19516         (xset_binary_mode_error): Rename from xsetmode_error.
19517         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
19518         (xset_binary_mode): Rename from xsetmode.
19519         All uses changed.
19520         * modules/xbinary-io: Rename from modules/xsetmode.
19521         Update file names.
19522         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
19523         * NEWS: Update to match revised behavior.
19525 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19527         tests: Adjust to recent SET_BINARY change
19528         * tests/test-binary-io.c (main):
19529         * tests/test-binary-io.sh: Remove test for SET_BINARY.
19530         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
19531         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
19532         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
19534         xsetmode: new module
19535         This is to fix a problem noted by Eric Blake.
19536         Code was using xfreopen to change files to binary mode, but this
19537         fails for stdout when in append mode.  Such code should use
19538         xsetmode instead.
19539         * NEWS: Document incompatible changes to binary-io module.
19540         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
19541         New function.
19542         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
19543         (set_binary_mode): New function, which also checks for tty.
19544         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
19546 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19548         headers: fix begin-end typos
19549         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
19550         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
19552         selinux-h: port to PGI 16.10
19553         * lib/se-selinux.in.h: Don't assume that include_next skips over
19554         duplicate -I DIR options.
19556         argp: port to PGI 16.10
19557         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
19559 2017-02-13  Darshit Shah  <darnir@gnu.org>
19561         unicase: Update function protoype to match definition.
19562         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
19563         uses 'size_t' as the datatype for the 'len' parameter in the functions
19564         it generates. Update the prototype specified here to match the newly
19565         generated function.
19567 2017-02-12  Bruno Haible  <bruno@clisp.org>
19569         times test: Avoid gcc warnings on Linux/x32.
19570         * tests/test-times.c (main): Really cast printf arguments from clock_t
19571         to 'long int'.
19573 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19575         glob: port better to emscripten
19576         Problem reported by Bruno Haible in:
19577         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
19578         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
19580 2017-02-11  Bruno Haible  <bruno@clisp.org>
19582         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
19583         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
19584         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
19585         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
19586         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
19587         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
19588         Distinguish hppa64 from hppa.
19590 2017-02-10  Bruno Haible  <bruno@clisp.org>
19592         search: Don't assume that tsearch() exists if 'VISIT' is defined.
19593         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
19594         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
19595         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
19597 2017-02-09  Bruno Haible  <bruno@clisp.org>
19599         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
19600         * doc/gnulib.texi (Libtool and Windows): Recommend
19601         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
19602         Reported by Reuben Thomas <rrt@sc3d.org>.
19604 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19606         stddef-tests: port to SIZE_MAX <= INT_MAX
19607         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
19608         Do not assume that INT_MAX < SIZE_MAX.
19610 2017-02-01  Bruno Haible  <bruno@clisp.org>
19612         lock tests: Fix link error.
19613         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
19614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19616 2017-01-31  Bruno Haible  <bruno@clisp.org>
19618         lock: Fix link error (regression from 2017-01-05).
19619         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
19620         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
19621         pthread_rwlockattr_destroy weak.
19622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19624 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19626         Port to PGI 16.10 x86-64
19627         This patch fixes one real bug in gl_anylinked_list2.h, along with
19628         some minor glitches that are not bugs.  It does not silence PGI’s
19629         thousands of bogus warnings when compiling test-intprops.c.
19630         Fortunately, the warnings do not cause a failure.
19631         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
19632         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
19633         My goodness, PGI goes back a long ways - this predates C89!
19634         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
19635         For example, ASYNCSAFE (const void *) should expand to
19636         ‘const void *volatile’, not to ‘volatile const void *’.
19637         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
19638         * lib/verify.h (verify) [!__GNUC__]:
19639         Use shorter albeit meaningless string to bypass silly compiler limits.
19640         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
19641         * tests/nan.h (NaNf, NaNd, NaNl):
19642         Use static functions to avoid misguided compiler diagnostics.
19643         Is there some reason we don’t use static functions on all platforms?
19645 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19647         parse-datetime: handle timezones reentrantly
19648         This API change was prompted by a report by Pádraig Brady in:
19649         https://bug.debian.org/851934#10
19650         To help fix the bug, make parse_datetime2 more reentrant.
19651         * NEWS: Document this incompatible change.
19652         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
19653         Add two arguments, the timezone and the timezone name.
19654         All callers changed.  If TZ="..." is specified, use it for
19655         calculating defaults.
19656         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
19657         this code should be usable in a library.
19658         (mktime_ok, get_effective_timezone):
19659         Accept timezone arg too.  All callers changed.
19660         (get_tz): Remove.
19661         (get_effective_timezone): Check for failures.
19663 2017-01-20  Eric Blake  <eblake@redhat.com>
19665         localename: port to cygwin 2.6
19666         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
19667         Cygwin.
19668         * modules/localename (Depends-on): Add extensions, since
19669         NL_LOCALE_NAME() is not visible without it.
19671 2017-01-17  Pádraig Brady  <P@draigBrady.com>
19673         parse-datetime: fix dependence on AC_PROG_SED
19674         * modules/parse-datetime: Use `sed` directly like all other modules.
19675         Reported by J William Piggott
19677 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19679         intprops: update doc URLs
19680         * doc/intprops.texi (Integer Range Overflow): Update URLs.
19682 2017-01-16  Bruno Haible  <bruno@clisp.org>
19684         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
19685         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
19686         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
19687         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
19688         distinguish s390 and s390x.
19689         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
19690         * NEWS: Mention the change regarding 'armel'.
19692 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19694         localeinfo: case_folded_counterparts and WEOF
19695         * NEWS: Document this.
19696         * lib/localeinfo.c (case_folded_counterparts):
19697         First arg is now wint_t, not wchar_t.  This generalizes the
19698         function to also work on WEOF, where it returns 0.
19700         dfa: port to gcc -fsanitize=undefined
19701         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
19702         as this runs afoul of gcc -fsanitize=undefined.
19704 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19706         strftime: %z is -00 if unknown
19707         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
19708         the caller's responsibility to set 'negative_number'.  All uses changed.
19709         (__strftime_internal): Put '-' before a zero UTC offset if the time
19710         zone abbreviation starts with "-", which is the recently-introduced
19711         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
19712         * tests/test-strftime.c: Test for this.
19714 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19716         dfa: port to older GCC
19717         Problem reported by Assaf Gordon in:
19718         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
19719         * modules/c99: New module.  This merely attempts to use the latest
19720         C version, which should be enough to solve this particular problem.
19721         The idea is to document which Gnulib modules assume C99 or later.
19722         * modules/dfa (Depends-on): Add it.
19724 2017-01-10  Bruno Haible  <bruno@clisp.org>
19726         Update DEPENDENCIES.
19727         * DEPENDENCIES: List only https URLs. Update recommended version for
19728         autoconf, automake, gperf.
19730 2017-01-10  Jim Meyering  <meyering@fb.com>
19732         maint.mk: enforce spelling of "timestamp" (i.e., no space)
19733         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
19734         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
19736 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19738         dfa: minor simplification with emptyset
19739         * lib/dfa.c (build_state): Simplify by using emptyset.
19741 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19743         dfa: shrink constraints from 4 bits to 3
19744         * lib/dfa.c (newline_constraint, letter_constraint)
19745         (other_constraint, prev_newline_dependent)
19746         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
19747         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
19748         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
19749         Constraints need only 3 bits, not 4.  Using smaller integers
19750         shrinks the code a bit and makes grep a tad faster on x86-64.
19752         dfa: omit unnecessary ptrdiff_t check
19753         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
19754         overflow, since xnmalloc does that now.
19756         dfa: omit unnecessary allocation
19757         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
19758         an all-zero follow set works just fine.
19760         dfa: omit unused local
19761         * lib/dfa.c (build_state): Fix up recent change.
19763         maint: remove stray .texi files
19764         Although these were superseded by other files like
19765         doc/posix-functions/ctime.texi, the old files were not removed.
19766         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
19768 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19770         getprogname: fix port to IRIX
19771         * lib/getprogname.c (getprogname) [__sgi]:
19772         Don't dump core if malloc returns NULL.
19774         dfa: fix reallocation bug when matching newlines
19775         Problem reported for sed by S. Gilles (Bug#25390).
19776         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
19777         (dfastate): Reallocate before moving any newline transition ...
19778         (build_state): ... instead of reallocating here, where it is too late.
19780 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
19782         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
19783         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
19785 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
19787         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
19788         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
19790 2017-01-07  Bruno Haible  <bruno@clisp.org>
19792         stdioext: Port to Minix 3.2 and newer.
19793         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
19794         * lib/fseeko.c (fseeko): Likewise.
19795         Reported by Nelson Beebe via Paul Eggert.
19797 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19799         getprogname: port to IRIX
19800         * lib/getprogname.c (getprogname): Port to IRIX.
19801         Based on an idea by Bastien Roucariès at:
19802         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
19803         via code from Bruno Haible at:
19804         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
19806         localename-tests: port to NetBSD 7
19807         Problem reported by Nelson H. F. Beebe.
19808         * tests/test-localename.c:
19809         Test newlocale and uselocale only if both exist.
19811         glob, intprops, xalloc: work around Clang bug
19812         Work around LLVM bug 16404, which is still not fixed.
19813         https://llvm.org/bugs/show_bug.cgi?id=16404
19814         Problem reported by Nelson H. F. Beebe.
19815         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
19816         Remove.
19817         * lib/glob.c (size_add_wrapv):
19818         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
19819         * lib/xalloc-oversized.h (xalloc_oversized):
19820         Do not use overflow builtins if Clang.
19822         dfa: fix 'return' typo
19823         Problem reported by Nelson H. F. Beebe.
19824         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
19826 2017-01-05  Pádraig Brady  <P@draigBrady.com>
19828         parse-datetime: fix generated paths for coverage files
19829         * modules/parse-datetime: Adjust the paths for parse-datetime.y
19830         within parse-datetime.c, so that gcc generates appropriate .gcno
19831         files, allowing lcov to proceed without error.  Previously it
19832         would error trying to find "lib/lib/parse-datetime.y".
19834 2017-01-05  Pádraig Brady  <P@draigBrady.com>
19836         maint.mk: support parallel execution of coverage
19837         * top/maint.mk (coverage): Run dependencies serially,
19838         thus supporting parallel processing of each one,
19839         particularly build-coverage, which builds and runs tests.
19841 2017-01-05  Bruno Haible  <bruno@clisp.org>
19843         lock tests: Prefer semaphore over mutex.
19844         * tests/test-lock.c (USE_SEMAPHORE): New constant.
19845         (struct atomic_int, init_atomic_int, get_atomic_int_value,
19846         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
19847         Suggested by Torvald Riegel <triegel@redhat.com>.
19849 2017-01-05  Bruno Haible  <bruno@clisp.org>
19851         lock: Provide guarantee to avoid writer starvation for rwlocks.
19852         The rationale is: 1) Read-preferring read-write locks are prone to
19853         writer starvation if the number of reader threads multiplied by the
19854         percentage of time they have the lock held is too high. 2) Write-
19855         preferring read-write locks are the only reliable way to avoid this.
19856         3) There have been reports of 'test-lock' hanging on glibc systems
19857         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
19858         and glibc indeed implements read-preferring rwlocks by default, see
19859         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
19860         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
19861         * m4/pthread_rwlock_rdlock.m4: New file.
19862         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
19863         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
19864         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
19865         of rwlock initialization on glibc systems without
19866         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
19867         of rwlocks altogether on non-glibc systems without
19868         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
19869         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
19870         * lib/glthread/lock.c [USE_POSIX_THREADS]
19871         (glthread_rwlock_init_for_glibc): New function.
19872         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
19873         comment.
19874         [USE_PTH_THREADS]: New implementation of rwlocks.
19875         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
19876         readers.
19877         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
19878         (Depends-on): Add 'extensions'.
19879         * tests/test-rwlock1.c: New file.
19880         * lock-tests (Files): Add it.
19881         (Depends-on): Add usleep.
19882         (Makefile.am): Add test-rwlock1 to the tests.
19884 2017-01-05  Bruno Haible  <bruno@clisp.org>
19886         thread: Fix pth port.
19887         * lib/glthread/thread.h (pth_init): Declare weak.
19888         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
19889         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
19890         function.
19892 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
19894         parse-datetime: fix debug message on lone year number
19895         Input dates such as
19896           date -d "Apr 11 22:59:00 2011"
19897         are parsed as date (Apr 11, with default year 2016), then time, then a
19898         number (2011). Based on the combination of previously seen tokens,
19899         'digits_to_date_time' determines 2011 to be a year value.
19900         This fixes the debug messages to correctly show the updated year.
19901         Before:
19902             $ date --debug -d 'Apr 11 22:59:00 2011'
19903             date: parsed date part: (Y-M-D) 2016-04-11
19904             date: parsed time part: 22:59:00
19905             date: parsed number part: today/this/now
19906         After:
19907             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
19908             date: parsed date part: (Y-M-D) 2016-04-11
19909             date: parsed time part: 22:59:00
19910             date: parsed number part: year: 2011
19911         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
19912         'debug_year_seen' member fields.
19913         (digits_to_date_time): Update 'year_seen' as needed.
19914         (debug_print_current_time): Inform about year updates.
19915         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
19917         parse-datetime: fix local timezone debug messages
19918         "Local timezones" are strings that affect only DST relative to the
19919         default timezone. The debug messages in parse-datetime.y printed
19920         wrong information when encountering local timezones.
19921         Examples:
19922         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
19923              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
19924              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
19925         When the default timezone relates to the zone strings, EET/EEST are
19926         parsed as local timezones (tLOCAL_ZONE), and only change the DST
19927         value (0/1, respectively):
19928              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
19929              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
19930         * lib/parse-datetime.y (debug_print_current_time): If local timezone
19931         was seen, inform about DST change, don't print actual timezone.
19932         (debug_strfdatetime): If local timezone was seen, use default timezone
19933         (and adjust as needed) instead of using incorrect timezone.
19934         (parse_datetime2): Use correct time-zone source string, and adjust
19935         default timezone as needed.
19937         parse-datetime: add debug warning about DST changes
19938         Incorrect date arithmetic due to daylight saving time (DST) are a
19939         common (false) bug report in coreutils.
19940         Detect two such cases and print a warning:
19941         1. year/month/day adjustments (performed on 'struct tm'),
19942            where 'mktime' returns a different isdst value.
19943         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
19944            where the result of 'localtime(3)' on the value will return a
19945            different isdst value.
19946         Note: DST changes could be harmless or unnoticeable.
19947         Examples (with 'TZ=America/New_York'):
19948         Unnoticeable: result is 2016-Dec-14
19949            $ date -d '2016-06-15 EDT + 6 months' +%b
19950            Dec
19951         Unnoticeable: result is 2016-Dec-15 11:00:00
19952            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
19953            2016-12-15
19954         This is unexpected:
19955            $ date -d '2016-06-01 EDT + 6 months' +%F
19956            2016-11-30
19957         The new debug warnings will show:
19958            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
19959            ...
19960            date: warning: daylight saving time changed after date adjustment
19961            ...
19962         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
19963         print an appropriate warning message.
19965         parse-datetime: add debug warning about date arithmetic
19966         Date arithmetic are done directly on the fields of 'struct tm',
19967         which can result in invalid dates. Normalization with 'mktime(3)'
19968         will then produce a different date - which might cause unexpected
19969         results.
19970         Examples:
19971           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
19972           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
19973         Note that date normalization is not inherently wrong and not rejected,
19974         as it has legitimate uses:
19975           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
19976         If the user asked to adjust months but 'mday' changed,
19977         or user asked to adjust years but 'month' changed - warn about it.
19978             $ ./src/date --debug -d '2016-10-31 - 1 month'
19979             ...
19980             date: warning: when adding relative months/years, \
19981                            it is recommended to specify the 15th of the month
19982             ...
19983             date: warning: month/year adjustment resulted in shifted dates:
19984             date:      adjusted Y M D: 2016 09 31
19985             date:    normalized Y M D: 2010 10 01
19986             ...
19987         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
19988         a warning message. Improve recommendation of when to use 15 of the
19989         month or noon for date arithmetic.
19991         parse-datetime: fix debug message of relative part after timezone
19992         Relative part (e.g '+8 days') after a timezone string was not
19993         reported (was only reported after a timezone number). Due to the
19994         parser's structure, timezone strings with numbers were handled
19995         separately.
19996         before:
19997              # Timezone number + relative part: OK
19998              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
19999              ...
20000              date: parsed relative part: -8 day(s)
20001              # Timezone string + relative part: missing
20002              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
20003              [ missing message ]
20004         After: messages are printed in both cases.
20005         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
20007         parse-datetime: fix incorrect debug message on lone number
20008         A lone number is an absolute value, not a relative time part.
20009         before:
20010            $ date --debug -d '20130101'
20011            date: parsed number part: today/this/now
20012         After:
20013            $ ./src/date --debug -d '20130101'
20014            date: parsed number part: (Y-M-D) 2013-01-01
20015         * lib/parse-datetime.y ('item'/'number' tokens): Call
20016         'debug_print_current_time' instead of 'debug_print_relative_time'.
20018 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20020         doc: modernize for C11 etc.
20021         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
20022         for C11, MinGW, etc.  This responds to Paul Smith's question in:
20023         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
20025         dfa: prefer functions to FETCH_WC macro
20026         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
20027         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
20028         wint_t result into DFA->lex.wctok instead of to a separate arg.
20029         All callers changed.  Move more local decls closer to where
20030         they're used.
20032         dfa: narrow more local var scopes
20033         * lib/dfa.c: Move more local decls to be more local.
20035         dfa: remove duplicate assignment
20036         Problem reported by Bruno Haible in:
20037         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
20038         * lib/dfa.c (parse_bracket_exp): Simplify.
20040 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20042         dfa: simplify constraint-dependency checking
20043         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
20044         (prev_other_constraint): Remove.
20045         (prev_newline_dependent, prev_letter_dependent):
20046         Simplify, to avoid an unnecessary bitwise AND operation.
20048         dfa: prefer functions and constants to macros
20049         * lib/dfa.c: Prefer constants to macros where either will do.
20050         (streq, isasciidigit, newline_constraint)
20051         (letter_constraint, other_constraint, succeeds_in_context)
20052         (prev_newline_constraint, prev_letter_constraint)
20053         (prev_other_constraint, prev_newline_dependent)
20054         (prev_letter_dependent, accepting, accepts_in_context):
20055         Now static functions instead of function-like macros.
20056         Use lower-case names accordingly.  All uses changed.
20058         dfa: narrow more local var scopes
20059         * lib/dfa.c: Move some more local decls down to nearer where
20060         they're needed.
20062 2016-12-31  Jim Meyering  <meyering@fb.com>
20064         dfa: narrow the scope of many local variables
20065         * lib/dfa.c: Now that we are no longer constrained to c89, move
20066         declarations of many variables (often indices) "down" into the
20067         scope(s) where used or to the point of definition.  This is a
20068         no-semantic-change diff.
20070 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20072         version-etc: new year
20073         * build-aux/gendocs.sh (version):
20074         * doc/gendocs_template:
20075         * doc/gendocs_template_min:
20076         * doc/gnulib.texi:
20077         * lib/version-etc.c (COPYRIGHT_YEAR):
20078         Update copyright dates by hand in templates and the like.
20079         * all files: Run 'make update-copyright'.
20081 2016-12-31  Eric Blake  <eblake@redhat.com>
20083         do-release-commit-and-tag: avoid shell syntax error
20084         * build-aux/do-release-commit-and-tag (curr_br): $branch can
20085         contain spaces when rebasing.
20087         maint.mk: hoist gnulib_dir definition earlier
20088         * top/maint.mk (gnulib_dir): Move near top of file.
20090 2016-12-31  Jim Meyering  <meyering@fb.com>
20092         maint.mk: do not always evaluate intprops-related shell
20093         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
20094         using gnulib_dir undefined (gnulib_dir is defined later in the
20095         file, which will be fixed separately), and besides, there is no
20096         need to incur the cost of this shell invocation for every single
20097         use of this .mk file.  Reported by Eric Blake in
20098         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
20100 2016-12-30  Jim Meyering  <meyering@fb.com>
20102         maint.mk: improve sc_prohibit_intprops_without_use
20103         * top/maint.mk (_intprops_names): Don't hard-code the list of
20104         symbol names.  Instead, derive it on the fly.
20106 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20108         dfa: shorten sbit, success
20109         * lib/dfa.c (struct regex_syntax.sbit):
20110         (struct dfa.success): Use char, not int, for array elements, since
20111         they are all in the range 0..7.
20113         dfa: simplify multibyte_prop etc.
20114         This follows up on a change made when dfa.c was in grep, namely grep
20115         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
20116         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
20117         That earlier simplification allows for some more simplification
20118         and trimming down here.
20119         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
20120         (struct lexer_state): New mamber brack.
20121         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
20122         since they must be in the range 0..3 now.
20123         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
20124         the brack member now supersedes them.
20125         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
20126         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
20127         (dfaparse): Remove unnecessary initializations of already-0 storage.
20128         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
20129         (dfassbuild): No need to clear sup->mbcsets.
20131         dfa: minor performance tweak
20132         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
20134         dfa: wrap charclass inside a struct
20135         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
20136         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
20137         about 5% faster, where list.txt is generated by 'aspell dump
20138         master | head -n 100000 >list.txt'.  See Bug#22239.
20139         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
20140         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
20141         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
20142         Adjust to this, e.g., by using charclass * rather than charclass.
20143         All callers changed as needed.
20144         (copyset): Remove.  All uses changed to simple assignment.
20145         (parse_bracket_exp): Use zeroset instead of memset.
20147 2016-12-30  Jim Meyering  <meyering@fb.com>
20149         maint.mk: update list of intprops.h symbol names
20150         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
20151         This avoids a false failure of the sc_prohibit_intprops_without_use
20152         rule in grep.
20154 2016-12-29  Eric Blake  <eblake@redhat.com>
20156         getopt: fix parallel test failure
20157         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
20158         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
20159         * tests/test-getopt-main.h (main): Use different file names
20160         in case test-getopt-gnu and test-getopt-posix run in parallel.
20162 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20164         xalloc: x2nrealloc check for ptrdiff_t overflow
20165         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
20166         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
20168 2016-12-24  Bruno Haible  <bruno@clisp.org>
20170         lock test: Fix performance problem on multi-core machines.
20171         * tests/test-lock.c (USE_VOLATILE): New macro.
20172         (struct atomic_int): New type.
20173         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
20174         functions.
20175         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
20176         as 'struct atomic_int'.
20177         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
20178         reclock_checker_thread, test_recursive_lock): Use the new functions.
20179         Reported by Eric Blake in
20180         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
20181         and by Pádraig Brady in
20182         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
20184 2016-12-19  Bruno Haible  <bruno@clisp.org>
20186         vma-iter: Fix endless loop on 64-bit Windows.
20187         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
20188         'unsigned long'.
20190 2016-12-19  Bruno Haible  <bruno@clisp.org>
20192         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
20193         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
20194         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
20195         Invoke gt_TYPE_WINT_T instead.
20196         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
20197         * modules/stdint (Files): Add m4/wint_t.m4.
20198         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
20199         * modules/wctype-h (Makefile.am): Likewise.
20200         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
20201         not only on MSVC.
20202         * lib/wctype.in.h (wint_t): Likewise.
20204 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20206         getopt-posix-tests: fix Makefile typo
20207         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
20208         Fix typo: the last ‘_’ was missing in the name.
20209         I suspect that the typo explains this build failure:
20210         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
20211         although I can’t reproduce the problem on Solaris 10 sparc.
20213 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20215         dfa: improve worst-case 'replace' performance
20216         See my note in Bug#22357#71.
20217         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
20218         (merge_constrained): New function, which is like
20219         the old 'merge' function, except with a new argument C2.
20220         Simplify the body by avoiding the need for different sections
20221         of code depending on whether one input is exhausted.
20222         (merge): Use the new function.
20223         (delete): Return the constraint of the deleted position,
20224         not the entire position.  Caller changed.
20225         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
20227 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
20229         dfa: performance improvement for removal of epsilon closure
20230         See Bug#22357#32.
20231         * lib/dfa.c (delete): Use binary search to find deleted index.
20232         (replace): New function.  It replaces a position with the followed set.
20233         (epsclosure): Replace it with a new algorithm.  Update caller.
20235 2016-12-18  Bruno Haible  <bruno@clisp.org>
20237         Split tests for getopt-posix and getopt-gnu.
20238         * tests/test-getopt-posix.c: New file.
20239         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
20240         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
20241         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
20242         GNULIB_TEST_GETOPT_GNU.
20243         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
20244         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
20245         (Makefile.am): Test test-getopt-posix instead of test-getopt.
20246         * modules/getopt-gnu-tests: New file.
20247         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
20249 2016-12-18  Bruno Haible  <bruno@clisp.org>
20251         posix-modules: Add options for specific platforms.
20252         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
20253         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
20254         Invoke func_tmpdir. Filter out the excludes.
20256 2016-12-18  Bruno Haible  <bruno@clisp.org>
20258         getopt: Fix link error for users of getopt() in <unistd.h>.
20259         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
20260         __need_getopt is defined. Undefine all macros before defining them.
20261         * modules/getopt (Include): Clarify that including <unistd.h> is also
20262         OK.
20263         * tests/test-getopt.c: Add comment.
20265 2016-12-17  Bruno Haible  <bruno@clisp.org>
20267         getaddrinfo tests: Avoid compilation error on MSVC.
20268         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
20269         getaddrinfo on native Windows.
20271 2016-12-17  Bruno Haible  <bruno@clisp.org>
20273         getlogin, getlogin_r: Fix link errors on MSVC.
20274         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
20275         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
20276         (Link): New section.
20277         * modules/getlogin_r (Files): Add m4/getlogin.m4.
20278         (configure.ac): Require gl_LIB_GETLOGIN.
20279         (Link): New section.
20280         * NEWS: Mention the new link requirements.
20281         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
20282         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
20284 2016-12-17  Bruno Haible  <bruno@clisp.org>
20286         Un-deprecate the 'progname' module.
20287         * NEWS: Describe the appropriate use-cases of 'progname' versus
20288         'getprogname'. Based on discussion summary at
20289         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
20291 2016-12-17  Bruno Haible  <bruno@clisp.org>
20293         Reorganize NEWS a bit.
20294         * NEWS: Move some not so important changes away from section
20295         "Important Notes".
20297 2016-12-17  Bruno Haible  <bruno@clisp.org>
20299         tanhf: Avoid redefinition error on MSVC.
20300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
20301         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
20302         may be defined as an inline function.
20303         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
20304         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
20306 2016-12-17  Bruno Haible  <bruno@clisp.org>
20308         tanf: Avoid redefinition error on MSVC.
20309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
20310         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
20311         may be defined as an inline function.
20312         * modules/math (Makefile.am): Substitute REPLACE_TANF.
20313         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
20315 2016-12-17  Bruno Haible  <bruno@clisp.org>
20317         sqrtf: Avoid redefinition error on MSVC.
20318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
20319         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
20320         may be defined as an inline function.
20321         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
20322         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
20324 2016-12-17  Bruno Haible  <bruno@clisp.org>
20326         sinhf: Avoid redefinition error on MSVC.
20327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
20328         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
20329         may be defined as an inline function.
20330         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
20331         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
20333 2016-12-17  Bruno Haible  <bruno@clisp.org>
20335         sinf: Avoid redefinition error on MSVC.
20336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
20337         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
20338         may be defined as an inline function.
20339         * modules/math (Makefile.am): Substitute REPLACE_SINF.
20340         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
20342 2016-12-17  Bruno Haible  <bruno@clisp.org>
20344         logf: Avoid redefinition error on MSVC.
20345         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
20346         may be defined as an inline function.
20348 2016-12-17  Bruno Haible  <bruno@clisp.org>
20350         log10l: Avoid redefinition error on MSVC.
20351         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
20352         may be defined as an inline function.
20354 2016-12-17  Bruno Haible  <bruno@clisp.org>
20356         log10f: Avoid redefinition error on MSVC.
20357         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
20358         may be defined as an inline function.
20360 2016-12-17  Bruno Haible  <bruno@clisp.org>
20362         hypotl: Avoid redefinition error on MSVC.
20363         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
20364         may be defined as an inline function.
20366 2016-12-17  Bruno Haible  <bruno@clisp.org>
20368         hypotf: Avoid redefinition error on MSVC.
20369         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
20370         may be defined as an inline function.
20372 2016-12-17  Bruno Haible  <bruno@clisp.org>
20374         fmodl: Avoid redefinition error on MSVC.
20375         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
20376         may be defined as an inline function.
20378 2016-12-17  Bruno Haible  <bruno@clisp.org>
20380         fmodf: Avoid redefinition error on MSVC.
20381         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
20382         may be defined as an inline function.
20384 2016-12-17  Bruno Haible  <bruno@clisp.org>
20386         expf: Avoid redefinition error on MSVC.
20387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
20388         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
20389         may be defined as an inline function.
20390         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
20391         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
20393 2016-12-17  Bruno Haible  <bruno@clisp.org>
20395         coshf: Avoid redefinition error on MSVC.
20396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
20397         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
20398         may be defined as an inline function.
20399         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
20400         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
20402 2016-12-17  Bruno Haible  <bruno@clisp.org>
20404         cosf: Avoid redefinition error on MSVC.
20405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
20406         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
20407         may be defined as an inline function.
20408         * modules/math (Makefile.am): Substitute REPLACE_COSF.
20409         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
20411 2016-12-17  Bruno Haible  <bruno@clisp.org>
20413         atan2f: Avoid redefinition error on MSVC.
20414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
20415         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
20416         may be defined as an inline function.
20417         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
20418         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
20420 2016-12-17  Bruno Haible  <bruno@clisp.org>
20422         atanf: Avoid redefinition error on MSVC.
20423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
20424         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
20425         may be defined as an inline function.
20426         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
20427         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
20429 2016-12-17  Bruno Haible  <bruno@clisp.org>
20431         asinf: Avoid redefinition error on MSVC.
20432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
20433         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
20434         may be defined as an inline function.
20435         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
20436         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
20438 2016-12-17  Bruno Haible  <bruno@clisp.org>
20440         acosf: Avoid redefinition error on MSVC.
20441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
20442         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
20443         may be defined as an inline function.
20444         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
20445         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
20447 2016-12-17  Bruno Haible  <bruno@clisp.org>
20449         Avoid redefinition errors on MSVC.
20450         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
20451         the function may be defined as an inline function.
20452         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
20453         the function may be defined as an inline function.
20455 2016-12-17  Bruno Haible  <bruno@clisp.org>
20457         Avoid redefinition errors on MSVC.
20458         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
20459         * lib/unistd.in.h: Include <stdio.h> when necessary.
20461 2016-12-17  Bruno Haible  <bruno@clisp.org>
20463         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
20464         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
20465         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
20466         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
20467         WINT_MAX.
20469 2016-12-17  Bruno Haible  <bruno@clisp.org>
20471         Avoid autoconf warning.
20472         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
20473         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
20475 2016-12-17  Bruno Haible  <bruno@clisp.org>
20477         fpending: Revert workaround against Emacs bug.
20478         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
20479         The Emacs bug is fixed by Eli Zaretskii in
20480         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
20482 2016-12-17  Bruno Haible  <bruno@clisp.org>
20484         getlogin_r tests: Port to mingw.
20485         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
20486         regression introduced on 2014-05-19.
20488 2016-12-17  Bruno Haible  <bruno@clisp.org>
20490         getlogin: Port to newer mingw.
20491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
20492         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
20493         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
20494         HAVE_GETLOGIN.
20495         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
20496         HAVE_GETLOGIN.
20497         * doc/posix-functions/getlogin.texi: Mention the issue.
20498         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
20499         regression introduced on 2014-05-14.
20501 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
20503         builtin-expect: improve port to IBM XL C
20504         Problem reported for z/OS by Daniel Richard G. in:
20505         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
20506         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
20507         Test for <builtins.h> directly.
20509         builtin-expect: port to IBM XL C
20510         Problem reported for z/OS by Daniel Richard G. in:
20511         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
20512         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
20513         Also allow __builtin_expect defined via a standard include file.
20515         regex: fix dependency
20516         Problem reported by Bruno Haible in:
20517         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
20518         * modules/regex: Depend on builtin-expect.
20520         builtin-expect: new module
20521         Fix fnmatch to use it.
20522         Problem reported for z/OS by Daniel Richard G.
20523         * lib/fnmatch.c (__builtin_expect):
20524         * lib/glob.c (__builtin_expect):
20525         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
20526         * lib/memmem.c (__builtin_expect) [!_LIBC]:
20527         * lib/scandir.c (__builtin_expect):
20528         * lib/strstr.c (__builtin_expect) [!_LIBC]:
20529         Remove macro; config.h now does this.
20530         * lib/gl_anytreehash_list1.h (add_to_bucket):
20531         * lib/regex_internal.h (BE):
20532         Assume __builtin_expect.
20533         * m4/builtin-expect.m4, modules/builtin-expect: New files.
20534         * modules/avltreehash-list, modules/fnmatch, modules/glob:
20535         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
20536         * modules/scandir, modules/strstr-simple:
20537         Depend on builtin-expect.
20539 2016-12-15  Bruno Haible  <bruno@clisp.org>
20541         init.sh: Add possibility to not delete temporary files.
20542         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
20543         to yes, don't erase the temporary directory.
20545 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
20547         regex: fix integer-overflow bug in never-used code
20548         Problem reported by Clément Pit–Claudel in:
20549         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
20550         * lib/regex_internal.h: Include intprops.h.
20551         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
20552         behavior on integer overflow.
20553         * modules/regex (Depends-on): Add intprops.
20555         fpending: fix port to MinGW on Emacs
20556         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
20557         Problem reported by Eli Zaretskii in:
20558         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
20559         Is Plan 9 still a valid porting target, anyway?
20561 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
20563         safe-alloc: use xalloc-oversized
20564         * lib/safe-alloc.c: Include xalloc-oversized.h.
20565         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
20566         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
20568         xalloc: do not exceed PTRDIFF_MAX
20569         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
20570         xalloc_oversized check, since objects larger than PTRDIFF_MAX
20571         bytes have pointer-subtraction problems.
20573         malloca: do not exceed PTRDIFF_MAX
20574         * lib/malloca.h: Include xalloc-oversized.
20575         (nmalloca): Use xalloc_oversized instead of rolling our own.
20576         * modules/malloca (Depends-on):
20577         * modules/relocatable-prog-wrapper (Depends-on):
20578         Add xalloc-oversized.
20580         quotearg: pacify GCC better
20581         * modules/quotearg (Depends-on): Add minmax, stdint.
20582         * lib/quotearg.c: Include minmax.h, stdint.h.
20583         (nslots): Now int, as there seems little point to going to extra
20584         work merely to support the INT_MAX slot, which nobody ever uses.
20585         (quotearg_n_options): Redo size-overflow checks to pacify GCC
20586         and to catch (mostly-theoretical) ptrdiff_t problems too.
20587         This can be done via one comparison.
20589 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20591         xalloc-oversized: check for PTRDIFF_MAX too
20592         This avoids undefined behavior when subtracting pointers to
20593         objects containing more than PTRDIFF_MAX bytes.
20594         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
20595         Also return 1 if the result would exceed PTRDIFF_MAX>
20596         * modules/xalloc-oversized (Depends-on):
20597         Add stdint.
20599         dfa: fix glitches in previous commit
20600         Sorry, I don't know how I managed to commit the wrong version.
20601         * lib/dfa.c (MIN): Move up.
20602         (xpalloc): Now static.
20604         dfa: fix some unlikely integer overflows
20605         I found these while reviewing the recent Coverity-related fix.
20606         This patch changes part of dfa.c to prefer ptrdiff_t instead of
20607         size_t for object counts.  Using ptrdiff_t is the style typically
20608         used in Emacs; although it wastes a sign bit as sizes can never be
20609         negative, it makes -fsanitize=undefined more likely to catch
20610         integer overflows in index calculation, and nowadays the upside is
20611         typically more important than the downside.  Although perhaps the
20612         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
20613         of dfa.c already does, since it uses state_num which is signed),
20614         that is a bigger change and is not needed to fix the bugs I found.
20615         * lib/dfa.c: Include stdint.h and intprops.h.
20616         (TOKEN_MAX): New macro.
20617         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
20618         (charclass_index, parse_bracket_exp, addtok, insert, merge)
20619         (realloc_trans_if_necessary, free_mbdata):
20620         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
20621         This is safe because xpalloc checks that the sizes do not exceed
20622         either SIZE_MAX or PTRDIFF_MAX.
20623         (xpalloc): New function, mostly taken from Emacs.
20624         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
20625         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
20626         (charclass_index): Check for integer overflow in computing
20627         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
20628         added to it later.
20629         (alloc_position_set): Check for integer overflow.  On typical
20630         platforms this check has zero overhead, since the constant
20631         expression is false.
20632         (realloc_trans_if_necessary):
20633         Remove assertion, which I hope Coverity no longer needs.
20635         * modules/dfa (Depends-on): Add intprops, stdint.
20637 2016-12-12  Jim Meyering  <meyering@fb.com>
20639         dfa: add an assertion to avoid coverity false positive
20640         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
20641         warned that "newalloc1 - 2" could overflow.
20643 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
20645         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
20646         * dfa.h (DFA_CASE_FOLD): Remove.
20647         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
20649 2016-12-13  John W. Eaton  <gnu@jweaton.org>
20651         link: fix test to declare use of rename()
20652         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
20653         -Werror=implicit-function-declaration
20655 2016-12-12  Bruno Haible  <bruno@clisp.org>
20657         fpending: Port to native Windows with MSVC.
20658         * lib/fpending.c: Include stdio-impl.h.
20659         (__fpending): Include all known implementations. Err out if it's not
20660         ported.
20661         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
20662         * modules/fpending (Files): Add lib/stdio-impl.h.
20663         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
20665 2016-12-12  Bruno Haible  <bruno@clisp.org>
20667         stdioext: Port to native Windows with MSVC.
20668         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
20669         (struct _gl_real_FILE): New type.
20670         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
20671         Windows.
20672         * lib/fbufmode.c (fbufmode): Add code for native Windows.
20673         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
20674         other SystemV derived implementations.
20675         * lib/fpurge.c (fpurge): Likewise.
20676         * lib/freadable.c (freadable): Likewise.
20677         * lib/freadahead.c (freadahead): Likewise.
20678         * lib/freading.c (freading): Likewise.
20679         * lib/freadptr.c (freadptr): Likewise.
20680         * lib/freadseek.c (freadptrinc): Likewise.
20681         * lib/fseeko.c (fseeko): Likewise.
20682         * lib/fseterr.c (fseterr): Likewise.
20683         * lib/fwritable.c (fwritable): Likewise.
20684         * lib/fwriting.c (fwriting): Likewise.
20685         Reported by Gisle Vanem <gvanem@yahoo.no>.
20687 2016-12-11  Jim Meyering  <meyering@fb.com>
20689         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
20690         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
20691         to work with most shells, but not with the one provided by many
20692         Solaris 10 systems, so running configure with such a /bin/sh evokes
20693         e.g., "./configure: syntax error at line 33602: `(' unexpected".
20694         Reported by Assaf Gordon in
20695         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
20697 2016-12-10  Bruno Haible  <bruno@clisp.org>
20699         threadlib: Optimize out runtime test on Solaris >= 10.
20700         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
20701         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
20702         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
20704 2016-12-10  Bruno Haible  <bruno@clisp.org>
20706         stdint: Update doc about Solaris 9.
20707         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
20709 2016-12-09  Bruno Haible  <bruno@clisp.org>
20711         c-ctype tests: Fix link error on Solaris 9.
20712         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
20713         Reported at <https://savannah.gnu.org/bugs/?46827>.
20715 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
20717         dfa: fix performance bug that recomputes trans
20718         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
20719         25 on-demand changes.  The bug caused build_state to reset all
20720         d->trans elements to -2 even when d->trans was already non-null.
20721         Use C99 style decls after statements in this function.
20723         same-inode: port to MinGW
20724         Here st_ino is always 0, so change the definition of SAME_INODE so
20725         that 1 means the two files are the same, 0 with st_ino != 0 means
20726         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
20727         reported by Bruno Haible (Bug#25146).
20728         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
20729         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
20731 2016-12-04  Bruno Haible  <bruno@clisp.org>
20733         javacomp-script: Support Java 7 and 8.
20734         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
20735         target-version 1.7, 1.8.
20737 2016-12-02  Daiki Ueno  <ueno@gnu.org>
20739         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
20740         GPLv2" rewriting.
20742 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
20744         * gnulib-tool (func_import): Adhere to the license guideline when
20745         rewriting the license text to "LGPLv3+ or GPLv2":
20746         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
20748 2016-12-02  Bruno Haible  <bruno@clisp.org>
20750         localcharset: Avoid theoretical buffer overrun.
20751         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
20752         return value from setlocale if it would lead to a buffer overrun.
20754 2016-12-01  Bruno Haible  <bruno@clisp.org>
20756         Relicense some modules under LGPLv2+.
20757         Kevin Cernekee's approval is in
20758         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
20759         * modules/fseterr (License): Change to LGPLv2+.
20760         * modules/mbchar (License): Likewise.
20761         * modules/mbiter (License): Likewise.
20762         * modules/mbsnlen (License): Likewise.
20763         * modules/wcwidth (License): Likewise.
20765 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20767         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
20768         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
20769         OS/2 kLIBC.
20771 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20773         alphasort, scandir: Port to OS/2 kLIBC
20774         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
20775         declaration.
20776         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
20778 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20780         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
20781         * lib/relocatable.c (relocate): Do not touch pathname if it is started
20782         with '/@unixroot'.
20784 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20786         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
20787         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
20788         OS/2 kLIBC unless TCPV40HDRS is defined.
20790 2016-11-29  Jim Meyering  <meyering@fb.com>
20792         dfa: avoid new infinite loop
20793         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
20794         * lib/dfa.c (dfastate): When constructing a new state table, we could
20795         initially declare that we had found a match, and later find that
20796         constraints eliminate that possibility, yet continue to use the
20797         now stale "matched" indicator.  That would lead to an infinite loop.
20798         The solution is to update "matched" when necessary.
20799         Introduced by commit v0.1-983-g403adf1.
20801 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
20803         dfa: avoid match middle in multibyte character
20804         * lib/dfa.c (transit_state): If fails in matching single byte characters
20805         on a state including period expression in non-UTF8 multibyte locales,
20806         skip trailing bytes.
20807         (dfa_supported): Revert previous change.
20809 2016-11-27  Jim Meyering  <meyering@fb.com>
20811         dfa: avoid false match in non-UTF8 multibyte locales
20812         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
20813         as "not supported" so that callers will resort to using regex-based
20814         matcher.  This will surely hurt performance, but correctness trumps
20815         performance here, and the affected locales are less and less relevant,
20816         these days.  See grep's bug report https://bugs.gnu.org/24975.
20818 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
20820         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
20821         * lib/ptsname_r.c: Include the appropriate headers.
20822         [__sun]: Delete sys/sysmacros.h include.
20823         [_AIX || __osf__]: Likewise.
20824         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
20826 2016-11-27  Pádraig Brady  <P@draigBrady.com>
20828         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
20829         * lib/md4.c (md4_process_bytes): The existing define is made internal
20830         in recent versions of glibc, so also use this new public define.
20831         * lib/md5.c (md5_process_bytes): Likewise.
20832         * lib/sha1.c (sha1_process_bytes): Likewise.
20833         * lib/sha256.c (sha256_process_bytes): Likewise.
20834         * lib/sha512.c (sha512_process_bytes): Likewise.
20836 2016-11-27  Pádraig Brady  <P@draigBrady.com>
20838         maint: use a more standard return from mbrtowc test
20839         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
20840         from the test program as this often indicates an
20841         unhandled case in the test program.
20842         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
20843         (gl_MBRTOWC_SANITYCHECK): Likewise.
20844         (gl_MBRTOWC_NULL_ARG2): Likewise.
20845         (gl_MBRTOWC_NUL_RETVAL): Likewise.
20847 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20849         freopen: work around glibc bug with closed fd
20850         Work around glibc bug#15589, where freopen mishandles the case
20851         where stdin etc. are already closed.
20852         * doc/posix-functions/freopen.texi (freopen): Document the bug.
20853         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
20854         instead of __need_FILE, as the latter does not work with glibc.
20855         Include <fcntl.h>, for open flags.
20856         (rpl_freopen): Work around glibc bug.
20857         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
20858         * modules/freopen (Depends-on): Add fcntl-h.
20859         * tests/test-freopen.c (main): Test for bug.
20861 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20863         fnmatch: fix typo introduced on 2016-08-17
20864         This fixes the port to non-GCC compilers that lack __builtin_expect.
20865         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
20867         dfa: simplify with new function fillset
20868         * lib/dfa.c (fillset): New function.
20869         Use it for clarity when applicable.
20871         dfa: fix glitches with on-demand states
20872         Also, adjust commentary to better match new code.
20873         Some of these glitches predate the recent change.
20874         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
20875         only non-initial states.
20876         (dfastate): Rename locals to better match new roles.
20877         Move them into nested scopes if this is easy.
20878         Omit unnecessary calls to zeroset.
20879         Simplify test for whether to throw in the positions of state 0.
20880         Omit C99-ism (decl after statement) since Gawk still wants C89.
20881         (build_state): Omit unnecessary test and assignment.
20882         Fix some confusion that counted transition tables inaccurately
20883         and could cause a memory leak.
20884         (dfaexec_main): Redo to make it clearer to the compiler that
20885         -1 and -2 are the only negative state numbers here.
20887 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
20889         dfa: addition of new state on demand
20890         * src/dfa.c (dfastate): Add argument UC, the current input character.
20891         Fill only a group including the character in transition table.
20892         (realloc_trans_if_necessary): Add the dummy state which means that a
20893         transition table is assigned but the next state is not assigned.
20894         (build_state): Return the next state.  All callers updated.
20895         (transit_state_singlebyte): If we get the dummy state,
20896         fill the transition table.
20897         (dfaexec_main): Handle the dummy state.
20898         (free_mbdata, dfafree): Consider the dummy state.
20900 2016-11-24  Daiki Ueno  <ueno@gnu.org>
20902         srclist: sync with released gettext
20903         * config/srclist.txt: Set "release" option to the files under
20904         $GETTEXT.
20906 2016-11-24  Daiki Ueno  <ueno@gnu.org>
20908         srclist: add "release" option
20909         * config/srclist.txt: Change the format so that the first column
20910         of each line points to the top-level directory of the source
20911         archive.
20912         * config/srclist-update: Accept "release" option that checks files
20913         from the most recently tagged revision in the source archive.
20915 2016-11-21  Bruno Haible  <bruno@clisp.org>
20917         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
20918         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
20919         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
20920         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
20921         Inline and remove member function 'rpl ()' of the wrapper struct.
20923 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20925         dfa: fix logic typo
20926         Problem reported by Stephane Chazelas (Bug#24973).
20927         * lib/dfa.c (using_simple_locale): Fix typo that caused some
20928         non-simple locales like fr_FR to be treated as simple.
20930 2016-11-20  Jim Meyering  <meyering@fb.com>
20932         fix test driver leaks: exclude, malloc, realloc
20933         * tests/test-exclude.c (main): Fix trivial leak.
20934         * tests/test-malloc-gnu.c (main): Likewise.
20935         * tests/test-realloc-gnu.c (main): Likewise.
20936         With these changes, grep's tests are now leak free.
20937         I.e., running them with ASAN elicits no failure:
20938           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
20939             AM_LDFLAGS='-fsanitize=address -static-libasan' check
20941 2016-11-11  Bruno Haible  <bruno@clisp.org>
20943         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
20944         * modules/libunistring: (License): Change from LGPL to
20945         "LGPLv3+ or GPLv2".
20946         * modules/libunistring-optional: Likewise.
20947         * modules/unicase/*: Likewise.
20948         * modules/uniconv/*: Likewise.
20949         * modules/unictype/*: Likewise.
20950         * modules/unigbrk/*: Likewise.
20951         * modules/unilbrk/*: Likewise.
20952         * modules/uniname/*: Likewise.
20953         * modules/uninorm/*: Likewise.
20954         * modules/unistdio/*: Likewise.
20955         * modules/unistr/*: Likewise.
20956         * modules/uniwbrk/*: Likewise.
20957         * modules/uniwidth/*: Likewise.
20959 2016-11-12  Bruno Haible  <bruno@clisp.org>
20961         Relicense some modules under LGPLv2+.
20962         Paul Eggert's approval is in
20963         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
20964         Eric Blake's approval is in
20965         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
20966         Ludovic Courtès's approval is in
20967         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
20968         * modules/isnand-nolibm (License): Change to LGPLv2+.
20969         * modules/isnanf-nolibm (License): Likewise.
20970         * modules/isnanl-nolibm (License): Likewise.
20972 2016-11-19  Bruno Haible  <bruno@clisp.org>
20974         Relicense some modules under LGPLv2+.
20975         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
20976         modules/vasnprintf.
20977         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
20978         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
20979         All other significant changes to the files in lib/ of these modules
20980         are from me.
20981         * modules/memcmp2 (License): Change to LGPLv2+.
20982         * modules/amemxfrm (License): Likewise.
20983         * modules/fpieee (License): Likewise.
20984         * modules/fpucw (License): Likewise.
20985         * modules/frexp-nolibm (License): Likewise.
20986         * modules/frexpl-nolibm (License): Likewise.
20987         * modules/printf-frexp (License): Likewise.
20988         * modules/printf-frexpl (License): Likewise.
20989         * modules/printf-safe (License): Likewise.
20990         * modules/signbit (License): Likewise.
20992 2016-11-17  Bruno Haible  <bruno@clisp.org>
20994         Enable Unicode decoder safety unconditionally.
20995         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
20996         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
20997         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20998         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20999         * lib/unistr/u8-prev.c (u8_prev): Likewise.
21000         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
21001         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
21002         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
21003         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
21004         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
21005         * lib/unistr/u16-prev.c (u16_prev): Likewise.
21006         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
21007         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
21008         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
21009         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
21010         * lib/unistr/u32-prev.c (u32_prev): Likewise.
21011         * lib/unistr/u32-next.c (u32_next): Likewise.
21012         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
21013         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
21014         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21015         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21016         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
21017         CONFIG_UNICODE_SAFETY tests unconditionally.
21018         * tests/unistr/test-u32-mblen.c (main): Likewise.
21019         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
21020         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
21021         * tests/unistr/test-u32-next.c (main): Likewise.
21022         * tests/unistr/test-u32-strmblen.c (main): Likewise.
21023         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
21024         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
21025         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
21026         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
21027         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21028         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
21029         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
21030         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
21031         * lib/unistr/u16-check.c (u16_check): Update comment.
21032         * NEWS: Mention the changes that callers should be aware of.
21034 2016-11-19  Bruno Haible  <bruno@clisp.org>
21036         relocatable-prog-wrapper: Fix breakage on Cygwin.
21037         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
21038         (Depends-on): Remove intprops.
21039         * lib/relocwrapper.c: Update dependency tree.
21040         (strerror): Undefine.
21041         * build-aux/install-reloc (func_create_wrapper): Do not compile
21042         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
21044 2016-11-19  Bruno Haible  <bruno@clisp.org>
21046         strerror: Make it compile in C++ mode.
21047         * lib/strerror.c (strerror): Ignore the return value of memcpy().
21049 2016-11-15  Pedro Alves  <palves@redhat.com>
21051         sys_time: add gnulib::timeval for C++
21052         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
21053         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
21054         timeval macro.
21056 2016-11-14  Pedro Alves  <palves@redhat.com>
21058         snippet/c++defs: fix real-floating arg functions in C++ mode
21059         Also, define isfinite, isinf, isnan, signbit in the gnulib
21060         namespace instead of in the global namespace.
21061         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
21062         (_GL_END_NAMESPACE): New.
21063         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
21064         (isfinite, isinf, isnan, signbit) [__cplusplus &&
21065         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
21066         instead of in the global namespace.
21067         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
21068         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
21069         of in the global namespace.
21071 2016-11-13  Jim Meyering  <meyering@fb.com>
21073         strftime: don't use __THROW
21074         Each use of __THROW would provoke this from gcc-7-to-be:
21076           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
21077             on unit local functions [-Wattributes]
21078           static int iso_week_days (int, int) __THROW;
21079           ^~~~~~
21080         * lib/strftime.c (__THROW): Don't define.
21081         Remove each use of __THROW.
21082         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
21083         (tm_diff, iso_week_days, __strftime_internal): Likewise.
21085 2016-11-14  Paul Eggert  <eggert@union>
21087         obstack: port to gcc -fcheck-pointer-bounds
21088         Problem found by 'make check' failure on bleeding-edge coreutils
21089         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
21090         6.2.0-5ubuntu12), configured via "./configure
21091         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
21092         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
21093         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
21094         New macro, copied from fts_.h.
21095         (struct _obstack_chunk.contents): Use it.
21097 2016-11-14  Eric Blake  <eblake@redhat.com>
21099         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
21100         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
21101         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
21103 2016-11-14  Pádraig Brady  <P@draigBrady.com>
21105         strptime: fix compile error in recent change
21106         * lib/strptime.c (__strptime_internal): Fix ported code.
21108 2016-11-11  Bruno Haible  <bruno@clisp.org>
21110         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
21111         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
21112         (func_import): Extend determination of license_incompatibilities.
21113         (func_create_testdir): Extend table of license compatibility. Handle
21114         also the licenses GPLv3+, GPL, LGPLv3+.
21116 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
21118         strftime: tune %q
21119         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
21121         Merge strftime.c changes from glibc
21122         This incorporates:
21123         2007-10-16 [BZ #5184] Add tzset_called argument
21124         2008-06-13 [BZ #6612] pass reference to tzset_called around
21125         2009-10-30 Implement Burmese language locale for Myanmar
21126         2010-01-09 Add support for XPG7 testing
21127         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
21128         2015-10-20 Convert miscellaneous function definitions to prototype style
21129         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
21130         it anyway and this lessens the difference between gnulib and glibc.
21131         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
21132         (__THROW): Define if standard headers do not.
21133         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
21134         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
21135         Declare with __THROW.
21136         (__strftime_internal): Rename from strftime_case_. Add arg for
21137         whether tzset is called.  All uses changed.  Call tzset at most
21138         once.  Allow %OC, for Burmese.
21139         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
21140         Don't assume values are in range.
21142 2016-11-12  Eric Blake  <eblake@redhat.com>
21144         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
21145         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
21146         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
21147         different value.
21149 2006-11-12  Pedro Alves  <palves@redhat.com>
21151         Fix gnulib C++ namespace support and std::frexp
21152         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
21153         _GL_CXXALIASWARN.
21155 2006-11-12  Pedro Alves  <palves@redhat.com>
21157         GNULIB_NAMESPACE::func need not pull in rpl_func
21158         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
21159         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
21160         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
21161         struct instead of a function pointer.
21163 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
21165         manywarnings: fix -Wno-missing-field-initializers detection
21166         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
21167         to be independent of -Wunused-variable.  I.E. ensure the latter
21168         warning doesn't occur so that detection of the former is accurate.
21170 2016-11-05  Pádraig Brady  <pbrady@fb.com>
21172         strftime,strptime: support %q to represent the quarter
21173         * lib/strftime.c (strftime_case_): Add %q case.
21174         * lib/strptime.c (__strptime_internal): Likewise.
21175         * tests/test-strftime.c (quarter_test): A new test case.
21177 2016-11-03  Eric Blake  <eblake@redhat.com>
21179         bootstrap: Fix get_version() for AIX 5.3
21180         * build-aux/bootstrap (get_version): Factor out sed script, since
21181         indented comments choke AIX 5.3 sed.
21182         Reported-by: Michael Felt <aixtools@gmail.com>
21184 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21186         intprops: port to older XL C
21187         Problem reported by Alexander Samoilov in:
21188         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
21189         http://savannah.nongnu.org/bugs/?49448
21190         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
21191         Define to 1 only for XL C 12.1 or later, since this bug
21192         occurs in XL C for AIX 6.0 but not in 12.1.
21194 2016-11-02  Pádraig Brady  <P@draigBrady.com>
21196         backupfile: initialize default suffix within the implementation
21197         * lib/backupfile.c (find_backup_file_name): Initialize the
21198         global variable here, to simplify usage, and to only call
21199         getenv() when needed.
21201 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21203         futimens: remove FIXME for old Linux kernels
21204         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
21205         this in 2012" FIXME, like that for utimensat.
21207         utimensat: remove FIXME for old Linux kernels
21208         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
21209         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
21210         this in 2012" FIXME, by assuming the file system bug is absent
21211         unless demonstrated to be present.  We no longer need to worry
21212         about Linux kernel 2.6.32 when building with newer kernels.
21214 2016-10-16  Bruno Haible  <bruno@clisp.org>
21216         qsort_r: Fix macrology for platforms that lack the function.
21217         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
21218         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
21219         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
21220         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
21221         not exist.
21222         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
21223         the function exists.
21224         * modules/qsort_r: Add comments.
21226 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21228         sys_types: fix Texinfo typos
21229         * doc/glibc-functions/gnu_dev_major.texi:
21230         * doc/glibc-functions/gnu_dev_makedev.texi:
21231         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
21233 2016-10-26  John David Anglin  <dave.anglin@bell.net>
21235         getprogname: port to HP-UX
21236         See Bug#24805.
21237         * lib/getprogname.c (getprogname) [__hpux]: Port.
21238         * tests/test-getprogname.c (STREQ) [__hpux]:
21239         Special-case for HP-UX limitations on program name length.
21241 2016-10-20  Bruno Haible  <bruno@clisp.org>
21243         Update doc about target platforms.
21244         * doc/gnulib-intro.texi (Target Platforms): Update list.
21246 2016-10-15  Bruno Haible  <bruno@clisp.org>
21248         opendir, readdir, closedir: Relicense under LGPLv2+.
21249         * modules/opendir (License): Change to LGPLv2+.
21250         * modules/readdir (License): Likewise.
21251         * modules/closedir (License): Likewise.
21253 2016-10-16  Bruno Haible  <bruno@clisp.org>
21255         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
21256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
21257         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
21258         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
21259         HAVE_DECL_STRERROR_R.
21261 2016-10-16  Bruno Haible  <bruno@clisp.org>
21263         Make the 'argp' module work without the 'error' module.
21264         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
21266 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
21268         diffseq: restore TOO_EXPENSIVE heuristic
21269         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
21270         (Bug#24715).  The simplest solution is to restore the
21271         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
21272         using a higher threshold to avoid Bug#16848 on smaller files.
21273         * lib/diffseq.h (struct context): Restore member too_expensive.
21274         (struct partition): Restore members lo_minimal, hi_minimal.
21275         (diag, compareseq): Restore arg find_minimal.  All uses changed.
21276         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
21277         1993 to make 'diff' run faster (but not as well) on large inputs,
21278         but use a threshold of 4096 instead of the old 256.
21279         * lib/fstrcmp.c (strcmp_bounded):
21280         * lib/git-merge-changelog.c (compute_differences):
21281         Adjust to diffseq.h changes.
21283 2016-10-22  Bruno Haible  <bruno@clisp.org>
21285         iconv: Avoid compilation error when bootstrapping GNU libiconv.
21286         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
21287         declaration yet, define ICONV_CONST to empty.
21289 2016-10-15  Bruno Haible  <bruno@clisp.org>
21291         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
21292         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
21293         module.
21295 2016-10-16  Bruno Haible  <bruno@clisp.org>
21297         system-quote tests: Avoid compiler warning on AIX.
21298         * tests/test-system-quote-child.c (fopen): Redefine like the system's
21299         <stdio.h> does.
21301 2016-10-16  Bruno Haible  <bruno@clisp.org>
21303         Fix some "gcc -Wall" warnings.
21304         * tests/test-ffsl.c (main): Use variable x, not i.
21305         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
21306         freopen.
21307         * tests/test-sethostname1.c (main): Explicitly ignore the return value
21308         of sethostname.
21310 2016-10-16  Bruno Haible  <bruno@clisp.org>
21312         gnulib-tool: Make --create-testdir on all modules work again.
21313         * gnulib-tool (func_create_testdir): Don't include the
21314         non-recursive-gnulib-prefix-hack module.
21316 2016-10-21  Daiki Ueno  <ueno@gnu.org>
21318         libunistring: change the maintainer to 'all'
21319         * modules/gen-uni-tables, modules/libunistring:
21320         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
21321         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
21322         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
21323         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
21324         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
21325         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
21326         * modules/uniwidth/*: Change the maintainer to 'all'.
21328 2016-10-16  Bruno Haible  <bruno@clisp.org>
21330         Simplify "configure: checking ..." messages.
21331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
21332         AC_MSG_NOTICE.
21333         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21335 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
21337         quotearg-tests: pacify gcc -Wall
21338         Problem reported by Bruno Haible in:
21339         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
21340         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
21341         * tests/test-quotearg.h: ... from here.
21343 2016-10-20  Pádraig Brady  <P@draigBrady.com>
21345         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
21346         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
21347         Needed on Centos <= 4.
21349 2016-10-20  Jim Meyering  <meyering@fb.com>
21351         printf.m4: fix a bug in detecting printf %j support
21352         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
21353         uintmax_t is defined in neither stdint.h nor inttypes.h.
21354         Before, this macro might have mistakenly set
21355         gl_cv_func_printf_sizes_c99=yes on such a system.
21356         Spotted by Zev Weiss.
21358 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21360         sched: substitute HAVE_SYS_CDEFS_H too
21361         Problem reported by Tom G. Christensen in:
21362         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
21363         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
21364         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
21366 2016-10-19  Pádraig Brady  <P@draigBrady.com>
21368         quotearg: never write beyond the returned length
21369         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
21370         scan of the string when we initially encounter a single quote when
21371         shell quoting, so that if we then switch to a more concise quoting method
21372         we will not have written beyond that returned length.
21373         This is significant for sh-quote, which has separate routines
21374         to determine the length and do the actual quoting.
21375         * tests/test-quotearg.h: Reinstate the buffer bounds checking
21376         now that we never write more than the returned length.
21378 2016-10-18  Bruno Haible  <bruno@clisp.org>
21380         getprogname tests: Avoid failure in packages that use libtool.
21381         * tests/test-getprogname.c (main): Strip "lt-" prefix.
21382         Based on a patch by Jim Meyering.
21384 2016-10-16  Bruno Haible  <bruno@clisp.org>
21386         getprogname: Fix test failure on Cygwin. Comments.
21387         * lib/getprogname.h: Add comments.
21388         * lib/getprogname.c: Add comments. Fix #elif indentation.
21389         * tests/test-getprogname.c (main): On Cygwin, expect a result without
21390         ".exe" suffix.
21392 2016-10-16  Bruno Haible  <bruno@clisp.org>
21394         Make sure the libunistring detection rejects older versions with a
21395         known bug.
21396         * modules/unistr/u8-strtok (configure.ac): Bump required version.
21397         * modules/unistr/u16-strtok (configure.ac): Likewise.
21398         * modules/unistr/u32-strtok (configure.ac): Likewise.
21400 2016-10-18  Bruno Haible  <bruno@clisp.org>
21402         sh-quote, system-quote: revert regression of unit test.
21403         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
21404         * tests/test-system-quote-main.c (check_one): Likewise.
21406 2016-10-16  Pádraig Brady  <P@draigBrady.com>
21408         quotearg: fix stale tests
21409         * tests/test-quotearg.c [locale_results]: Add the missing str7
21410         entries to the expected results.
21411         * tests/test-system-quote-main.c (check_one): Don't enforce that we
21412         don't write beyond the returned length, since that's no longer the
21413         case if we switch to a more concise quoting style.
21414         * tests/test-sh-quote.c (check_one): Likewise.
21415         (main): Adjust for the new more concise quoting style.
21416         Reported by Bruno Haible.
21418 2016-10-16  Jim Meyering  <meyering@fb.com>
21420         non-recursive-gnulib-prefix-hack: fix inconsequential typo
21421         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
21422         to "$1".  This macro is always invoked with $1 == lib.
21423         Spotted by Bruno Haible
21425 2016-10-16  Bruno Haible  <bruno@clisp.org>
21427         Fix a test crash.
21428         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
21429         fails.
21431 2016-10-16  Pádraig Brady  <P@draigBrady.com>
21433         test-limits-h: suppress -Woverlength-strings
21434         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
21436 2016-10-15  Bruno Haible  <bruno@clisp.org>
21438         gettime, timespec, utimens: Relicense under LGPL.
21439         * modules/gettime (License): Change to LGPL.
21440         * modules/timespec (License): Likewise.
21441         * modules/utimens (License): Likewise.
21443 2016-10-14  Bruno Haible  <bruno@clisp.org>
21444             Pádraig Brady  <P@draigBrady.com>
21446         canonicalize-lgpl: Support the case path_max > INT_MAX.
21447         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
21448         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
21450 2016-10-13  Jim Meyering  <meyering@fb.com>
21452         getprogname: IBM z/OS: avoid NULL-dereference
21453         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
21454         upon strdup failure.
21456 2016-10-12  Jim Meyering  <meyering@fb.com>
21458         test-stdint: use _GL_VERIFY rather than "verify" for some tests
21459         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
21460         and an abbreviated diagnostic rather than verify with the full one,
21461         because the full-length strings would evoke warnings from gcc with
21462         -Woverlength-strings.
21464 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21466         stdint: port SIZE_MAX to glibc s390
21467         Problem reported by Eric Blake in:
21468         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
21469         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
21470         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
21471         correct type, if possible.
21473 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
21475         getprogname: port to IBM z/OS
21476         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
21478 2016-10-11  Jim Meyering  <meyering@fb.com>
21480         maint: remove stray space after "." in AC_DEFINE comment.
21481         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
21482         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21484 2016-10-05  Jim Meyering  <meyering@fb.com>
21486         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
21487         * lib/long-options.c (parse_long_options): Add a break statement
21488         to avoid this new warning/failure:
21489         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
21490           --create-testdir --dir=/t/x --with-tests --test long-options
21491         ../../gllib/long-options.c: In function 'parse_long_options':
21492         ../../gllib/long-options.c:66:12: error: this statement may \
21493           fall through [-Werror=implicit-fallthrough]
21494                    (*usage_func) (EXIT_SUCCESS);
21495                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
21497 2016-10-05  Jim Meyering  <meyering@fb.com>
21499         utimecmp: avoid new GCC 7 warning from -Wbool-operation
21500         Testing this module would fail when using GCC 7 like this:
21501         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
21502           --dir=/tmp/x --with-tests --test utimecmp
21503         ../../gllib/utimecmp.c: In function ‘utimecmp’:
21504         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
21505           [-Werror=bool-operation]
21506                          time_t s = src_s & ~ (res == 2 * BILLION);
21507                                             ^
21508         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
21509           [-Werror=bool-operation]
21510                src_s &= ~ (res == 2 * BILLION);
21511                         ^
21512         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
21513         Instead, make it explicit that we intend to apply it to 0 or 1.
21515 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21517         dfa: save memory for states
21518         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
21519         states if dfa has a lot of caches.
21521 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
21523         wchar, wctype-h: fix for MinGW 3.22.2
21524         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
21525         special invocation, to fix issues with MinGW 3.22.2 wchar.h
21526         when included from <string.h>.
21527         * lib/wctype.in.h [__MINGW32__]: Add special invocation
21528         convention for MinGW 3.22.2, to solve issues with their
21529         wctype.h when included from <ctype.h>.
21531 2016-10-05  Jim Meyering  <meyering@fb.com>
21533         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
21534         * lib/long-options.c (parse_long_options): Add a break statement
21535         to avoid this new warning/failure:
21536         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
21537           --create-testdir --dir=/t/x --with-tests --test long-options
21538         ../../gllib/long-options.c: In function ‘parse_long_options’:
21539         ../../gllib/long-options.c:66:12: error: this statement may \
21540           fall through [-Werror=implicit-fallthrough]
21541                    (*usage_func) (EXIT_SUCCESS);
21542                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
21544         utimecmp: avoid new GCC 7 warning from -Wbool-operation
21545         Testing this module would fail when using GCC 7 like this:
21546         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
21547           --dir=/tmp/x --with-tests --test utimecmp
21548         ../../gllib/utimecmp.c: In function ‘utimecmp’:
21549         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
21550           [-Werror=bool-operation]
21551                          time_t s = src_s & ~ (res == 2 * BILLION);
21552                                             ^
21553         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
21554           [-Werror=bool-operation]
21555                src_s &= ~ (res == 2 * BILLION);
21556                         ^
21557         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
21558         Instead, make it explicit that we intend to apply it to 0 or 1.
21560 2016-10-03  Pádraig Brady  <P@draigBrady.com>
21562         quotearg: minimize shell quoting using double quotes
21563         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
21564         quote in encountered then use double quotes (c style quoting)
21565         when possible, as it simplifies the quoting.
21566         * tests/test-quotearg-simple.c: Add test cases.
21567         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
21568         for the fact we now may write beyond the returned length.
21570 2016-10-02  Jim Meyering  <meyering@fb.com>
21572         vasnprintf.c: avoid spurious warning from GCC 7
21573         The presence of cpp directives renders this "FALLTHROUGH" comment
21574         ineffective, so does not suppress the -Wimplicit-fallthrough warning
21575         from GCC 7 built from git on 2016-10-02.
21576         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
21577         directives, so that it takes effect once again.  This is clearly
21578         not a proper change, and I will revert it once this bug is fixed:
21579         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
21581 2016-10-01  Jim Meyering  <meyering@fb.com>
21583         getprogname: correct the test for a __progname variable
21584         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
21585         and AC_LINK_IFELSE to check for a global __progname.  If found,
21586         define HAVE_VAR___PROGNAME.
21587         * lib/getprogname.c (getprogname): Reflect the new name of the
21588         feature- checked preprocessor symbol:
21589         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
21591 2016-09-28  Jim Meyering  <meyering@fb.com>
21593         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
21594         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
21595         fall-through case with a /* fallthrough */ comment.
21597         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
21598         * lib/dfa.c (dfassbuild): Mark the end of this case with a
21599         /* fallthrough */ comment.
21601         getprogname: avoid __progname vs program_invocation_short_name pitfall
21602         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
21603         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
21604         not with Fedora 24's glibc-2.23.1-10.
21605         * lib/getprogname.c (__progname): Move this declaration down...
21606         (getprogname): ... into the #elif block where used, and make it
21607         explicitly "extern".
21609         getprogname: port to OpenBSD 5.1
21610         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
21611         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
21612         * modules/getprogname (configure.ac): Move most of this code...
21613         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
21614         increment serial number, and add a test for __progname.
21615         https://bugs.gnu.org/24562
21616         Reported by Nelson H. F. Beebe.
21618 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21620         sched: port to GCC 6.2.1 on macOS Sierra
21621         Problem reported by Denis Davydov in:
21622         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
21623         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
21624         Include <sys/cdefs.h> before <sched.h>.
21625         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
21626         so that we needn’t worry about the sched.h include bug here.
21627         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
21628         and include it before <sched.h> if it exists, when
21629         checking for <sched.h>.
21631         tests/init.sh: port Alpine fix to AIX 7.1
21632         * tests/init.sh (compare_): When attempting to use diff -U3,
21633         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
21634         diff -u not outputting a space after leading '+', as the users
21635         of 'compare' should not be that picky about its output format.
21636         In the AIX 7.1 case, return with diff exit status (or with 2 if
21637         trouble), instead of some random nonzero exit status.
21638         * tests/test-init.sh (test_compare): Remove space after leading
21639         '+', so that AIX 7.1 'diff' passes the test.
21641 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21643         nl_langinfo: pacify GCC
21644         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
21645         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
21647         stdint: also set GL_GENERATE_LIMITS_H
21648         Problem reported by Jim Meyering in:
21649         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
21650         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
21652         limits-h, stdint: Don't assume extensions, fix typo
21653         * m4/limits-h.m4 (gl_LIMITS_H):
21654         * m4/stdint.m4 (gl_STDINT_H):
21655         Don't assume AC_USE_SYSTEM_EXTENSIONS.
21656         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
21657         reported by Jim Meyering in:
21658         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
21660 2016-09-21  Jim Meyering  <meyering@fb.com>
21662         getprogname: port to AIX
21663         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
21664         and strdup to obtain a short program name string.  Using code from
21665         Bruno Haible and an idea from Bastien ROUCARIÈS, in
21666         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21667         Assaf Gordon reported that this new file would fail to compile on
21668         AIX-7.1 32bit.
21670 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21672         extensions: fix typo in comment
21673         * m4/extensions.m4: Sync from Autoconf master.
21675         stdint: support new _WIDTH macros
21676         * doc/posix-headers/stdint.texi: Document this.
21677         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
21678         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
21679         support for INTMAX_WIDTH, etc. as well as for support for just C99.
21680         * modules/stdint (Depends-on): Add limits-h.
21681         (Makefile.am): Substitute HAVE_C99_STDINT_H.
21682         * modules/stdint-tests (Depends-on): Add extensions, so that
21683         INTMAX_MAX etc. are defined.
21684         * tests/test-stdint.c: Verify the new macros.
21686         limits-h: new module
21687         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
21688         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
21689         * doc/posix-headers/limits.texi: Document new module.
21690         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
21691         * modules/limit-h-tests, tests/test-limits-h.c: New files.
21693         stdio: don't redefine __USE_MINGW_ANSI_STDIO
21694         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
21695         if it is already defined.  Apparently GNU Emacs relies on this.  See:
21696         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
21698 2016-09-15  Eric Blake  <eblake@redhat.com>
21700         sys_types: avoid glibc 2.25 warnings about major()
21701         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
21702         older autoconf.
21703         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
21704         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
21705         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
21706         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
21708         mountlist: include sysmacros.h for glibc
21709         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
21710         AC_HEADER_MAJOR.
21711         * lib/mountlist.c (includes): Use correct headers.
21713 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21715         extensions: port to more ISO C TSes
21716         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
21717         master, to add support for more recent ISO C TRs and TSes.
21719 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21721         intprops: new macro TYPE_WIDTH
21722         * lib/intprops.h (TYPE_WIDTH): New macro.
21723         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
21724         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
21725         * lib/parse-datetime.y (parse_datetime2):
21726         Use it.
21728         extensions: port to recent ISO C TRs
21729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
21730         Sync from Autoconf master, to add support for recent ISO C TRs.
21731         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
21732         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
21733         the MinGW option is not an extension.
21735 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
21737         dfa: port to Solaris 9
21738         Problems reported by Tom G. Christensen in:
21739         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
21740         * modules/dfa (Depends-on): Add isblank.
21741         * modules/dfa-tests (dfa_match_aux_LDADD):
21742         Rename from test_stat_LDADD, to fix typo.
21743         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
21745 2016-09-10  Jim Meyering  <meyering@fb.com>
21747         strverscmp: avoid link failure on OS X
21748         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
21749         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
21751 2016-08-16  Jim Meyering  <meyering@fb.com>
21753         dfa: new module, importing grep's DFA matcher
21754         Since grep's DFA matcher is now being used by two gnulib-enabled
21755         projects, grep and sed, it makes sense to version-control its
21756         sources and unit tests in one place: here.
21757         * modules/dfa: New module.
21758         * modules/dfa-tests: New file.
21759         * lib/dfa.c: New file, from grep.
21760         * lib/dfa.h: Likewise.
21761         * lib/localeinfo.c: Likewise.
21762         * lib/localeinfo.h: Likewise.
21763         * tests/dfa-match-aux.c: Likewise.
21764         * tests/dfa-invalid-char-class.sh: Likewise.
21765         * tests/dfa-match.sh: Likewise, with minor changes.
21766         * MODULES.html.sh (Misc): Add "dfa" to this list.
21768 2016-09-09  Jim Meyering  <meyering@fb.com>
21770         getprogname-tests: don't depend on assert-h
21771         * modules/getprogname-tests (Depends-on): Remove assert-h.
21772         It was not needed, and in fact would cause build failure for
21773         coreutils on some systems.  Reported by Assaf Gordon in https:
21774         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
21776 2016-09-07  Jim Meyering  <meyering@fb.com>
21778         getprogname-tests: work also when EXEEXT is nonempty
21779         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
21780         * tests/test-getprogname.c (main): Use it.
21781         Suggested by Gisle Vanem.
21783 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
21785         getprogname: fix errors in previous change
21786         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
21787         s/program_invocation_name/base/
21788         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
21790 2016-09-08  Pádraig Brady  <P@draigBrady.com>
21792         parse-datetime: restrict debug output to input string
21793         * lib/parse-datetime.y (parse_datetime2): If we parse
21794         all of the input but determine it's invalid, ensure
21795         we don't output the now invalid input pointer.
21796         This issue was seen with `date -d 'now +1'`.
21798 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
21800         flexmember: new macro FLEXALIGNOF
21801         * lib/flexmember.h: Include <stddef.h>, for offsetof.
21802         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
21803         this macro.  Update comments.
21805 2016-09-07  Jim Meyering  <meyering@fb.com>
21807         getprogname: port to systems with __argv (mingw, msvc)
21808         * lib/getprogname.c (getprogname): Include "dirname.h" and use
21809         last_component: more general than open coding it with hard-coded "/".
21810         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
21811         * modules/getprogname (Depends-on): Add dirname-lgpl.
21812         (configure.ac): Check for __argv in <stdlib.h>.
21813         * modules/getprogname-tests: New file.
21814         * tests/test-getprogname.c: New file.
21815         Suggested by Gisle Vanem in
21816         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
21818 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
21820         flexmember: port better to GCC + valgrind
21821         With a char[] flexible array member in a struct with nontrivial
21822         alignment, GCC-generated code can access past the end of the
21823         array, because GCC assumes there are padding bytes to get the
21824         struct aligned.  So the common idiom of malloc (offsetof (struct
21825         s, m), n) does not properly allocate an n-byte trailing member, as
21826         malloc’s argument should be the next multiple of alignof (struct s).
21827         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
21828         Although C11 apparently permits this GCC optimization (i.e., there
21829         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
21830         See the thread containing:
21831         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
21832         * lib/flexmember.h: New file.
21833         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
21834         * lib/localename.c, lib/time_rz.c:
21835         Include flexmember.h.
21836         * lib/fnmatch_loop.c (struct patternlist):
21837         * lib/localename.c (struct hash_node):
21838         Use FLEXIBLE_ARRAY_MEMBER.
21839         * lib/fnmatch_loop.c (EXT):
21840         * lib/fts.c (fts_alloc):
21841         * lib/glob.c (glob_in_dir):
21842         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
21843         * lib/localename.c (gl_lock_define_initialized):
21844         * lib/time_rz.c (tzalloc):
21845         Use FLEXSIZEOF instead of offsetof.
21846         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21847         Check that the size of the struct can be taken.
21848         * modules/flexmember (Files): Add lib/flexmember.h.
21849         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
21850         Add flexmember.
21852 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21854         getprogname: port to Solaris 10
21855         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
21856         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
21857         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
21859         stdalign: correct mistake in alignof doc
21860         Problem reported by Joseph Myers in:
21861         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
21862         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
21863         alignof(S) where S is a structure containing a flexible array
21864         member.  The Gnulib substitute does not support this, but C11 does.
21866 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
21868         main.mk: remove sc_program_name, since there is no more need to
21869         use set_program_name in tools (getprogname is enough for most
21870         of the cases).
21871         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
21872         * top/maint.mk (sc_program_name): Remove.
21874 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
21876         Port tests away from progname, since modules that need the
21877         program name already depend on getprogname.
21878         * modules/acl-tests (Depends-on): Remove progname.
21879         * modules/argmatch (Depends-on): Likewise.
21880         * modules/argmatch-tests (Depends-on): Likewise.
21881         * modules/argp-tests (Depends-on): Likewise.
21882         * modules/argp-version-etc-tests (Depends-on): Likewise.
21883         * modules/array-list-tests (Depends-on): Likewise.
21884         * modules/array-oset-tests (Depends-on): Likewise.
21885         * modules/avltree-list-tests (Depends-on): Likewise.
21886         * modules/avltree-oset-tests (Depends-on): Likewise.
21887         * modules/avltreehash-list-tests (Depends-on): Likewise.
21888         * modules/carray-list-tests (Depends-on): Likewise.
21889         * modules/copy-file-tests (Depends-on): Likewise.
21890         * modules/exclude-tests (Depends-on): Likewise.
21891         * modules/fchownat-tests (Depends-on): Likewise.
21892         * modules/fdopendir-tests (Depends-on): Likewise.
21893         * modules/filenamecat-tests (Depends-on): Likewise.
21894         * modules/fstatat-tests (Depends-on): Likewise.
21895         * modules/fstrcmp-tests (Depends-on): Likewise.
21896         * modules/linked-list-tests (Depends-on): Likewise.
21897         * modules/linkedhash-list-tests (Depends-on): Likewise.
21898         * modules/mkdirat-tests (Depends-on): Likewise.
21899         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
21900         * modules/nonblocking-socket-tests (Depends-on): Likewise.
21901         * modules/obstack-printf-tests (Depends-on): Likewise.
21902         * modules/openat-tests (Depends-on): Likewise.
21903         * modules/parse-datetime-tests (Depends-on): Likewise.
21904         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
21905         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
21906         * modules/quotearg-simple-tests (Depends-on): Likewise.
21907         * modules/quotearg-tests (Depends-on): Likewise.
21908         * modules/rbtree-list-tests (Depends-on): Likewise.
21909         * modules/rbtree-oset-tests (Depends-on): Likewise.
21910         * modules/rbtreehash-list-tests (Depends-on): Likewise.
21911         * modules/spawn-pipe-tests (Depends-on): Likewise.
21912         * modules/system-quote-tests (Depends-on): Likewise.
21913         * modules/uniname/uniname-tests (Depends-on): Likewise.
21914         * modules/uninorm/nfc-tests (Depends-on): Likewise.
21915         * modules/uninorm/nfd-tests (Depends-on): Likewise.
21916         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
21917         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
21918         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
21919         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
21920         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
21921         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
21922         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
21923         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
21924         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
21925         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
21926         * modules/unlinkat-tests (Depends-on): Likewise.
21927         * modules/version-etc-tests (Depends-on): Likewise.
21928         * modules/xalloc-die-tests (Depends-on): Likewise.
21929         * modules/xmemdup0-tests (Depends-on): Likewise.
21930         * modules/xprintf-posix-tests (Depends-on): Likewise.
21931         * modules/xvasprintf-tests (Depends-on): Likewise.
21932         * tests/test-argmatch.c: Do not include progname.h.
21933         (main) Stop calling set_program_name.
21934         * tests/test-argp-version-etc.c: Likewise.
21935         * tests/test-argp.c: Likewise.
21936         * tests/test-argv-iter.c: Likewise.
21937         * tests/test-array_list.c: Likewise.
21938         * tests/test-array_oset.c: Likewise.
21939         * tests/test-avltree_list.c: Likewise.
21940         * tests/test-avltree_oset.c: Likewise.
21941         * tests/test-avltreehash_list.c: Likewise.
21942         * tests/test-carray_list.c: Likewise.
21943         * tests/test-copy-acl.c: Likewise.
21944         * tests/test-copy-file.c: Likewise.
21945         * tests/test-exclude.c: Likewise.
21946         * tests/test-fchownat.c: Likewise.
21947         * tests/test-fdopendir.c: Likewise.
21948         * tests/test-filenamecat.c: Likewise.
21949         * tests/test-fstatat.c: Likewise.
21950         * tests/test-fstrcmp.c: Likewise.
21951         * tests/test-linked_list.c: Likewise.
21952         * tests/test-linkedhash_list.c: Likewise.
21953         * tests/test-mkdirat.c: Likewise.
21954         * tests/test-nonblocking-pipe-main.c: Likewise.
21955         * tests/test-nonblocking-socket-main.c: Likewise.
21956         * tests/test-obstack-printf.c: Likewise.
21957         * tests/test-openat.c: Likewise.
21958         * tests/test-parse-datetime.c: Likewise.
21959         * tests/test-pipe-filter-gi1.c: Likewise.
21960         * tests/test-pipe-filter-gi2-main.c: Likewise.
21961         * tests/test-pipe-filter-ii1.c: Likewise.
21962         * tests/test-pipe-filter-ii2-main.c: Likewise.
21963         * tests/test-quotearg-simple.c: Likewise.
21964         * tests/test-quotearg.c: Likewise.
21965         * tests/test-rbtree_list.c: Likewise.
21966         * tests/test-rbtree_oset.c: Likewise.
21967         * tests/test-rbtreehash_list.c: Likewise.
21968         * tests/test-sameacls.c: Likewise.
21969         * tests/test-set-mode-acl.c: Likewise.
21970         * tests/test-spawn-pipe-main.c: Likewise.
21971         * tests/test-system-quote-main.c: Likewise.
21972         * tests/test-unlinkat.c: Likewise.
21973         * tests/test-version-etc.c: Likewise.
21974         * tests/test-xalloc-die.c: Likewise.
21975         * tests/test-xfprintf-posix.c: Likewise.
21976         * tests/test-xmemdup0.c: Likewise.
21977         * tests/test-xprintf-posix.c: Likewise.
21978         * tests/test-xvasprintf.c: Likewise.
21979         * tests/uniname/test-uninames.c: Likewise.
21980         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21981         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21982         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21983         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21984         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21985         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21986         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21987         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21988         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21989         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21990         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21991         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21992         * tests/test-c-stack.c: (program_name): Do not define.
21993         (main): Do not set program_name.
21994         * tests/test-closein.c: Likewise.
21995         * tests/test-xstrtol.c: Likewise.
21996         * tests/test-yesno.c: Likewise.
21998 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
22000         Port modules to use getprogname explicitly, instead of requiring
22001         progname to be used (or program_name to be provided).
22002         * lib/argmatch.c: Do not include progname.h.
22003         [TEST] (program_name): Do not define.
22004         [TEST] (main): Call getprogname instead of using program_name.
22005         * lib/c-stack.c: Do not include progname.h.
22006         (program_name): Do not define.
22007         (die): Call getprogname instead of using program_name.
22008         * lib/chdir-long.c: Do not include progname.h.
22009         [TEST_CHDIR] (main): Do not set program_name.
22010         * lib/error.c [!_LIBC]: Include progname.h.
22011         [!_LIBC] (program_name): Define using getprogname.
22012         * lib/euidaccess.c: Do not include progname.h.
22013         [TEST] (main): Do not set program_name.
22014         * lib/git-merge-changelog.c: Include getprogname.h instead of
22015         progname.h.
22016         (usage): Call getprogname instead of using program_name.
22017         (main): Likewise.  Stop calling set_program_name.
22018         * lib/group-member.c: Do not include progname.h.
22019         [TEST] (main): Do not set program_name.
22020         * modules/argmatch (Depends-on): Add getprogname.
22021         * modules/c-stack (Depends-on): Likewise.
22022         * modules/error (Depends-on): Likewise.
22023         * modules/git-merge-changelog (Depends-on): Likewise.
22024         Also remove progname.
22026 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
22028         * NEWS: Document the deprecation of the 'progname' module.
22030 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
22032         getprogname: new module
22033         This provides a LGPL module for getting the name of the current
22034         program, using the same API found on *BSD systems.
22035         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
22036         * modules/getprogname: New files.
22037         * MODULES.html.sh (Misc): Add getprogname.
22039 2016-09-02  Jim Meyering  <meyering@fb.com>
22041         manywarnings: add -fno-common
22042         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
22043         to the list.  Quoting the manual, "Compiling with -fno-common is
22044         useful on targets for which it provides better performance, or if
22045         you wish to verify that the program will work on other systems that
22046         always treat uninitialized variable declarations this way [putting
22047         it in the data section]."  If diffutils had been using this sooner,
22048         it would have prevented this duplicate declaration issue:
22049         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
22051 2016-08-31  Simon Josefsson  <simon@josefsson.org>
22053         parse-datetime: Fix typo.
22054         * lib/parse-datetime.y (parse_datetime2): Fix typo.
22056 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22058         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
22059         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
22060         GCC 5 and 6 that have __builtin_sub_overflow but not
22061         __builtin_sub_overflow_p.  With the recent changes, these
22062         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
22063         implementation than with INT_SUBTRACT_OVERFLOW implementation,
22064         since the former needs just one runtime comparison whereas the
22065         latter needs two.
22067         strverscmp: sync with glibc
22068         Although this doesn't exactly synchronize with glibc
22069         byte-for-byte, it makes the code behave the same as glibc.
22070         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
22071         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
22072         difference shouldn't matter in practical use.  All uses changed
22073         back to isdigit.
22074         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
22075         (next_state): Now unsigned char array; redo elements.
22076         (result_type): Now signed char array; redo elements.
22077         (__strverscmp): Fix glibc bug 9913 by using new states.
22078         * tests/test-strverscmp.c (main): Test glibc bug 9913.
22080 2016-08-29  Jim Meyering  <meyering@fb.com>
22082         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
22083         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
22084         similarly to how it was done to intprops.h.
22086 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22088         intprops.h: port recent changes to GCC 6.2.0
22089         * lib/intprops.h (__has_builtin): Move earlier.
22090         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
22091         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
22092         the last argument can be null.  All uses changed.
22093         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
22094         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
22095         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
22096         and it's not clear which GCC versions it works for.
22097         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
22098         its definiens.
22100         intprops.h: use __typeof__ with GCC 7
22101         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
22102         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
22103         This avoids computing the expression's value (which might overflow!).
22105 2016-08-29  Jim Meyering  <meyering@fb.com>
22107         intprops.h, xalloc-oversized.h: work with gcc 7
22108         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
22109         __builtin_mul_overflow each accept a NULL pointer as the third
22110         argument.  However in gcc 7, that is no longer accepted.
22111         Instead, one must use the "_p"-suffixed names, with which, the
22112         third parameter is no longer a pointer.
22113         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
22114         the definition: not true for gcc 7 and subsequent.
22115         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
22116         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
22117         Provide new definitions for gcc 7 and subsequent.
22118         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
22119         that works with gcc-7.
22121         intprops.h: fix missing-backslash problems
22122         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
22123         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
22125 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22127         intprops: fix paren typo on old platforms
22128         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
22129         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
22130         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
22131         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
22132         && !defined LLONG_MAX]:
22133         Remove stray paren.
22135         intprops: port to OpenVMS
22136         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
22137         * doc/posix-headers/limits.texi: Document the problem.
22138         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
22139         Define if not already defined.
22141 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
22143         parse-datetime: improve debug implementation
22144         Follow-up to commit 12ad79069 ("add optional debug printing").
22145         Improve parse-datetime's debug implementation: remove macros,
22146         replace global debug flag variable with a function parameter,
22147         use nstrftime for formatting.
22148         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
22149         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
22150         (parse_datetime2): New function, accepts 'flags' parameter, supporting
22151         debug flag. Existing interface 'parse_datetime' left unmodified.
22152         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
22153         (struct parser_control): add 'parse_datetime_debug' member variable.
22154         (parse_datetime): Call new function 'parse_datetime2' without debug.
22155         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
22156         pc.parse_datetime_debug variable as needed.
22157         (to_year): Accept new flags parameter, instead of using global variable.
22158         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
22159         use struct 'debug' variable instead of global variable.
22160         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
22161         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
22162         correspnding functions directly instead of using macros.
22163         * modules/parse-datetime: Add gnulib's strftime module.
22165 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
22167         c-strcase-tests: port to EBCDIC
22168         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
22169         which assume ASCII encoding semantics to run only in ASCII
22170         mode, as they fail in EBCDIC.
22172         sigpipe-tests: fix typo
22173         * tests/test-sigpipe.sh: C, not B.
22175 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22177         canonicalize-lgpl: fix errno after malloca fails
22178         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
22179         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
22180         * lib/canonicalize-lgpl.c (__realpath):
22181         Don't assume malloca sets errno on failure.
22183 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22185         strtod: port errno handling to z/OS
22186         * lib/strtod.c (strtod): Save and restore errno more reliably.
22188 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
22190         strtod: port to z/OS
22191         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
22192         implementation.
22194 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22196         strtod: port to z/OS
22197         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
22198         implementation.
22200         regex, string: rename to avoid '__string'
22201         * lib/regex.h, lib/string.in.h: Do not use the identifier
22202         '__string', as it is effectively reserved by string.h on z/OS.
22204         c-strcase-tests, wcwidth-tests: depend on c-ctype
22205         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
22206         Add c-ctype.
22208 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
22210         thread: port to z/OS
22211         * lib/glthread/thread.c, lib/glthread/thread.h:
22212         Rudimentary gl_thread support for z/OS.
22214         maint: port tests to z/OS errno behavior
22215         * tests/test-nonblocking-reader.h:
22216         * tests/test-nonblocking-writer.h:
22217         Accommodate z/OS errno code preferences. (I believe this should
22218         still be within spec; IBM is good at following the letter if not
22219         the spirit of such things.)
22221         maint: preprocessor changes to support z/OS
22222         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
22223         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
22224         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
22225         * tests/test-nonblocking-pipe.h:
22227         fclose, strstr-simple, wchar: port to z/OS
22228         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
22229         Changes to the Autoconf M4 code to support z/OS.  Note that
22230         fclose() is broken in a different way on z/OS than it is on other
22231         systems, thus the special-case in fclose.m4.
22233         iconv_open-utf-tests, iconv-tests: port to EBCDIC
22234         * tests/test-iconv-utf.c, tests/test-iconv.c:
22235         Added appropriately conditional #pragmas so that the test strings
22236         in test-iconv-utf.c are correctly interpreted in ASCII instead of
22237         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
22238         addressed in a more portable way by simply rewriting all the ASCII
22239         literal characters as octal escapes, but then you would lose the
22240         partial readability that the strings have now. Also, iconv_open()
22241         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
22243         c-strcase-tests, wcwidth-tests: port to EBCDIC
22244         * tests/test-c-strcasecmp.c: Include c-ctype.h.
22245         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
22246         * tests/test-wcwidth.c: Likewise.
22248 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22250         stdbool: don't require _Bool for C++
22251         Problem reported by David Seifert in:
22252         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
22253         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
22254         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
22255         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
22256         stricter about checking that bool and _Bool are compatible in C.
22258 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22260         getdelim: remove dependency on realloc-posix
22261         * lib/canonicalize-lgpl.c (alloc_failed)
22262         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
22263         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
22264         Use __set_errno where needed, for consistency.
22265         * lib/getdelim.c (alloc_failed): New function.
22266         (getdelim): Use it.
22268 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
22270         parse-datetime: add optional debug printing
22271         Print parsing information, warnings, and errors to stderr.
22272         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
22273         * lib/parse-datetime.y:
22274         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
22275         (PROGRESS*): Same as DEBUG, for progress reporting.
22276         (dbg_printf): Print message to stderr, with 'date' prefix.
22277         (struct parser_control): Add 'debug_*_seen' variables.
22278         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
22279         (debug_print_current_time, debug_print_relateive_time): Prints the
22280         current/relative date/time value of parser_control.
22281         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
22282         (to_year): Warn about 2-digit year parsing.
22283         (yylex):   Warn about unrecognized words.
22284         (get_effective_timezone): Returns current timezone in minutes.
22285         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
22286         clearly and unambigiously as possible.
22287         (debug_mktime_not_ok): Print detailed information about failed
22288         date/time values.
22289         (parse_datetime): Add DEBUG messages for failures, warnings. Add
22290         PROGRESS messages for status messages.
22291         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
22293 2016-08-06  Jim Meyering  <meyering@fb.com>
22295         tests/init.sh: exclude dash with bad "local" semantics
22296         * tests/init.sh (gl_shell_test_script_): Add a function to
22297         eliminate a shell like "dash" (unlike bash, zsh) that has
22298         surprising/risky "local var='...'" semantics.  Inspired by
22299         the problem and discussion in https://bugs.gnu.org/24116#11.
22301 2016-08-02  Ján Tomko  <jtomko@redhat.com>
22303         maint.mk: expand the prohibit_doubled_word regex
22304         This check has a static list of words that are checked for
22305         repetitions.  Expand it before running the perl script to
22306         avoid using expensive captures.  This decreases the cost
22307         for libvirt from 1.66s to 0.66s.
22308         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
22309         (sc_prohibit_doubled_word): Use it.
22311 2016-07-26  Ján Tomko  <jtomko@redhat.com>
22313         useless-if-before-free: skip non-matching lines early
22314         * build-aux/useless-if-before-free: First match each line with the
22315         simple/quick /\bif\b/ and reject if there is no match. This often
22316         saves the cost of the much more involved regular expression.
22317         For libvirt, this decreases the cost from 1.44s to 1.02s.
22319 2016-07-26  Ján Tomko  <jtomko@redhat.com>
22321         maint.mk: speed up sc_po_check
22322         sc_po_check would skip files based on their names, or on the
22323         existence of files with derived names. Rewrite it to use perl
22324         instead of shell to make the check faster.
22325         * top/maint.mk (perl_translatable_files_list_): Define.
22326         (sc_po_check): Use it.
22328 2016-07-30  Ján Tomko  <jtomko@redhat.com>
22330         maint.mk: speed up require_config_h_first
22331         Instead of spawning three processes per file,
22332         rewrite the check in perl and run it once for all the files.
22333         * top/maint.mk (perl_config_h_first_): Define.
22334         (sc_require_config_h_first): Use it in place of shell code.
22336 2016-07-26  Ján Tomko  <jtomko@redhat.com>
22338         maint.mk: speed up sc_po_check
22339         sc_po_check would skip files based on their names, or on the
22340         existence of files with derived names. Rewrite it to use perl
22341         instead of shell to make the check faster.
22342         * top/maint.mk (perl_translatable_files_list_): Define.
22343         (sc_po_check): Use it.
22345 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22347         obstack: pacify GCC 6 with -Wnull-dereference
22348         Problem reported by Assaf Gordon in:
22349         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
22350         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
22351         Declare with __attribute_noreturn__.
22352         * lib/obstack.h (__attribute_noreturn__): New macro.
22354 2016-07-13  Eric Blake  <eblake@redhat.com>
22356         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
22357         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
22358         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
22360 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
22362         doc: mention glibc SSIZE_MAX buglet
22363         * doc/posix-headers/limits.texi (limits.h): Document the bug.
22365 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
22367         printf-posix: Fix mingw build
22368         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
22369         expression for detecting C symbol prefixes but forgot to qoute square
22370         brackets in the command line arguments for grep.  That way when
22371         building with mingw the condition was false although it ought to be
22372         true instead.  In particular scenarios this led to the following
22373         compile error:
22375             Cannot export rpl_printf: symbol not found
22376             Cannot export rpl_scanf: symbol not found
22377             collect2: error: ld returned 1 exit status
22379         Fix this by properly quoting square brackets.
22381 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22383         mktime: call tzset as per POSIX
22384         Problem reported by Ludovic Courtès in:
22385         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
22386         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
22387         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
22389 2016-06-26  Pádraig Brady  <P@draigBrady.com>
22391         fts: handle readdir() errors
22392         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
22393         but also upon error when it will also set errno.  Therefore
22394         flag the error case from readdir().  We treat the case where
22395         no items are read the same as if the dir can't be accessed,
22396         i.e. by setting fts_errno to FTS_DNR.
22398 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22400         intprops: port better to GCC 7
22401         GCC 7 __builtin_add_overflow supports a new usage form, where the
22402         last argument is a null pointer, and which merely returns 1 if an
22403         overflow would occur.  This is a constant expression if all
22404         arguments are constants, and should generate faster code when code
22405         needs to be generated.
22406         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
22407         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
22408         Use builtin operations if available.
22409         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
22410         operations are available, as it's almost surely faster.
22412 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22414         intprops-test: port to GCC 6
22415         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
22416         since the bug is not fixed in GCC 6.1.
22418 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
22420         xalloc-oversized: port to GCC 7; fewer warnings
22421         GCC 7 will have a better way to deal with integer overflow.
22422         Plus, fix a warnings problem reported by Tim Ruehsen in:
22423         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
22424         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
22425         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
22426         For GCC 5, use __xalloc_oversized if both args are constants,
22427         or if pedantic.
22429 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22431         regex: port to Sun C
22432         Reported by Daiki Ueno.
22433         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
22434         __restrict, in prototype.  This fixes a problem I introduced in
22435         the 2016-02-19 merge from glibc.
22437 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22439         stdbool: Restore __bool_true_false_are_defined check
22440         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
22441         __bool_true_false_are_defined is still defined, even with C++11.
22443 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
22445         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
22446         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
22448 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22450         Use GCC_LINT, not lint
22451         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
22452         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
22453         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
22454         Document problem with lint and _Noreturn.
22455         * lib/diffseq.h (IF_LINT, IF_LINT2):
22456         * lib/fts.c (sccsid):
22457         * lib/getndelim2.c (IF_LINT):
22458         * lib/gl_anylinked_list2.h (gl_linked_iterator)
22459         (gl_linked_iterator_from_to):
22460         * lib/gl_anytree_list2.h (gl_tree_iterator)
22461         (gl_tree_iterator_from_to):
22462         * lib/gl_anytree_oset.h (gl_tree_iterator):
22463         * lib/gl_array_list.c (gl_array_iterator)
22464         (gl_array_iterator_from_to):
22465         * lib/gl_array_oset.c (gl_array_iterator):
22466         * lib/gl_carray_list.c (gl_carray_iterator)
22467         (gl_carray_iterator_from_to):
22468         * lib/idcache.c:
22469         * lib/inet_ntop.c (IF_LINT):
22470         * lib/regcomp.c (build_charclass_op, create_tree):
22471         * lib/regex_internal.c (re_acquire_state)
22472         (re_acquire_state_context):
22473         * lib/trigl.c (rcsid):
22474         * lib/trim.c (IF_LINT):
22475         * lib/vasnprintf.c (IF_LINT):
22476         * lib/verify.h (assume):
22477         Treat GCC_LINT like lint.
22479 2016-05-29  Bruno Haible  <bruno@clisp.org>
22481         secure_getenv: Port to many more platforms.
22482         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
22483         functions.
22484         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
22485         for non-BSD Unix platforms and for native Windows.
22486         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
22487         Prompted by a request from Nikos Mavrogiannopoulos.
22489 2016-05-27  Eric Blake  <eblake@redhat.com>
22491         canonicalize: Fix broken probe for realpath.
22492         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
22493         in logic introduced in 54615b95.
22495 2016-05-26  Eric Blake  <eblake@redhat.com>
22497         unsetenv: relax to LGPLv2+
22498         * modules/unsetenv (License): Match setenv license.
22500 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
22502         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
22503         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
22504         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
22505         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
22506         (commonarg, dirargs, dirs, infoarg, generate_ascii)
22507         (generate_html, generate_info, generate_tex, outdir)
22508         (source_extra, split, srcfile, texarg): Move above 'version'.
22509         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
22511 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22513         manywarnings: update for GCC 6.1
22514         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22515         Add GCC 6.1 options that apply to C.
22516         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
22517         do not apply to C, are obsolescent, etc.
22519 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
22521         glob: size_t overflow checks
22522         * lib/glob.c (__has_builtin): New macro.
22523         (size_add_wrapv, glob_use_alloca): New static functions.
22524         (glob, glob_in_dir): Check for size_t overflow in several places,
22525         and fix some size_t checks that were not quite right.
22527         glob: don't assume INT_MAX < SIZE_MAX
22528         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
22529         latter is not portable to (probably theoretical) hosts where
22530         SIZE_MAX <= INT_MAX.
22532 2016-05-09  Bruno Haible  <bruno@clisp.org>
22534         Fix undefined behaviour in gettext.h.
22535         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
22536         pointer's value after the storage it points to has been freed.
22537         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
22538         Spotted by Coverity.
22540 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22542         git-version-gen: avoid undefined shift
22543         Problem reported by Mosè Giordano in:
22544         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
22545         * build-aux/git-version-gen: Avoid undefined behavior if invoked
22546         with --prefix or --fallback but without a later argument.  While
22547         we're at it, omit unnecessary quotes.
22549 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
22551         glob: merge glibc changes into lib/glob.c
22552         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
22553         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
22554         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
22555           struct dirent [BZ #19779]
22556         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
22557           callback gl_readdir
22558         2015-10-20 Convert miscellaneous function definitions to prototype style
22559         2015-10-20 Convert 113 more function definitions to prototype style
22560           (files with assertions)
22561         2015-06-12 Fix getlogin_r namespace (bug 18527).
22562         2014-02-10 Use glibc_likely instead __builtin_expect.
22563         2013-10-20 When glob pattern contains a trailing slash match only
22564           directories. Fixes bug 10278.
22565         2013-09-04 glob: silence -Wattribute warnings
22566         2013-06-07 Avoid use of "register" as optimization hint.
22567         2012-09-25 Use size_t instead of int for internal variables in glob
22568           (bug 14621)
22569         2011-07-20 Check for overflows in expressions
22570         2011-05-28 Remove unused variable
22571         2011-05-22 Add a few more alloca size checks
22572         2010-03-27 Whitespace fixes
22573         2010-03-27 Fix one more issue with the glob patch
22574         2010-03-24 Fix glob with empty pattern
22575         2008-05-27 Remove useless more "if" tests before "free"
22576         * modules/glob (Depends-on): Add stdint.
22578 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22580         mktime: port to stricter signed overflow checking
22581         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
22582         (long_int): Require width for INT_MAX * 3 * (seconds per year),
22583         instead of merely for INT_MAX * 2.  In practice platforms that
22584         do the latter also do the former.
22585         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
22586         (shr): New static function, replacing SHR.  All uses changed.
22587         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
22588         and TIME_T_MAX.  All uses changed.
22589         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
22590         Use long_int, not time_t.
22591         (long_int_avg): New static function, replacing time_t_avg.
22592         All uses changed.  Round toward positive infinity, as that
22593         generates slightly better code.
22594         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
22595         by INT_ADD_WRAPV.
22596         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
22597         (convert_time): New static function.
22598         (ranged_convert): Use it
22599         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
22600         Use simpler test for loop exit.
22601         (__mktime_internal): Store negative of guessed offset, to simplify
22602         overflow checking.  Remove no-longer-needed test for small time_t
22603         overflows.
22605         mktime: speed up DEBUG_MKTIME benchmarks
22606         Call tzset just once, at the start, rather than for every test
22607         case.  This lets us measure the CPU cost of mktime as opposed to
22608         that of tzset.  This is relevant when TZ is not set and glibc is
22609         being used.  This speeds up tests by a factor of 40 on my Fedora
22610         23 x86-64 platform.
22611         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
22612         to call tzset and as a sanity check.  Later on, use localtime_r
22613         instead of localtime.
22615         mktime: resurrect DEBUG_MKTIME testing
22616         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
22617         Include <string.h>, for strcmp.
22619         mktime: simplify DEBUG_MKTIME
22620         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
22621         Simplify later usage accordingly.
22623         Port mktime_internal offset to unsigned time_t
22624         This avoids some assumptions about wraparound arithmetic on
22625         signed integer overflow.
22626         * lib/mktime-internal.h (mktime_offset_t): New type.
22627         (mktime_internal): Use it in decl.
22628         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
22630         * lib/mktime.c (__mktime_internal, localtime_offset):
22631         * lib/timegm.c (timegm): Use it.
22632         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
22633         (gl_FUNC_MKTIME): Require it.
22635 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
22637         xstrtol: prohibit monstrosities like "1bB"
22638         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
22639         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
22640         "B" only if the first suffix needs a base.
22641         * tests/test-xstrtol.sh: Test this.
22643 2016-04-21  Pádraig Brady  <P@draigBrady.com>
22645         xstrtod: reinstate setting of *result upon ERANGE
22646         * lib/xstrtod.c (XSTRTOD): The user may decide to use
22647         the returned limits upon ERANGE, so allow and document that.
22649 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
22651         xstrtod: modify *result only if no errors
22652         * lib/xstrtod.c (XSTRTOD).
22654 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
22656         btowc: document problems in C locale
22657         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
22658         with mbrtowc.  See: http://bugs.gnu.org/23269#32
22660 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22662         mktime: improve integer overflow checking
22663         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
22664         (WRAPV): Remove; no longer needed.
22665         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
22666         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
22667         Remove.  Use intprops.h defns instead.
22668         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
22669         Use bool for Boolean, for clarity.
22670         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
22671         detect integer overflow.
22672         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
22674         intprops: check two's complement assumption
22675         Suggested by Eric Blake in:
22676         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
22677         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
22678         short, int, long, and (if available) long long are two's complement.
22679         * modules/intprops (Depends-on): Add 'verify'.
22681         intprops, mktime, strtol: assume two's complement
22682         These macros were not portable to every conforming C11 ones'
22683         complement platform.  It's not worth the hassle of porting to some
22684         platforms that use ones' complement or signed magnitude, as such
22685         platforms are almost purely theoretical nowadays and porting even
22686         to some of them makes the code harder to review for little
22687         practical benefit.  Problem reported by Florian Weimer in:
22688         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
22689         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
22690         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
22691         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
22692         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
22693         (TYPE_SIGNED_MAGNITUDE):
22694         Remove.  All uses rewritten to assume two's complement, which is
22695         all we can reasonably test nowadays anyway.
22696         * top/maint.mk (_intprops_names): Remove the removed macros.
22698 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
22700         stdint: port to strict C11 left shift
22701         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
22702         Pacify clang -Wshift-negative-value, which should be an issue only
22703         on clang setups where stdint.h does not conform to C11 or to C++11.
22704         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
22706 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22708         mbrtowc: work around glibc bug#19932
22709         Fix mbrtowc so that it never returns -1 in the C locale,
22710         as this conflicts with a future version of POSIX
22711         http://austingroupbugs.net/view.php?id=663#c2738
22712         and causes problems with GNU grep: http://bugs.gnu.org/23234
22713         See glibc bug 19932:
22714         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
22715         * doc/posix-functions/mbrlen.texi (mbrlen):
22716         * doc/posix-functions/mbrtowc.texi (mbrtowc):
22717         Document the glibc bug.
22718         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
22719         Include hard-locale.h, locale.h.
22720         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
22721         if the bug is possible.
22722         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
22723         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
22724         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
22725         * modules/mbrtowc (Depends-on): Add hard-locale.
22726         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
22727         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
22728         * tests/test-mbrtowc5.sh: New file.
22730 2016-04-03  Pedro Alves  <palves@redhat.com>
22732         stdint: detect good enough pre-C++11 stdint.h in C++ mode
22733         When gnulib is configured in C++ mode for a system with a working C99
22734         implementation of stdint.h that predates C++11, gnulib ends up
22735         substituting stdint.h anyway.  This works on most targets, but on e.g.,
22736         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
22737         MinGW is LLP64.  Instead of trying to detect the right types, detect
22738         good-enough-pre-C++11 stdint.h and in such case define
22739         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
22740         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
22741         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
22742         conforms to C99.  If it does, check whether it hides symbols
22743         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
22744         does, define those macros in config.h.
22746 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22748         argp: merge changes from glibc
22749         Among other things, this should fix problems found by a Coverity
22750         scan and reported by Andrei Borzenkov:
22751         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
22752         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
22753         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
22754         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
22755         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
22756         * lib/argp.h:
22757         Merge changes from glibc.
22758         * tests/test-argp-2.sh: Adjust to match new behavior.
22760 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
22762         stddef: support configuring with g++
22763         Problem reported by Ángel González in:
22764         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
22765         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
22766         Do not define if _GCC_MAX_ALIGN_T is defined.
22768 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22770         test-framework-sh: minor cleanups
22771         * tests/init.sh (testdir_prefix_): Output a trailing newline,
22772         since strictly speaking POSIX requires this.
22773         (setup_): Do not use the variable 'fail', as that makes the
22774         trace output harder to read ('fail' is typically used by
22775         tests to mean the test failed).  Treat // portably.
22776         Check that new directory is not merely a sibling of the tmp dir.
22777         Avoid unnecessary invocation of tr.
22779         test-framework-sh: revert port to NetBSD 7.0
22780         It was a false alarm; I misinterpreted Assaf Gordon's report.
22781         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
22782         Restore.
22783         (test_dir_): Adjust to mktempd_ change.
22784         (mktempd_): Restore 2nd arg.  Use -t again.
22785         (base_template_, template_, nx_): Resurrect old code.
22787         Port better to Alpine Linux
22788         Its diff implementation does not support -c, but does support -U3.
22789         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
22790         * tests/init.sh (diff_opt_): New var.
22791         (compare_): Prefer diff -U3 to diff -c to plain diff.
22793 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22795         test-framework-sh: port to NetBSD 7.0
22796         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
22797         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
22798         Remove.  All uses removed.
22799         (test_dir_): Adjust to mktempd_ change.
22800         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
22801         (base_template_, template_, nx_): Simplify by hardcoding.
22803 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
22805         gitlog-to-changelog: suppress ignored chatter
22806         * build-aux/gitlog-to-changelog: Do not warn about skipping
22807         an SHA if it would have been ignored anyway.
22809 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
22811         setlocale: add "sv" to Windows language table
22812         * lib/setlocale.c (language_table) [W32]: Add "sv".
22813         Reported in <https://savannah.gnu.org/bugs/?44588>.
22815 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
22817         sys_select: port to new Cygwin
22818         Problem reported by Ken Brown in:
22819         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
22820         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
22821         diagnostics.
22823 2016-03-17  Jim Meyering  <meyering@fb.com>
22825         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
22826         * tests/test-userspec.c (main): Remove unnecessary braces and fix
22827         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
22828           test-userspec.c:176:9: error: statement is indented as if it were \
22829             guarded by... [-Werror=misleading-indentation]
22830                    {
22831                    ^
22832           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
22833                  if (!diag && !T[i].result)
22834                  ^~
22836 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22838         time_rz: port to clang -Wunused-const-variable
22839         * lib/time_rz.c (TZ): Remove.  All uses removed.
22841         std-gnu11: improve clang support
22842         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
22843         2016-03-15 Also try clang
22844         2016-03-15 Port C11 and C++11 testing to clang
22846         select: port more to Intel 2016.1.150 compiler
22847         Problem reported by Balázs Hajgató in:
22848         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
22849         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
22851 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22853         select: try to port to 2016.1.150 compiler
22854         Problem reported by Balázs Hajgató in:
22855         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
22856         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
22857         POSIX specifies 'restrict'.
22859 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
22861         localename-tests: memory allocation fixes
22862         * tests/test-localename.c (test_locale_name)
22863         (test_locale_name_thread): Don't call freelocale on a locale
22864         that was the base of a successful newlocale, as that
22865         results in a double free.  Problem reported by Assaf Gordon.
22866         (test_locale_name_thread): Free saved names after use, to pacify
22867         gcc -fsanitize=address.
22869 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22871         intprops: make .h file license match module
22872         * lib/intprops.h: Change the license wording to match glibc format.
22873         This is what is in modules/intprops anyway.  See:
22874         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
22876 2016-03-08  Eric Blake  <eblake@redhat.com>
22878         acl: fix missing return on Cygwin
22879         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
22880         fall off end of function. Fixes http://bugs.gnu.org/22949
22882 2016-03-05  Bruno Haible  <bruno@clisp.org>
22884         extern-inline: port to PGI CC
22885         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
22886         keyword 'inline'.
22887         Reported by Adam James Stewart in:
22888         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
22890 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22892         signbit: port back to pre-C++11 GCC
22893         * lib/math.in.h (signbit): Do previous change only if
22894         __cplusplus < 201103.  See Jonathan Wakely in:
22895         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
22897 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
22899         mountlist: recognize autofs-mounted remote file systems, too
22900         Originally reported at: https://bugzilla.redhat.com/1309247
22901         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
22902         "-hosts" because it is used by autofs to mount remote file systems.
22904 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22906         signbit: port to C++ with GCC 6
22907         * lib/math.in.h (signbit) [__cplusplus]:
22908         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
22909         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
22911         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
22913         regex: make it closer to libc
22914         Make Idx a signed type, rather than possibly unsigned.
22915         The unsignedness was not really buying us anything, since the code
22916         overflows for other reasons before getting to PTRDIFF_MAX.  Making
22917         it signed allows us to use -1 and -2 with abandon, like libc does,
22918         thus lessening the number of differences between gnulib and libc.
22919         Also, it should help avoid gratuitous warnings like the one
22920         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
22921         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
22924         regex: merge patches from libc
22926         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22927         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
22928         Convert miscellaneous function definitions to prototype style.
22929         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
22930         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
22931         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
22932         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
22933         (re_search_internal):
22934         Convert to prototype-style function definition.
22935         Use internal_function for internal functions.
22937 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
22939         stdalign: port to older HP and IBM cc
22940         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
22941         C compilers, by checking their version numbers.  These version
22942         numbers appear in MariaDB and in Qt code that dates way back and
22943         that conditiionally uses the 'aligned' attribute.
22945 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22947         stdalign: port to clang 3.7.0
22948         Problem reported by Herbert J. Skuhra in:
22949         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
22950         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
22951         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
22952         https://llvm.org/bugs/show_bug.cgi?id=26547
22954 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22956         readdir_r: now obsolescent
22957         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
22958         * lib/mountlist.c (read_file_system_list): Add a FIXME.
22960 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22962         misc: port better to gcc -fsanitize=address
22963         Without these patches, ./configure CFLAGS='-fsanitize=address'
22964         would compute incorrect values.  This patch fixes some (but not all)
22965         test failures with recent glibc, with this configuration.
22966         * m4/acl.m4 (gl_ACL_GET_FILE):
22967         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
22968         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
22969         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
22970         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
22971         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22972         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22973         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
22974         * m4/getline.m4 (gl_FUNC_GETLINE):
22975         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
22976         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
22977         * m4/regex.m4 (gl_REGEX):
22978         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22979         * tests/test-calloc-gnu.c (main):
22980         * tests/test-duplocale.c (main):
22981         * tests/test-getgroups.c (main):
22982         * tests/test-getline.c (main):
22983         * tests/test-inttostr.c (main):
22984         * tests/test-localename.c (test_locale_name)
22985         (test_locale_name_thread, test_locale_name_environ)
22986         (test_locale_name_default):
22987         * tests/test-regex.c (main):
22988         * tests/test-setlocale1.c (main):
22989         * tests/test-stat.h (test_stat_func):
22990         Free heap-allocated storage before exiting.
22991         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
22992         Don't match *_foo symbols inserted by AddressSanitizer.
22993         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
22995 2016-02-02  Jim Meyering  <meyering@fb.com>
22997         verify-tests: also remove stray test-verify.Tpo
22998         * modules/verify-tests (Makefile.am): Arrange for "make clean"
22999         to remove the test-verify.Tpo file that is left behind by
23000         the automake-generated rule upon compilation failure.
23001         Otherwise, that .Tpo file would cause a failed "make distcheck"
23002         at least for grep.
23004 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
23006         std-gnu11: new module
23007         This makes it easier for applications to prefer C11 and C++11
23008         to older variants, when compiling C and C++ code.
23009         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
23010         a nontrivial chunk of GPLed Autoconf source code.
23011         * COPYING: Mention the m4/*.m4 copyright situation.
23012         * MODULES.html.sh (std-gnu11): New module.
23013         * m4/std-gnu11.m4, modules/std-gnu11: New files.
23015 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23017         get-permissions, strftime: fix grammar in comments
23018         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
23019         some grammar fixes Alan Mackenzie made to GNU Emacs.
23021 2016-01-25  Daiki Ueno  <ueno@gnu.org>
23023         gettext: mark as obsolete
23024         Suggested by Paul Eggert in:
23025         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
23026         * modules/gettext (Status): Mark as obsolete.
23027         (Notice): Suggest to use 'gettext-h' instead.
23028         * modules/gettext-h (Description): Suggest GNU gettext, instead of
23029         the 'gettext' module.
23031 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
23033         gnulib-tool: don't give up on ln -s so easily
23034         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
23035         because an earlier one failed.  The targets could be on different
23036         file systems.  Problem reported by KO Myung-Hun in:
23037         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
23039         closedir: fix OS/2-related typos
23040         Problem reported by KO Myung-Hun in:
23041         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
23042         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
23043         in the last couple of changes.
23045 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
23047         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
23048         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
23049         copying a directory.
23051 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
23053         regex: treat [x] as x if x is a unibyte encoding error
23054         Problem reported by Aharon Robbins in:
23055         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
23056         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
23057         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
23059         closedir, dirfd, opendir: port to OpenSolaris 5.10
23060         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
23061         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23062         * m4/opendir.m4 (gl_FUNC_OPENDIR):
23063         Don't use ${word##pat} substitution, as it doesn't work in
23064         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
23065         http://bugs.gnu.org/22443#11
23067 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23069         bootstrap: use American spelling
23070         * build-aux/bootstrap: Honor American spelling.
23072 2016-01-22  Karl Berry  <karl@freefriends.org>
23074         * doc/posix-functions/localtime.texi,
23075         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
23077 2016-01-21  Bruno Haible  <bruno@clisp.org>
23079         hash-pjw-bare: fix comment
23080         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
23082         wcwidth: Replace also on OpenBSD 5.8
23083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
23084         * doc/posix-functions/wcwidth.texi: Update.
23086 2016-01-20  Pádraig Brady  <P@draigBrady.com>
23088         gnu-web-doc-update: fix addition of new files
23089         If there were already added (emnpty) dirs,
23090         then cvs aborts the add with the message:
23091           cvs [add aborted]: there is a version in <./dirname> already
23092         * build-aux/gnu-web-doc-update: Add directories separately
23093         to the addition of files, to avoid the above issue
23094         impacting the addition of files.
23096 2016-01-19  Daiki Ueno  <ueno@gnu.org>
23098         utimens-tests: avoid pulling gettext .m4 files
23099         Although this is not the right fix to the original problem:
23100         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
23101         it makes it possible again for consumer projects to use arbitrary
23102         version of gettext, through the steps described at:
23103         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
23104         See here for details:
23105         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
23106         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
23107         'gettext'.
23108         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
23109         'gettext'.
23111 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23113         regex: pacify static checkers
23114         Problem and draft fix reported by Aharon Robbins in:
23115         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
23116         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
23117         Clear memory to pacify static checkers.
23119         regex: fix [ diagnostic
23120         Problem and fix reported by Aharon Robbins in:
23121         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
23122         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
23124         regex: fix memory leaks
23125         Problem and draft fix reported by Aharon Robbins in:
23126         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
23127         * lib/regcomp.c (build_range_exp, build_charclass_op)
23128         * lib/regex_internal.c (re_dfa_add_node):
23129         Fix memory leak on failure.
23131 2016-01-18  Pádraig Brady  <P@draigBrady.com>
23133         fts: don't unconditionally use leaf optimization for NFS
23134         NFS st_nlink are not accurate on all implementations,
23135         leading to aborts() if that assumption is made.
23136         See <https://bugzilla.redhat.com/1299169>
23137         * lib/fts.c (leaf_optimization_applies): Remove NFS from
23138         the white list, and document the issue.
23140 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23141             KO Myung-Hun  <komh@chollian.net>
23143         gnulib-tool: don't assume ln -s works
23144         * gnulib-tool (func_ln_s): New function.
23145         (func_ln): Use it.
23147 2016-01-15  KO Myung-Hun  <komh@chollian.net>
23149         utimes: detect utimes() correctly on OS/2 kLIBC
23150         utimes() of OS/2 kLIBC has some limitations.
23151         1. OS/2 itself supports a file date since 1980 year in local time.
23152         2. OS/2 itself supports only even seconds for a file time.
23153         3. utimes() of OS/2 kLIBC does not work on an opened file.
23154         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
23155         * doc/posix-functions/utimes.texi: Document the above limitations of
23156         utimes() on OS/2 kLIBC.
23158 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23159             KO Myung-Hun  <komh@chollian.net>
23161         openat_proc_name: port to OS/2 kLIBC
23162         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
23163         instead of /proc/self/fd.
23164         * lib/openat-proc.c (openat_proc_name):
23165         Don't assume file name length is less than INT_MAX.
23166         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
23168 2016-01-14  KO Myung-Hun  <komh@chollian.net>
23170         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
23171         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
23172         definitions of intptr_t and uintptr_t (which use int and unsigned)
23173         to avoid clashes with declarations of system functions like sbrk.
23174         * lib/stdint.in.h (intptr_t, uintptr_t): Check
23175         _INTPTR_T_DECLARED before defining them.
23177         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
23178         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
23179         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
23180         Declare on kLIBC.
23181         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
23182         fd associated with dirp.
23183         (_gl_register_dirp_fd): New. Register fd associated with dirp to
23184         dirp_fd_list.
23185         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
23186         (dirfd): Implemented for kLIBC.
23187         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
23188         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
23189         succeeds.
23190         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
23191         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23192         (REPLACE_DIRFD): Define to 1 if replaced.
23193         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
23194         * modules/closedir (Depends-on): Add dirfd.
23195         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
23196         condition.
23197         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
23198         * modules/opendir (Depends-on): Add dirfd.
23200         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
23201         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
23202         * lib/dup.c (dup_nothrow): New.
23203         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
23204         (klibc_dup2): New.
23205         * lib/fcntl.c (klibc_fcntl): New.
23206         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
23207         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
23208         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
23209         fd.
23211         pipe_filter_ii_execute: port to OS/2 kLIBC
23212         Pipes on kLIBC do not support O_NONBLOCK like Win32.
23213         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
23214         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
23215         Reuse Win32 code on OS/2 kLIBC.
23216         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
23217         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
23219         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
23220         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
23221         static inline function.  The implementation of wcwidth in wcwidth.c
23222         causes a "conflicting types" error.
23223         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
23225         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
23226         spawn() on OS/2 kLIBC is not silly like one on Windows
23227         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
23228         empty string on OS/2 kLIBC.
23230         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
23231         On OS/2 kLIBC, select() works only on sockets.
23232         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
23234         binary-io: don't put fd in binary mode if it is a console on EMX
23235         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
23236         a console on EMX.
23238 2016-01-15  Pádraig Brady  <P@draigBrady.com>
23240         doc: mention unfixed issues with unsupported localtime() values
23241         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
23242         returns nonsense for localtime(2^56).
23243         * doc/posix-functions/localtime_r.texi: Likewise.
23245 2016-01-14  Pádraig Brady  <P@draigBrady.com>
23247         doc: mention setlocale() issues on OpenBSD
23248         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
23249         never fails, and the need to check categories individually.
23251 2016-01-14  Pádraig Brady  <P@draigBrady.com>
23253         sig2str: list all signals on FreeBSD >= 7
23254         FreeBSD >= 7 is contravening POSIX by not defining NSIG
23255         to the maximal statically defined signal value.
23256         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
23257         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
23258         where available, even when NSIG is defined.
23260 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
23262         acl-permissions: port to USE_ACL==0 platforms
23263         I ran into this problem when building bleeding-edge GNU Emacs
23264         with gcc -fsanitize=address on Fedora 23.  On this platform
23265         the ACL library does not pass the 'configure' test and Emacs
23266         then does not build due in part to what appear to be typos in the
23267         ACL part of Gnulib.
23268         * lib/acl-internal.c (free_permission_context):
23269         * lib/acl-internal.h (struct permission_context):
23270         Test whether USE_ACL is nonzero, not whether it is defined.
23272 2016-01-12  Martin Sebor  <msebor@redhat.com>
23274         mktime: rename macro to avoid glibc clash
23275         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
23276         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
23278 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
23280         Port "$@" to OpenIndiana ksh93
23281         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
23282         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
23283         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
23284         bug long-dead shells, so remove the workaround.
23285         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
23286         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
23287         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
23288         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
23289         Use "$@" instead of ${1+"$@"}.
23291         Port Universal Time settings to strict POSIX
23292         * build-aux/announce-gen, build-aux/bootstrap:
23293         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
23294         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
23295         * build-aux/gnupload, build-aux/mkinstalldirs:
23296         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
23297         * build-aux/update-copyright, build-aux/useless-if-before-free:
23298         * build-aux/vc-list-files, tests/test-strftime.c:
23299         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
23300         but POSIX says the behavior of TZ="UTC" is undefined.
23302 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
23304         msvc-inval: fix problem with unset shell var
23305         Problem reported by Karl Berry in:
23306         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
23307         * modules/msvc-inval (Depends-on):
23308         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
23309         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
23311 2016-01-01  Pádraig Brady  <P@draigBrady.com>
23313         tests: for compare_(), use cmp -s where available
23314         * tests/init.sh (compare_): Only fall back to cmp without
23315         the POSIX defined -s option, where this is not available.
23317 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23319         version-etc: new year
23320         * build-aux/gendocs.sh (version):
23321         * doc/gendocs_template:
23322         * doc/gendocs_template_min:
23323         * doc/gnulib.texi:
23324         * lib/version-etc.c (COPYRIGHT_YEAR):
23325         Update copyright dates by hand in templates and the like.
23326         * all files: Run 'make update-copyright'.
23328 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
23330         human: fix output buffer overrun by 1
23331         * lib/human.c (human_readable): Fix off-by-one typo in buffer
23332         calculation that could lead to a one-byte buffer overrun.
23334 2015-12-28  Daiki Ueno  <ueno@gnu.org>
23336         maint: fix operator precedence in mbrtowc test
23337         This is a fix for test breakage introduced by commit 45228d96; the
23338         equality expression must be parenthesized when negated with '!',
23339         otherwise we always get:
23341           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
23343         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
23344         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
23346 2015-12-23  James Youngman  <jay@gnu.org>
23348         regexprops-generic: update from regex.h
23349         * doc/regexprops-generic.texi: update by running the regexprops binary
23350         from findutils (the command line is 'regexprops "Regular Expressions"
23351         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
23352         gnulib with GNU grep had made this document out-of-date.
23354 2015-12-23  Pádraig Brady  <P@draigBrady.com>
23356         strftime-tests: avoid false failure on OS X
23357         * tests/test-strftime.c (struct localtime_rz_test): Add an
23358         ahistorical member which is used to warn rather than fail
23359         when tm_isdst isn't set for such entries.  This is the case for
23360         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
23362 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
23364         fts: ensure leaf optimization is used for NFS
23365         NFS provides usable dirent.d_type but not necessarily for all entries
23366         of large directories.  See <https://bugzilla.redhat.com/1252549>
23367         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
23369 2015-12-20  Pádraig Brady  <P@draigBrady.com>
23371         fts: enable leaf optimization for XFS
23372         XFS provides usable dirent.d_type only for DT_DIR,
23373         but the noleaf optimization still applies.
23374         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
23376 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
23378         intprops: comment fix
23379         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
23380         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
23382         intprops-test: work around GCC bug 68971
23383         Problem reported by Pádraig Brady in:
23384         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
23385         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
23386         (main): Add a case that better tests 64-bit long in this area.
23388 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
23390         gnulib-tool: allow multiple --local-dir usage
23391         * gnulib-tool: Use --local-dir to construct compound
23392         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
23393         PATH_SEPARATOR early.
23394         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
23395         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
23396         func_determine_path_separator because that needs to be detected
23397         earlier now.
23398         (func_determine_path_separator): New function.
23399         (func_path_foreach, func_path_foreach_inner): New functions.
23400         (func_path_prepend, func_path_append): Likewise.
23401         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
23402         (func_lookup_file, func_all_modules): Use new functions to work
23403         with local_gnulib_path.
23404         (func_modules_in_dir, func_exists_module): New callbacks for
23405         func_path_foreach.
23406         (func_exists_module, func_get_tests_module): Likewise.
23407         (func_is_local_file, func_should_symlink): New helper methods.
23408         (func_add_file, func_update_file): Use new func_should_symlink
23409         instead, DRY.
23410         (func_reconstruct_cached_local_gnulib_path): New helper.
23411         (func_reconstruct_cached_dir): New callback.
23412         (func_import): The cached_local_gnulib_dir renamed to
23413         cached_local_gnulib_path similarly to local_gnulib_dir.
23414         Use new func_reconstruct_cached_local_gnulib_path.
23415         (func_count_relative_local_gnulib_path): New sub-method.
23416         (func_create_testdir): Use func_should_symlink, DRY.
23417         (func_create_megatestdir): Use new functions to work with
23418         local_gnulib_path correctly.
23419         (func_append_local_dir): New helper.
23421 2015-12-08  Pádraig Brady  <P@draigBrady.com>
23423         fix freadptr to work with ungetc on all uClibc configs
23424         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
23425         where GNU coreutils cut(1) generates invalid output on uClibc
23426         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
23427         * lib/freadptr.c (freadptr): Return NULL if there are
23428         ungotten chars.  In this case freadseek() will iterate
23429         again to process the ungotten character.
23431 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
23433         xalloc-oversized: improve performance with GCC 5
23434         * lib/xalloc-oversized.h (xalloc_oversized):
23435         Improve performance with GCC 5 by using __builtin_mul_overflow.
23437 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23439         intprops: new public macro EXPR_SIGNED
23440         Emacs can use this macro, so make it public.
23441         * doc/intprops.texi (Arithmetic Type Properties): Rename from
23442         'Integer Type Determination', since some of these macros apply
23443         to non-integer types.  Clarify what kinds of constant expressions
23444         these macros return.  Say when the arguments can be non-integers.
23445         Mention newly published macro EXPR_SIGNED.
23446         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
23447         make it public.  All uses changed.
23449         intprops: fix typo in clang port
23450         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
23451         '__builtin_add_overflow' that is not caught by compiler.
23453 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
23455         test-timespec: fix typo in previous change
23456         * tests/test-timespec.c (main): Fix typo that reduced test quality.
23458         timespec-sub: fix overflow bug; add tests
23459         * lib/timespec-add.c (timespec_add):
23460         * lib/timespec-sub.c (timespec_sub):
23461         Work even if time_t is narrower than int (a theoretical
23462         possibility).  Redo code for a bit more clarity.
23463         * lib/timespec-sub.c (timespec_sub):
23464         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
23465         * modules/timespec-tests, tests/test-timespec.c: New files.
23467         intprops-test: suppress -Woverlength-strings
23468         Problem reported by Pádraig Brady in:
23469         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
23470         It is not worth the hassle to port this test to compilers that
23471         cannot handle long strings in diagnostics.
23472         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
23474 2015-11-03  Pádraig Brady  <P@draigBrady.com>
23476         quotearg: add quotearg_n_style_colon()
23477         This quotes with default options of the specified style,
23478         but with quoting enabled for instances of ':'.
23479         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
23480         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
23482 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23484         intprops: revise _WRAPV macros, revert _OVERFLOW
23485         The incompatible changes to the _OVERFLOW macros were too much of
23486         a hassle in practice, so revert them.  Instead, change the new
23487         _WRAPV macros to make them closer in behavior to GCC 5's new
23488         builtin_add_overflow etc. functions.  No other software was using
23489         these newly-added macros yet, so this should be OK.
23490         * NEWS: Revert previous change, since the incompatible change
23491         has been reverted, and nobody used the incompatible version.
23492         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
23493         Document revised behavior.
23494         (Integer Range Overflow): Adjust example to match above revisions.
23495         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
23496         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
23497         these can be used in integer constant expressions again.
23498         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
23499         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
23500         needed.
23501         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
23502         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
23503         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
23504         Remove, as they did not seem that useful.
23505         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
23506         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
23507         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23508         Support new semantics.
23509         (__has_builtin): New macro, if not alreay defined.
23510         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
23511         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
23512         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
23513         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
23514         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
23515         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
23516         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
23517         New macros.
23518         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
23520 2015-11-03  Jim Meyering  <meyering@fb.com>
23522         intprops: add parentheses for when OP has precedence lower than "-"
23523         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
23524         "a OP b" must be parenthesized for when OP is like "<<", which has
23525         lower precedence than the following "-". Reported by Pádraig Brady.
23527 2015-11-03  Pádraig Brady  <P@draigBrady.com>
23529         quotearg: constify get_quoting_style parameters
23530         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
23531         * lib/quotearg.c (get_quoting_style): Likewise.
23533 2015-11-02  Pádraig Brady  <P@draigBrady.com>
23535         quotearg: add support for $'' shell escaping
23536         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
23537         items and descriptions.
23538         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
23539         above types by quoting like "shell", but using $'...' syntax
23540         for non printable characters, which should provide unambiguous
23541         printable output for any input.
23542         * tests/test-quotearg-simple.c: Update accordingly.
23544 2015-11-02  Pádraig Brady  <P@draigBrady.com>
23546         maint: use a more standard return from mbrtowc test
23547         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
23548         from the test program as this is non standard and often
23549         indicates an unhandled case in the test program.
23550         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
23552 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23554         intprops: add WRAPV and const flavors for GCC 5
23555         If available, use GCC 5's builtin functions for efficient integer
23556         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
23557         and safely compute the low-order bits of the correct answer.
23558         A downside of these efficient functions is that they cannot be
23559         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
23560         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
23561         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
23562         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
23563         Document the changes.
23564         (Wraparound Arithmetic): New section.
23565         (Integer Range Overflow):
23566         Put this subsection last, since it's least useful.
23567         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
23568         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
23569         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
23570         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
23571         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
23572         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
23573         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
23574         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
23575         New macros.
23576         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
23577         Generate calls to GCC builtins if available, for speed.
23578         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
23579         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
23580         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
23581         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
23582         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
23583         (CHECK_QUOTIENT, CHECK_REMAINDER):
23584         Test WRAPV and CONST flavors (when available) too.
23586 2015-10-30  Pádraig Brady  <P@draigBrady.com>
23588         doc: use extended timezone format in iso-8601 example
23589         * doc/parse-datetime.texi: The standard states that extended format
23590         is to be used consistently throughout.
23591         Note that lib/parse-datetime.y can handle either tz format.
23593 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23595         stdalign: port to Sun C 5.9
23596         * doc/posix-headers/stdalign.texi: Document this.
23597         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
23598         __attribute__ ((__aligned__ (...))).
23600 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23602         time_rz: fix comment about tzalloc
23603         * lib/time_rz.c (tzalloc): Fix comment.
23605 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23607         stdalign: work around pre-4.9 GCC x86 bug
23608         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
23609         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
23610         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
23612 2015-10-18  Pádraig Brady  <P@draigBrady.com>
23614         maint.mk: sc_tight_scope: remove extraneous expressions
23615         * top/maint.mk (tight_scope): This is not really required since
23616         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
23617         that matches all nm entries.  But it does remove extraneous entries
23618         that may be confusing or cause issue in future maintenance.
23620 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23622         time_rz: return NULL if localtime_r fails
23623         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
23624         while still attempting to pacify bleeding-edge GCC.
23626         fts: port to C11 alignof
23627         * doc/posix-headers/stdalign.texi (stdalign.h):
23628         Document the C11 restriction.
23629         * lib/fts.c: Include stddef.h, for max_align_t.
23630         (fts_alloc): Align using max_align_t, not FTSENT.
23631         * modules/fts (Depends-on): Add stddef.
23633 2015-10-18  Jim Meyering  <meyering@fb.com>
23635         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
23636         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
23637         would see this:
23639         lib/time_rz.c: In function 'localtime_rz':
23640         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
23641           [-Werror=nonnull]
23642                    if (tm && !save_abbr (tz, tm))
23643                        ^
23645         That was complaining about "tm" because it is a parameter that was
23646         declared with the __nonnull__ attribute.
23647         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
23648         result of localtime_r.
23650 2015-10-17  Jim Meyering  <meyering@fb.com>
23652         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
23653         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
23654         name-extraction regexp mistakenly used \S+, and would mistakenly
23655         extract "*F" from "extern int *F()" rather than the desired "F".
23656         Use \w+ instead.
23658 2015-10-17  Jim Meyering  <meyering@fb.com>
23660         maint.mk: sc_tight_scope: factor and support OS X
23661         * top/maint.mk (_gl_tight_scope): Address three issues:
23662         - factor out four instances of code that wraps a string in "^...$"
23663         - allow nm-reported symbol names to have an optional leading "_"
23664         - add "main" to the list of ignored variable names, because on os x,
23665         "main" has nm-reported type "S" in the variable-checking section.
23667 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
23669         safe-alloc-tests: fix typo in license header
23670         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
23672 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
23674         copy-file: fix mem leak in error case
23675         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
23676         upon error opening or performing I/O to the src and dest files.
23678 2015-10-15  Mike Frysinger  <vapier@chromium.org>
23680         localename: control langinfo.h inclusion
23681         This header is only used to work around buggy behavior in old
23682         versions of glibc, so do not include it all the time.  Otherwise
23683         we get build failures on systems that do not provide langinfo.h.
23684         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
23685         in the source later on.
23686         The patch was originally submitted to gettext as:
23687         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
23689 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23691         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
23692         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
23693         * lib/u64.c, lib/unistd.c:
23694         Append 'typedef int dummy;', to pacify compilers that are picky
23695         about empty translation units.
23697 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
23699         accept4-tests: fix to avoid non portable flags
23700         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
23701         as they are the only documented ones, and passing others may trigger
23702         EINVAL (seen on FreeBSD 10.1-RELEASE).
23703         * doc/glibc-functions/accept4.texi: Mention that we don't provide
23704         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
23706 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
23708         gnulib-tool: fix tests of 'extensions' module
23709         This complements f8fe25fab60e3c687a124 commit.
23710         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
23711         emitting of initial gl_EARLY macros.
23712         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
23713         replaced with func_emit_pre_early_macros call.
23715 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23717         unicase/locale-language: fix typo in utf-8 cookie
23718         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
23719         Problem reported by Zbigniew Jędrzejewski-Szmek.
23721 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23723         xalloc: do not worry about GCC 5 warning on 32 bit
23724         * lib/xalloc.h: Revert previous change.
23725         I found a better way to fix this in coreutils.
23727 2015-10-02  Pádraig Brady  <P@draigBrady.com>
23729         xalloc: avoid GCC 5.1 warning on 32 bit
23730         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
23731         xalloc_oversized(), which was seen to give this warning
23732         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
23733         when simplifying conditional".
23735 2015-10-02  Daiki Ueno  <ueno@gnu.org>
23737         uniname/uniname-tests: avoid compiler warnings
23738         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
23739         unused local variables.
23740         (test_alias_lookup): Fix alias name display in failure cases.
23742 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23744         c-ctype: do not worry about EBCDIC + char signed
23745         Drop support for EBCDIC with char being signed, as this breaks too
23746         many programs.  Problem reported by Ben Pfaff in:
23747         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
23748         * lib/c-ctype.h: Verify that we are not using EBCDIC with
23749         char being signed.
23750         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
23751         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
23752         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
23753         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
23754         * tests/test-c-ctype.c (test_all):
23755         Simplify by assuming standard char values cannot be negative.
23756         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
23758 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23760         c-ctype: port better to z/OS EBCDIC
23761         Problems reported by Daniel Richard G. in:
23762         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
23763         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
23764         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
23765         (_C_CTYPE_OTHER_CNTRL): New macro.
23766         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
23767         from SCHAR_MIN, as the functions are defined only from values
23768         promoted from char or from unsigned char, not necessarily from
23769         signed char.
23771 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
23773         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
23775         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
23776         and ARFLAGS variables.  Doing this unconditionally could break
23777         later Automake's AM_PROG_AR invocation (at least it's
23778         AC_CHECK_TOOLS call to detect correct 'ar' binary).
23780         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
23781         Amsterdam Compiler Kit, so make the previous code to have effects
23782         only on ACK, and rather automatically call the Automake's
23783         AM_PROG_AR as soon as possible to decide other cases.
23785         References:
23786         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
23788         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
23789         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
23790         is possible, keep setting AR/ARFLAGS to reasonable defaults.
23791         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
23792         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
23793         'extensions' module is used.
23794         * modules/extensions (configure.ac-early): Remove as this snippet
23795         is added to gnulib-comp.m4 earlier anyway.
23797 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23799         sockets: MS Windows initalization fixes
23800         Problem reported by Test User in:
23801         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
23802         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
23803         Correct the endianness.
23804         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
23805         number mismatch, not just on <.  Cleanup before any such failure.
23807 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
23809         gc: fix detection of installed libgcrypt version
23810         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
23811         at least as recent as 1.4.4.  The previously used macro is not
23812         available now, since modules were removed in version 1.6.0.
23814 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23816         c-ctype: rewrite to use inline functions
23817         This simplifies maintenance, since it makes for just one
23818         implementation of each function, letting the compiler have the fun
23819         of optimization.  In practice this works well nowadays with GCC.
23820         E.g., c_isascii might need only three instructions even though the
23821         source code lists every ASCII character individually in a large
23822         switch statement.
23823         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
23824         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
23825         * NEWS: Document the API change.
23826         * lib/c-ctype.c: Drastically simplify, since this now just expands
23827         inline functions.
23828         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
23829         (C_CTYPE_INLINE): New macro.
23830         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
23831         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
23832         Verify that either ASCII or EBCDIC is being used.
23833         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
23834         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
23835         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
23836         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
23837         New private macros.
23838         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
23839         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
23840         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
23841         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
23842         (c_tolower, c_toupper): When converting, return the unsigned char,
23843         as that is what z/OS does.
23844         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
23845         of some c-ctype.h macros.
23846         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
23847         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
23848         c_tolower promotion to be compatible with z/OS.
23850 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
23852         gitlog-to-changelog: trim only trailing whitespaces
23853         This is fix for --format regression introduced by commit
23854         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
23855         doubled %n string) had no effect anymore.  This format
23856         specification has been used e.g. by GNU paxuitils (commit
23857         edfd8bcc3).
23859         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
23860         newlines in commmit messages.
23862 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23864         Test that c_iscntrl agrees with iscntrl, etc.
23865         Suggested by Daniel Richard G. in:
23866         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
23867         * modules/c-ctype-tests (Depends-on): Add ctype.
23868         * tests/test-c-ctype.c: Include <ctype.h>.
23869         (NCHARS): New constant.
23870         (test_agree_with_C_locale): New function.
23871         (main): Use it.
23872         (test_all): Use named constants.
23874         c-ctype: improve c_isascii testing
23875         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
23876         Add a test to count the number of ASCII characters.
23878 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23880         savewd: remove SAVEWD_CHDIR_READABLE
23881         It was problematic in the light of file systems that ignore umask.
23882         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
23883         * NEWS: Document this.
23884         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
23885         successful, -1 (setting errno) on failure, rather than something
23886         more complicated than that.
23887         * lib/mkdir-p.c (make_dir_parents):
23888         Do not use SAVEWD_CHDIR_READABLE.
23889         * lib/savewd.c (savewd_chdir):
23890         Remove support for SAVEWD_CHDIR_READABLE.
23891         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
23893         c-ctype: port better to EBCDIC
23894         Problems reported by Daniel Richard G. in
23895         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
23896         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
23897         Include "verify.h".
23898         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
23899         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
23900         Define as enum constants with value false, if not defined, so that
23901         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
23902         code more portable, as both branches of the 'if' are compiled on
23903         all platforms.
23904         (C_CTYPE_EBCDIC): New constant.
23905         Verify that the character set is either ASCII or EBCDIC.
23906         (to_char): New static function.
23907         (c_isascii, c_iscntrl):
23908         Assume standard control-character assignments for EBCDIC.
23909         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
23910         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
23911         Rewrite to use 'if' instead of 'ifdef'.
23912         Use to_char if non-ASCII.  Prefer <= to >=.
23913         Prefer true and false to 1 and 0, for booleans.
23914         (c_iscntrl): Use 'if', not 'ifdef'.
23915         * modules/c-ctype (Depends-on): Add verify.
23916         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
23917         (to_char): New function.
23918         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
23920 2015-09-21  Pádraig Brady  <P@draigBrady.com>
23922         nanosleep: fix return code for interrupted replacement
23923         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
23924         that we return -1 in the case the call is interrupted by a signal,
23925         rather than the current value of 1.
23926         Diagnosed and tested by Daniel Richard G.
23928 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
23930         Diagnose ERE '()|\1'
23931         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
23932         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
23933         track of the set of previously-completed subexpressions available
23934         before the first alternative, and restore this set just before
23935         parsing each subsequent alternative.  This lets us diagnose the
23936         invalid back-reference in the ERE '()|\1'.
23938         regex: merge patches from libc
23940         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
23941         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
23942         * lib/regex_internal.h:
23943         Include <libc-lock.h> instead of <bits/libc-lock.h>.
23945         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23946         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
23947         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
23948         wcscoll.
23949         * lib/regexec.c (check_node_accept_bytes): Likewise.
23951         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23952         Fix regex wcrtomb namespace (bug 18496).
23953         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23954         instead of wcrtomb.
23956         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23957         Fix regex wctype namespace (bug 18495).
23958         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
23959         instead of towlower.
23960         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23961         instead of iswlower.  Call __towupper instead of towupper.
23962         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23963         instead of iswalnum.
23965         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
23966         * lib/regcomp.c (parse_bracket_exp): Initialize type to
23967         COLL_SYM in a couple of places to avoid uninitialized variable
23968         wanings on tilegx gcc 4.8.2.
23970         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23971         * lib/regex_internal.h: Remove NOT_IN_libc.
23973         2014-11-17  Andreas Schwab  <schwab@suse.de>
23974         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
23976         2014-09-11  Roland McGrath  <roland@hack.frob.com>
23977         Move findidx nested functions to top-level.
23978         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
23979         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
23980         Pass new arguments to findidx.
23981         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
23982         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
23983         Don't #include it inside the function.  Pass new arguments to findidx.
23984         * lib/regex_internal.h:
23985         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
23986         (re_string_elem_size_at): Don't #include it inside the function.
23987         Pass new arguments to findidx.
23989         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23990         Check if DEBUG is defined in regex_internal.c
23991         * lib/regex_internal.c: Check if DEBUG is defined and is set.
23993 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
23995         ceill: detect buggy OpenBSD implementation
23996         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
23997         which returns zero for small values.  Discussed here:
23998         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
24000 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
24002         mountlist: add me_mntroot field on Linux machines
24003         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
24004         mount_entry so Linux machines based on /proc/self/mountinfo can
24005         distinguish between bind mounts and original mounts.  In reality bind
24006         mounts aren't treated differently than mountroot=/ mounts by the
24007         kernel, but the user often wants these bind mounts distinguished.
24008         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
24009         More details at https://pad.lv/1432871
24011 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
24013         doc: Describe to use multiple instances of gnulib
24014         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
24015         instances of gnulib with different modules can be used, for example one
24016         for a lib and another one for associated tools.
24018 2015-09-01  Pádraig Brady  <P@draigBrady.com>
24020         base32: mark function as __attribute__ const
24021         * lib/base32.h (isbase32): Mark __attribute__ const as
24022         suggested by GCC, and consistent with the base64 module.
24024 2015-08-20  Daiki Ueno  <ueno@gnu.org>
24026         gnulib-tool: don't transform binary files with sed
24027         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
24028         .mo and .class files.
24029         Reported by Denis Denisov.
24031 2015-08-10  Daiki Ueno  <ueno@gnu.org>
24033         gperf: respect silent rules
24034         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
24035         V_GPERF_0 for silent rules.
24036         * modules/iconv_open (Makefile.am): Use V_GPERF.
24037         * modules/unicase/locale-language (Makefile.am): Likewise.
24038         * modules/unicase/special-casing (Makefile.am): Likewise.
24039         * modules/unictype/category-byname (Makefile.am): Likewise.
24040         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
24041         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
24042         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
24043         * modules/unictype/property-byname (Makefile.am): Likewise.
24044         * modules/unictype/scripts (Makefile.am): Likewise.
24045         * modules/uninorm/composition (Makefile.am): Likewise.
24047 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24049         Improve port of stdalign to C++11
24050         Problem reported by Sundaram in:
24051         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
24052         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
24053         (__alignas_is_defined): Define if C++11 or newer.
24055 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
24057         pmccabe2html: fix gawk regex escaping
24058         * build-aux/pmccabe2html: Add one more backslash to properly
24059         escape the gsub replacement value.  Fixes this error:
24060         gawk: ./build-aux/pmccabe2html:425: \
24061         warning: escape sequence `\&' treated as plain `&'
24063 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
24065         time_rz: port to pedantic memcpy
24066         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
24067         that reject memcpy (..., NULL, 0).
24069 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
24071         time_rz: port better to MinGW
24072         Don't change tzname, as this makes MinGW dump core (Bug#21020).
24073         Instead, store the tzname copy in the struct tm_zone object.
24074         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
24075         * lib/strftime.c [!_LIBC]:
24076         * lib/time_rz.c: Include time-internal.h.
24077         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
24078         name from *TZ rather than from TZNAME, doable because *TZ now has
24079         a tzname_copy member.
24080         * lib/time-internal.h: New file, with contents taken from
24081         lib/time_rz.c.  It's separate because strftime.c now accesses
24082         struct tm_zone members.
24083         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
24084         New member tzname_copy.
24085         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
24086         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
24087         Initialize tzname_copy member.
24088         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
24089         in tzname_copy member.
24090         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
24091         (restore_tzname): Remove; no longer needed.  All calls removed.
24092         * modules/time_rz (Files): Add lib/time-internal.h.
24094         time: port __need_time_t to MinGW
24095         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
24096         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
24098 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
24100         strftime: fix newly-introduced bug on Solaris
24101         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
24102         consistently at the start, rather than doing some of the setup at
24103         the start and some in the %Z format spec.  This is cleaner, and
24104         works better with time_rz on platforms like Solaris where struct
24105         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
24106         mktime_z and localtime_rz can mess up the tzname cache.
24108         test-strftime: test for Solaris bug
24109         * modules/strftime-tests (Depends-on): Add strerror.
24110         * tests/test-strftime.c: Include <errno.h>.
24111         (posixtm_test): New function, containing the old 'main'.
24112         (struct tzalloc_test, struct localtime_rz_test): New types.
24113         (TZ, LT): New static vars.
24114         (tzalloc_test): New function.
24115         (main): Rewrite in terms of posixtm_test and tzalloc_test.
24117         time_rz: port to Solaris etc.
24118         Works around a tzname problem on platforms like Solaris that have
24119         tzname but not tm_zone, by setting tzname at the appropriate time
24120         and restoring it later.
24121         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
24122         New static vars.
24123         (save_abbr) [HAVE_TZNAME]: Set them.
24124         (revert_tz) [HAVE_TZNAME]: Clear or use them.
24125         (restore_tzname): New function.
24126         (localtime_rz, mktime_z): Use it.
24128         time_rz: now LGPL
24129         * modules/time_rz (License): Now LGPL, because strftime depends on it.
24131         time_rz: make a constant 'const'
24132         * lib/time_rz.c (local_tz): Now const.
24134         time_rz: fix off-by-one typo
24135         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
24137 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
24139         fprintftime, strftime: use timezone_t args
24140         * NEWS: Document the change.
24141         * lib/fprintftime.h (fprintftime):
24142         * lib/strftime.c (extra_args) [my_strftime]:
24143         * lib/strftime.h (nstrftime):
24144         Time zone arg is now of type timezone_t, not int.
24145         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
24146         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
24147         (my_strftime) [emacs && !my_strftime]:
24148         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
24149         Remove; Emacs doesn't need this any more.
24150         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
24151         fprintftime and nstrftime to call tzset.
24152         (ut) [!my_strftime]: Remove, replacing with ...
24153         (tz) [!my_stftime]: ... this new macro.  All uses changed.
24154         (strftime_case_): Use localtime_rz and mktime_z instead
24155         of localtime_r and mktime.
24156         * modules/fprintftime (Depends-on): Add time_rz.
24157         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
24158         * tests/test-strftime.c (main): Adjust to new nstrftime API.
24160         time_rz: new module
24161         * MODULES.html.sh: Add time_rz.
24162         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
24163         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
24164         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
24165         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
24166         New var HAVE_TIMEZONE_T (default 0).
24167         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
24168         New var GNULIB_TIME_RZ (default 0).
24169         * modules/time (time.h): Substitute the new vars.
24171         flexmember: license is now unlimited
24172         * modules/flexmember (License): Change to unlimited,
24173         since its only source file gives an unlimited license.
24175 2015-07-15  Eric Blake  <eblake@redhat.com>
24177         maint: update copyright paper procedures
24178         * config/srclist.txt: Drop outdated files.
24179         * doc/Copyright/conditions.txt: Update to latest.
24180         * doc/Copyright/assign.changes.manual: Delete.
24181         * doc/Copyright/assign.future.manual: Likewise.
24182         * doc/Copyright/assign.manual: Likewise.
24183         * doc/Copyright/assign.translation.manual: Likewise.
24184         * doc/Copyright/disclaim.changes.manual: Likewise.
24185         * doc/Copyright/disclaim.manual: Likewise.
24186         * doc/Copyright/disclaim.program: Likewise.
24188 2015-07-07  Daiki Ueno  <ueno@gnu.org>
24190         localename: fix link error on Illumos
24191         Illumos defines __sun, but does not have getlocalename_l nor the
24192         equivalent.  This partially reverts commit 387c214.
24193         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
24194         available, as well as uselocale.
24195         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
24196         use getlocalename_l if it is not available.
24198 2015-07-07  Daiki Ueno  <ueno@gnu.org>
24200         unistr/uN-strtok-tests: avoid a trivial leak
24201         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
24202         input and delim after the multibyte delimiter tests.
24204 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24206         file-has-acl, acl-permissions: fix HP-UX typos
24207         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
24208         * lib/file-has-acl.c (file_has_acl):
24209         * lib/set-permissions.c (context_acl_from_mode)
24210         (context_aclv_from_mode, set_acls):
24211         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
24212         They were introduced by the recent ACL changes.
24214         regex: match current GNU grep behavior
24215         These symbols have not matched GNU grep behavior for quite some time.
24216         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
24217         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
24218         Change to match current GNU behavior.
24219         Simplify by expressing it as differences from POSIX BREs and EREs.
24220         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
24222 2015-07-03  Jim Meyering  <meyering@fb.com>
24224         set-permissions.c: adjust acl_from_mode's cpp guard
24225         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
24226         directives identical to those guarding the sole use.
24227         Otherwise, on some systems, we'd get a warning about
24228         the function being defined but not used.
24229         Also, filter through cppi to correct misleading indentation
24230         of cpp directives.
24232 2015-07-03  Pádraig Brady  <P@draigBrady.com>
24234         tests: restrict shells to those that support 'local'
24235         The local keyword is very widely supported and used
24236         in tests in coreutils and grep at least.  Therefore
24237         restrict to testing with shells that support it.
24238         This mainly excludes /bin/sh on Solaris.
24239         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
24241 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
24242         and Daiki Ueno  <ueno@gnu.org>
24244         unistr/uN-strtok: handle multibyte delimiters
24245         Previously, uN_strtok moved PTR to the next unit to the token end.
24246         When DELIM contained a multibyte character, the new position could
24247         be a middle of a multibyte character.
24248         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
24249         after the token.
24250         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
24251         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
24252         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
24253         * modules/unistr/u8-strtok (Depends-on): Depend on
24254         unistr/u8-strmblen.
24255         * modules/unistr/u16-strtok (Depends-on): Depend on
24256         unistr/u16-strmblen.
24257         * modules/unistr/u32-strtok (Depends-on): Depend on
24258         unistr/u32-strmblen.
24259         * tests/unistr/test-u-strtok.h: New file.
24260         * tests/unistr/test-u8-strtok.c: New file.
24261         * tests/unistr/test-u16-strtok.c: New file.
24262         * tests/unistr/test-u32-strtok.c: New file.
24263         * modules/unistr/u8-strtok-tests: New file.
24264         * modules/unistr/u32-strtok-tests: New file.
24265         * modules/unistr/u16-strtok-tests: New file.
24267 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
24269         update-copyright: fix test failure with perl >= 5.22 (trivial)
24270         * build-aux/update-copyright: Escape a literal left curly bracket,
24271         required with perl >= 5.22
24273 2015-07-02  Daiki Ueno  <ueno@gnu.org>
24275         u{16,32}-strstr-tests: relax timeout condition
24276         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
24277         tests can take longer than 5 seconds to complete.
24278         Reported by Dagobert Michelsen in:
24279         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
24280         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
24281         seconds to 10 seconds.
24282         * tests/unistr/test-u32-strstr.c (main): Likewise.
24284 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
24286         gnulib-common.m4: change the ARFLAGS default to 'cr'
24287         In some GNU/Linux distributions people started to compile 'ar'
24288         binary with --enable-deterministic-archives (binutils project).
24289         That, however, in combination with previous autotools long time
24290         working default AR{_,}FLAGS=cru causes warnings on such
24291         installations:
24292         ar: `u' modifier ignored since `D' is the default (see `U')
24293         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
24294         set already.
24296 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
24298         selinux-h: avoid double free after *getfilecon()
24299         Originally reported by Ben Shelton on bug-tar:
24300         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
24301         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
24302         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
24303         param should be freed by freecon(3) (regardless the return value).
24305 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
24307         fix pty related tests issues on Windows (trivial)
24308         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
24309         however it's still present in tests/ subdirectory of the final project.
24310         Therefore avoid it to pass `make check`.
24311         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
24312         will just return -ENOSYS, so avoid this non applicable test allowing
24313         the build to proceed.
24315 2015-07-01  Pádraig Brady  <P@draigBrady.com>
24317         acl: fix definition of acl_from_mode on FreeBSD
24318         This was causing basic coreutils copy operations to fail
24319         with ENOTSUP or ENOENT error messages.
24320         * lib/acl-internal.h (acl_from_mode): Only define when
24321         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
24322         of acl_from_mode() defined in lib/set-permissions.c to
24323         be used on FreeBSD at least.
24324         * lib/set-permissions.c: Fix up comment spelling,
24325         and a redundant variable assignment; noticed in passing.
24327 2015-06-30  Pádraig Brady  <P@draigBrady.com>
24329         readutmp: port to FreeBSD >= 9
24330         * lib/readutmp.h: Map utmpxname() to setutxdb().
24331         With that coreutils who(1) and pinky(1) tests pass.
24333 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24335         mgetgroups: port to strict OS X
24336         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
24337         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
24338         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
24339         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
24341 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
24343         mgetgroups: port to strict OS X
24344         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
24345         Document the getgrouplist problem.
24346         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
24347         New macro.
24348         (mgetgroups): Use it.
24349         * m4/mgetgroups.m4 (gl_MGETGROUPS):
24350         Check for OS X signature for getgrouplist.
24352 2015-06-29  Jim Meyering  <meyering@fb.com>
24354         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
24355         It started like this when building coreutils' latest on OS X,
24356         invoking ./configure with a nonempty --cache=.cache:
24358           lib/linkat.c:46:42: error: operator '||' has no right operand
24359           lib/linkat.c: In function 'rpl_linkat':
24360           lib/linkat.c:330:27: error: #if with no expression
24362         Here's linkat.c's line 46:
24364           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
24366         Here's some context:
24368           $ grep linkat_nofoll .cache
24369           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
24370           $ grep LINKAT_SYM lib/config.h
24371           #define LINKAT_SYMLINK_NOTSUP
24373         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
24374         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
24375         but that violates a tenet of AC_CACHE_CHECK: it must
24376         have no side effect other than setting its cache variable.
24378         What happens is that when the cache is set, we'd skip the
24379         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
24380         defined to whatever value it happened to have in configure's
24381         environment.  In my case, it was not defined, so this later code:
24383           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
24384             [Define to 1 if linkat can create hardlinks to symlinks])
24386         would emit code with an empty RHS.
24388         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
24389         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
24391 2015-06-28  Jim Meyering  <meyering@fb.com>
24393         mountlist: avoid an unused-label warning on OS X
24394         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
24395         Building on OS X, I saw a warning about the "free_then_fail" label
24396         being unused.  Give it the _GL_UNUSED_LABEL attribute.
24398         error.c: correct printf-style format: %d -> %u
24399         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
24400         rather than %d, to match the type of "line_number", unsigned int.
24402 2015-06-25  Pádraig Brady  <P@draigBrady.com>
24404         fts: avoid reading beyond the heap allocation
24405         GCC 5.1.1 with -O2 and -fsanitize=address reports
24406         a read of size 4 from a heap object of size 3 is indeed invalid,
24407         though this may be due to incorrect padding assumptions by GCC, see:
24408         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24409         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
24410         * modules/fts: Depend on stdalign.
24412 2015-06-24  Pádraig Brady  <P@draigBrady.com>
24414         savedir: avoid undefined behavior in qsort call
24415         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
24416         "runtime error: null pointer passed as argument 1,
24417          which is declared to never be null"
24418         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
24420 2015-06-24  Pádraig Brady  <P@draigBrady.com>
24422         userspec: avoid undefined behavior in gettext call
24423         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
24424         "runtime error: null pointer passed as argument 2,
24425          which is declared to never be null"
24426         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
24428 2015-06-20  Glenn Morris  <rgm@gnu.org>
24430         gitlog-to-changelog: improve gitmerge.el commits
24431         Let the Emacs ChangeLog generation process exclude "skipped"
24432         messages from merge commits (Bug#20717).
24433         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
24435 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24437         wchar: fix MinGW compilation warnings
24438         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
24439         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
24440         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
24442 2015-06-20  Daiki Ueno  <ueno@gnu.org>
24444         uniname/uniname-tests: use pristine data files
24445         For copyright and maintenance reasons, use the data files from UCD
24446         without modification.
24447         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
24448         (getfield): Remove.
24449         (aliases_count): New global variable.
24450         (fill_names): Skip comments and empty lines in the input.  Don't
24451         use getfield.
24452         (fill_aliases): Likewise.
24453         (main): Change the expected command line arguments to:
24454         NAMES... ["--" ALIASES...].
24455         * tests/uniname/test-uninames.sh: Adjust to the change in
24456         test-uninames.c.
24457         * tests/uniname/UnicodeDataNames.txt: Remove.
24458         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
24459         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
24460         file from Unicode 8.0.0.
24462 2015-06-19  Pádraig Brady  <P@draigBrady.com>
24464         linked-list, linkedhash-list: avoid compiler warnings
24465         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
24466         -Werror=suggest-attribute=pure (from GCC 5.1.1).
24468 2015-06-19  Daiki Ueno  <ueno@gnu.org>
24470         libunistring: bump minimum version to 0.9.6
24471         * all modules depending on updated Unicode data: Regenerate.
24472         The modules are listed by a script that does:
24473         - for each file listed by: git show --oneline --name-only 705f4efc
24474           - deduce the containing modules, based on "Files:"
24475         - deduce the modules which depend on the containing modules, based
24476           on "Depends-on:"
24478 2015-06-18  Daiki Ueno  <ueno@gnu.org>
24480         uniname/uniname: update to Unicode 8.0.0
24481         * lib/uniname/uninames.h: Regenerate.
24482         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
24483         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
24485 2015-06-18  Daiki Ueno  <ueno@gnu.org>
24487         libunistring: update to Unicode 8.0.0
24488         * lib/gen-uni-tables.c (SIZEOF): New macro.
24489         (output_numeric): Increase the maximum number of fractions from
24490         128 to 160.  Increase the level3 value width from 7 bits to 8
24491         bits.  Use SIZEOF instead of a hard-coded integer.
24492         (output_blocks): Decrease the cut-off threshold from 0x30000 to
24493         0x28000.
24494         (fill_blocks): Increase the maximum number of blocks from 256 to
24495         384.  Use SIZEOF instead of a hard-coded integer.
24496         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
24497         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
24498         value width.
24499         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
24500         a new case added to LBP22.
24501         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
24502         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
24503         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
24504         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
24505         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
24506         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24507         lib/uniwidth/width.c.
24508         * all generated files under lib/uni* and tests/uni*: Regenerate.
24510 2015-06-16  Pádraig Brady  <P@draigBrady.com>
24512         gnu-web-doc-update: add --mirror to remove stale files
24513         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
24514         out of date files from the CVS server.  Since this is usually
24515         appropriate, a prompt is given when the option is not specified,
24516         along with the `cvs remove` command that would be run.
24518 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
24520         acl-permissions: pacify -Wsuggest-attribute=const
24521         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
24522         * lib/acl-internal.h (free_permission_context):
24523         Declare with attribute const if ! (defined USE_ACL &&
24524         (HAVE_ACL_GET_FILE || defined GETACL)).
24526         fsync: document AIX misbehavior
24527         * doc/posix-functions/fsync.texi (fsync):
24528         Document failure on AIX with read-only file descriptor.
24530 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
24532         stdio: Don't redefine gets when using C++
24533         * lib/stdio.in.h (gets): Disable warning on C++.
24535 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
24537         acl-permissions: port to AIX, C89 HP-UX
24538         Problems reported by Michael Felt.
24539         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
24540         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
24541         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
24542         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
24543         Add cast for AIX, whose system calls are declared to accept
24544         char * even though the arguments are really char const *.
24545         * lib/get-permissions.c (get_permissions):
24546         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
24547         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
24548         that broke a build.
24549         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
24550         Rework types to pacify xlc.
24552 2015-06-03  Pádraig Brady  <P@draigBrady.com>
24554         vasprintf-posix: avoid compiling vasnprintf where possible
24555         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
24556         module where not required.  For example on a GNU/Linux system
24557         when gnulib-tool is run with the --conditional-dependencies option.
24559 2015-06-02  Pádraig Brady  <P@draigBrady.com>
24561         file-has-acl: fix build on Mac OS X 10
24562         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
24563         which has an incompatible 6 parameter getxattr() call.
24564         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
24565         call on Mac OS X >= 10.4.
24566         * doc/glibc-functions/fgetxattr.texi: Likewise.
24567         * lib/file-has-acl.c: Revert to more complete combined check.
24568         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
24569         Reported by Jack Howarth.
24571 2015-06-02  Pádraig Brady  <P@draigBrady.com>
24573         prefix-gnulib-mk: remove no longer needed special case
24574         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
24575         continued lib_SOURCES lines are no longer present,
24576         so special case handling of such entries is not required.
24578 2015-06-01  Pádraig Brady  <P@draigBrady.com>
24580         acl: don't depend on the deprecated qacl module
24581         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
24583 2015-06-01  Pádraig Brady  <P@draigBrady.com>
24585         gnulib-tool: concatenate lib_SOURCES to a single line
24586         * gnulib-tool: Refactor the line merging sed logic,
24587         and use that to output a single lib_SOURCES line for each module.
24588         gnulib using projects often postprocess this output to prepend
24589         subdir paths to each item, and having a single line simplifies this
24590         processing allowing better decoupling from the gnulib-tool output.
24592 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
24594         pthread_sigmask: discount system version if a simple macro (trivial)
24595         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
24596         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
24597         function to ensure it's available.
24599 2015-05-31  Pádraig Brady  <P@draigBrady.com>
24601         readlinkat: avoid OS X 10.10 trailing slash bug
24602         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
24603         has this bug.
24604         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
24605         that OS X 10.10 has this function.
24606         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
24607         as done for readlink().
24608         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
24609         trailing slash bug, and assume readlinkat() has the same issue.
24610         Also fix a typo where $gl_cv_decl_readlink_works was tested,
24611         rather than the correct $gl_cv_decl_readlinkat_works.
24613 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
24615         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
24616         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
24617         module rewrite.
24619         acl-permissions: Fix build on Solaris and Cygwin
24620         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
24621         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
24622         ace_entries variables have moved into struct permission_context but
24623         they were still accessed as local variables here.
24625 2015-05-29  Pádraig Brady  <P@draigBrady.com>
24627         linkat: avoid OS X 10.10 trailing slash with symlink bug
24628         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
24629         causes the symlink to be dereferenced, and if it points
24630         to a non existent file, that file will be created as
24631         a hard link to "path1".
24632         This fixes a test failure in test-linkat.c.
24633         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
24634         this case.  The existing workaround in linkat.c for
24635         trailing slash issues, suffices for this case.
24636         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
24637         the list of platforms with trailing slash issues.
24639 2015-05-28  Pádraig Brady  <P@draigBrady.com>
24641         unlinkat: handle ignoring of ".." on Darwin 14
24642         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
24643         on Mac OS X 10.10, where it ignores paths with a trailing "..",
24644         so handle in the same manner.
24645         * m4/unlinkat.m4: Comment on this Darwin issue.
24646         * doc/posix-functions/unlink.texi: Update the latest version
24647         where the issue was seen.
24648         * doc/posix-functions/unlinkat.texi: Mention this issue.
24649         Fixes a test failure in test-unlinkat.c.
24651 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24653         qacl: split into qcopy-acl and qset-acl
24654         Emacs needs the former, but not the latter.
24655         * modules/acl-permissions: New file, containing most of the old qacl.
24656         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
24657         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
24658         * modules/qcopy-acl, modules/qset-acl: New files.
24659         * MODULES.html.sh (File system functions):
24660         Mention the new modules, and mention qacl while we're at it.
24662 2015-05-27  Glenn Morris  <rgm@gnu.org>
24664         gitlog-to-changelog: new option --ignore-line
24665         (This patch is imported from the GNU Emacs master.)
24666         This option ignores individual commit lines matching a pattern.
24667         * build-aux/gitlog-to-changelog: Add --ignore-line option.
24669 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
24671         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
24672         Implement get_permissions and set_permissions primitives for getting all
24673         the permissions of a file, storing them, and later setting them. (In the
24674         minimal case, the permissions consist only of a file mode.) Reimplement
24675         qset_acl and qcopy_acl based on these new primitives: this avoids code
24676         duplication and makes error handling more consistent.
24677         The Solaris and Cygwin code still uses duplicate code paths for setting
24678         a file mode while making sure that no acls exist and setting an explicit
24679         acl; this is no worse than before, but could be cleaned up.  The AIX
24680         code still doesn't read ACLs, it only makes sure that acls don't get in
24681         the way when setting a file mode.
24682         * lib/acl-internal.h (struct permission_context): New data structure.
24683         (get_permissions, set_permissions, free_permission_context): Declare.
24684         * lib/acl-internal.c (free_permission_context): New helper function.
24685         * lib/get-permissions.c (get_permissions): New helper function split off
24686         from qcopy_acl.
24687         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
24688         AIX, set a file's permissions based only on a file mode.
24689         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
24690         other platforms construct a temporary acl from the file mode and set
24691         that acl in the same way as setting an acl read from the source file.
24692         This should help avoid code duplication and inconsistent / buggy
24693         behavior.
24694         (set_acls): New helper function Split off from qcopy_acl.
24695         (chmod_or_fchmod): Moved here from qset-acl.c.
24696         (set_permissions): New helper function.
24697         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
24698         set_permissions.
24699         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
24700         * modules/qacl: Add get-permissions.c and set-permissions.c.
24702         file-has-acl: Split feature tests again (Bug#20667)
24703         * lib/file-has-acl.c: Instead of testing for
24704         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
24705         define them when needed.
24706         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
24707         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
24709 2015-05-27  Pádraig Brady  <P@draigBrady.com>
24711         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
24712         This avoids a conflict with "FORTIFY_SOURCE" variants
24713         of the string functions when they're replaced on NetBSD-6.0.1
24714         and Darwin-14.3.0 at least.
24715         * lib/string.in.h: Avoid including our "lib/string.h" while
24716         including the system <string.h>.
24718 2015-05-26  Eric Blake  <eblake@redhat.com>
24720         stdio: limit __gnu_printf__ witness to gcc 4.4+
24721         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
24722         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
24724         error: use correct printf attributes on mingw
24725         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
24727         inttypes: force correct mingw PRIdMAX even without <stdio.h>
24728         * modules/inttypes (Depends-on): Require extensions, so that mingw
24729         always uses GNU style inttypes.
24730         * lib/inttypes.in.h: On mingw, include <stdio.h>.
24732         stdio: fix probe on mingw under gcc 5.1
24733         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
24734         around new gcc preprocessor rules.
24736 2015-05-07  Glenn Morris  <rgm@gnu.org>
24738         gitlog-to-changelog: parse "Tiny-change"
24739         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
24740         "Copyright-paperwork-exempt".  (Bug#20324)
24742 2015-05-06  Pádraig Brady  <P@draigBrady.com>
24744         doc: document glibc posix_fallocate() issues
24745         * doc/posix-functions/posix_fallocate.texi: Mention the
24746         glibc efficiency problems and issues with NFS.
24748 2015-05-05  Karl Berry  <karl@freefriends.org>
24750         * build-aux/gendocs.sh (usage): document new css default
24751         for HTML (--htmlarg).
24753 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24755         extern-inline: no need for workaround in GCC 5.1
24756         * doc/extern-inline.texi (extern inline):
24757         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
24758         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
24759         around these bugs in GCC 5.1 and later.  Maybe in a decade or
24760         two we can remove these workarounds.
24762 2015-04-28  Pádraig Brady  <P@draigBrady.com>
24764         eealloc, pagealign_alloc, xalloc: avoid clang warnings
24765         Avoid [-Wunknown-attributes] warnings like:
24766         warning: unknown attribute '__alloc_size__' ignored
24767         * lib/xalloc.h: Don't use the __alloc_size__  attribute
24768         with clang, as support has been fully removed as of clang 3.5:
24769         https://github.com/llvm-mirror/clang/commit/c047507a
24770         * lib/eealloc.h: Likewise.
24771         * lib/pagealign_alloc.h: Likewise.
24773 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24775         tests: pacify GCC 5.1's stricter printf checking
24776         * tests/test-dirname.c (main):
24777         * tests/test-getaddrinfo.c (simple):
24778         * tests/test-getlogin.c (main):
24779         * tests/test-getndelim2.c (main):
24780         * tests/test-inttostr.c (CK):
24781         * tests/test-md5.c (main):
24782         * tests/test-read-file.c (main):
24783         * tests/test-sha1.c (main):
24784         Fix mismatches between printf format and value signedness.
24785         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
24786         Remove, as CAST_VAL always returned a value of type uintmax_t.
24788         fts: port to GCC 5.1 with --enable-gcc-warnings
24789         Without this fix, GCC 5.1 (correctly) warns about a subscript
24790         error on the fts_name component of FTSENT.  It's actually a
24791         flexible member, so define it that way on C99 or later hosts.
24792         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
24793         structure that now has a flexible array member.
24794         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
24795         (FTSENT): fts_name is now flexible on C99-or-later platforms.
24796         * modules/fts (Depends-on): Add flexmember.
24798 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24800         file-has-acl: port to CentOS 6
24801         Problem reported by Tom G. Christensen in:
24802         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
24803         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
24804         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
24805         HAVE_GETXATTR.
24806         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
24807         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
24808         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
24809         file-has-acl.c actually needs.
24811 2015-04-26  Pádraig Brady  <P@draigBrady.com>
24813         file-has-acl: always return false when ACLs aren't supported
24814         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
24815         change the GNU/Linux getxattr path, to transform "not supported"
24816         errors to a false return rather than an error.  This is handled
24817         within file_has_acl() due to the platform specific tests to
24818         determine if ACLs are not supported.
24820 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24822         gettext: propagate po/Makefile.in.in too
24823         * build-aux/po/Makefile.in.in: Copy from latest gettext.
24824         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
24825         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
24826         between Makefile.in.in and the gettext-runtime m4 files.
24828 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24830         file-has-acl: new module, split from acl
24831         And add a new module file-has-acl-tests to match.
24832         I ran into a problem with the recent changes to the acl module,
24833         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
24834         When using the fixed version with Emacs, I discovered that
24835         file-has-acl wasn't separated out well enough for Emacs (e.g., it
24836         had multiple libraries, but needed only one), so I fixed that too.
24837         * NEWS: Document this incompatible change.
24838         * modules/file-has-acl, modules/file-has-acl-tests: New files.
24839         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
24840         Initialize gl_need_lib_has_acl.
24841         (gl_FUNC_ACL): Require it.
24842         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
24843         Move the file-has-acl.c-relevant stuff to ...
24844         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
24845         use_xattrs = 0' typo, and omit some needless work.  Set
24846         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
24847         when gl_FUNC_ACL is called.
24848         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
24849         (Link): Remove $(LIB_HAS_ACL).
24850         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
24851         (check_PROGRAMS): Move stuff relevant to file-has-acl to
24852         modules/file-has-acl-tests.
24853         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
24855         manywarnings: add GCC 5.1 warnings
24856         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
24857         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
24858         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
24859         -Wsuggest-override, -Wuse-without-only.  Change
24860         -Wnormalized=... operands to match 5.1.
24861         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
24862         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
24863         -Wdiscarded-qualifiers, -Wformat-signedness,
24864         -Wincompatible-pointer-types, -Wint-conversion,
24865         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
24866         -Wshift-count-negative, -Wshift-count-overflow,
24867         -Wsizeof-array-argument, -Wsuggest-final-methods,
24868         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
24869         and add -Warray-bounds=2 as a special case.
24871 2015-04-21  Simon Josefsson  <simon@josefsson.org>
24873         doc: update FDL template to match FDL examples.
24874         * doc/alloca-opt.texi:
24875         * doc/alloca.texi:
24876         * doc/c-ctype.texi:
24877         * doc/c-strcase.texi:
24878         * doc/c-strcaseeq.texi:
24879         * doc/c-strcasestr.texi:
24880         * doc/c-strstr.texi:
24881         * doc/c-strtod.texi:
24882         * doc/c-strtold.texi:
24883         * doc/ctime.texi:
24884         * doc/error.texi:
24885         * doc/gcd.texi:
24886         * doc/gnulib-tool.texi:
24887         * doc/inet_ntoa.texi:
24888         * doc/intprops.texi:
24889         * doc/lib-symbol-visibility.texi:
24890         * doc/maintain.texi:
24891         * doc/parse-datetime.texi:
24892         * doc/quote.texi:
24893         * doc/regexprops-generic.texi:
24894         * doc/standards.texi: Remove spurious 'with' in FDL license
24895         template.
24897 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
24899         lstat: fix cross-compilation 'ln -s' problem
24900         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
24901         Have the test program call 'symlink' rather than a separate
24902         script run 'ln -s'; this is more likely to work in
24903         cross-compilation environments.  Reported by Pavel Fedin in:
24904         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
24906 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
24908         gendocs.sh: default to a common CSS style sheet for HTML output
24909         * build-aux/gendocs.sh (htmlarg): Change default value.
24911 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
24913         gnulib-tool: output bold attribute more portably
24914         * gnulib-tool (func_show_module_list): Change hexadecimal
24915         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
24916         encoded numbers as arguments to `printf' is not portable,
24917         and is not claimed by POSIX.  This is the case with FreeBSD.
24919 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
24921         qacl: Simplify HP-UX acl_nontrivial check
24922         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
24923         acl_nontrivial. Check if the acl has at most three entries instead (it must
24924         have exactly three entries according to the HP-UX documentation). Ignore
24925         uids and gids as long as an entry is either for a user (i.e., the owner),
24926         a group (i.e., the owning group), or others.
24927         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
24928         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
24930 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
24932         acl: On Linux, check for acls without libacl
24933         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
24934         library function to check for the presence of acls, avoiding a library.
24935         * lib/file-has-acl.c: Include xattr headers if we have them.
24936         (file_has_acl): On Linux, use getxattr().
24937         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
24938         file_has_acl(). Check for xattr headers and getxattr().
24940 2015-04-14  Ángel González  <keisial@gmail.com>
24942         tempname: avoid unused parameter warnings (trivial)
24943         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
24944         (try_nocreate): Likewise.
24946 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
24948         fseeko: fix build failure on NetBSD >= 6 (trivial)
24949         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
24950         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
24952 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24954         gitlog-to-changelog: port to MS-Windows
24955         * build-aux/gitlog-to-changelog (git_dir_option):
24956         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
24957         MS-Windows Perl.  Reported by Eli Zaretskii in:
24958         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
24960 2015-04-07  Karl Berry  <karl@gnu.org>
24962         gendocs: new option --tex for passing args to texi2dvi.
24963         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
24964         (TEXI2DVI): cut to just command name.
24965         (usage): mention new option, and update copyright.
24966         <generate_tex>: use it.
24968 2015-04-07  Karl Berry  <karl@gnu.org>
24970         * config/srclistvars.sh (GETTEXT): new definition.
24971         * config/srclist.txt: use it for gettext .m4 files.
24972         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
24973         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
24974         and continuing into April.
24976 2015-04-07  Daiki Ueno  <ueno@gnu.org>
24978         uniname/uniname-tests: fix failure due to alias
24979         Reported by Jack Howarth in:
24980         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
24981         * tests/uniname/test-uninames.c (name_has_alias): New function.
24982         (test_inverse_lookup): Exclude character name with valid alias,
24983         from randomly generated character names.
24984         (main): Fill unicode_aliases before calling test functions.
24986 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
24988         hash: remove deprecated hash_insert0 function
24989         * lib/hash.h (hash_insert0): Remove deprecated function.
24990         * lib/hash.c (hash_insert0): Likewise.
24992 2015-04-02  Pádraig Brady  <P@draigBrady.com>
24994         mountlist: remove dependency on libmount
24995         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
24996         directly, rather than depending on libmount, which has many
24997         dependencies due to its dependence on libselinux, as detailed at:
24998         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
24999         Note we restrict this to __linux__ as that's probably where this
25000         interface will remain.  If ever porting, it would be best
25001         to first pull the makedev() wrapper from coreutils to a gnulib module.
25002         Note also we don't add a getline dependency to the mountlist module,
25003         as all Linux versions are sufficient.
25005 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
25007         stddef: port to pre-C11 GCC on x86
25008         On this platform, max_align_t should have an alignment of 8 even
25009         though the storage alignments of double, long, etc. max out at 4.
25010         Inspired by a comment of Andreas Schwab's here:
25011         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
25012         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
25013         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
25014         * tests/test-stddef.c: Test __alignof__ too, if available.
25016 2015-03-24  Pádraig Brady  <P@draigBrady.com>
25018         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
25019         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
25021 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
25023         yesno: make EOL optional in ENABLE_NLS case also (trival)
25024         * lib/yesno.c (yesno): Check for EOL before replacing.
25025         * tests/test-yesno.sh: Add a test case (test along with gettext).
25027 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25029         fdopendir-tests: test it does not close its arg
25030         * tests/test-fdopendir.c (main): Test that fdopendir does not
25031         close its argument.  From a suggestion by David Grayson in:
25032         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
25034 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
25036         gitlog-to-changelog: trim trailing white space
25037         * build-aux/gitlog-to-changelog (main):
25038         Trim trailing white space from commit message lines.
25039         This is helpful for processing the GNU Emacs repository,
25040         which dates back to 1985 and contains a lot of such lines.
25042         gitlog-to-changelog: new option --ignore-matching
25043         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
25044         Support new option --ignore-matching=PAT, which ignores all
25045         commit messages whose first line matches PAT.
25047 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25049         fdopendir: port better to MinGW
25050         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
25051         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
25052         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
25053         * modules/fdopendir (Depends-on): Add dirfd.
25055 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25057         fdopendir: fix typo in comment
25058         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
25060 2015-03-09  Eric Blake  <eblake@redhat.com>
25062         error: document all entry points provided
25063         * doc/glibc-functions/error_print_progname.texi
25064         (error_print_progname): Mention the error module.
25065         * doc/glibc-functions/error_at_line.texi (error_at_line):
25066         Likewise.
25067         * doc/glibc-functions/error_message_count.texi
25068         (error_message_count): Likewise.
25069         * doc/glibc-functions/error_one_per_line.texi
25070         (error_one_per_line): Likewise.
25072 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
25074         vasnprintf: pacify clang 3.5.0
25075         Problem reported by Werner Lemberg in:
25076         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
25077         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
25078         The casts aren't needed, since the characters in question are ASCII.
25080 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25082         glob, etc.: port to MSVC v18 on MS-Windows 8.1
25083         * lib/dirent--.h (GNULIB_defined_opendir):
25084         * lib/dirent.in.h (GNULIB_defined_opendir)
25085         (GNULIB_defined_closedir):
25086         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
25087         #undef only if Gnulib defined it.
25089         poll: port to MSVC v18 on MS-Windows 8.1
25090         Problem reported by Gisle Vanem in:
25091         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
25092         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
25093         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
25094         Add sys_socket.
25096 2015-02-24  Pádraig Brady  <P@draigBrady.com>
25098         tests: support stderr verification with returns_()
25099         * tests/init.sh (returns_): Disable tracing for this wrapper
25100         function, so that stderr of the wrapped command is unchanged,
25101         allowing for verification of the contents.
25103 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
25105         passfd: avoid valgrind uninitalised data warning
25106         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
25107         to include just the fd we've initialized, rather than including
25108         the extra space used for alignment.
25110 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
25112         uniwbrk/u32-wordbreaks-tests: fix copyright
25113         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
25115         dup2: doc and test for Android bug
25116         Reported by Kevin Cernekee in:
25117         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
25118         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25119         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
25121 2015-02-23  Kevin Cernekee  <cernekee@google.com>
25123         Replace dup2() on Android
25124         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
25125         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
25126         fails.  Using rpl_dup2() fixes this because it has an explicit test
25127         for this condition.
25129 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
25131         Android doesn't define RLIM_SAVED_*
25132         Portability problem reported by Kevin Cernekee in:
25133         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
25134         * doc/posix-headers/sys_resource.texi (sys/resource.h):
25135         Mention the portability problem.
25136         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
25137         Define if not defined.
25138         * m4/dup2.m4 (gl_FUNC_DUP2):
25139         * m4/fcntl.m4 (gl_FUNC_FCNTL):
25140         Likewise.
25142 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
25144         vasnprintf-posix-tests: use consistent test
25145         * tests/test-vasnprintf-posix.c (test_function):
25146         Use "<" in assert instead of "<=", for consistency with other tests.
25148 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25150         printf, isinf, etc.: noncanonical != NaN
25151         Do not require that isinf, printf, etc. treat noncanonical
25152         values as NaNs.  Instead, require only that they do not crash.
25153         Problem reported by Joseph Myers in:
25154         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
25155         * doc/posix-functions/dprintf.texi (dprintf):
25156         * doc/posix-functions/fprintf.texi (fprintf):
25157         * doc/posix-functions/isfinite.texi (isfinite):
25158         * doc/posix-functions/isinf.texi (isinf):
25159         * doc/posix-functions/isnan.texi (isnan):
25160         * doc/posix-functions/printf.texi (printf):
25161         * doc/posix-functions/snprintf.texi (snprintf):
25162         * doc/posix-functions/sprintf.texi (sprintf):
25163         * doc/posix-functions/vdprintf.texi (vdprintf):
25164         * doc/posix-functions/vfprintf.texi (vfprintf):
25165         * doc/posix-functions/vprintf.texi (vprintf):
25166         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25167         * doc/posix-functions/vsprintf.texi (vsprintf):
25168         Document this.
25169         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
25170         * m4/isinf.m4 (gl_ISINFL_WORKS):
25171         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
25172         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
25173         * tests/test-isfinite.c (test_isfinitel):
25174         * tests/test-isinf.c (test_isinfl):
25175         * tests/test-isnan.c (test_long_double):
25176         * tests/test-isnanl.h (main):
25177         * tests/test-snprintf-posix.h (test_function):
25178         * tests/test-sprintf-posix.h (test_function):
25179         * tests/test-vasnprintf-posix.c (test_function):
25180         * tests/test-vasprintf-posix.c (test_function):
25181         Test only that noncanonical values do not cause crashes, not that
25182         they are treated as NaNs.  In some cases this means a larger
25183         output buffer is needed.
25185 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
25187         fts: remove redundant close() (trivial)
25188         * lib/fts.c (fts_read): Remove redundant call to close().
25189         Spotted by coverity.
25191 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25193         getdtablesize: port better for Android
25194         Problem reported by Kevin Cernekee in:
25195         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
25196         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
25197         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
25198         Instead, just use getrlimit, taking care to avoid Cygwin bug.
25200         poll: fixes for large fds
25201         * lib/poll.c (poll): Don't check directly for NFD too large.
25202         Don't rely on undefined behavior in FD_SET when an arg exceeds
25203         FD_SETSIZE.  Always set revents afterwards, even if to zero.
25204         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
25205         as that makes the test a bit stricter.
25207 2015-02-19  Kevin Cernekee  <cernekee@google.com>
25209         fcntl: Fix cross compiling
25210         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
25211         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
25213 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
25215         dup2, fcntl: cross-compile better for Android
25216         Problem reported by Kevin Cernekee in:
25217         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
25218         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
25219         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
25220         there's little need to cross-compile for older kernels nowadays.
25221         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
25222         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
25224 2015-02-18  Pádraig Brady  <P@draigBrady.com>
25226         getopt: don't crash on memory exhaustion
25227         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
25228         memory exhaustion.  In the _LIBC case we use alloca() as is
25229         already done in glibc, so we don't need to consider the separate
25230         error path in that awkward case.  Also fix a memory leak when
25231         ambiguous options are present.
25232         Reported by Tobias Stoeckmann
25234 2015-02-17  Mike Miller  <mtmiller@ieee.org>
25236         tempname: allow compilation with C++ (trivial)
25237         * lib/tempname.h [C++]: Specify extern "C" linkage.
25238         * lib/tempname.h (try_tempname):
25239         * lib/tempname.c (__try_tempname, __gen_tempname):
25240         Rename 'try' to 'tryfunc'.
25242 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
25244         dup2, fcntl: port to AIX
25245         * m4/dup2.m4 (gl_FUNC_DUP2):
25246         * m4/fcntl.m4 (gl_FUNC_FCNTL):
25247         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
25248         The former works on AIX 7.1 but the latter does not.
25249         Also, this may work better with Android; see:
25250         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
25252 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25254         getdtablesize, dup2, fcntl: port to Android
25255         Problem reported by Kevin Cernekee in:
25256         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
25257         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
25258         Mention that getdtablesize doesn't work on Android.
25259         * lib/getdtablesize.c: Use getrlimit substitute only if
25260         getdtablesize is declared.  This should suffice for Cygwin
25261         while not breaking Android.
25262         * m4/dup2.m4 (gl_FUNC_DUP2):
25263         * m4/fcntl.m4 (gl_FUNC_FCNTL):
25264         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
25265         standardized but the latter is not, and sysconf works on Android.
25266         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
25267         Also check that getdtablesize is declared.
25268         This removes the need for a special case for Android.
25270 2015-02-16  Kevin Cernekee  <cernekee@google.com>
25272         localename: Implement gl_locale_name_thread_unsafe for Android
25273         * lib/localename.c: Android API level >= 21 supports two hardcoded
25274         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
25275         the internal __locale_t struct.
25277 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
25279         fts: avoid crash when a cycle is added while traversing
25280         This could be triggered by auto-mounting a recursive bind mount.
25281         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
25282         * lib/fts.c (fts_read): Avoid removing the original hash table item
25283         when leaving a directory that caused a cycle, and preserve the FTS_DC
25284         flag.
25286 2015-02-16  Daiki Ueno  <ueno@gnu.org>
25288         uniname/uniname: support character alias
25289         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
25290         Generate one-way mapping from aliases to codepoints in the
25291         generated tables.  Special case variation selectors to reduce
25292         table size.
25293         * lib/uniname/uniname.c (unicode_character_name): Special case
25294         variation selectors.
25295         (unicode_name_character): Special case variation selectors and
25296         their aliases.
25297         * lib/uniname/uninames.h: Regenerate.
25298         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
25299         * modules/uniname/uniname-tests (Files): Add
25300         tests/uniname/NameAliases.txt.
25301         * tests/uniname/test-uninames.c: Mark as static.
25302         (ALIASLEN): Define.
25303         (struct unicode_alias): New struct.
25304         (unicode_aliases): New variable.
25305         (fill_aliases): New function.
25306         (test_alias_lookup): New test function.
25307         (main): Run the 'test_alias_lookup' test if the second argument is
25308         given.
25309         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
25310         second argument.
25312 2015-02-11  Kevin Cernekee  <cernekee@google.com>
25314         Fix FILE struct compatibility with Android API level >= 21
25315         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
25316         __sferror.  Recent versions of Bionic's stdio.h no longer define
25317         __sferror.
25318         * lib/fbufmode.c: Likewise.
25319         * lib/fflush.c: Likewise.
25320         * lib/fpurge.c: Likewise.
25321         * lib/freadable.c: Likewise.
25322         * lib/freadahead.c: Likewise.
25323         * lib/freading.c: Likewise.
25324         * lib/freadptr.c: Likewise.
25325         * lib/freadseek.c: Likewise.
25326         * lib/fseeko.c: Likewise.
25327         * lib/fseterr.c: Likewise.
25328         * lib/fwritable.c: Likewise.
25330         Assume unbroken ungetc() on Android
25331         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
25332         test case passed when running on an Android host, and the code
25333         hasn't really changed since 2009.
25335         getdtablesize: Fix Android build
25336         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
25337         versions have this symbol in the .so library (at least 32-bit
25338         platforms) but are missing the declaration in the header file,
25339         causing the m4 logic to guess incorrectly.
25341         localename: Fix Android build
25342         * modules/localename (Depends-on): Add langinfo.
25344         getugroups: Fix Android build
25345         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
25346         functions.
25348         euidaccess: Fix Android build
25349         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
25350         AT_EACCESS gets declared.
25352         linkat_nofollow: Add fallback case for cross compiling
25353         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
25355         net_if: Handle content-free <net/if.h> system headers
25356         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
25357         struct if_nameindex.  If not, enable the replacement header.
25359         signal_h: Fix Android build
25360         * lib/signal.in.h: Add Android to the list of platforms that declare
25361         pthread_sigmask() in <pthread.h> instead of <signal.h>.
25363         duplocale: Fix Android build of duplocale-tests
25364         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
25365         is included by test-duplocale.c (but not by duplocale.c).
25366         * modules/duplocale-tests (configure.ac): Check for monetary.h.
25367         * tests/test-duplocale.c: Skip test if monetary.h is absent.
25368         * doc/posix-headers/monetary.texi: Add Android to the list of
25369         platforms missing monetary.h.
25371 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25373         tests: avoid recent -Werror=unused-variable regression in test-locale
25374         * tests/test-locale.c (main): Reference the variable to avoid the
25375         "unused variable" warning.
25377 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25379         maint: various whitespace cleanups in tempname
25380         * lib/tempname.c: Normalize spacing and line length.
25381         * lib/tempname.h: Likewise.
25382         * modules/tempname: Likewise.
25384 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25386         tests: provide returns_() to simplify exit status checking
25387         * tests/init.sh (returns_): A new function for use in tests,
25388         to allow for easier checking of return values, where you expect
25389         a command to exit with failure status.  By checking for a particular
25390         exit code, you don't hide any crashes for example.
25392 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25394         mountlist: only use libmount when specified
25395         There are currently many shared libs dependencies introduced by
25396         libmount with associated runtime and virt mem overhead.
25397         Therefore don't enable by default.
25398         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
25400 2015-02-08  Daiki Ueno  <ueno@gnu.org>
25402         uniname/unimame-tests: don't link with -lunistring
25403         * modules/uniname/uniname-tests (Makefile.am): Don't link against
25404         $(LIBUNISTRING).  Document the rationale why we need to
25405         conditionalize the test.
25407 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25409         fstrcmp: don't assume strlen < INT_MAX
25410         * lib/fstrcmp.c: Include stddef.h and stdint.h.
25411         (uintptr_t): Remove, as we're now assuming stdint.
25412         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
25413         Prefer ptrdiff_t to int when the value could exceed INT_MAX
25414         if the input string is long.
25415         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
25416         uintptr_t to size_t when the underlying value is a pointer casted
25417         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
25418         * modules/fstrcmp (Depends-on): Add stdint.
25420         diffseq: prefer ptrdiff_t to ssize_t
25421         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
25422         ptrdiff_t is the natural type for signed indexes.
25423         On a few older platforms, ssize_t is narrower than size_t.
25425         xalloc: fix typo that suppressed warnings
25426         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
25427         This typo, introduced a couple of years ago, mistakenly suppressed
25428         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
25429         -Wmissing-declarations warnings.
25431         full-read: fix license notice typo
25432         * lib/full-read.h: Remove a stray line in the license notice.
25433         Reported by Sam Ellis in: http://bugs.gnu.org/19808
25435         crypto/gc: fix a -Wswitch warning
25436         Reported by Bruce Korb in:
25437         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
25438         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
25440 2015-02-03  Pádraig Brady  <P@draigBrady.com>
25442         gnulib-tool: fix handling of patch(1) diagnostics
25443         * gnulib-tool: Send diagnostics from patch(1) to stderr,
25444         as otherwise gnulib-tool will reparse that output and attempt
25445         to lookup modules.
25447 2015-02-03  Pádraig Brady  <P@draigBrady.com>
25449         bootstrap: exit immediately upon gnulib-tool failure
25450         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
25451         This was noticed when gnulib-tool exited early due to failure
25452         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
25453         but various confusing errors were then given as the build proceeded.
25455 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
25457         symlinkat: include all required header files
25458         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
25459         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
25460         Reported at https://savannah.gnu.org/bugs/index.php?44151
25461         and by Jack Howarth.
25463 2015-01-29  Pádraig Brady  <P@draigBrady.com>
25465         localename: support Solaris 12 and illumos
25466         * lib/localename.c (gl_locale_name_thread_unsafe): call
25467         getlocalename_l() on newer __sun platforms.
25468         Reported by Alexander Pyhalov.
25469         Fix suggested by Rich Burridge.
25471 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
25473         locale: fix tests on illumos (trivial)
25474         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
25475         so move from global scope to main().
25477 2015-01-24  Daiki Ueno  <ueno@gnu.org>
25479         unictype: avoid undefined left-shift behavior
25480         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
25481         gcc's -fsanitize=shift and running its tests triggered:
25482           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
25483             places cannot be represented in type 'int'
25484         Cast LHS to 'unsigned int' after integer promotion.
25485         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
25486         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
25488 2015-01-20  Daiki Ueno  <ueno@gnu.org>
25490         libunistring: bump version of unitypes dependants
25491         Due to the header file search order, all the headers which depend
25492         on unitypes.h need to be generated, when the preinstalled
25493         libunistring is older.
25494         * modules/unicase/base (configure.ac): Bump minimum version to
25495         0.9.4.
25496         * modules/uniconv/base (configure.ac): Likewise.
25497         * modules/unilbrk/base (configure.ac): Likewise.
25498         * modules/uninorm/base (configure.ac): Likewise.
25499         * modules/unistdio/base (configure.ac): Likewise.
25500         * modules/unistr/base (configure.ac): Likewise.
25501         * modules/uniwbrk/base (configure.ac): Likewise.
25502         * modules/uniwidth/base (configure.ac): Likewise.
25504 2015-01-20  Daiki Ueno  <ueno@gnu.org>
25506         unictype/category-none: fix link with libunistring
25507         Since _UC_CATEGORY_NONE is not a public symbol, it will be
25508         prefixed with "libstring_" when compiled as part of libunistring.
25509         To avoid undefined symbol at link time, increase the minimum
25510         version when the dependant modules are updated.
25511         * modules/unictype/category-none (configure.ac): Bump minimum
25512         version to 0.9.5.
25514 2015-01-20  Daiki Ueno  <ueno@gnu.org>
25516         unitypes: fix build with installed libunistring
25517         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
25518         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
25519         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
25521 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25523         time: port to MinGW32 3.21
25524         Problem reported by Eli Zaretskii in:
25525         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
25526         * lib/time.in.h:
25527         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
25528         * modules/time (Depends-on):
25529         Fall back on unistd.h if the other include files don't define
25530         struct timespec.
25532         update-copyright: apply to self
25533         * build-aux/update-copyright: Fix copyright date.  How ironic!
25535 2015-01-15  Daiki Ueno  <ueno@gnu.org>
25537         libunistring: update to Unicode 7.0.0
25538         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
25539         Manichaean names.
25540         * lib/unictype/joininggroup_name.h: Likewise.
25541         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
25542         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
25543         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
25544         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
25545         (fill_arabicshaping, joining_group_as_c_identifier): Support those
25546         enum values.
25547         (is_property_alphabetic): Accept newly added characters to
25548         cuneiform numeric signs.
25549         (is_property_default_ignorable_code_point): Reject U+0605.
25550         (FIELDLEN): Increase from 120 to 160.
25551         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
25552         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
25553         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
25554         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
25555         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
25556         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
25557         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
25558         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
25559         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
25560         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
25561         U+1E8D0..U+1E8D6.
25562         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
25563         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25564         lib/uniwidth/width.c.
25565         * all generated files under lib/uni* and tests/uni*: Regenerate.
25567 2015-01-14  Daiki Ueno  <ueno@gnu.org>
25569         libunistring: update to Unicode 6.3.0
25570         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
25571         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
25572         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
25573         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
25574         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
25575         Update WB5, WB9, WB10, WB13a, and WB13b.
25576         * tests/uniwbrk/test-uc-wordbreaks.c
25577         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
25578         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
25579         (UC_BIDI_PDI): New enumeration values.
25580         (bidi_category_byname): Support those enum values.
25581         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
25582         dedicated property assigned.
25583         (is_property_case_ignorable): Check 0x0027.
25584         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
25585         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
25586         (output_wbp): Support those enum values.
25587         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
25588         (UC_BIDI_PDI): New enumeration values.
25589         * lib/unictype/bidi_byname.gperf: Add those property names.
25590         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
25591         U+180E, U+1A1B, and U+2066..U+2069.
25592         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25593         lib/uniwidth/width.c.
25594         * all generated files under lib/uni* and tests/uni*: Regenerate.
25596 2015-01-14  Daiki Ueno  <ueno@gnu.org>
25598         libunistring: update to Unicode 6.2.0
25599         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
25600         (unilbrk_table): Adjust table size.
25601         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
25602         for LBP_RI.
25603         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
25604         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
25605         Normalize table index skipping ignored properties.
25606         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
25607         WBP_EXTEND and WBP_FORMAT, which are now computed without using
25608         the table.
25609         * lib/uniwbrk/wbrktable.h: Adjust table size.
25610         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
25611         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
25612         Support rule GB8a.
25613         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
25614         * tests/unigbrk/test-uc-is-grapheme-break.c
25615         (graphemebreakproperty_to_string): Support GBP_RI.
25616         * tests/uniwbrk/test-uc-wordbreaks.c
25617         (wordbreakproperty_to_string): Support WBP_RI.
25618         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
25619         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
25620         (output_lbp): Support LBP_RI.  Adjust some characters changed from
25621         LBP_AL to LBP_ID.
25622         (output_lbp): Support LBP_RI.
25623         (WBP_RI): New enumeration value.
25624         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
25625         (output_wbp): Support WBP_RI.
25626         (GBP_RI): New enumeration value.
25627         (output_gbp_test, fill_org_gbp): Support GBP_RI.
25628         * all generated files under lib/uni* and tests/uni*: Regenerate.
25630 2015-01-14  Daiki Ueno  <ueno@gnu.org>
25632         libunistring: update to Unicode 6.1.0
25633         * lib/gen-uni-tables.c (output_joining_group): Switch to
25634         3-level table to accommodate joining groups defined with higher
25635         codepoint value.  Since there are only 88 groups defined in
25636         Unicode 7.0.0, use 7-bit packed format for level3 entries.
25637         (get_lbp): Update for Unicode 6.1.0.
25638         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
25639         3-level table.
25640         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
25641         joining group name.
25642         * lib/unictype/joininggroup_name.h: Likewise.
25643         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
25644         (unilbrk_table): Adjust table size.
25645         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
25646         for LBP_HL.
25647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
25648         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
25649         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
25650         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
25651         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
25652         U+302E..U+302F.
25653         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25654         lib/uniwidth/width.c.
25655         * all generated files under lib/uni* and tests/uni*: Regenerate.
25656         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
25658 2015-01-15  Daiki Ueno  <ueno@gnu.org>
25660         uniwbrk/u32-wordbreaks-tests: add conformance test
25661         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
25662         tests/uniwbrk/test-uc-wordbreaks.c,
25663         tests/uniwbrk/test-uc-wordbreaks.sh, and
25664         tests/uniwbrk/WordBreakTest.txt.
25665         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
25666         test-uc-wordbreaks to $(check_PROGRAMS), and define
25667         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
25668         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
25669         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
25671 2015-01-15  Daiki Ueno  <ueno@gnu.org>
25673         uniwbrk: ignore Extended/Format characters at BOL not BOS
25674         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
25675         characters if the previous character property is one of
25676         WBP_NEWLINE, WBP_CR, and WBP_LF.
25678 2015-01-11  Jim Meyering  <meyering@fb.com>
25680         test-strstr.c: avoid a trivial leak
25681         * tests/test-strstr.c (main): Free haystack.
25683         update-copyright: recognize groff's \(co marker
25684         * build-aux/update-copyright (circle_c_re): Also accept
25685         uses of \(co, as found in gzip.1.
25687 2015-01-08  Pádraig Brady  <P@draigBrady.com>
25689         maint.mk: fix compatibility with OS X nm
25690         * top/maint.mk (_gl_tight_scope): Use the -g option to
25691         show exported items rather than the -e option which is
25692         ignored on all platforms except OS X where it gives an error.
25693         Reported by Assaf Gordon.
25695 2015-01-07  KO Myung-Hun  <komh@chollian.net>
25697         localcharset: improve charset detection on OS/2
25698         Use system codepage when appropriate.  Map OS/2 codepages to
25699         GNU canonical charset names if possible.
25700         * lib/config.charset: Don't output aliases if "$os" is os2*.
25701         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
25702         result for OS/2.
25703         (locale_charset) [OS2]: Use system codepage if codeset is omitted
25704         from the locale name which is neither "C" nor "POSIX".
25706 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25708         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
25709         This reverts the last patch but one, as it shouldn't be needed now
25710         that the typo is fixed.
25711         * lib/count-leading-zeros.h (count_leading_zeros_ll):
25712         * lib/count-trailing-zeros.h:
25713         * lib/count-one-bits.h:
25714         Go back to using 64-bit intrinsics.
25716         count-leading-zeros: fix pragma typos
25717         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
25718         Fix typos in declaration of intrinsics when _MSC_VER.
25720 2015-01-06  Pádraig Brady  <P@draigBrady.com>
25722         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
25723         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
25724         intrinsics in this case.
25725         * lib/count-trailing-zeros.h: Likewise.
25726         * lib/count-one-bits.h: Likewise.
25728 2015-01-06  Daiki Ueno  <ueno@gnu.org>
25730         uniname/uniname: update to Unicode 7.0.0
25731         To accommodate new characters added since Unicode 5.1.0, this
25732         changes the internal representation of codepoint ranges.
25733         Previously, we grouped codepoint ranges by manually assigned 4-bit
25734         tag, which only allowed 16 groups.  This removes the limitation by
25735         switching to binary search on a table.  For the detail rationale
25736         and the benchmark results, see:
25737         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
25738         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
25739         to INDEX, as it no longer represents a codepoint.
25740         (range): New struct.
25741         (main): Switch to intervals list from a bit-pattern based
25742         classification.
25743         * lib/uniname/uninames.h: Regenerate.
25744         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
25745         * modules/uniname/base (configure.ac): Bump minimum version to
25746         0.9.5.
25747         * modules/uniname/uniname (configure.ac): Bump minimum version to
25748         0.9.5.
25750 2015-01-05  Eric Blake  <eblake@redhat.com>
25752         doc: update INSTALL from autoconf
25753         * doc/install.texi: Resync from autoconf.
25754         * doc/INSTALL: Reflect recent autoconf update.
25755         * doc/INSTALL.ISO: Likewise.
25756         * doc/INSTALL.UTF-8: Likewise.
25758         stdio: fix use of PRIdMAX on modern mingw
25759         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
25760         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
25761         to work with modern mingw.
25763 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
25765         pthread: detect git mingw builds with only partial pollution
25766         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
25767         pollution, as seen temporarily in Fedora 21.
25769 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25771         lib-symbol-versions: cache script check
25772         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
25773         Cache the check for linker version scripts.
25774         From a suggestion by Christophe Curis in:
25775         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
25777 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
25779         maint: fix grammar nits in propername (trivial change)
25780         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
25781         and use an adequate verb and tense.
25783 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
25785         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
25786         * module/gendocs: Add 'doc/gendocs_template_min'.
25788         * build-aux/gendocs.sh: Change email addresses and upstream URLs
25789         from to Gnulib's.
25790         (scripturl, templateurl): Adjust accordingly.
25792 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25794         gendocs: copyright date and version fix
25795         Reported by Karl Berry in:
25796         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
25797         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
25798         Fix copyright date.
25799         * build-aux/gendocs.sh (scriptversion): Update.
25801 2015-01-01  Karl Berry  <karl@gnu.org>
25803         * doc/install.texi,
25804         * build-aux/mdate-sh,
25805         * build-aux/depcomp,
25806         * build-aux/config.guess,
25807         * build-aux/config.sub,
25808         * build-aux/ar-lib,
25809         * build-aux/compile: revert copyright updates (some from last
25810         year) in slaved files.
25812 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25814         version-etc: new year
25815         * doc/gnulib.texi:
25816         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
25817         * all files: Run 'make update-copyright'.
25819 2014-12-30  Pádraig Brady  <P@draigBrady.com>
25821         xstrtol: ensure errno is reset
25822         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
25823         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
25825         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
25827 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25829         utimens: fix dependency typo
25830         * modules/utimens (Depends-on): Remove 'assure'.
25831         This bug was introduced in the recent 'assure' patch.
25833 2014-12-22  Eric Blake  <eblake@redhat.com>
25835         docs: mention why libgen.h is bad
25836         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
25838 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25840         assure: new module
25841         This works better than 'assert' when compiling with -DNDEBUG,
25842         as it avoids some compiler diagnostics in that case.
25843         Reported by Norihiro Tanaka in:
25844         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
25845         * MODULES.html.sh (func_all_modules): Add 'assure'.
25846         * lib/assure.h, modules/assure: New files.
25847         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
25848         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
25849         Prefer 'assure' to 'assert'.
25850         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
25851         * modules/chdir-long, modules/cycle-check, modules/fchdir:
25852         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
25853         Depend on 'assure'.
25855 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25857         stdalign: port better to HP compilers
25858         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
25859         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
25861         stdalign: work around Apple GCC 4.0 bug
25862         Reported by David Fang in:
25863         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
25864         * lib/stdalign.in.h (_Alignas):
25865         * m4/stdalign.m4 (gl_STDALIGN_H):
25866         Do not use aligned attribute with GCC 4.0 on Apple.
25868 2014-12-16  Pádraig Brady  <P@draigBrady.com>
25870         getcwd: fix test failure on OS X 10.9
25871         * m4/getcwd-path-max.m4: Avoid the replacement if it
25872         won't be effective due to the PATH_MAX limitation of lstat().
25873         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
25874         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
25875         for this case for use in tests, and also exclude this
25876         case when setting REPLACE_GETCWD.
25877         * tests/test-getcwd.c (test_long_name): Restrict the
25878         tested path length so that lstat() will not be passed
25879         a path greater than PATH_MAX.
25880         Also key a test condition on HAVE_OPENAT_SUPPORT rather
25881         than AT_FDCWD, since the latter is set unconditionally
25882         since Sep 2009 in commit 52c658e9.
25884 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
25886         parse-datetime: avoid a compiler warning with byacc (trivial)
25887         * lib/parse-datetime.y (yylex): Use the same prototype in the
25888         function definition as the declaration, to avoid a -Wstrict-prototypes
25889         warning seen when using byacc.
25891 2014-12-12  Daiki Ueno  <ueno@gnu.org>
25893         unicase/locale-language-tests: fix LOCALE_FR test
25894         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
25895         a French locale with traditional encoding.
25896         Reported by umerqayam in:
25897         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
25899 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25901         stddef: support C11's max_align_t
25902         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
25903         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
25904         Do not undef, as that might cause max_align_t to be defined twice.
25905         Instead, change use to check for _GL_STDDEF_WINT_T too.
25906         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
25907         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
25908         Check for max_align_t.
25909         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
25910         * modules/stddef-tests (Depends-on): Add stdalign.
25911         * tests/test-stddef.c: Test max_align_t.
25913 2014-12-11  Daiki Ueno  <ueno@gnu.org>
25915         unistd: fix iOS check conditional
25916         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
25917         as 0 or 1 in <TargetConditionals.h>, and the previous check always
25918         yielded true on non-iOS environment.
25919         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
25920         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
25921         they are defined.
25923 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25925         posixtm: avoid compiler warning in a better way
25926         * lib/posixtm.c (IF_LINT): Remove.
25927         (year, posix_time_parse):
25928         Return true (not 0) if successful.  All callers changed.
25929         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
25931 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
25933         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
25934         started with '/' on EMX.
25936 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
25938         freopen: workaround freopen() on OS/2 kLIBC
25939         * lib/freopen.c (rpl_freopen): Workaround.
25940         * m4/freopen.m4: Add os2* case.
25942         get_shared_library_fullname: port to EMX
25943         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
25944         on EMX, respectively.
25945         (_DLL_InitTerm): New on EMX.
25946         (get_shared_library_fullname): Implement on EMX.
25948         find_executable: port to EMX
25949         * lib/progreloc.c (find_executable): Implement on EMX.
25951         sched: check struct sched_param in spawn.h as well
25952         * lib/sched.in.h: Include spawn.h on kLIBC.
25953         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
25955 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
25957         bootstrap: Allow perl modules in $buildreq
25958         * build-aux/bootstrap: Add case for perl modules.
25960 2014-12-08  Pádraig Brady  <P@draigBrady.com>
25962         apply _GL_ATTRIBUTE_PURE to some inline functions
25963         clang 3.4.2 flagged these inline functions as pure
25964         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
25965         * lib/sig-handler.h (get_handler): Likewise.
25966         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
25967         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
25969 2014-12-06  Pádraig Brady  <P@draigBrady.com>
25971         vasnprintf: fix potential use after free
25972         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
25973         flagged by clang-analyzer 3.4.2.
25975 2014-12-05  Pádraig Brady  <P@draigBrady.com>
25977         filevercmp, posixtm: avoid compiler warnings with -O3
25978         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
25979         * lib/posixtm.c: (IF_LINT): Define.
25980         (posix_time_parse): Use it to void a "may be used uninitialized"
25981         warning, seen only with -O3.
25983 2014-12-05  Bruno Haible  <bruno@clisp.org>
25985         Fix LDBL80_WORDS macro on big endian platforms.
25986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
25987         LDBL80_WORDS macro.
25988         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25989         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25990         * tests/test-isfinite.c (test_isfinitel): Likewise.
25991         * tests/test-isinf.c (test_isinfl): Likewise.
25992         * tests/test-isnan.c (test_long_double): Likewise.
25993         * tests/test-isnanl.h (main): Likewise.
25994         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
25995         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
25996         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
25997         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
25998         Reported by Pádraig Brady.
26000 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
26002         git-version-gen: do not print new line characters
26003         * build-aux/git-version-gen: Use printf instead of echo and tr.
26005         gnulib-tool: recognize x:* as an absolute path
26006         * gnulib-tool (func_gnulib_dir): Add ?:* case.
26007         (func_relconcat): Likewise.
26009 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
26011         argp: avoid extraneous translation and mem leak with empty pre doc
26012         * lib/argp-help.c (argp_doc): Never translate the empty string,
26013         when "\v" is the first or last character of the string, as that
26014         has a reserved meaning to return the header info from a po file.
26015         This also fixes a small memory leak in the !post case.
26016         The issue can be seen with this command for example:
26017         LC_MESSAGES=en_US grub2-mknetdir --help
26019 2014-11-27  Daiki Ueno  <ueno@gnu.org>
26021         uniname/uniname-tests: skip if system's libunistring is used
26022         * modules/uniname/uniname-tests (Makefile.am): Skip test if
26023         uniname/uniname module is not compiled.
26025 2014-11-27  Pádraig Brady  <P@draigBrady.com>
26027         printf: fix configure check on big endian systems
26028         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
26030 2014-11-22  Daiki Ueno  <ueno@gnu.org>
26032         pipe-filter-gi, pipe-filter-ii: port to AIX
26033         On AIX 7.1, 'select' is defined as static and cannot be referred
26034         to from inline function.
26035         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
26036         the definition...
26037         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
26038         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
26040 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26042         gitlog-to-changelog: add --until
26043         * build-aux/gitlog-to-changelog: Support new --until option.
26044         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
26046 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26048         extern-inline: update commentary about GCC bugs
26049         * m4/extern-inline.m4: Add another GCC bug number to comments.
26051 2014-11-13  Daiki Ueno  <ueno@gnu.org>
26053         gen-uni-tables: untabify
26054         * lib/gen-uni-tables.c: Untabify.
26056 2014-11-13  Daiki Ueno  <ueno@gnu.org>
26058         gen-uni-tables: check out-of-range values added to 3-level tables
26059         * lib/gen-uni-tables.c (output_category, output_bidi_category)
26060         (output_joining_type, output_ident_category): Check out-of-range
26061         values added to 3-level tables.
26063 2014-11-13  Daiki Ueno  <ueno@gnu.org>
26065         gen-uni-tables: utilize 'assert'
26066         * lib/gen-uni-tables.c: Include <assert.h>.
26067         (output_category, output_combclass, output_decimal_digit_test)
26068         (output_decimal_digit, output_digit_test, output_digit)
26069         (output_numeric, get_mirror_value, fill_properties)
26070         (fill_property30, is_property_alphabetic)
26071         (is_property_default_ignorable_code_point)
26072         (is_property_uppercase, is_property_lowercase)
26073         (is_property_cased, is_property_case_ignorable)
26074         (is_property_changes_when_lowercased, is_property_iso_control)
26075         (is_property_math, fill_arabicshaping, output_joining_group)
26076         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
26077         (output_wbp, fill_org_gbp, get_decomposition)
26078         (output_decomposition, fill_composition_exclusions)
26079         (debug_output_composition_tables, output_composition_tables)
26080         (redistribute_casefolding_rules, output_casing_rules): Use
26081         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
26082         reporting.
26084 2014-11-13  Daiki Ueno  <ueno@gnu.org>
26086         gen-uni-tables: cosmetic improvements
26087         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
26088         variables specification.
26089         (is_outdigit): Remove unused function.
26091 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
26093         fcntl-h-tests: port to PA-RISC GNU/Linux
26094         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
26096 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26098         fts: port to C89
26099         Problem reported for MSVC 16 by Gisle Vanem in:
26100         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
26101         * lib/fts.c (fts_build): Avoid declaration before statement.
26103 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26105         unistd: port to iOS
26106         Problem reported by André Klitzing in:
26107         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
26108         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
26110 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26112         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
26113         Problem reported by Alan Modra in:
26114         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
26115         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
26116         Always cast the function arg, reverting this part of the previous
26117         change.
26119 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26121         obstack: avoid potentially-nonportable function casts
26122         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
26123         Remove, replacing with ...
26124         (call_chunkfun, call_freefun): New static functions.
26125         All uses changed.  Avoid potentially-nonportable casts.
26126         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
26127         (_obstack_begin_worker): Omit last two args, since they
26128         rely on potentially-nonportable casts.  All callers changed.
26129         * lib/obstack.h (_OBSTACK_CAST): New macro.
26130         Use it everywhere the old API used a potentially-nonportable cast.
26131         The new API doesn't cast.
26132         (struct obstack): Use unions rather than requiring
26133         potentially-nonportable casts.
26134         (obstack_chunkfun, obstack_freefun): Return void.
26136 2014-11-03  Alan Modra  <amodra@gmail.com>
26138         obstack: fix macro return values
26139         * lib/obstack.h (obstack_next_free): Return void *.
26140         (obstack_1grow_fast, obstack_blank_fast): Return void.
26141         For __GNUC__ macros:
26142         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
26143         For !__GNUC__ macros:
26144         (obstack_make_room, obstack_grow, obstack_grow0)
26145         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
26147 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26149         obstack: do not assume system-supplied obstack is size_t safe
26150         * m4/obstack.m4: New file.
26151         * modules/obstack (Files): Add it.
26153         obstack: port to platforms that #define __alignof__
26154         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
26155         not if !_LIBC.  We don't know of any platforms that #define
26156         __alignof__, but it might be useful in tests.  Conversely,
26157         glibc assumes GCC.
26159 2014-11-03  Pádraig Brady  <P@draigBrady.com>
26161         linkat: don't unconditionally replace on GNU/Linux
26162         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
26163         was redundant for a few reasons.  It was present to support compiling
26164         on new systems but running on the old narrow window of Linux 2.6.1[67].
26165         It setup and cleaned up test files which weren't actually used.
26166         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
26167         implicit in the following check.
26169 2014-11-03  Pádraig Brady  <P@draigBrady.com>
26171         linkat: wrap to handle symlinks on OS X 10.10
26172         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
26173         but not usable because it doesn't support creating hardlinks
26174         to symlinks.  Therefore add a generic test for this capability
26175         and fallback to our emulation if linkat() fails with ENOTSUP.
26177 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26179         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
26180         * doc/posix-functions/open.texi (open):
26181         * doc/posix-functions/openat.texi (openat):
26182         Document that these functions do not set errno to ELOOP when
26183         a symlink is opened with O_NOFOLLOW.
26185 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26187         obstack: add NEWS entry for recent incompatible changes
26188         * NEWS: Describe recent changes.
26190 2014-10-30  Pádraig Brady  <P@draigBrady.com>
26192         mountlist: don't use libmount to decide on dummy/remote
26193         * lib/mountlist.c (read_file_system_list): Don't use the libmount
26194         routines to determine whether a file system is dummy or remote,
26195         as they're not currently compatible.  For example the remoteness
26196         is determined on file system type (for which the list seems incomplete),
26197         rather than simply checking for a ':' in the device name.
26198         Also libmount currently determines that 'tmpfs' is a dummy file system
26199         even though it has associated storage.
26201 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26203         obstack: prefer __alignof__ to alignof
26204         This is for portability to pre-4.7 GCC when compiling glibc.
26205         See Joseph S. Myers in:
26206         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
26207         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
26208         New macro, defined by including and using <alignof.h>.
26209         (MAX): New macro.
26210         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
26211         Do not use enums as they are not portable to some broken compilers.
26212         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
26214         obstack: prefer alignof to calculating alignments by hand
26215         * lib/obstack.c: Include <stdalign.h>.
26216         (struct fooalign): Remove.
26217         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
26218         * modules/obstack (Depends-on): Add stdalign.
26220 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26222         obstack: use size_t alignments and check for overflow
26223         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
26224         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
26225         * lib/obstack.h (struct obstack.alignment_mask):
26226         Use _OBSTACK_SIZE_T, not int, for alignments.
26227         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
26228         overflows, e.g., when adding the alignment.
26230 2014-10-29  Alan Modra  <amodra@gmail.com>
26232         obstack: 64-bit obstack support, part 3
26233         This finally enables full 64-bit obstack support.  The glibc
26234         shared library specific code is removed from obstack.c too, and
26235         the error handling code conditionally compiled under control of
26236         another macro, _OBSTACK_NO_ERROR_HANDLER.
26237         * lib/obstack.h: Include string.h earlier.
26238         (_OBSTACK_INTERFACE_VERSION): Define.
26239         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
26240         * lib/obstack.c: Don't include shlib-compat.h.
26241         (OBSTACK_INTERFACE_VERSION): Delete.
26242         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
26243         glibc code is compatible with version 2.  Don't include stdio.h for
26244         __GNU_LIBRARY.
26245         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
26246         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
26247         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
26248         glibc shared library specific source.
26250         obstack: 64-bit obstack support, part 2
26251         This gets us 4G obstack support, without changing ABI
26252         compatibility, apart from possibly introducing some
26253         signed/unsigned comparison warnings in code that uses obstack.h.
26254         a) Replace "int" size parameters, return values, and macro local vars
26255            with _OBSTACK_SIZE_T, an "unsigned int" for now.
26256         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
26257         c) Make all obstack macros checking available room use obstack_room.
26258            "next_free + desired > chunk_limit" may wrap the lhs for chunks
26259            allocated near the top of memory.
26260         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
26261         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
26262         in place of "int" size parameters, return values and local vars.
26263         (_CHUNK_SIZE_T): Define.
26264         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
26265         union use an _OBSTACK_SIZE_T integer type.
26266         For __GNUC__ versions of the following macros...
26267         (obstack_room): Rename local var.
26268         (obstack_make_room): Use obstack_room.
26269         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
26270         obstack_int_grow, obstack_blank): Likewise.
26271         (obstack_finish): Use unsigned comparison when comparing aligned
26272         next_free against chunk_limit.
26273         (obstack_free): Cast OBJ to remove possible const qualifier.
26274         For !__GNUC__ versions of the following macros...
26275         (obstack_make_room): Use obstack_room.
26276         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
26277         obstack_int_grow, obstack_blank): Likewise.
26278         (obstack_finish): Use unsigned comparision when comparing aligned
26279         next_free against chunk_limit.
26280         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
26281         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
26282         _OBSTACK_SIZE_T.
26283         (_obstack_begin, _obstack_begin_1): Likewise.
26284         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
26285         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
26287         obstack: 64-bit obstack support, part 1
26288         a) Correct calls to alloc function, to use a size_t arg.  "long" is
26289            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
26290            and "size_t" 64 bits.
26291         b) Consolidate _obstack_begin and _obstack_begin1 code.
26292         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
26293         use "size_t" rather than "long".
26294         (_obstack_begin, _obstack_begin1): Likewise.
26295         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
26296         obstack_chunkfun): Update alloc function casts.
26297         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
26298         (chunkfun_type, freefun_type): New typdefs.
26299         (_obstack_begin_worker): Split out from ..
26300         (_obstack_begin, _obstack_begin_1): ..here.
26302         obstack: tidy part 2
26303         a) Don't be concerned about "not polluting the namespace with stddef.h
26304            symbols" in obstack.h, since gnulib string.h includes stddef.h
26305            anyway, and it seems unlikely that anyone would care.
26306         b) Don't roll our own slow memcpy in _obstack_newchunk.
26307         c) Rename obstack_free to _obstack_free.  This makes the naming
26308            consistent with other obstack functions and obviates the need for
26309            __obstack_free.  Ancient obstack.c defined both obstack_free and
26310            _obstack_free.  We continue to do that for _LIBC via an alias.
26311         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
26312            is clever, but nowadays gcc warns on undefined macros.  You'll get
26313            an undefined macro warning if simulating an old gcc with -U__GNUC__
26314            -U__GNUC_MINOR__ -D__GNUC__=1.
26315         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
26316         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
26317         (__obstack_free): Delete, update refs.
26318         (_obstack_free): Rename from obstack_free.
26319         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
26320         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
26321         * lib/obstack.c: Don't include stddef.h.
26322         (COPYING_UNIT): Delete.
26323         (_obstack_begin): Formatting fix.
26324         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
26325         (_obstack_free): Rename from __obstack_free, update alias.  Move
26326         undef of obstack_free to where it is needed.
26328         obstack: tidy part 1
26329         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
26330            to me, and result in overlong lines after later patches.
26331         b) Move error handling code, to avoid a forward declaration and to
26332            simplify later patches in this series.
26333         * lib/obstack.h (struct obstack <temp>): Rename fields of union
26334         and update all uses.
26335         * lib/obstack.c: Include stdlib.h earlier.
26336         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
26337         in file.
26338         (print_and_abort): Remove now redundant forward declaration.
26340 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26342         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
26343         Without this change, in bleeding-edge fileutils Autoconf complains
26344         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
26345         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
26346         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
26347         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
26349 2014-10-24  Daiki Ueno  <ueno@gnu.org>
26351         iconv: avoid false detection of non-working iconv
26352         The INBUF arguments of iconv can be either 'const char **'
26353         or 'char **'.  If CC is g++, the difference causes a compile error
26354         and thus leads to a false detection of non-working iconv.
26355         Reported by Eli Zaretskii and Werner LEMBERG in:
26356         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
26357         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
26358         iconv.  Bump serial number.
26360 2014-10-23  Pádraig Brady  <P@draigBrady.com>
26362         bootstrap: print more diagnostics for missing programs
26363         * build-aux/bootstrap: only suppress stderr when checking for
26364         alternative program names.  This supports programs issuing non
26365         standard error messages.
26367 2014-10-23  Pádraig Brady  <P@draigBrady.com>
26369         bootstrap: only update the gnulib submodule
26370         * build-aux/bootstrap: Restrict the "submodule update" command
26371         to the gnulib path.
26373 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26375         symlinkat: port to AIX 7.1
26376         * doc/posix-functions/symlinkat.texi (symlinkat):
26377         Mention AIX porting problem.
26378         * lib/symlinkat.c: Always include errno.h.
26379         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
26380         * lib/unistd.in.h (symlinkat): Add replacement machinery.
26381         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
26382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
26383         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
26384         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
26385         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
26387         readlinkat: port to AIX 7.1
26388         * doc/posix-functions/readlink.texi (readlink):
26389         * doc/posix-functions/readlinkat.texi (readlinkat):
26390         Mention AIX porting problem.
26391         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
26392         New function.
26393         * lib/unistd.in.h (readlinkat): Add replacement machinery.
26394         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
26395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
26396         * modules/readlinkat (configure.ac): Also compile replacement
26397         if REPLACE_READLINKAT.
26398         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
26400 2014-10-12  Karl Berry  <karl@gnu.org>
26402         * doc/posix-functions/dirname.texi: remove spurious {.
26404 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
26406         basename, dirname: Improve documentation.
26407         * doc/posix-functions/basename.texi: Mention dirname module and
26408         base_name() function.
26409         * doc/posix-functions/dirname.texi: Mention dir_name() and
26410         mdir_name() functions.
26411         Suggested by Werner LEMBERG <wl@gnu.org>.
26413 2014-09-24  Jim Meyering  <meyering@fb.com>
26415         exclude: declare exclude_patopts static
26416         * lib/exclude.c (exclude_patopts): Declare static,
26417         to avoid triggering a -Wmissing-prototypes warning.
26418         The alternative (declaring it in the .h file) would
26419         require publicizing the private "struct patopts".
26421 2014-09-21  Werner Lemberg  <wl@gnu.org>
26423         dirname: support compilation with C++
26424         * lib/dirname.h: Add necessary C linkage declarations.
26426 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26428         qsort_r: include <config.h>
26429         Problem reported by Tom G. Christensen in:
26430         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
26431         * lib/qsort.c [!_LIBC]: Include <config.h> first.
26433 2014-09-16  Dylan Cali  <calid1984@gmail.com>
26435         avltree-list: avoid compiler warnings (trivial)
26436         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26437         -Werror=suggest-attribute=pure.
26438         * lib/gl_array_list.c: Likewise.
26439         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
26440         declaration to avoid -Werror=missing-prototypes.  This is not added
26441         to a header as only exported for tests.  Add (void) to the
26442         check_invariants() call to indicate we're discarding the result
26443         in this context which avoids -Werror=unused-value.  Note we don't
26444         use ignore_value here to avoid a dependency as we know we'll not
26445         be adding __attribute__((warn_unused_result)) to check_invariants().
26446         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
26448 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26450         qsort_r: new module, for GNU-style qsort_r
26451         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
26453 2014-09-15  Werner LEMBERG  <wl@gnu.org>
26455         strerror_r-posix: support compilation with C++
26456         * lib/strerror_r.c: Add necessary C linkage declarations.
26458 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
26460         fcntl-h: fix compilation with Intel C++ compiler (trivial)
26461         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
26463 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
26465         mountlist: use /proc/self/mountinfo when available
26466         Use libmount to propagate device IDs provided by Linux in
26467         /proc/self/mountinfo.  This will give more accurate output when
26468         using df in chroot'ed environments as the device IDs are not
26469         determined by stat() which may be inaccurate within the chroot.
26470         * lib/mountlist.c (read_file_system_list): Use the libmount routines
26471         from util-linux to parse "/proc/self/mountinfo" or fall back to
26472         standard getmntent() processing.
26473         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
26474         getmntent() is used, as is the case on GNU/Linux.
26476 2014-09-07  Eric Wong  <normalperson@yhbt.net>
26478         users.txt: add cmogstored
26479         cmogstored has used gnulib since the beginning in 2012 to support
26480         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
26482 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
26484         Trivial change.
26485         * gnulib-tool: Use same options as build-aux/bootstrap to download
26486         PO files.
26488 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
26490         Trivial change.
26491         * gnulib-tool: Fallback to wget when rsync of PO files fails.
26493 2014-09-04  Eric Blake  <eblake@redhat.com>
26495         maintainer-makefile: add syntax check for useless ';;'
26496         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
26498 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
26500         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
26501         Problem reported by Assaf Gordon in:
26502         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
26503         Apparently Ubuntu is doing some fancy link-time optimization
26504         that doesn't work with -lpthread but does work with -pthread.
26505         Work around the bug by preferring -pthread to -lpthread.
26506         * m4/pthread.m4 (gl_PTHREAD_CHECK):
26507         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
26508         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
26509         Treat -pthread like -lpthread.
26511 2014-09-04  Eric Blake  <eblake@redhat.com>
26513         error: drop spurious semicolon
26514         * lib/error.c (__error_at_line): Fix ';;'.
26516 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26518         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
26519         * m4/gnulib-common.m4 (AC_C_RESTRICT):
26520         Override AC_C_RESTRICT unconditionally.
26521         Update from autoconf, incorporating:
26522         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
26523         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
26525 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26527         manywarnings: add GCC 4.9 warnings
26528         Also, make it easier to maintain this in the future.
26529         * build-aux/gcc-warning.spec: Add -Wabi-tag,
26530         -Wconditionally-supported, -Wdelete-incomplete,
26531         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
26532         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
26533         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
26534         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
26535         only for older GCC versions that need them.  Handle
26536         -Wnormalized=nfc specially, so that the 'comm' command used
26537         for maintenance doesn't get confused.
26539 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26541         vasnprintf: fix bugs in width computation
26542         * lib/vasnprintf.c (VASNPRINTF):
26543         Rework previous change, which introduced a bug,
26544         to avoid the warning in a different way.
26545         Avoid undefined behavior if the width arg is less than -INT_MAX.
26546         Avoid unnecessary use of HAS_WIDTH local.
26548 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
26550         vasnprintf: Avoid signed/unsigned comparison warning.
26551         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
26552         compare end addr of generated string w/ maximum end addr.
26554 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
26556         parse-datetime: Avoid pointer difference.
26557         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
26558         instead of calculating difference of pointers.  This removes an
26559         annoying warning, devoid of any use.
26561 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26563         qsort_r: new module, for GNU-style qsort_r
26564         This works even on FreeBSD, which has an incompatible qsort_r API.
26565         * MODULES.html.sh: Add it.
26566         * doc/glibc-functions/qsort_r.texi: It's now supported.
26567         * lib/qsort.c: New file, taken from glibc with minor changes
26568         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
26569         removed.
26570         * lib/qsort_r.c: New file, compiled only on FreeBSD.
26571         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
26572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
26573         * modules/qsort_r, modules/qsort_r-tests: New files.
26574         * modules/stdlib (Makefile): Set up its defaults.
26575         * tests/test-qsort_r.c: New file.
26577 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
26579         vla: new module
26580         GNU RCS can use this, mostly for documentation I expect.  See:
26581         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
26582         * MODULES.html.sh: Add vla.
26583         * lib/vla.h, modules/vla: New files.
26585 2014-08-07  Daiki Ueno  <ueno@gnu.org>
26587         localename: make gl_locale_name_thread really thread-safe on Windows
26588         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
26589         "glthread/lock.h".
26590         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
26591         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
26593 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
26595         getpass: don't assume struct termios
26596         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
26597         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
26598         * lib/getpass.c (getpass): Port to systems lacking struct termios.
26600         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
26601         Problem reported by Jonas 'Sortie' Termansen in:
26602         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
26603         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
26604         Implement via sysconf for platforms that lack getdtablesize.
26606         vararrays: modernize AC_C_VARARRAYS for C11
26607         This backports a change I recently made to Autoconf.
26608         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
26609         VLAs are not supported, as this is what C11 does.  The old macro
26610         HAVE_C_VARARRAYS is still defined if they are supported, but is
26611         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
26613 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
26615         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
26616         * build-aux/install-reloc (func_create_wrapper): Also wrap
26617         strerror-override, stat, stat.
26619 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26621         sys_select: fix FD_ZERO problem on Solaris 10
26622         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
26623         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
26624         to expand to an expression that invoked memset without necessarily
26625         including <string.h>.  The problem was that the first include
26626         defined _SYS_TIME_H, causing the second include to short-circuit.
26627         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
26628         Also, fix what appears to be a cut-and-paste typo, by replacing
26629         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
26630         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
26632         accept: document Solaris 10 type glitch
26633         * doc/posix-functions/accept.texi (accept): Mention that
26634         Solaris 10 'accept' takes void * last arg, not socklen_t *.
26636 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
26638         extern-inline: port to FreeBSD, DragonFly
26639         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
26640         is present if either __DragonFly__ or __FreeBSD__ is defined.
26641         FreeBSD problem reported by Andrey Borzenkov in:
26642         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
26643         Also, worry about __APPLE__ only if __MACH__ is also defined,
26644         as this is more consistent with the rest of gnulib.
26645         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
26646         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
26648 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26650         regex: Make #if/#ifdef usage consistent for DEBUG
26651         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
26652         of the inconsistent usage of #if and #ifdef as that works with
26653         both Glibc and Gnulib's style.
26655 2014-07-31  Eric Blake  <eblake@redhat.com>
26657         openat-die: use _Noreturn markup
26658         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
26659         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
26660         _Noreturn.
26662 2014-07-30  Eric Blake  <eblake@redhat.com>
26664         test-open: port to cygwin, which lacks Fortify
26665         * tests/test-open.h (ALWAYS_INLINE): New macro.
26666         (__always_inline): Don't abuse internal symbol on non-glibc.
26668 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
26670         localename: Enforce declarations before statements.
26671         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
26672         first statement.
26674 2014-07-18  Jim Meyering  <meyering@fb.com>
26676         test-userspec: don't look up numeric user names
26677         * tests/test-userspec.c: I found a system for which getpwnam("0")
26678         returned a pointer to a non-root user's entry, and that made the
26679         test fail.
26680         (T): Prefix each numeric input with "+", to inhibit lookup.
26682 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
26684         localcharset, localename: MS-Windows support for non-default locales
26685         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
26686         falling back on the default system codepage, try extracting
26687         the codepage from what 'setlocale' returns.  This allows to
26688         take into account changes of the codeset due to non-default
26689         locale set by a previous call to 'setlocale'.
26690         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
26691         Define if not already defined.
26692         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
26693         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
26694         current locale by calling 'setlocale', then converting the
26695         locale name into LCID by calling 'get_lcid'.  This allows to
26696         take into account changes in the current locale from the
26697         default one, in contrast to GetThreadLocale.
26699 2014-07-14  Daiki Ueno  <ueno@gnu.org>
26701         announce-gen: avoid failure when Digest::SHA is installed
26702         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
26703         Digest::SHA1->new in print_checksums fails.
26704         * build-aux/announce-gen (digest_classes): New associative array
26705         for available message digest implementations.
26706         (print_locations): Use it.
26708 2014-07-13  Pádraig Brady  <P@draigBrady.com>
26710         gettext: revert "update macros to version 0.19"
26711         This reverts commit 9b9370ca, as it currently requires that
26712         developers of any project that explicitly uses the gettext module
26713         or implicitly uses it through the utimens-tests or
26714         futimens-tests modules, use gettext >= 0.19.
26715         However there are some stability and availablity issues with
26716         that version at present.  We can reinstate this soon, when stability
26717         is addressed and packages are more readily available.
26719 2014-07-12  Jim Meyering  <meyering@fb.com>
26721         regex: don't deref NULL upon heap allocation failure
26722         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
26723         failure in one more place.
26724         To trigger the segfault, configure grep -with-included-regex,
26725         build it, and run these commands:
26726         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
26727         I discovered this while replying to a private report from
26728         Jens Schleusener about excessive memory consumption by grep
26729         when using a regular expression like the one above.
26731 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
26733         regex: fix memory leak in compiler
26734         Fix by Andreas Schwab in:
26735         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
26736         * lib/regcomp.c (parse_reg_exp): Deallocate partially
26737         constructed tree before returning error.
26739 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
26741         announce-gen: avoid perl warnings
26742         * build-aux/announce-gen: add two minor checks to avoid
26743         "use of uninitialized value" warnings when command-line parameters are
26744         missing.
26746 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
26748         localename: avoid -Wsuggest-attribute={const,pure} warnings
26749         * lib/localename.c (string_has): Tag internal function as pure.
26750         * lib/localename.h (gl_locale_name_default): Tag extern declaration
26751         as const when appropriate.
26753 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
26755         nl_langinfo: Fix last change.
26756         * lib/nl_langinfo.c (includes): Drop redundant include.
26758 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26760         error: Fix -Wundef warnings in glibc
26761         * lib/error.c [_LIBC]: Define default macros for
26762         glibc.
26763         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
26764         Check _LIBC before STRERROR_R_CHAR_P.
26766         error: Sync from glibc master
26767         * lib/error.c [_LIBC]: Remove INTUSE usage.
26768         (error_tail): Remove unused macro ALLOCA_LIMIT.
26769         Fix potential buffer overflow.  Fix potential NULL dereference
26770         in strcmp.
26772 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
26774         nl_langinfo: fix build under mingw
26775         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
26777 2014-07-09  Andrew D Warshall  <warshall@99main.com>
26779         mountlist: do not classify a bind-mounted dir entry as "dummy"
26780         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
26781         1-argument getmntent() (instead of assuming absence).
26783 2014-07-08  Eric Blake  <eblake@redhat.com>
26785         maint.mk: less syntax-check noise when SIGPIPE is ignored
26786         * top/maint.mk (_sc_header_without_use)
26787         (sc_require_config_h_first): Parse full list.
26789 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
26790             Paul Eggert  <eggert@cs.ucla.edu>
26792         nl_langinfo: CODESET on MS-Windows and more items from localeconv
26793         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
26794         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
26795         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
26796         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
26797         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
26798         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
26799         Include <stdio.h> if Microsoft Windows.
26800         Include <time.h> if !REPLACE_NL_LANGINFO.
26801         (ctype_codeset): New function, taken from rpl_nl_langinfo,
26802         and with improvements for Microsoft Windows.
26803         (rpl_nl_langinfo): Use it.
26804         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
26805         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
26806         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
26807         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
26808         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
26809         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
26810         corresponding values returned by 'localeconv'.  Compute the values
26811         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
26812         'strftime' with a suitable struct tm value.
26814 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26816         Bruno Haible has stepped down as maintainer.
26817         See Karl Berry in:
26818         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
26819         Daiki Ueno has volunteered to maintain libunistring; see:
26820         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
26821         * modules/gen-uni-tables, modules/libunistring:
26822         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
26823         * modules/unicase/base, modules/unicase/cased:
26824         * modules/unicase/empty-prefix-context:
26825         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
26826         * modules/unicase/locale-language, modules/unicase/special-casing:
26827         * modules/unicase/tocasefold, modules/unicase/tolower:
26828         * modules/unicase/totitle, modules/unicase/toupper:
26829         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
26830         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
26831         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
26832         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
26833         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
26834         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
26835         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
26836         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
26837         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
26838         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
26839         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
26840         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
26841         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
26842         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
26843         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
26844         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
26845         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
26846         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
26847         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
26848         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
26849         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
26850         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
26851         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
26852         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
26853         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
26854         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
26855         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
26856         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
26857         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
26858         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
26859         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
26860         * modules/unicase/ulc-casexfrm, modules/unicodeio:
26861         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
26862         * modules/uniconv/u16-conv-to-enc:
26863         * modules/uniconv/u16-strconv-from-enc:
26864         * modules/uniconv/u16-strconv-from-locale:
26865         * modules/uniconv/u16-strconv-to-enc:
26866         * modules/uniconv/u16-strconv-to-locale:
26867         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
26868         * modules/uniconv/u32-strconv-from-enc:
26869         * modules/uniconv/u32-strconv-from-locale:
26870         * modules/uniconv/u32-strconv-to-enc:
26871         * modules/uniconv/u32-strconv-to-locale:
26872         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
26873         * modules/uniconv/u8-strconv-from-enc:
26874         * modules/uniconv/u8-strconv-from-locale:
26875         * modules/uniconv/u8-strconv-to-enc:
26876         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
26877         * modules/unictype/bidicategory-all:
26878         * modules/unictype/bidicategory-byname:
26879         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
26880         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
26881         * modules/unictype/bidiclass-byname:
26882         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
26883         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
26884         * modules/unictype/block-all, modules/unictype/block-list:
26885         * modules/unictype/block-of, modules/unictype/block-test:
26886         * modules/unictype/category-C, modules/unictype/category-Cc:
26887         * modules/unictype/category-Cf, modules/unictype/category-Cn:
26888         * modules/unictype/category-Co, modules/unictype/category-Cs:
26889         * modules/unictype/category-L, modules/unictype/category-LC:
26890         * modules/unictype/category-Ll, modules/unictype/category-Lm:
26891         * modules/unictype/category-Lo, modules/unictype/category-Lt:
26892         * modules/unictype/category-Lu, modules/unictype/category-M:
26893         * modules/unictype/category-Mc, modules/unictype/category-Me:
26894         * modules/unictype/category-Mn, modules/unictype/category-N:
26895         * modules/unictype/category-Nd, modules/unictype/category-Nl:
26896         * modules/unictype/category-No, modules/unictype/category-P:
26897         * modules/unictype/category-Pc, modules/unictype/category-Pd:
26898         * modules/unictype/category-Pe, modules/unictype/category-Pf:
26899         * modules/unictype/category-Pi, modules/unictype/category-Po:
26900         * modules/unictype/category-Ps, modules/unictype/category-S:
26901         * modules/unictype/category-Sc, modules/unictype/category-Sk:
26902         * modules/unictype/category-Sm, modules/unictype/category-So:
26903         * modules/unictype/category-Z, modules/unictype/category-Zl:
26904         * modules/unictype/category-Zp, modules/unictype/category-Zs:
26905         * modules/unictype/category-all, modules/unictype/category-and:
26906         * modules/unictype/category-and-not, modules/unictype/category-byname:
26907         * modules/unictype/category-longname, modules/unictype/category-name:
26908         * modules/unictype/category-none, modules/unictype/category-of:
26909         * modules/unictype/category-or, modules/unictype/category-test:
26910         * modules/unictype/category-test-withtable:
26911         * modules/unictype/combining-class:
26912         * modules/unictype/combining-class-all:
26913         * modules/unictype/combining-class-byname:
26914         * modules/unictype/combining-class-longname:
26915         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
26916         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
26917         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
26918         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
26919         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
26920         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
26921         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
26922         * modules/unictype/digit, modules/unictype/joininggroup-all:
26923         * modules/unictype/joininggroup-byname:
26924         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
26925         * modules/unictype/joiningtype-all:
26926         * modules/unictype/joiningtype-byname:
26927         * modules/unictype/joiningtype-longname:
26928         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
26929         * modules/unictype/mirror, modules/unictype/numeric:
26930         * modules/unictype/property-all, modules/unictype/property-alphabetic:
26931         * modules/unictype/property-ascii-hex-digit:
26932         * modules/unictype/property-bidi-arabic-digit:
26933         * modules/unictype/property-bidi-arabic-right-to-left:
26934         * modules/unictype/property-bidi-block-separator:
26935         * modules/unictype/property-bidi-boundary-neutral:
26936         * modules/unictype/property-bidi-common-separator:
26937         * modules/unictype/property-bidi-control:
26938         * modules/unictype/property-bidi-embedding-or-override:
26939         * modules/unictype/property-bidi-eur-num-separator:
26940         * modules/unictype/property-bidi-eur-num-terminator:
26941         * modules/unictype/property-bidi-european-digit:
26942         * modules/unictype/property-bidi-hebrew-right-to-left:
26943         * modules/unictype/property-bidi-left-to-right:
26944         * modules/unictype/property-bidi-non-spacing-mark:
26945         * modules/unictype/property-bidi-other-neutral:
26946         * modules/unictype/property-bidi-pdf:
26947         * modules/unictype/property-bidi-segment-separator:
26948         * modules/unictype/property-bidi-whitespace:
26949         * modules/unictype/property-byname:
26950         * modules/unictype/property-case-ignorable:
26951         * modules/unictype/property-cased:
26952         * modules/unictype/property-changes-when-casefolded:
26953         * modules/unictype/property-changes-when-casemapped:
26954         * modules/unictype/property-changes-when-lowercased:
26955         * modules/unictype/property-changes-when-titlecased:
26956         * modules/unictype/property-changes-when-uppercased:
26957         * modules/unictype/property-combining:
26958         * modules/unictype/property-composite:
26959         * modules/unictype/property-currency-symbol:
26960         * modules/unictype/property-dash:
26961         * modules/unictype/property-decimal-digit:
26962         * modules/unictype/property-default-ignorable-code-point:
26963         * modules/unictype/property-deprecated:
26964         * modules/unictype/property-diacritic:
26965         * modules/unictype/property-extender:
26966         * modules/unictype/property-format-control:
26967         * modules/unictype/property-grapheme-base:
26968         * modules/unictype/property-grapheme-extend:
26969         * modules/unictype/property-grapheme-link:
26970         * modules/unictype/property-hex-digit:
26971         * modules/unictype/property-hyphen:
26972         * modules/unictype/property-id-continue:
26973         * modules/unictype/property-id-start:
26974         * modules/unictype/property-ideographic:
26975         * modules/unictype/property-ids-binary-operator:
26976         * modules/unictype/property-ids-trinary-operator:
26977         * modules/unictype/property-ignorable-control:
26978         * modules/unictype/property-iso-control:
26979         * modules/unictype/property-join-control:
26980         * modules/unictype/property-left-of-pair:
26981         * modules/unictype/property-line-separator:
26982         * modules/unictype/property-logical-order-exception:
26983         * modules/unictype/property-lowercase, modules/unictype/property-math:
26984         * modules/unictype/property-non-break:
26985         * modules/unictype/property-not-a-character:
26986         * modules/unictype/property-numeric:
26987         * modules/unictype/property-other-alphabetic:
26988         * modules/unictype/property-other-default-ignorable-code-point:
26989         * modules/unictype/property-other-grapheme-extend:
26990         * modules/unictype/property-other-id-continue:
26991         * modules/unictype/property-other-id-start:
26992         * modules/unictype/property-other-lowercase:
26993         * modules/unictype/property-other-math:
26994         * modules/unictype/property-other-uppercase:
26995         * modules/unictype/property-paired-punctuation:
26996         * modules/unictype/property-paragraph-separator:
26997         * modules/unictype/property-pattern-syntax:
26998         * modules/unictype/property-pattern-white-space:
26999         * modules/unictype/property-private-use:
27000         * modules/unictype/property-punctuation:
27001         * modules/unictype/property-quotation-mark:
27002         * modules/unictype/property-radical:
27003         * modules/unictype/property-sentence-terminal:
27004         * modules/unictype/property-soft-dotted:
27005         * modules/unictype/property-space:
27006         * modules/unictype/property-terminal-punctuation:
27007         * modules/unictype/property-test, modules/unictype/property-titlecase:
27008         * modules/unictype/property-unassigned-code-value:
27009         * modules/unictype/property-unified-ideograph:
27010         * modules/unictype/property-uppercase:
27011         * modules/unictype/property-variation-selector:
27012         * modules/unictype/property-white-space:
27013         * modules/unictype/property-xid-continue:
27014         * modules/unictype/property-xid-start:
27015         * modules/unictype/property-zero-width, modules/unictype/scripts:
27016         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
27017         * modules/unictype/syntax-c-whitespace:
27018         * modules/unictype/syntax-java-ident:
27019         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
27020         * modules/unigbrk/u16-grapheme-breaks:
27021         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
27022         * modules/unigbrk/u32-grapheme-breaks:
27023         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
27024         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
27025         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
27026         * modules/unigbrk/uc-is-grapheme-break:
27027         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
27028         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
27029         * modules/unilbrk/u16-width-linebreaks:
27030         * modules/unilbrk/u32-possible-linebreaks:
27031         * modules/unilbrk/u32-width-linebreaks:
27032         * modules/unilbrk/u8-possible-linebreaks:
27033         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
27034         * modules/unilbrk/ulc-possible-linebreaks:
27035         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
27036         * modules/uniname/uniname, modules/uninorm/base:
27037         * modules/uninorm/canonical-decomposition:
27038         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
27039         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
27040         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
27041         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
27042         * modules/uninorm/nfkc, modules/uninorm/nfkd:
27043         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
27044         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
27045         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
27046         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
27047         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
27048         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
27049         * modules/unistdio/base, modules/unistdio/u-printf-args:
27050         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
27051         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
27052         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
27053         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
27054         * modules/unistdio/u16-u16-sprintf:
27055         * modules/unistdio/u16-u16-vasnprintf:
27056         * modules/unistdio/u16-u16-vasprintf:
27057         * modules/unistdio/u16-u16-vsnprintf:
27058         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
27059         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
27060         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
27061         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
27062         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
27063         * modules/unistdio/u32-u32-asnprintf:
27064         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
27065         * modules/unistdio/u32-u32-sprintf:
27066         * modules/unistdio/u32-u32-vasnprintf:
27067         * modules/unistdio/u32-u32-vasprintf:
27068         * modules/unistdio/u32-u32-vsnprintf:
27069         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
27070         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
27071         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
27072         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
27073         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
27074         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
27075         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
27076         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
27077         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
27078         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
27079         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
27080         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
27081         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
27082         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
27083         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
27084         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
27085         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
27086         * modules/unistr/u16-check, modules/unistr/u16-chr:
27087         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
27088         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
27089         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
27090         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
27091         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
27092         * modules/unistr/u16-move, modules/unistr/u16-next:
27093         * modules/unistr/u16-prev, modules/unistr/u16-set:
27094         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
27095         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
27096         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
27097         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
27098         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
27099         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
27100         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
27101         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
27102         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
27103         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
27104         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
27105         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
27106         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
27107         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
27108         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
27109         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
27110         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
27111         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
27112         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
27113         * modules/unistr/u32-next, modules/unistr/u32-prev:
27114         * modules/unistr/u32-set, modules/unistr/u32-startswith:
27115         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
27116         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
27117         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
27118         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
27119         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
27120         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
27121         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
27122         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
27123         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
27124         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
27125         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
27126         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
27127         * modules/unistr/u8-check, modules/unistr/u8-chr:
27128         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
27129         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
27130         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
27131         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
27132         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
27133         * modules/unistr/u8-next, modules/unistr/u8-prev:
27134         * modules/unistr/u8-set, modules/unistr/u8-startswith:
27135         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
27136         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
27137         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
27138         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
27139         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
27140         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
27141         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
27142         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
27143         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
27144         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
27145         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
27146         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
27147         * modules/uniwbrk/base, modules/uniwbrk/table:
27148         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
27149         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
27150         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
27151         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
27152         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
27153         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
27154         * modules/uniwidth/width, modules/utf16-ucs4:
27155         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
27156         * modules/utf8-ucs4-unsafe:
27157         Change maintainer from Bruno Haible to Daiki Ueno.
27158         This is my guess at the libunistring modules; please feel free
27159         to fix if I guessed incorrectly.
27160         * modules/accept4, modules/acl, modules/acos, modules/acosf:
27161         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
27162         * modules/areadlink, modules/array-list, modules/array-mergesort:
27163         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
27164         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
27165         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
27166         * modules/binary-io, modules/bison-i18n, modules/btowc:
27167         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
27168         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
27169         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
27170         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
27171         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
27172         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
27173         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
27174         * modules/closedir, modules/concat-filename, modules/copy-file:
27175         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
27176         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
27177         * modules/csharpcomp-script, modules/csharpexec:
27178         * modules/csharpexec-script, modules/ctype, modules/diffseq:
27179         * modules/dprintf, modules/dprintf-posix, modules/dup:
27180         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
27181         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
27182         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
27183         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
27184         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
27185         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
27186         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
27187         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
27188         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
27189         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
27190         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
27191         * modules/findprog, modules/findprog-lgpl, modules/floor:
27192         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
27193         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
27194         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
27195         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
27196         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
27197         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
27198         * modules/freadable, modules/freadahead, modules/freadptr:
27199         * modules/freadseek, modules/freopen, modules/frexp:
27200         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
27201         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
27202         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
27203         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
27204         * modules/ftello, modules/full-read, modules/full-write:
27205         * modules/fwritable, modules/fwriteerror, modules/gcd:
27206         * modules/get-rusage-as, modules/get-rusage-data:
27207         * modules/getdtablesize, modules/getrusage, modules/gettext:
27208         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
27209         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
27210         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
27211         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
27212         * modules/iconv, modules/iconv-h, modules/iconv_open:
27213         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
27214         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
27215         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
27216         * modules/integer_length_ll, modules/ioctl, modules/isatty:
27217         * modules/isblank, modules/isnand, modules/isnand-nolibm:
27218         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
27219         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
27220         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
27221         * modules/javaexec, modules/javaexec-script, modules/javaversion:
27222         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
27223         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
27224         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
27225         * modules/lib-symbol-visibility, modules/libsigsegv:
27226         * modules/linked-list, modules/linkedhash-list, modules/list:
27227         * modules/localcharset, modules/locale, modules/localeconv:
27228         * modules/localename, modules/lock, modules/log, modules/log-ieee:
27229         * modules/log10, modules/log10-ieee, modules/log10f:
27230         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
27231         * modules/log1p, modules/log1p-ieee, modules/log1pf:
27232         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
27233         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
27234         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
27235         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
27236         * modules/logf, modules/logf-ieee, modules/login_tty:
27237         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
27238         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
27239         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
27240         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
27241         * modules/mbscspn, modules/mbsinit, modules/mbslen:
27242         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
27243         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
27244         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
27245         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
27246         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
27247         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
27248         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
27249         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
27250         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
27251         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
27252         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
27253         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
27254         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
27255         * modules/posix_spawn, modules/posix_spawn-internal:
27256         * modules/posix_spawn_file_actions_addclose:
27257         * modules/posix_spawn_file_actions_adddup2:
27258         * modules/posix_spawn_file_actions_addopen:
27259         * modules/posix_spawn_file_actions_destroy:
27260         * modules/posix_spawn_file_actions_init:
27261         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
27262         * modules/posix_spawnattr_getpgroup:
27263         * modules/posix_spawnattr_getschedparam:
27264         * modules/posix_spawnattr_getschedpolicy:
27265         * modules/posix_spawnattr_getsigdefault:
27266         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
27267         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
27268         * modules/posix_spawnattr_setschedparam:
27269         * modules/posix_spawnattr_setschedpolicy:
27270         * modules/posix_spawnattr_setsigdefault:
27271         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
27272         * modules/pow, modules/powf, modules/printf-frexp:
27273         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
27274         * modules/progname, modules/propername, modules/pselect:
27275         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
27276         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
27277         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
27278         * modules/read, modules/readdir, modules/readlink:
27279         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
27280         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
27281         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
27282         * modules/relocatable-script, modules/remainder:
27283         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
27284         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
27285         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
27286         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
27287         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
27288         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
27289         * modules/setlocale, modules/sh-quote, modules/shutdown:
27290         * modules/signal, modules/signbit, modules/sigpipe:
27291         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
27292         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
27293         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
27294         * modules/snippet/link-warning, modules/snippet/unused-parameter:
27295         * modules/snprintf, modules/snprintf-posix, modules/spawn:
27296         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
27297         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
27298         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
27299         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
27300         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
27301         * modules/streq, modules/strerror_r-posix, modules/striconv:
27302         * modules/striconveh, modules/striconveha, modules/strncat:
27303         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
27304         * modules/sublist, modules/sys_resource, modules/sys_utsname:
27305         * modules/sys_wait, modules/system-posix, modules/system-quote:
27306         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
27307         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
27308         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
27309         * modules/truncf, modules/truncf-ieee, modules/truncl:
27310         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
27311         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
27312         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
27313         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
27314         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
27315         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
27316         * modules/wait-process, modules/waitpid, modules/wcpcpy:
27317         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
27318         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
27319         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
27320         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
27321         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
27322         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
27323         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
27324         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
27325         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
27326         * modules/write, modules/xconcat-filename, modules/xlist:
27327         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
27328         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
27329         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
27330         * modules/y0, modules/y1, modules/yn:
27331         Remove Bruno Haible as maintainer; if he's the sole maintainer,
27332         change the maintainer to 'all'.  Let's hope someone volunteers.
27334 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
27336         mktime: merge #if/#ifdef usage from glibc
27337         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
27338         as that works with both Glibc's and Gnulib's style.
27339         See thread starting at Siddhesh Poyarekar's bug report at:
27340         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
27342 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
27344         git-version-gen: improve option descriptions
27345         * build-aux/git-version-gen: Mention that --prefix and --fallback
27346         have a mandatory argument.
27348 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27350         regex: fix memory leak in compiler
27351         Fix by Andreas Schwab in:
27352         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
27353         * lib/regcomp.c (parse_expression): Deallocate partially
27354         constructed tree before returning error.
27356         regex: merge patch from libc
27357         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
27358         Combine __USE_BSD and __USE_SVID into __USE_MISC.
27359         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
27361 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
27363         acl: port to gcc -Wredundant-decls
27364         From a request by Dmitry Antipov in:
27365         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
27366         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
27367         "#ifndef _GL_ACL_H".
27369 2014-06-11  Bruce Korb  <bkorb@gnu.org>
27370         Jim Meyering  <meyering@fb.com>
27372         parse-duration: eliminate 68-year duration limit
27373         * lib/parse-duration.c: Include "intprops.h".
27374         (TIME_MAX): Rename to MAX_DURATION and define to
27375         TYPE_MAXIMUM(time_t).
27376         * modules/parse-duration (Depends-on): Add intprops.
27377         Reported by Jonas 'Sortie' Termansen.
27379 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27381         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
27382         * modules/pthread (Depends-on): Add 'extensions', as it defines
27383         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
27384         (configure.ac-early): New section.
27385         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
27386         it is no longer needed.
27388 2014-06-14  Pádraig Brady  <P@draigBrady.com>
27390         pthread: define thread-safe macros on some platforms
27391         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
27392         for thread-safe operation on some platforms.
27394 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27396         regex: don't be multithreaded if USE_UNLOCKED_IO.
27397         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
27398         * lib/regex_internal.h: Do not use multithreaded version if
27399         USE_UNLOCKED_IO is defined.  This is a hack, but it works
27400         around a porting bug with coreutils 8.22 on AIX 7.1.
27402 2014-06-11  Daiki Ueno  <ueno@gnu.org>
27404         gettext: update macros to version 0.19
27405         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
27406         depend on gl_EXTERN_INLINE and drop support for older Bison
27407         versions.
27409 2014-06-10  Pádraig Brady  <P@draigBrady.com>
27411         select,poll: fix console handle check on windows 8
27412         lib/poll.c (IsConsoleHandle): Change from testing the lower
27413         2 bits of the handle to the more expensive but accurate syscall.
27414         lib/select.c: Likewise.
27416 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
27418         select: fix waiting on anonymous pipes on MS-Windows
27419         * lib/select.c (rpl_select): Fall back to polling when select()
27420         indicates there is nothing to check, while due to the timeout not
27421         expiring, activity is indicated on one of the handles.
27422         Also clear the TIMEOUT argument if the timer does expire.
27424 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
27426         times: fix to return non constant value on MS-Windows
27427         * lib/times.c (times): Don't use the process creation time,
27428         rather clock() which on windows returns the number of
27429         clock ticks since the process started.
27431 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
27433         isatty: fix to work on windows 8
27434         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
27435         2 bits of the handle to the more expensive but accurate syscall.
27437 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
27439         maint: fix typo in fdl.texi
27440         * doc/fdl.texi: Fix typo (missing '@').
27441         Somehow this was in fdl.texi but not fdl-1.3.texi.
27443 2014-06-06  Ben Walton  <bdwalton@gmail.com>
27445         mountlist: avoid hasmntopt const type warning on solaris
27446         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
27447         with char * instead of const char *.  Passing the constant string
27448         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
27449         to avoid the warning.
27451 2014-06-04  Eric Blake  <eblake@redhat.com>
27453         maintainer-makefile: delete obsolete code
27454         * top/maint.mk (build_aux): Drop old code, as threatened.
27456         maintainer-makefile: avoid spurious error messages
27457         * top/maint.mk (syntax-check): Guard definition and use of
27458         $(shell) by whether Makefile is present.
27460 2014-06-03  Ben Walton  <bdwalton@gmail.com>
27462         rename: avoid unused-but-set-variable compiler warning
27463         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
27464         it is possible that dst_exists may be set but not used.  Mark it with
27465         the unused attribute to avoid compiler warnings.
27467 2014-06-02  Ben Walton  <bdwalton@gmail.com>
27469         rename: mark a label as potentially unused
27470         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
27471         by marking the out label as potentially unused.
27472         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
27474 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
27476         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
27477         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
27479 2014-06-02  Ben Walton  <bdwalton@gmail.com>
27481         acl: apply pure attribute to two functions
27482         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
27483         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
27485 2014-06-01  Pádraig Brady  <P@draigBrady.com>
27487         gnulib-common.m4: add _GL_UNUSED_LABEL
27488         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
27489         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
27491 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27493         dup2, fcntl, fcntl-h: port to AIX 7.1
27494         This fixes some porting problems discovered when testing the latest
27495         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
27496         in grep but it could be important for other applications.
27497         * doc/posix-functions/dup2.texi:
27498         * doc/posix-functions/fcntl.texi:
27499         * doc/posix-headers/fcntl.texi:
27500         Document AIX bugs.
27501         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
27502         Define to 0 if outside 'int' range.
27503         * m4/dup2.m4 (gl_FUNC_DUP2):
27504         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27505         Check for getdtablesize.  If it's available, test a value just
27506         outside its range instead of testing 1000000.  When cross-compiling,
27507         guess that AIX will fail this improved test.
27509 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27511         printf, config.rpath: Port to FreeBSD 10.
27512         Problem reported by Tijl Coosemans in:
27513         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
27514         * build-aux/config.rpath (hardcode_libdir_flag_spec)
27515         (hardcode_direct): Simplify FreeBSD configuration.
27516         (library_names_spec): Don't mishandle FreeBSD 10+.
27517         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
27518         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
27519         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
27520         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
27521         Don't mishandle FreeBSD 10+ when cross-compiling.
27523         ftoastr: work around compiler bug in IBM xlc 12.1
27524         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
27525         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
27526         around a compiler bug in IBM xlc 12.1.0.0: it complains
27527         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
27528         _GL_FLT_PREC_BOUND.'
27530 2014-05-30  Kieran Colford  <colfordk@gmail.com>
27532         valgrind-tests: fixed misleading help message
27533         * m4/valgrind-tests.m4: The help message generated by configure
27534         implied that valgrind was disabled by default, which it wasn't.
27535         Adjusted the help message using s/enable/disable/ to clarify.
27537 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
27539         isfinite, isinf, isnan tests: fix for little-endian PowerPC
27540         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
27541         first double of a PowerPC "double double" pair.
27542         * tests/test-isinf.c (test_isinfl): Likewise.
27543         * tests/test-isnan.c (test_long_double): Likewise.
27544         * tests/test-isnanl.h (main): Likewise.
27545         * tests/test-signbit.c (test_signbitl): Likewise.
27547 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
27549         exclude-tests: port to AIX 7.1
27550         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
27551         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
27552         the regex code uses locks.
27554 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
27556         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
27557         Without this fix, Emacs would sometimes call sigprocmask instead
27558         of pthread_sigmask, which is a no-no in multithreaded applications.
27559         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
27560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27561         Suppress check for pthread_sigmask working without -lpthread if
27562         the application always links with -lpthread.  Do not link with
27563         $LIBMULTITHREAD if gl_THREADLIB is not defined.
27564         * m4/timer_time.m4 (gl_TIMER_TIME):
27565         Require gl_THREADLIB only if it is defined.  Do not append
27566         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
27568 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
27570         gnulib-tool: wget translations using --no-verbose rather than --quiet
27571         This allows the user to see error messages if any (--quiet hides them)
27572         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
27574 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
27576         gnulib-tool: adjust translation wget to avoid a https redirection
27577         Context: http://translationproject.org/latest/gnulib redirects to
27578            https://translationproject.org/latest/gnulib/
27579         Rationale: if the user falls back to wget, she doesn't have rsync and
27580         is probably in a minimal build environment, where packages such as
27581         'ca-certificates' are missing as well, resulting in a failed (and
27582         difficult to detect since ignored) translation initial fetch.
27583         Consequently let's avoid https if possible, and add the missing
27584         trailing slash.  This also avoids an unnecessary 302 redirection.
27585         * gnulib-tool: Add trailing slash to gnulib URL.
27587 2014-05-22  Pádraig Brady  <P@draigBrady.com>
27589         getlogin_r-tests: check return value rather than errno
27590         * tests/test-getlogin_r.c (main): As per POSIX we should be
27591         verifying the return value from getlogin_r() rather than errno.
27593 2014-05-22  Pádraig Brady  <P@draigBrady.com>
27595         getlogin_r-tests: fix various issues in recent change
27596         * tests/test-getlogin_r.c: Include required headers that were
27597         missed in recent commit eec20b4e.
27598         Also consistently check the errno rather than the return value from
27599         getlogin_r as POSIX only specifies that non zero is returned on error.
27600         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
27602 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
27604         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
27605         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
27606         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
27607         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
27608         * lib/spawn-pipe.c:
27609         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
27610         and then 'int open64(const char *, int, ...);', which means the
27611         declaration for 'open' gets lost if we later '#undef open'.
27612         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
27613         where the compilation reported the non-fatal error "In function
27614         'openat_proc_name' ... warning: implicit declaration of function
27615         'open'".  In this case the error is relatively harmless, but in
27616         other cases it might not be so minor.
27618 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27620         xalloc: don't potentially generate invalid code for xmemdup calls
27621         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
27622         this function can initialize the newly-allocated storage with new
27623         pointers, which means this function is not malloc-like.  See:
27624         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
27626 2014-05-19  Pádraig Brady  <P@draigBrady.com>
27628         getlogin_r-tests: avoid false failure under sudo/ssh etc.
27629         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
27630         changes from commit 97249cf29 to not depend on environment variables.
27632 2014-05-18  Pádraig Brady  <P@draigBrady.com>
27634         getlogin-tests: avoid false failure under cron
27635         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
27636         since that's not what's under test.  Centos 6 was seen to return
27637         EINVAL for ttyname() when run from cron.
27639 2014-05-16  Jim Meyering  <meyering@fb.com>
27641         mbrtowc.m4: fix a comment typo
27642         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
27643         emitted documentation string.
27645 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27647         mbrlen, mbrtowc: fix bug with empty input
27648         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
27649         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
27650         so this is mainly for documentation.
27651         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
27652         (gl_FUNC_MBRTOWC): Use it.
27653         * tests/test-mbrtowc.c (main): Test for the bug.
27655 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
27657         doc: document mbrtowc and mbrlen problem with empty input
27658         * doc/posix-functions/mbrlen.texi (mbrlen):
27659         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27660         Document portability problem when the input string is empty.  See:
27661         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
27663         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
27664         Problem reported by Eli Zaretskii in:
27665         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
27666         * doc/posix-functions/execl.texi (execl):
27667         * doc/posix-functions/execle.texi (execle):
27668         * doc/posix-functions/execlp.texi (execlp):
27669         * doc/posix-functions/execv.texi (execv):
27670         * doc/posix-functions/execve.texi (execve):
27671         * doc/posix-functions/execvp.texi (execvp):
27672         Mention spawn+exit problem on non-Cygwin Windows platforms.
27674 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
27676         getlogin-tests: avoid false failure under sudo/ssh etc.
27677         * modules/getlogin-tests (configure.ac): Check for ttyname().
27678         * tests/test-getlogin.c (main): Don't depend on environment variables
27679         to correlate with getlogin(), since sudo and ssh etc. can tamper
27680         with the LOGNAME and USER env vars.  Instead lookup the name from
27681         the uid associated with the stdin tty.
27683 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27685         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
27686         These were found when building the latest grep snapshot on IRIX 6.5.
27687         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
27688         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
27689         never used later.
27690         * lib/quotearg.c (quoting_options_from_style):
27691         * lib/xstrtol.c (__xstrtol):
27692         Use enum instead of 0, to pacify IRIX 6.5 cc.
27694 2014-04-18  Pádraig Brady  <P@draigBrady.com>
27696         gitlog-to-changelog: revert inclusion of git-log-fix file
27697         * build-aux/git-log-fix: Delete dummy file.
27698         * modules/gitlog-to-changelog: Don't reference (overwrite)
27699         the project specific git-log-fix file.
27701 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
27703         maint.mk: Relax the copyright check to cater for non FSF projects
27704         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
27705         to not require the "Free" suffix after the copyright years.
27707 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
27709         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
27710         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
27711         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
27712         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
27713         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
27715 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
27717         exclude: port to strict C99
27718         Strict C does not allow converting a function pointer to void *
27719         and vice versa.  Pass a pointer to a function pointer instead.
27720         * lib/exclude.c (add_exclude_file):
27721         Pass the address of the function pointer.
27722         (call_addfn): And deference the address here, to match.
27724 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
27726         regex: do not depend on malloc-gnu
27727         * modules/regex (Depends-on): Remove malloc-gnu.
27728         It's no longer needed, because of the 2012-12-29 patch
27729         "regex: port to hosts where malloc (0) == NULL".
27730         Reported by Nathan Kennedy in:
27731         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
27733 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
27735         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
27736         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
27737         * doc/posix-functions/expl.texi: Mention the workaround.
27739 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
27741         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
27742         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
27743         size to be zero even when the pointer is nonnull.  This
27744         accommodates the use case where P is malloc (0) and *PN is 0 on a
27745         host where malloc (0) yields nonnull.
27747 2014-04-09  Eric Blake  <eblake@redhat.com>
27749         fts: avoid unnecessary strlen calls
27750         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
27752 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27754         fts: avoid unnecessary strlen calls
27755         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
27756         when that can be faster than strlen.
27758 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
27760         fts: avoid unnecessary strlen calls
27761         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
27762         (fts_build): Store the length of the dp->d_name entry in a local variable
27763         instead of calling strlen() several times via the above, removed macro.
27764         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
27765         run by ~4%, yet this reduces the execution time by about a third if run
27766         via "ltrace -c rm -rf some-dir".
27768 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
27770         obstack: Remove ancient NeXTSTEP gcc support conditional
27771         This change will ease merging with glibc.  The "#if ... __NEXT__"
27772         causes a warning with -Wundef which glibc now enables by default.
27773         Problem reported by Will Newton in
27774         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
27775         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
27776         so go with that.
27777         * lib/obstack.h (__extension__):
27779 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
27781         obstack: merge with glibc changes
27782         * lib/obstack.c, lib/obstack.h: Merge from glibc.
27783         This is mostly indenting and commentary changes.
27784         Instances of 'register' have been removed.
27786 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
27788         strftime: wrap macros in "do {...} while(0)"
27789         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
27790         this macro in "do {...} while(0)" to prevent false use as a
27791         single statement, e.g., in an un-braced "{}" else-block.
27792         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
27793         (strftime_case_): Remove 'else' after 'goto' - which was the
27794         only non-fatal, un-braced use of one of the above macros.
27795         Spotted by coverity (NESTING_INDENT_MISMATCH).
27797 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
27799         modechange: avoid memory leaks for invalid octal modes
27800         * lib/modechange.c (mode_compile): During the parsing of
27801         notations like +40, free the 'mc' buffer for invalid mode
27802         strings like +17777 (greater than the maximum octal mode),
27803         =18 (bad octal mode characters) or u=1 ('affected' with
27804         octal modes).
27805         Reproducer, e.g.:
27806             $ valgrind --leak-check=full chmod +17777 file
27807         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
27808         add notations +40, 00440, etc.".
27809         Spotted by coverity (RESOURCE_LEAK).
27811 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27813         gitlog-to-changelog: include a dummy git-log-fix file
27814         Problem reported by Nathan Stratton Treadway in:
27815         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
27816         * build-aux/git-log-fix: New file.
27818 2014-03-13  Jim Meyering  <meyering@fb.com>
27820         gitlog-to-changelog: also include the file, git-log-fix
27821         * modules/gitlog-to-changelog (Files): Add git-log-fix.
27822         Reported by Assaf Gordon.
27824 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
27826         regex: port to OS X 10.8.5 en_US.UTF-8 locale
27827         This fixes a bug when ignoring case and when comparing the
27828         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
27829         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
27830         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
27831         titlecase letter is neither lowercase nor uppercase, but
27832         uppercasing the titlecase letter (via towupper) yields the
27833         uppercase letter, so the two letters should match when ignoring case.
27834         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
27835         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
27836         Don't test whether a character is lowercase before uppercasing it.
27838 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
27840         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
27841         This is basically one of the options Bruno Haible proposed in:
27842         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
27843         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
27844         * lib/stdint.in.h: Use it.
27845         * modules/stdint (Depends-on): Add sys_types.
27847 2014-02-26  Pádraig Brady  <P@draigBrady.com>
27849         parse-datetime: fix crash or infloop in TZ="" parsing
27850         * lib/parse-datetime.y (parse_datetime): Break out of the
27851         TZ="" parsing loop once the second significant " is found.
27852         Also skip over any subsequent whitespace to be consistent
27853         with the non TZ= case.
27854         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
27856 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27858         savedir: new symbol for fast-read version
27859         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
27860         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
27861         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
27862         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
27864 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27866         unistd: port readlink to Mac OS X 10.3.9
27867         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
27868         around self-include problem in Mac OS X 10.3.9 when combined with
27869         readlink module.  Problem reported by Klaus Zietler in
27870         <http://bugs.gnu.org/16825>.
27872 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27874         diffseq: remove TOO_EXPENSIVE heuristic
27875         Problem with diffutils reported by Vincent Lefevre in
27876         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
27877         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
27878         Although appropriate for circa-1993 hardware, these days the heuristic
27879         seems to be more trouble than it's worth.
27880         * lib/diffseq.h: Modernize citations.
27881         (struct context): Remove member too_expensive.
27882         All uses changed.
27883         (struct partition): Remove members lo_minimal, hi_minimal.
27884         All uses changed.
27885         (diag, compareseq): Remove arg find_minimal.  All uses changed.
27886         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
27887         1993 to make 'diff' run faster (but not as well) on large inputs.
27888         These days, computers are fast enough that it's typically better
27889         to run slower but more accurately.
27890         * lib/fstrcmp.c: Remove duplicate comment.
27891         * lib/fstrcmp.c (strcmp_bounded):
27892         * lib/git-merge-changelog.c (compute_differences):
27893         Adjust to diffseq.h changes.
27894         * NEWS: Document the change.
27896         savedir: simplify by using stpcpy
27897         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
27898         (streamsavedir): Use stpcpy instead.
27899         * modules/savedir (Depends-on): Add stpcpy.
27901 2014-02-21  Pádraig Brady  <P@draigBrady.com>
27903         spawn: fix link error on uclibc
27904         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
27905         to incorporate -lrt if needed (on uclibc for example).
27906         * modules/posix_spawn: Reference the substituted LIB.
27908 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
27909         timer: fix uClibc detection of threading
27910         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
27911         enabled in uClibc.
27913 2014-02-21  Eric Blake  <eblake@redhat.com>
27915         maintainer-makefiles: provide AC_PROG_SED for older autoconf
27916         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
27918 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27920         exclude: add support for posix regexps
27922         This commit adds support for POSIX extended regular expressions
27923         and fixes a long-standing memory leak (pattern buffer was never
27924         freed).  It also implements a new interface function to read
27925         exclude patterns from a FILE, which passes an additional parameter
27926         to its callback function, thereby allowing to preserve its state
27927         between invocations.
27929         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
27930         (pattern_buffer): New struct.
27931         (exclude): New member patbuf.
27932         (exclude_add_pattern_buffer): New function.
27933         (free_exclude_segment): Free regexps.
27934         (free_exclude): Free allocated pattern buffers.
27935         (exclude_patopts): New function.
27936         (file_pattern_matches): Use exclude_patopts.
27937         (add_exclude): support regexps.
27938         (add_exclude_fp): New function.
27939         (add_exclude_file): Rewrite using add_exclude_fp.
27940         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
27941         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
27942         (add_exclude_fp)
27943         (add_exclude_file): Rewrite using add_exclude_fp.
27944         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
27945         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
27946         (add_exclude_fp)
27947         (exclude_add_pattern_buffer): New prototypes.
27948         * modules/exclude: Depends on regex and filename.
27950 2014-02-20  Eric Blake  <eblake@redhat.com>
27952         maintainer-makefiles: use $(SED) for syntax check
27953         * modules/maintainer-makefile (configure.ac): Check for sane sed.
27954         * top/maint.mk: Change sed to $(SED).
27956 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
27957             Paul Eggert  <eggert@cs.ucla.edu>
27959         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
27960         Patch based on an idea by Dick Streefland in
27961         <https://savannah.gnu.org/patch/?7892>.
27962         * NEWS: Document this.
27963         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
27964         (direntry_t, comparison_function): New types.
27965         (direntry_cmp_name): New function.
27966         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
27967         (streamsavedir, savedir): New arg OPTION.
27968         (streamsavedir): Simplify memory allocation.
27969         (fdsavedir): Remove.
27970         * lib/savedir.h (enum savedir_option): New type.
27971         (streamsavedir, savedir): New arg OPTION.
27972         (fdsavedir): Remove.
27974 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27976         file-type: add support for doors and other less-common file types
27977         Problem with S_ISDOOR reported by Rich Burridge.
27978         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
27979         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
27980         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
27982 2014-01-23  Eric Blake  <eblake@redhat.com>
27984         pthread: work around winpthread header pollution on mingw
27985         * lib/time.in.h: Move pthread workarounds...
27986         * lib/pthread.in.h: ...here.
27987         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
27988         detect macro pollution on mingw.
27989         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
27991 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27993         qacl: check for fchmod
27994         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
27995         and qset-acl.c both use HAVE_FCHMOD.
27997 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27999         fdopen-tests: port to Tru64
28000         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
28001         descriptor that is not open, as POSIX doesn't specify the
28002         resulting behavior and the test does not work on Tru64.
28003         Problem reported by Steven M. Schweda in:
28004         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
28006         stdalign: port to HP-UX compilers
28007         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
28008         if __HP_cc or __HP_aCC are nonzero.
28010 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28012         strtoimax: port to platforms lacking 'long long'
28013         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
28014         check whether strtoll is declared, which causes the C file to
28015         wrongly report an error.  Problem reported by Steven M. Schweda in:
28016         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
28017         * lib/strtoimax.c (strtoull):
28018         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
28019         (strtoll): Declare only if HAVE_LONG_LONG_INT.
28021 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
28023         relocatable-perl: fix texi syntax
28024         * doc/relocatable-maint.texi: Escape braces.
28026 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
28028         relocatable-perl: like relocatable-script, but for Perl scripts
28029         * build-aux/relocatable.pl.in: Add.
28030         * doc/relocatable-maint.texi: Add documentation.
28031         * modules/relocatable-perl: Add.
28033 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
28035         tests: fix export bug in previous patch
28036         Problem reported by Jim Meyering.
28037         * tests/init.sh (re_shell): New var, which is exported instead of
28038         re_shell_.
28040         tests: simplify porting to Solaris 10 /bin/sh
28041         Some test cases in 'grep' need a shell that groks '$(';
28042         export re_shell_ for their benefit.  Problem reported for 'grep'
28043         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
28044         * tests/init.sh (re_shell_): Export if it's used.
28046 2014-01-06  Eric Blake  <eblake@redhat.com>
28048         md5, sha1, sha256, sha512: support older autoconf
28049         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
28050         for autoconf < 2.63b.
28052         include_next: port to autoconf 2.63
28053         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
28055 2014-01-04  Jim Meyering  <meyering@fb.com>
28057         maint: add a gnulib-local rule to keep non-ascii out of .texi files
28058         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
28059         so that "make sc_maint" will ding anyone who puts non-ascii
28060         in any of gnulib's .texi files.
28062 2014-01-03  Jim Meyering  <meyering@fb.com>
28064         freadable, fwritable, fwriting: declare with the "pure" attribute
28065         * lib/freadable.h (freadable): Declare with the "pure" attribute.
28066         * lib/fwritable.h (fwritable): Likewise.
28067         * lib/fwriting.h (fwriting): Likewise.
28068         Suggested by Bruno Haible.
28070         maint.mk: adapt openat.h-include-without-use test
28071         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
28072         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
28073         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
28074         With this change, running "make sc_maint" in gnulib's top-level
28075         directory now passes for me.
28077 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
28079         doc: use ASCII in .texi files where UTF-8 isn't needed
28080         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
28081         * doc/posix-functions/setkey.texi, doc/regex.texi:
28082         Use ASCII input, not UTF-8.
28084 2014-01-02  Jim Meyering  <meyering@fb.com>
28086         freading: declare with the "pure" attribute
28087         * lib/freading.h (freading): Declare with the "pure" attribute.
28089         manywarnings: remove -Wmudflap
28090         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
28091         it is no longer supported in gcc-4.9-to-be.
28093 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28095         relocatable-script: remove unused code
28096         Problem reported by Reuben Thomas in:
28097         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
28098         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
28100 2014-01-01  Jim Meyering  <meyering@fb.com>
28102         maint: fix public-submodule-commit to work with newer git
28103         * top/maint.mk (public-submodule-commit): Remove excess quoting.
28104         We were over-quoting the test arguments, and somewhere prior to
28105         version 1.8.5.2.229, git stopped removing those excess quotes,
28106         which made the test fail, since the unexpanded strings would
28107         always differ; using GIT_TRACE=1 confirmed that the git merge-base
28108         command wasn't even being run.
28110 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28112         doc: update main copyright year
28113         * doc/gnulib.texi: Update copyright date.
28115 2014-01-01  Eric Blake  <eblake@redhat.com>
28117         version-etc: new year
28118         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
28119         * all files: run 'make update-copyright'
28121 2013-12-24  Eric Blake  <eblake@redhat.com>
28123         passfd: give nicer error for recvfd at eof
28124         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
28125         * tests/test-passfd.c (main): Enhance test to cover this.
28127 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28129         gettimeofday: port recent C++ fix to Emacs
28130         Without this further patch, Emacs won't build due to
28131         the portcheck failing.  Also, this simplifies the patch a bit.
28132         * lib/time.in.h (localtime, gmtime): Don't replace unless
28133         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
28134         * lib/time.in.h (localtime, gmtime):
28135         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
28136         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28137         * modules/time (time.h):
28138         Don't worry about the possibility of localtime and gmtime
28139         being absent; they're present in all C libraries we know about.
28140         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28141         Don't assume sys_time is present and has been initialized.
28142         Instead, use a hack that should work even if it hasn't been.
28143         Don't use a portcheck for gmtime or localtime; this supports
28144         the hack.
28145         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
28147 2013-12-17  John W. Eaton  <jwe@gnu.org>
28149         gettimeofday: fix C++ crosscompilation
28151         Never replace gmtime and localtime by macros when compiling with
28152         C++, this prevents <ctime> from being included.
28154         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
28155         define gmtime and localtime as preprocessor macros.  Instead
28156         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
28157         REPLACE_LOCALTIME substitutions.
28158         * lib/time.in.h: Declare gmtime and localtime when needed.
28159         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
28160         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
28161         * modules/time: Depend on gettimeofday, and substitute the above
28162         variables in time.h.
28164 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28166         qacl: port to Windows better
28167         See Eli Zaretskii in
28168         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
28169         * lib/file-has-acl.c (acl_access_nontrivial):
28170         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
28171         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
28173 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
28175         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
28176         * lib/gl_openssl.h: Cast void pointers to a specific type.
28178 2013-12-07  Pádraig Brady  <P@draigBrady.com>
28180         open-tests: fix build failure with -Werror=old-style-declaration
28181         * tests/test-open.h: Reorder the inline to avoid the issue.
28183 2013-12-07  Pádraig Brady  <P@draigBrady.com>
28185         md5, sha1, sha256, sha512: fix link error with partial libcrypto
28186         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
28187         init time, so that if early checks find crypto routines,
28188         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
28189         avoiding link failures.
28191 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28193         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
28194         This provides a new way to specify the default for
28195         gl_CRYPTO_CHECK, one that is reflected in the --help message.
28196         Emacs uses this, as well as the old way.
28197         This attempts to implement a suggestion by Pádraig Brady in
28198         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
28199         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
28200         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
28202         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
28203         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
28204         Add support for a new option, --with-openssl=auto, which causes
28205         the library to be used if available and silently ignored if not.
28206         Add support to allow configure.ac to specify its own
28207         default, by setting with_openssl_default before invoking gl_INIT.
28209 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
28211         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
28212         Problem reported by Daiki Ueno in:
28213         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
28214         * tests/test-open.h (__always_inline):
28215         New macro, if not already defined.
28216         (test_open): Use it.
28218 2013-12-04  Eric Blake  <eblake@redhat.com>
28220         include_next: minimize code duplication
28221         * modules/include_next (Depends-on): Add absolute-header.
28222         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
28223         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
28225 2013-12-04  Pádraig Brady  <P@draigBrady.com>
28227         getcwd: fix compile error in configure check
28228         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
28230 2013-12-04  Pádraig Brady  <P@draigBrady.com>
28232         regex: suppress core dumps from detection code
28233         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
28234         to suppress core dumps that may well occur on glibc systems.
28235         These core dumps might not be cleaned up automatically, or could
28236         trigger some system core dump handling logic.
28238 2013-12-03  Pádraig Brady  <P@draigBrady.com>
28240         md5, sha1, sha256, sha512: support mandating use of openssl
28241         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
28242         description, to list the now 3 separate options.  also don't
28243         mention the default=no, since this is implicit given the option
28244         is described as --with-openssl rather than --without-openssl.
28245         If projects change the default they're free to document that.
28246         with --with-openssl[=yes] we now error out when the specified
28247         hash algorithm is not available in libcrypto.
28249 2013-12-03  Ivailo  <xakepa10@gmail.com>
28251         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
28252         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
28253         -Wformat-nonliteral checks, as these edge cases are part of the test.
28255 2013-12-03  Eric Blake  <eblake@redhat.com>
28257         regex: avoid glibc deadlock during configure
28258         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
28259         glibc bug 15078 in turn triggers bug 16159.
28260         Reported by Michal Privoznik.
28262 2013-12-02  Pádraig Brady  <P@draigBrady.com>
28264         md5, sha1, sha256, sha512: use openssl routines if available.
28265         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
28266         routines will be used if available, requiring apps to link @LIB_CRYPTO@
28267         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
28268         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
28269         in the standard system location.
28270         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
28271         * m4/sha256.m4: Likewise with SHA256.
28272         * m4/sha512.m4: Likewise with SHA512.
28273         * m4/md5.m4: Likewise with MD5.
28274         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
28275         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
28276         * lib/sha256.h: Likewise with SHA256.
28277         * lib/sha512.h: Likewise with SHA512.
28278         * lib/md5.h: Likewise with MD5.
28279         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
28280         * lib/sha256.c: Likewise with SHA256.
28281         * lib/sha512.c: Likewise with SHA512.
28282         * lib/md5.c: Likewise with MD5.
28283         * modules/crypto/sha1 (Link:): Add the new optional lib.
28284         (Depends-on:): Add dependency on extern-inline.
28285         * modules/crypto/sha256: Likewise.
28286         * modules/crypto/sha512: Likewise.
28287         * modules/crypto/md5: Likewise.
28288         * modules/crypto/sha1-tests: Reference the lib here too.
28289         * modules/crypto/md5-tests: Likewise.
28290         * modules/crypto/gc-des-tests: Likewise.
28291         * modules/crypto/gc-hmac-md5-tests: Likewise.
28292         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28293         * modules/crypto/gc-hmac-sha256-tests: Likewise.
28294         * modules/crypto/gc-hmac-sha512-tests: Likewise.
28295         * modules/crypto/gc-md5-tests: Likewise.
28296         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28297         * modules/crypto/gc-sha1-tests: Likewise.
28298         * modules/crypto/gc-tests: Likewise.
28299         * modules/crypto/hmac-md5-tests: Likewise.
28300         * modules/crypto/hmac-sha1-tests: Likewise.
28301         * modules/crypto/hmac-sha256-tests: Likewise.
28302         * modules/crypto/hmac-sha512-tests: Likewise.
28304 2013-11-29  RV1971  <rv1971@web.de>
28306         base64: (trivial) fix compilation regression on some compilers
28307         * lib/base64.c: Don't return the void function,
28308         instead split to a separate return statement.
28310 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28312         ignore-value: revert previous code change
28313         * lib/ignore-value.h (ignore_value): Use __extension__ and
28314         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
28315         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
28316         Change the comment to try to explain this better.
28318 2013-11-27  Pádraig Brady  <P@draigBrady.com>
28320         selinux-h: improve stub types and add more stub functions
28322         * lib/se-selinux.in.h: Change security_context_t to a typedef
28323         rather than a define, as it's a pointer type and so is better
28324         as a typedef to avoid issues declaring multiple variables
28325         with the comma operator.  Also add stub for string_to_security_class().
28326         * lib/se-context.in.h: Add stub functions for
28327         context_{type,range,role,user}_get().
28329 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28331         ignore-value: prefer GCC version back through 2.0
28332         The code didn't match the comments, so I did a bit of software
28333         archaeology.  GCC 2.0 seems to support __extension__ and
28334         __typeof__, so fix both code and comments to use 2.0.
28335         * lib/ignore-value.h (ignore_value): Use __extension__ and
28336         __typeof__ for GCC 2.0 through 3.3, too.
28338 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
28340         pty: Activate the signature wrapper of forkpty.
28341         The intended preprocessor macro HAVE_FORKPTY is
28342         never defined, yet `lib/forkpty.c' depends on it.
28344         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
28345         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
28346         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
28348 2013-11-18  Jim Meyering  <meyering@fb.com>
28349         and Paul Eggert  <eggert@cs.ucla.edu>
28351         quotearg: don't attempt to store 1 << 31 into an "int"
28352         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
28353         gcc's new -fsanitize=undefined and running its tests triggered some
28354         new test failures due to undefined behavior, all with this diagnostic:
28355           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
28356             cannot be represented in type int
28357         Rather than shifting "1" left to form a mask, shift the bits right and
28358         simply use "1" as the mask.
28360 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
28362         error: depend on stdio
28363         Problem reported by Nikos Mavrogiannopoulos in
28364         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
28365         * modules/error (Depends-on): Add stdio.
28367 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
28369         * doc/relocatable-maint.texi (Supporting Relocation): Improve
28370         wording.
28371         Reported by Reuben Thomas <rrt@sc3d.org>.
28373 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28375         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
28376         New function and macro, to work around _DARWIN_C_SOURCE problem.
28377         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
28379 2013-11-11  Pádraig Brady  <P@draigBrady.com>
28381         base64: provide a fast path for encoding well sized buffers
28382         Avoid conditionals in the base64 encoding loop,
28383         which was seen to give 60% better throughput.
28384         * lib/base64.c (base64_encode_fast): A new function to be called
28385         when we don't want to NUL terminate, and we have enough space
28386         in the output to encode the given input.
28387         (base64_encode): Call the _fast() version when appropriate.
28388         Also remove a redundant mask with 0x3F on the first encoded byte.
28390 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28392         extern-inline: port better to OS X 10.9
28393         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
28394         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
28395         OS X 10.9, except for g++ where the bug is still present.
28396         See <http://trac.macports.org/ticket/41033>.
28398 2013-11-08  Eric Blake  <eblake@redhat.com>
28400         fpending: fix regression on DragonFly BSD
28401         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
28402         * lib/fpending.h (__fpending): Don't declare twice.
28403         Reported by GW in
28404         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
28406 2013-11-05  Jim Meyering  <meyering@fb.com>
28408         hash: relax license to LGPLv2+, for libguestfs
28409         * modules/hash (License): Change from GPL to LGPLv2+.
28411 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28413         intprops: port to Oracle Studio c99
28414         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
28415         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
28417 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28419         obstack: pacify HP C
28420         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
28421         warning "conversion from pointer to smaller integer" from HP
28422         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
28423         C89 or later nowadays, so cast to void instead of int.  Privately
28424         reported by H.Merijn Brand.  Also, change header to match glibc's,
28425         to make checking against glibc easier.
28427 2013-10-29  Jim Meyering  <meyering@fb.com>
28429         maint.mk: prefer gpgv2 over gpgv
28430         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
28431         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
28432         Reported by Gary Vaughan.
28434 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28436         isnan: port to VAX
28437         Reported by John Klos for NetBSD-5/VAX in
28438         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
28439         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
28440         (FUNC): Use it.
28442 2013-10-28  Jim Meyering  <meyering@fb.com>
28444         gnulib-tool: protect against CDPATH
28445         * gnulib-tool: Many "cd" built-in functions print a directory name
28446         to stdout when CDPATH is set, e.g.,
28447           $ bash -c 'CDPATH=/; cd tmp'
28448           /tmp
28449         Unset it, when possible.  Prompted by a comment from Bruce Korb.
28451         maint.mk: restore functionality removed by recent change...
28452         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
28453         the context of a shallow-cloned gnulib repository: "git describe"
28454         would fail in such a directory.  However, that change made it so
28455         the reported gnulib revision no longer includes the version number
28456         or a commit count, even when run from a full clone.
28457         * top/maint.mk (gnulib-version): Use the full "git describe"
28458         output when possible, e.g., the form above, rather than the
28459         abbreviated, no-tag, no-commit-count string, and fall back to
28460         using a 10-byte hash, rather than the default minimal-length
28461         hash prefix, since while the minimal-length one may be fine today,
28462         it is likely not to be unique for very long.
28464 2013-10-26  Jim Meyering  <meyering@fb.com>
28466         maint.mk: fix "release" target to build _version
28467         This fixes a bug in README-release whereby following the outlined
28468         steps, one would publish a tarball whose programs would report
28469         --version output not consistent with the package version number.
28470         This bug caused grep-2.15 to produce a grep program whose
28471         --version option made it print 2.14.56-1e3d rather than 2.15.
28472         * top/maint.mk (release): Making this target build "_version"
28473         ensures that the new version number is reflected in configure.
28475 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
28477         install-reloc: Support multi-binary installation.
28478         * build-aux/install-reloc: Support installing multiple programs in
28479         one invocation, as done by Automake starting with commit
28480         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
28481         Haible <bruno@clisp.org>, archived at
28482         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
28483         Reported by Sylvain <beuc@gnu.org>.
28485 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28487         selinux-h: Really build without selinux when library is missing.
28488         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
28489         continue without selinux, as already told in the warning message.
28491 2013-10-21  Jim Meyering  <meyering@fb.com>
28493         regex: also remove dependency on HAVE_WCSCOLL
28494         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
28496 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
28498         xfreopen: Fix typo. s/frepoen/freopen/
28499         * lib/xfreopen.c: Fix description.
28500         * modules/xfreopen: Likewise.
28502 2013-10-21  Jim Meyering  <meyering@fb.com>
28504         regex: don't depend on wcscoll
28505         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
28506         It is no longer used.
28508 2013-10-20  Jim Meyering  <meyering@fb.com>
28510         error: add the printf attribute to a static function
28511         * lib/error.c (error_tail): Add the printf attribute, to placate
28512         gcc's -Werror=suggest-attribute=format option.
28514 2013-09-30  Jim Meyering  <meyering@fb.com>
28516         fpending, obstack, strerror-override: use pure+const function attrs
28517         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
28518         * lib/obstack.c (_obstack_allocated_p): Likewise.
28519         * lib/obstack.h (_obstack_memory_used): Likewise.
28520         (_obstack_memory_used): Likewise.
28521         * lib/strerror-override.h (strerror_override): Declare with
28522         the "const" attribute.
28524 2013-10-18  Eric Blake  <eblake@redhat.com>
28526         extern-inline: make safe for -Wundef usage
28527         Reported by Vladimir 'phcoder' Serbinenko in
28528         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
28529         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
28531 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28533         mkfifo-tests, etc.: allow HP-UX 11.11 bug
28534         Problem reported by Daniel Richard G. in
28535         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
28536         * doc/posix-functions/mkfifo.texi (mkfifo):
28537         * doc/posix-functions/mkfifoat.texi (mkfifoat):
28538         * doc/posix-functions/mknod.texi (mknod):
28539         * doc/posix-functions/mknodat.texi (mknodat):
28540         Document the HP-UX 11.11 bug.
28541         * tests/test-mkfifo.h (test_mkfifo):
28542         Allow the HP-UX 11.11 bug.
28544 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28546         acl: allow cross-compilation to Gentoo
28547         Problem reported by Gabriel Marcano in
28548         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
28549         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
28550         test only whether it links.
28552 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28554         mgetgroups: remove dependency on realloc-gnu
28555         The dependency violates the comment in realloc-gnu, which
28556         says that tests can't depend on realloc-gnu; some tests depend
28557         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
28558         Problem reported by Daniel Richard G. in
28559         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
28560         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
28561         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
28562         not realloc-gnu.
28564 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28566         regex-tests: port to HP-UX 11.11
28567         Problem reported by Daniel Richard G. in
28568         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
28569         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
28571 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28573         verify: document some 'assume' pitfalls
28574         * doc/verify.texi (Compile-time Assertions):
28575         Mention that 'assume (E)' can sometimes slow things down.
28576         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
28578 2013-10-10  Eric Blake  <eblake@redhat.com>
28580         strtoumax: fix typo in previous commit.
28581         * modules/strtoumax (Depends-on): Fix typo.
28582         * modules/strtoimax (Depends-on): Likewise.
28584 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28586         strtoumax: port to Solaris 8
28587         This problem was introduced in the recent HP-UX patch.
28588         Reported by Tom G. Christensen in
28589         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
28590         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
28591         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
28593 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28595         strtoimax, strtoumax: port to HP-UX 11.11
28596         Problem reported by Daniel Richard G. in
28597         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
28598         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
28599         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
28600         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
28601         REPLACE_STRTOUMAX.
28602         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
28603         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
28604         Replace the function if defined as a macro but not as a function.
28605         * modules/inttypes-incomplete (inttypes.h): Substitute
28606         REPLACE_STRTOUMAX.
28607         * modules/strtoumax (configure.ac): Replace strtoumax if
28608         REPLACE_STRTOUMAX.
28610 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28612         strtoimax: port to HP-UX 11.11
28613         Problem reported by Daniel Richard G.
28614         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
28615         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
28616         they might clash with inttypes.h.
28618 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28620         New module 'count-trailing-zeros'.
28621         * MODULES.html.sh: Mention it.
28622         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
28623         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
28624         * modules/count-trailing-zeros-tests:
28625         * tests/test-count-trailing-zeros.c:
28626         New files.
28628         count-leading-zeros: port to MSC; support types wider than 64 bits
28629         The ideas behind the MSC port are stolen from Emacs.
28630         * lib/count-leading-zeros.h:
28631         Don't include verify.h: it's no longer needed, as types wider than
28632         64 bits are now supported.
28633         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
28634         performance with MSC.  All uses changed.  Do not assume that TYPE
28635         has at most 64 bits.
28636         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
28637         All uses changed.  Fold the subtraction from 31 into the table.
28639         count-one-bits: port to MSC; support types wider than 64 bits
28640         The ideas behind the MSC port are stolen from Emacs.
28641         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
28642         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
28643         Don't include verify.h: it's no longer needed, as types wider than
28644         64 bits are now supported.
28645         (COUNT_ONE_BITS_GENERIC): New macro.
28646         (popcount_supported) [_MSC_VER]: New inline function.
28647         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
28648         performance with MSC.  All uses changed.  Do not assume that TYPE
28649         has at most 64 bits.
28650         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
28652 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
28654         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
28655         * lib/mountlist.c (read_file_system_list): fix leak of directory
28656         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
28658 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28660         tests: improve diagnostic when an assertion fails
28661         * tests/macros.h (ASSERT): Report the assertion that failed.
28663 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28665         verify: new macro 'assume'
28666         This is taken from Emacs, and should be generally useful.
28667         * doc/verify.texi (assume): Document it.
28668         * lib/verify.h (assume): New macro.
28669         (__has_builtin): Expand to 0 if not defined.
28671 2013-09-26  Eric Blake  <eblake@redhat.com>
28673         dup2, dup3: work around another cygwin crasher
28674         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
28675         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
28676         * tests/test-dup2.c (main): Likewise.
28677         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
28678         * lib/dup3.c (dup3): Likewise.
28679         * doc/posix-functions/dup2.texi (dup2): Document it.
28680         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28682         getdtablesize: work around cygwin issue
28683         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
28684         * modules/getdtablesize (configure.ac): Build replacement.
28685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
28686         * modules/unistd (Makefile.am): Expose the witness.
28687         * lib/unistd.in.h (getdtablesize): Declare replacement.
28688         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
28689         * tests/test-getdtablesize.c (main): Test it.
28690         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
28692 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28694         pmccabe2html: escaping of special characters
28695         Escape all '<', '>', and '&' in HTML output.
28696         * build-aux/pmccabe2html (html_fnc): Call gsub()
28697         instead of sub() to capture all '<', '>', and '&'.
28698         Neither of '<' and '>' is special in a regexp,
28699         so first arguments to gsub() are corrected. Also,
28700         in replacement strings, ampersand must be escaped.
28701         Finally, '&' must be handled first, then '<' and '>'.
28703 2013-09-24  Eric Blake  <eblake@redhat.com>
28705         manywarnings: enable nicer gcc warning messages
28706         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
28707         some -f options for optimal warnings.
28709 2013-09-21  Jim Meyering  <meyering@fb.com>
28711         timespec: use the new TIMESPEC_RESOLUTION in a few more places
28712         * lib/timespec-add.c (timespec_add): Also replace 999999999
28713         with TIMESPEC_RESOLUTION - 1.
28714         * lib/timespec-sub.c (timespec_sub): Likewise.
28716 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28718         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
28719         Problem reported by Dagobert Michelsen via Eric Blake in
28720         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
28721         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
28722         not AC_COMPILE_IFELSE.
28724 2013-09-23  Eric Blake  <eblake@redhat.com>
28726         configmake: support new --runstatedir option
28727         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
28728         even if autoconf was too old to provide the command line option.
28729         * modules/configmake (Makefile.am): Propagate it to .h file.
28731 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28733         ctype, string: depend on extern-inline
28734         This is needed to complete the recent OS X fixes.
28735         Also, fix related documentation as suggested by Eric Blake.
28736         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
28737         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
28738         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
28739         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
28740         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
28741         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
28742         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
28743         * doc/posix-functions/toupper.texi:
28744         List the 'ctype' gnulib module.
28745         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
28746         * doc/posix-functions/strncpy.texi:
28747         List the 'string' gnulib module.
28748         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
28749         Add string.
28750         * modules/ctype, modules/string (Depends-on): Add extern-inline.
28752 2013-09-19  Pádraig Brady  <P@draigBrady.com>
28754         userspec: support optional parameters to parse_user_spec()
28755         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
28756         then avoid group processing and treat the full spec as a user.
28757         (parse_with_separator): Allow the USERNAME and GROUPNAME to
28758         be optional params (NULL), in which case they're ignored.
28760 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28762         timespec: new function make_timespec, and new constants
28763         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
28764         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
28765         (make_timespec): New function.
28766         * lib/dtotimespec.c (dtotimespec):
28767         * lib/timespec-add.c (timespec_add):
28768         * lib/timespec-sub.c (timespec_sub):
28769         * lib/utimens.c (validate_timespec):
28770         * lib/utimensat.c (rpl_utimensat):
28771         Use these new constants and functions.
28773         stdio: OS X port of putc_unlocked + extern inline
28774         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
28775         * doc/posix-functions/putc_unlocked.texi:
28776         * doc/posix-functions/putchar_unlocked.texi:
28777         Document this portability problem.
28779         signal: OS X port of sigaddset etc. + extern inline
28780         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
28781         (sigismember): #undef on problematic Apple platforms.
28782         * doc/posix-functions/sigaddset.texi:
28783         * doc/posix-functions/sigdelset.texi:
28784         * doc/posix-functions/sigemptyset.texi:
28785         * doc/posix-functions/sigfillset.texi:
28786         * doc/posix-functions/sigismember.texi:
28787         Document this portability problem.
28789         extern-inline: do not always suppress extern inline on OS X
28790         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
28791         extern inline on Apple only if the particular compile-time
28792         configuration is known to have the problem.
28793         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
28794         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
28795         other Gnulib modules.
28797         extern-inline: document fixes for ctype and wctype macros
28798         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
28799         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
28800         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
28801         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
28802         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
28803         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
28804         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
28805         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
28806         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
28807         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
28808         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
28809         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
28810         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
28811         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
28812         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
28813         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
28814         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
28815         * doc/posix-functions/strncpy.texi:
28816         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
28817         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
28818         Document that Gnulib fixes portability problems with these
28819         functions on OS X 10.8 and earlier when called from plain inline
28820         or extern inline functions.
28822 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
28824         fflush, freadahead, fseeko: Fix for Android
28825         Suggested by Bruno Haible in:
28826         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
28827         * lib/stdio-impl.h: Use local __sfileext definition.
28829 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
28831         pmccabe2html: Portability to other awk versions.
28832         The functions systime() and strftime() are available
28833         in Gawk only.  Properly close two HTML-tags 'style'
28834         and 'span'.
28835         * build-aux/pmccabe2html (BEGIN): Store timing
28836         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
28837         systime() in HTML_COMMENT.
28838         (html_header): Correctly close tag 'style'.
28839         (END): Replace strftime() by CHRONOS_TIME.  Close
28840         tag 'span' correctly, not as 'div'.
28842 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28844         getgroups: statement without effect
28845         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
28846         Change equality conditional to expected assignment.
28848 2013-09-09  Eric Blake  <eblake@redhat.com>
28850         glob: fix compilation
28851         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
28853 2013-09-07  Eric Blake  <eblake@redhat.com>
28855         glob: fix build for platforms without __THROW
28856         * lib/glob.in.h (__THROW): Add definition again.
28858 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
28860         regex-quote: fix buffer access out of bounds
28861         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
28862         * lib/regex-quote.c (regex_quote_spec_pcre):
28863         Fix typo that resulted in an out-of-bounds read.
28865 2013-09-04  Eric Blake  <eblake@redhat.com>
28867         glob: avoid -Wattribute warnings on glibc
28868         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
28869         __THROWNL, not __THROW, on static functions.
28870         * lib/glob.in.h (__THROW): Adjust...
28871         (__THROWNL): ...accordingly.
28873 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
28875         headers: check that _GL_INLINE_HEADER_BEGIN is defined
28876         Suggested by Bruce Korb in:
28877         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
28878         * doc/extern-inline.texi (extern inline):
28879         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
28880         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
28881         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
28882         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
28883         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
28884         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
28885         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
28886         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
28887         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
28888         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
28889         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
28890         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
28891         * lib/xtime.h:
28892         Check that _GL_INLINE_HEADER_BEGIN is defined.
28894 2013-08-29  Pádraig Brady  <P@draigBrady.com>
28896         bootstrap: remove the --version requirement from ancillary tools
28897         * build-aux/bootstrap (check_exists): A new refactored function to
28898         determine if a command exists.
28899         (find_tool): Use the new function which does not require the
28900         --version option to be supported.
28901         (check_versions): Use the new function.
28903 2013-08-26  Simon Josefsson  <simon@josefsson.org>
28905         gc: support HMAC-SHA256 and HMAC-SHA512.
28906         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
28907         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
28908         functions.
28909         (gc_hmac_md5): Use symbolic constant.
28910         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
28911         (gc_hmac_sha256, gc_hmac_sha512): New functions.
28912         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
28913         * m4/sha256.m4: Protect against empty expansion.
28914         * m4/sha512.m4: Likewise.
28915         * lib/hmac-sha256.c: New file.
28916         * lib/hmac-sha512.c: Likewise.
28917         * m4/gc-hmac-sha256.m4: Likewise.
28918         * m4/gc-hmac-sha512.m4: Likewise.
28919         * m4/gc-sha256.m4: Likewise.
28920         * m4/gc-sha512.m4: Likewise.
28921         * modules/crypto/gc-hmac-sha256: Likewise.
28922         * modules/crypto/gc-hmac-sha256-tests: Likewise.
28923         * modules/crypto/gc-hmac-sha512: Likewise.
28924         * modules/crypto/gc-hmac-sha512-tests: Likewise.
28925         * modules/crypto/hmac-sha256: Likewise.
28926         * modules/crypto/hmac-sha256-tests: Likewise.
28927         * modules/crypto/hmac-sha512: Likewise.
28928         * modules/crypto/hmac-sha512-tests: Likewise.
28929         * tests/test-gc-hmac-sha256.c: Likewise.
28930         * tests/test-gc-hmac-sha512.c: Likewise
28931         * tests/test-hmac-sha256.c: Likewise.
28932         * tests/test-hmac-sha512.c: Likewise
28934 2013-08-24  Daiki Ueno  <ueno@gnu.org>
28936         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
28937         of AC_CHECK_DECLS.
28939 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28941         selinux-at: omit unnecessary include
28942         * lib/selinux-at.c: Don't include dosname.h; not needed, since
28943         this source file doesn't use its macros, and subsidiary files that
28944         use the macros already include it.
28946 2013-08-21  Eric Blake  <eblake@redhat.com>
28948         d-ino: avoid false negative on symlink
28949         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
28950         Reported by Stephane Chazelas.
28952 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
28954         bootstrap: port to OpenBSD sed
28955         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
28956         does not interpret `-' as a file argument to mean stdin.
28958 2013-08-15  Eric Blake  <eblake@redhat.com>
28960         warnings: minor optimization
28961         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
28963         warnings: check -Wfoo rather than -Wno-foo
28964         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
28965         -Wno-, test if the compiler recognizes the positive form instead.
28967 2013-08-15  Karl Berry  <karl@gnu.org>
28969         * config/srclist-update: add option "doclicense" to placate
28970         pulling *.texi files from Emacs.  Write terse usage
28971         documentation at the top.
28973 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
28975         xvasprintf-tests: port to GCC with hardening flags
28976         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
28977         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
28978         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
28980 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28982         fpending: port to recent Cygwin change to stdio_ext.h
28983         Reported by LRN in
28984         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
28985         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
28986         just declare __fpending unless it's a macro.
28987         A duplicate decl shouldn't hurt.
28988         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
28989         call compiles and links, instead of separately checking for
28990         decl and lib function.
28991         * modules/fpending (configure-ac):
28992         Adjust to fpending.m4's renaming of shell variable.
28994 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28996         sys_time: port to OpenBSD
28997         * lib/sys_time.in.h: Simply delegate to the system's header
28998         in the BSDish cases as well.  Problem reported by Mike Miller in
28999         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
29000         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
29001         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
29002         wider than time_t.
29004 2013-08-09  Pádraig Brady  <P@draigBrady.com>
29006         bootstrap: support checksum utils having -c but not --status
29007         * build-aux/bootstrap: Only look for sha1sum if updating po files.
29008         Add sha1 to the list of supported checksum utils since it's now
29009         supported through adjustments below.
29010         (update_po_files): Remove the use of --status
29011         in a way that will suppress all error messages, but since this is
29012         only used to minimize updates, it shouldn't cause an issue.
29013         Exit early if there is a problem updating the po file checksums.
29014         (find_tool): Remove the check for --version support as this
29015         is optional as per commit 86186b17.  Don't even check for the
29016         presence of the command as if that is needed, it's supported
29017         through configuring prerequisites in bootstrap.conf.
29018         Prompt that when a tool isn't found, one can define an environment
29019         variable to add to the hardcoded search list.
29021 2013-08-05  Jim Meyering  <meyering@fb.com>
29023         regex: port to non-glibc/lock-using systems
29024         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
29025         system with GNULIB_LOCK would fail due to absence of the
29026         included "glthread/lock.h".  This would affect any package
29027         for which the "lock" module is used only by the regex module,
29028         and not explicitly used.
29029         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
29030         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
29031         Add a dependency on the "lock" module.
29033 2013-07-20  Daiki Ueno  <ueno@gnu.org>
29035         localecharset: make locale_charset thread-safe on Mac OS X
29036         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
29037         instead of MB_CUR_MAX.
29039 2013-07-20  Daiki Ueno  <ueno@gnu.org>
29041         gettext: update to version 0.18.3
29042         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
29043         require AC_PROG_SED to allow user to specify custom sed command when
29044         generating en@quot PO file.
29046 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
29048         bootstrap: use correct source when copying build-aux files
29049         * build-aux/bootstrap (gnulib_extra_files): This variable is
29050         relative to upstream gnulib layout, not downstream.
29052 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
29054         tmpdir: fix bug in VMS port
29055         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
29056         See Steven M. Schweda in
29057         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
29059 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29061         tmpdir: port to VMS, to // != /, and to long dirs
29062         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
29063         __secure_getenv, so that we're more like the glibc version.
29064         All uses changed.
29065         (path_search): Don't put slash after directory if __VMS.
29066         Problem reported by Steven M. Schweda in
29067         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
29068         Simplify code to add slash; no need for a loop.
29069         Do not remove trailing slash from "//".
29070         Do not assume dlen <= INT_MAX.
29072 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29074         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
29075         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
29076         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
29077         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
29079         accept4, dup3, pipe2: port to Cygwin
29080         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
29081         * lib/accept4.c (accept4) [O_BINARY]:
29082         * lib/dup3.c (dup3) [O_BINARY]:
29083         * lib/pipe2.c (pipe2) [O_BINARY]:
29084         Use set_binary_mode, not setmode.
29085         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
29086         * modules/binary-io (Depends-on): Remove module indicator.
29087         These last two bits undo the previous change to pipe2 and binary-io.
29089 2013-07-09  Pádraig Brady  <P@draigBrady.com>
29091         mountlist: add support for deallocating returned list entries
29092         * lib/mountlist.c (free_mount_entry): A new exported function
29093         to deallocate a mount list entry.
29094         (read_file_system_list): Refactor to use the new deallocation function.
29095         Suggested by Anton Ovchinnikov.
29097 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29099         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
29100         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
29101         * lib/stdalign.in.h (_Alignas, _Alignof):
29102         Port to FreeBSD 9.1, and to C11 and C++11.
29103         (_Alignas): Also support ICC.
29104         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
29105         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
29107 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29109         fnmatch: don't goto over declaration
29110         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
29111         undefined behavior for goto over a declaration.
29112         Problem reported by Charlie Brown in
29113         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
29115         pipe2: decouple from binary-io a bit
29116         This is for Emacs, which needs pipe2 but not binary-io.
29117         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
29118         * modules/binary-io (Depends-on): Add module indicator.
29120 2013-07-03  Eric Blake  <eblake@redhat.com>
29122         mgetgroups: relax license to LGPLv2+
29123         * modules/getugroups (License): Change from GPLv3+.
29124         * modules/mgetgroups (License): Likewise.
29125         * modules/getgroups (License): Change from LGPLv3+.
29127         xalloc-oversized: relax license to LGPLv2+
29128         * modules/xalloc-oversized (License): Change from GPLv3+.
29130         nproc: relax license to LGPLv2+
29131         * modules/nproc (License): Change from LGPLv3+.
29133         bootstrap: honor --no-git
29134         * build-aux/bootstrap: Don't even try to use git when user is
29135         pointing to a static checkout.
29137 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29139         ignore-value: port to gcc -pedantic
29140         * lib/ignore-value.h (ignore_value):
29141         Port to gcc -pedantic, by using __extension__.
29142         Reindent as per usual gnulib style nowadays.
29143         Simplify GCC version check.
29145 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29147         extern-inline: port to gcc -std=c89
29148         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29149         Do not use __gnu_inline__ if pedantic and pre-C99.
29151 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
29153         doc: document extern-inline
29154         * doc/extern-inline.texi: New file.
29155         * doc/gnulib.texi (alloca-opt): Include it.
29156         * m4/extern-inline.m4: Move some comments to documentation,
29157         and others closer to what they describe.
29159         doc: chatter less
29160         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
29161         (updated-stamp): Use it.  This causes 'make' to output just
29162         one file name rather than zillions.
29164         fflush, fseeko: port to musl cross-compiles
29165         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
29166         on some implementation that (1) is not known to be buggy,
29167         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
29168         cross-compiled to so we can't easily check for lack of
29169         conformance.  This is for cross-compiling to musl.
29170         Reported by Rich Felker in
29171         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
29172         * m4/fclose.m4 (gl_FUNC_FCLOSE):
29173         * m4/fflush.m4 (gl_FUNC_FFLUSH):
29174         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
29175         Adjust to above change.
29176         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
29177         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
29178         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
29179         known not to work, or unknown.
29181 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
29183         msvc-inval: port to mingw-w64
29184         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
29185         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
29186         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
29188 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
29190         getcwd-lgpl: port to Tru64
29191         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
29192         Problem reported by Steven M. Schweda in
29193         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
29195         tests: port large-fd POSIX spawn tests to OS X
29196         Problem reported by Daiki Ueno in
29197         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
29198         * tests/test-posix_spawn_file_actions_addclose.c:
29199         * tests/test-posix_spawn_file_actions_adddup2.c:
29200         * tests/test-posix_spawn_file_actions_addopen.c:
29201         Include <limits.h>, for OPEN_MAX, if available.
29202         (big_fd): New static function.
29203         (main): Use it.
29205 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
29207         tests/nap.h: use an adaptive delay to avoid ctime update issues
29208         The recent change in nap.h (5191133e) decreased the probability of lost
29209         races to about a third, however such problems could still be observed
29210         in virtual machines and openSUSE's OBS.
29211         Before, nap() detected the needed time once empirically and then used
29212         that delay (together with a small correction multiplier) in further
29213         calls.  This problem has been reported and discussed several times,
29214         including guesses about possible kernel issues:
29215         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
29216         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
29217         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
29218         http://bugs.gnu.org/12820
29219         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
29220         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
29221         Now, nap() avoids the race alltogether by verifying on a reference
29222         file whether a timestamp difference has happened.
29223         * tests/nap.h (nap_fd): Define file descriptor variable for the
29224         witness file.
29225         (nap_works): Change return value to bool.  Change passing
29226         the old file's status by value instead of by reference as this function
29227         does no longer update that timestamp; rename the function argument from
29228         st to old_st.  Remove the local variables cdiff and mdiff because that
29229         function now returns true/false instead of the precise delay.
29230         (guess_delay): Remove function.
29231         (clear_tmp_file): Add new function to close and unlink the witness file.
29232         (nap): Instead of re-using the delay which has been calculated during
29233         the first call, avoid the race by actually verifying that a timestamp
29234         difference can be observed on the current file system.  Use an adaptive
29235         approach for the delay to minimize execution time.  Assert that the
29236         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
29237         = 2^31 - 1 = 2.1s.
29238         Use atexit to call clear_tmp_file when the process terminates.
29240 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29242         sig2str: port to C++
29243         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
29244         Reported by Daniel J Sebald in
29245         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
29247 2013-05-30  Eric Blake  <eblake@redhat.com>
29249         docs: mention cygwin shortcoming in <sys/un.h>
29250         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
29252         vasnprintf: silence mingw compiler warning
29253         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
29255 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29257         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
29258         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
29259         This fixes a porting bug I recently reintroduced in regex, and
29260         some other instances that I discovered while testing the fix.
29261         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
29262         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
29263         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
29264         with an empty argument if this is a pedantic pre-C99 GCC.
29265         * lib/verify.h: Do not use _Static_assert if this is a pedantic
29266         pre-C11 GCC.
29268         regex: adapt to locking regime instead of depending on pthread
29269         Instead of depending on pthread, adapt to whatever thread
29270         modules are in use.  Problem reported by Ludovic Courtès in
29271         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
29272         and by Mats Erik Andersson in
29273         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
29274         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
29275         Support either the 'lock' module, or the 'pthread' module, or
29276         no module.
29277         (lock_lock, lock_unlock): New macros.
29278         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
29279         * modules/lock, modules/pthread (configure.ac): Add module indicator.
29280         * modules/regex (Depends-on): Remove pthread.
29282 2013-05-22  Eric Blake  <eblake@redhat.com>
29284         getgroups: document portability issues
29285         * doc/glibc-functions/initgroups.texi (initgroups): Mention
29286         multithread safety.
29287         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
29288         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
29289         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
29290         getugroups.
29291         * doc/posix-functions/getgroups.texi (getgroups): Mention
29292         multithread safety and mgetgroups.
29294 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
29296         test-lchown, test-chown: also skip test if chown fails with EPERM
29297         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
29298         skip this test, to handle FAT file systems.
29299         * tests/test-chown.h (test_chown): Likewise.
29301 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29303         regex: fix dfa race in multithreaded uses
29304         Problem reported by Ludovic Courtès in
29305         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
29306         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
29307         New macros.  All uses of __libc_lock_define, __libc_lock_init
29308         changed to use the first two of these.
29309         (__libc_lock_lock, __libc_lock_unlock): New macros, for
29310         non-glibc platforms.
29311         (struct re_dfa_t): Define the lock unconditionally.
29312         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
29313         '#ifdef _LIBC"s.
29314         * modules/regex (Depends-on): Add pthread, if we use the
29315         included regex.
29317         * lib/regcomp.c: Do actions that are not needed for glibc,
29318         but may be needed elsewhere.
29319         (regfree, re_compile_internal): Destroy the lock.
29320         (re_compile_internal): Check for lock-initialization failure.
29322         malloca: port to compilers that reject size-zero arrays
29323         This fixes a bug introduced in my previous patch.
29324         * lib/malloca.c (struct preliminary_header): Use an int
29325         rather than a character array of size int; that's simpler.
29326         (struct header): Remove, replacing with ...
29327         (union header): New type.  This avoids the need for declaring a
29328         character array of size zero, which is not allowed on some platforms.
29329         All uses changed.
29331 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29333         parse-datetime, tests: don't use "string" + int
29334         Recent versions of 'clang' complain about C source code that
29335         uses expressions of the form '"string literal" + integer',
29336         I guess on the theory that it's confusing for readers who are
29337         used to C++.  On those grounds I suppose it's OK to make this
29338         minor style change.
29339         * lib/parse-datetime.y (parse_datetime):
29340         * tests/test-fchdir.c (main):
29341         * tests/test-snprintf-posix.h (test_function):
29342         * tests/test-snprintf.c (main):
29343         * tests/test-vasnprintf-posix.c (test_function):
29344         * tests/test-vasnprintf.c (test_function):
29345         * tests/test-vsnprintf.c (main):
29346         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
29347         Rewrite '"str" + E' to '&"str"[E]'.
29349 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29351         argmatch: port to C++
29352         * lib/argmatch.h [__cplusplus]: Add extern "C".
29354         argp: typo fix
29355         * lib/argp-help.c: Typo in comment.
29357 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29359         manywarnings: update for GCC 4.8.0
29360         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
29361         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
29362         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
29363         -Wmissing-noreturn, as they are duplicates of other warnings.
29364         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
29365         was documented to be flaky in earlier versions of GCC.
29367         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
29368         * tests/test-spawn.c (main):
29369         * tests/test-sys_socket.c (main):
29370         * tests/test-sys_wait.c (main):
29371         Don't have a switch value that isn't covered by a case.
29373         getaddrinfo-tests: port --enable-gcc-warnings to clang
29374         * tests/test-getaddrinfo.c (simple):
29375         Avoid casts from looser to stricter-aligned pointers.
29377         thread: port --enable-gcc-warnings to clang
29378         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
29379         Include <signal.h>, to pacify a warning about pthread_sigmask.
29381         stdio: use __REDIRECT for fwrite, fwrite_unlocked
29382         * lib/stdio.in.h (fwrite):
29383         When working around bug 11959, use __REDIRECT rather than '#define
29384         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
29385         fix the -Wunused-value issue with clang, and it works with GCC too.
29386         Problem with targeting reported by Eric Blake in
29387         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
29388         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
29389         debugging the fwrite issue.
29391         stdio: port --enable-gcc-warnings to clang
29392         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
29393         since the GCC workaround for fwrite does not pacify clang.
29395         sig2str: port --enable-gcc-warnings to clang
29396         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
29398         obstack: port --enable-gcc-warnings to clang
29399         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
29400         Avoid casts from looser to stricter-aligned pointers.
29402         memchr2: port --enable-gcc-warnings to clang
29403         * lib/memchr2.c (memchr2):
29404         Avoid casts from looser to stricter-aligned pointers.
29406         mbsstr: port --enable-gcc-warnings to clang
29407         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
29408         Avoid casts from looser to stricter-aligned pointers.
29410         malloca: port --enable-gcc-warnings to clang
29411         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
29412         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
29414         inttostr: port --enable-gcc-warnings to clang
29415         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
29417         warnings: port to clang
29418         Problem reported by Daniel P. Berrange via Eric Blake in
29419         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
29420         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
29421         (gl_WARN_ADD): Use it.
29423 2013-05-11  Jim Meyering  <meyering@fb.com>
29425         quotearg: do not read beyond end of buffer
29426         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
29427         end of an ARG for which no length was specified.  With an N-byte
29428         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
29429         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
29430         via coreutils' misc/sort-debug-keys.sh test and detected by running
29431         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
29432         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
29433         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
29434         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
29435         characters correctly."
29437 2013-05-11  Daiki Ueno  <ueno@gnu.org>
29439         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
29440         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
29441         compilation target is Mac OS X 10.6.
29442         Problem reported by parafin and Andoni Morales in
29443         <http://savannah.gnu.org/bugs/?37844> and
29444         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
29446 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29448         mkdir-p: remove assumptions about umask and mode
29449         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
29450         umask is 0, or that MODE is a subset of MODE_BITS.
29452 2013-05-10  Eric Blake  <eblake@redhat.com>
29454         maint.mk: catch more abuse of HAVE_DECL in syntax-check
29455         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
29457 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
29459         deps: require Automake >= 1.9.6 in generated Makefile fragments
29461         That is the same minimal version required in the DEPENDENCIES file.
29462         Moreover, the old code generated a requirement of Automake >= 1.5,
29463         and that is an insanely outdated version.
29465         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
29466         * tests/havelib/rpathlx/Makefile.am: Likewise.
29467         * tests/havelib/rpathly/Makefile.am: Likewise.
29468         * tests/havelib/rpathlyx/Makefile.am: Likewise.
29469         * tests/havelib/rpathlz/Makefile.am: Likewise.
29470         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
29471         * tests/havelib/rpathx/Makefile.am: Likewise.
29472         * tests/havelib/rpathy/Makefile.am: Likewise.
29473         * tests/havelib/rpathz/Makefile.am: Likewise.
29475 2013-05-08  Eric Blake  <eblake@redhat.com>
29477         bootstrap: AC_INIT may have more than four parameters
29478         * build-aux/bootstrap (extract_package_name): Correctly extract
29479         non-empty tarname field.  Avoid range in regex.
29480         Based on a report by Sami Kerola <kerolasa@iki.fi>.
29482 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
29484         qacl: port to MS-Windows port of GNU Emacs
29485         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
29486         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
29487         port of GNU Emacs.  Problem reported by Eli Zaretskii in
29488         <http://bugs.gnu.org/14295#14>.
29490 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
29492         acl: include quote.h
29493         * lib/copy-acl.c: Include quote.h.
29494         * lib/set-acl.c: Likewise.
29496 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
29498         fchownat, renameat, unlinkat: update statat dependencies
29499         These modules use statat and lstatat, not fstatat; so depend on
29500         the statat module, which was split out recently from fstatat.
29501         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
29502         * modules/renameat: Likewise.  Also delete fstat.
29503         URL: http://bugs.gentoo.org/468790
29505 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
29507         Assume gnulib is checked out from Git, not CVS
29509         In fact, access to the gnulib repository through CVS has been
29510         disabled, or more precisely, got broken and was never restored; see:
29511         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
29513         Note that support for CVS is not removed completely and unthinkingly
29514         by this change: only support for CVS checkouts of gnulib itself is
29515         removed.  For example, the 'bootstrap' script still cater to .cvsingore
29516         files and CVS directories, for the benefit of those poor gnulib clients
29517         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
29519         * gnulib-tool: Simplify accordingly.
29520         * posix-modules: Likewise.
29521         * MODULES.html.sh: Likewise.
29522         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
29523         repository.
29524         * doc/gnulib-intro.texi: Likewise.
29525         * doc/gnulib-readme.texi: Likewise.
29526         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
29527         sample '.gitignore' file rather than a sample '.cvsignore'.
29528         * NEWS: Update.
29529         * m4/extensions.m4: While at it, remove a comment mistakenly referring
29530         to "CVS Autoconf" rather than "git Autoconf".
29532 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
29534         utimensat-tests, etc.: try to fix some races
29535         Problem reported by Bernhard Voelker in
29536         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
29537         I don't know whether this patch fixes that race condition, but it
29538         fixes *some* race conditions, so it should be a win.
29539         * modules/chown-tests (Depends-on):
29540         * modules/fchownat-tests (Depends-on):
29541         * modules/fdutimensat-tests (Depends-on):
29542         * modules/futimens-tests (Depends-on):
29543         * modules/lchown-tests (Depends-on):
29544         * modules/stat-time-tests (Depends-on):
29545         * modules/utimens-tests (Depends-on):
29546         * modules/utimensat-tests (Depends-on):
29547         Depend on nanosleep, not usleep.
29548         * modules/chown-tests (test_chown_LDADD):
29549         * modules/lchown-tests (test_lchown_LDADD):
29550         * modules/stat-time-tests (test_stat_time_LDADD):
29551         New macro.
29552         * modules/fchownat-tests (test_fchownat_LDADD):
29553         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
29554         * modules/futimens-tests (test_futimens_LDADD):
29555         * modules/utimens-tests (test_utimens_LDADD):
29556         * modules/utimensat-tests (test_utimensat_LDADD):
29557         Add $(LIB_NANOSLEEP).
29558         * modules/stat-time-tests (Files): Add tests/nap.h.
29559         * tests/nap.h: Include <limits.h>, for INT_MAX.
29560         (lt_mtime): Remove.
29561         (diff_timespec): New function.
29562         (get_stat): Rename from get_mtime.  All callers changed.
29563         (nap_works): Determine the needed delay by inspecting the
29564         file system's timestamp jumps; this should be more reliable.
29565         Look at both mtime and ctime, and take the maximum of the two jumps.
29566         (nap_works, guess_delay):
29567         Return a nanosecond count, not a microsecond count.
29568         All callers changed.
29569         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
29570         failure.
29571         (nap): Multiply the guess by 1.125, to accommodate the case where
29572         the file system's clock is a bit slower than nanosleep's clock.
29573         * tests/test-stat-time.c (BASE): New macro.
29574         Include nap.h.
29575         (nap): Remove; nap.h now defines this.  This removes a duplicate
29576         implementation of 'nap'.
29578         utimens, utimensat: work around Solaris UTIME_OMIT bug
29579         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
29580         Linux kernel 2.6.32 does.  Work around it in the same way.
29581         * doc/posix-functions/futimens.texi (futimens):
29582         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
29583         * lib/utimens.c (fdutimens, lutimens):
29584         * lib/utimensat.c (rpl_utimensat): Work around the bug.
29586         gettext: now it's your responsibility to add -I$(top_builddir)/intl
29587         Formerly, it was your responsibility to do this for all Makefile.ams
29588         other than Gnulib's.  Now it's your responsibility to do it for
29589         Gnulib's Makefile.am, too.
29590         * NEWS: Document this.
29591         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
29593         acl: include errno.h to get errno
29594         Reported by Daiki Ueno in
29595         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
29596         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
29598 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29600         tests: don't assume getdtablesize () <= 10000000
29601         * modules/cloexec-tests:
29602         * modules/dup2-tests:
29603         * modules/dup3-tests:
29604         * modules/nonblocking-tests:
29605         * modules/posix_spawn_file_actions_addclose-tests:
29606         * modules/posix_spawn_file_actions_adddup2-tests:
29607         * modules/posix_spawn_file_actions_addopen-tests:
29608         * modules/unistd-safer-tests:
29609         Depend on the getdtablesize module.
29610         * tests/test-cloexec.c:
29611         * tests/test-dup-safer.c:
29612         * tests/test-dup2.c:
29613         * tests/test-dup3.c:
29614         * tests/test-fcntl.c:
29615         * tests/test-nonblocking.c:
29616         * tests/test-posix_spawn_file_actions_addclose.c:
29617         * tests/test-posix_spawn_file_actions_adddup2.c:
29618         * tests/test-posix_spawn_file_actions_addopen.c:
29619         Don't assume getdtablesize () <= 10000000.
29621 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
29623         extern-inline: work around bug in Sun c99
29624         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
29625         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
29627 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29629         qacl: new module, broken out from the acl module
29630         This is for GNU Emacs, which wants the acl functions but does
29631         not want 'error' invoked when they fail.
29632         * lib/acl-internal.h: Do not include error.h, quote.h.
29633         (ENOSYS, ENOTSUP): Remove; no longer needed.
29634         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
29635         * lib/acl.h: Include <stdbool.h>.
29636         (acl_errno_valid): New function.
29637         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
29638         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
29639         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
29640         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
29641         (ACL_INTERNAL_INLINE): Remove; no longer needed.
29642         * lib/file-has-acl.c (file_has_acl):
29643         * lib/qcopy-acl.c (qcopy_acl):
29644         * lib/qset-acl.c (qset_acl):
29645         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
29646         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
29647         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
29648         lib/file-has-acl.c, m4/acl.m4 to qacl module.
29649         Add lib/set-acl.c.
29650         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
29651         Add qacl.
29652         (configure.ac): Move gl_FUNC_ACL to qacl module.
29653         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
29654         Rename set-mode-acl.c to set-acl.c.
29655         * lib/acl-errno-valid.c: New file.
29656         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
29657         copy_acl function remains in copy-acl.c.
29658         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
29659         (_): Remove; not needed.
29660         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
29661         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
29662         * modules/qacl: New file, moved from the old modules/acl.
29663         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
29664         Remove set-mode-acl.c, copy-acl.c.
29665         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
29667         alignof, intprops, malloca: port better to IBM's C compiler
29668         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
29669         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
29670         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
29672 2013-04-25  Daiki Ueno  <ueno@gnu.org>
29674         wctype-h: fix gettext link error on mingw
29675         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
29676         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
29677         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
29678         rpl_towupper and rpl_towupper.
29680 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
29682         regex-tests, regex: allow glibc re_search behavior
29683         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
29684         re_search input data to make the multi-character collating element
29685         in it clearly visible, and treat re_search return code 0 as valid.
29686         * m4/regex.m4 (gl_REGEX): Likewise.
29688 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29690         stdalign: doc fix
29691         * doc/posix-headers/stdalign.texi (stdalign.h):
29692         Gnulib doesn't support '_Alignof expr'.
29694 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
29696         stdalign: port to stricter ISO C11
29697         ISO C11 says that _Alignof's operand must be a parenthesized type.
29698         Problem reported by Eli Zaretskii in
29699         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
29700         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29701         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
29703 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29705         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
29706         Problem reported by Marco Atzeri in
29707         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
29708         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
29709         Simply delegate to the system <sys/select.h> in this case too.
29710         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
29711         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
29712         be needed on Solaris either.
29713         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
29714         Simply delegate to the system <sys/time.h> in this case.
29716 2013-03-19  Karl Berry  <karl@gnu.org>
29718         * build-aux/gnupload: check for erroneous (with gnupload) use of
29719         ftp-upload.gnu.org, tweak help.
29721 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29723         copy-file, rpmatch: fix problems found by cppcheck
29724         Reported by Arno Onken in
29725         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
29726         * lib/rpmatch.c (try): Fix memory leak.
29727         * lib/copy-file.c: Include "ignore-value.h".
29728         (qcopy_file_preserving): Ignore chown value.
29729         * modules/copy-file (Depends-on): Add ignore-value.
29731 2013-01-27  Jim Meyering  <jim@meyering.net>
29733         prefix-gnulib-mk: give better diagnostics
29734         * build-aux/prefix-gnulib-mk: Don't just "die".
29735         Give better diagnostics upon failure.
29737 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
29739         putenv: port to Solaris 10
29740         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
29741         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
29742         is not what is wanted here.
29743         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
29744         declaration, not for its existence.
29746 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
29748         mktime: fix configure typo
29749         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
29751 2013-03-12  Eric Blake  <eblake@redhat.com>
29753         regex-tests: skip UTF-8 test on mingw
29754         * modules/regex-tests (Depends-on): Add localcharset.
29755         * tests/test-regex.c (main): Use it to skip test on mingw.
29757 2013-03-11  Eric Blake  <eblake@redhat.com>
29759         tests: make it easier to bypass alarm time in debugger
29760         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
29761         * tests/test-memmem.c (main): Likewise.
29762         * tests/test-passfd.c (main): Likewise.
29763         * tests/test-ptsname.c (main): Likewise.
29764         * tests/test-ptsname_r.c (main): Likewise.
29765         * tests/test-strcasestr.c (main): Likewise.
29766         * tests/test-strstr.c (main): Likewise.
29768         regex: port to mingw's recent addition of undeclared alarm
29769         * doc/posix-functions/alarm.texi (alarm): Document that alarm
29770         exists but still doesn't work in newer mingw.
29771         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
29772         not existence.  Ensure SIGALRM is not trapped.
29773         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
29774         * m4/regex.m4 (gl_REGEX): Likewise.
29775         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
29776         * tests/test-regex.c (main): Use correct probe for alarm.
29778         putenv: avoid compilation warning on mingw
29779         * lib/putenv.c (_unsetenv): Protect variable declaration.
29780         (putenv): Fix indentation.
29782 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
29784         unistd: don't prevent Tru64 Unix from using gnulib strtod.
29785         * lib/unistd.in.h: be careful not to include un-needed system
29786         stdlib.h from here, because that prevents gnulib stdlib.h from
29787         defining rpl_strtod correctly.
29789 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
29791         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
29792         changesets, but for the 'precision 0' test.
29793         * tests/test-vasprintf-posix.c (test_function): Don't insist on
29794         round-to-even, since POSIX says rounding is implementation-defined
29795         and OS X 10.8.2 rounds 1.51 to 1 here.
29797         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
29798         changeset.
29799         * tests/test-vasprintf-posix.c (test_function): Don't insist on
29800         round-to-even, since POSIX says rounding is implementation-defined
29801         and OS X 10.8.2 rounds 1.5 to 1 here.
29803 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29805         vasnprintf-posix-tests: allow rounding 1.5 to 1
29806         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
29807         round-to-even, since POSIX says rounding is implementation-defined
29808         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
29809         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
29811         bootstrap: port to FreeBSD
29812         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
29813         that treat '--' differently.  Reported by Mats Erik Andersson in
29814         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
29816 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
29818         regex: rename remaining __attribute calls to __attribute__.
29819         2012-02-25 changed definition of __attribute, but left some uses
29820         unchanged, preventing compilation of regex module on most non-gcc
29821         environments.
29822         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
29823         (lookup_collation_sequence_value, build_range_exp)
29824         (build_collating_symbol): Set attributes with newly renamed
29825         __attribute__ decorator.
29826         * lib/regex_internal.c (re_string_peek_byte_case)
29827         (re_node_set_compare, re_node_set_contains): Likewise.
29828         * lib/regexec.c (acquire_init_state_context): Likewise.
29830 2013-03-06  Bruno Haible  <bruno@clisp.org>
29832         execute: Revert last change, but use a different condition.
29833         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
29834         on Windows.
29836 2013-03-05  Eric Blake  <eblake@redhat.com>
29838         execute: drop dead code
29839         * lib/execute.c (nonintr_close, nonintr_open): Delete.
29841 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
29843         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
29844         * m4/non-recursive-gnulib-prefix-hack.m4
29845         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
29846         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
29847         <http://bugs.gnu.org/10305#237>.
29849 2013-03-04  Eric Blake  <eblake@redhat.com>
29851         test-getsockopt: avoid compiler warning
29852         * tests/test-getsockopt.c (includes): Ensure close is declared.
29854 2013-03-02  Bruno Haible  <bruno@clisp.org>
29856         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
29857         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
29859 2013-03-02  Bruno Haible  <bruno@clisp.org>
29861         gettext: Update to version 0.18.2.
29862         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
29863         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
29864                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
29866 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29868         regex: merge patches from libc
29870         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29871         * lib/regex_internal.h (__attribute__): Rename from __attribute.
29872         All uses changed.
29873         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
29874         (re_string_wchar_at, re_string_elem_size_at):
29875         Mark function as possibly unused.
29877         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
29878         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
29879         elements compare against the byte sequence of it, not its name.
29881 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29883         putenv: port better to native Windows
29884         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
29885         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
29886         (_unsetenv): Use _putenv if available.
29887         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
29888         a bit less likely to cause damage.
29889         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
29890         Fix the wrong value with SetEnvironmentVariable.
29891         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
29892         code better.
29894 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29896         regex: ignore old-style-definition warnings
29897         * lib/regex.c: Add pragma to ignore these warnings.
29898         Problem reported for GNU tar by Pavel Raiskup.
29900 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29902         getcwd: support coreutils better
29903         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
29904         but this might not be correct in coreutils, which disables
29905         the raw decl checks.  Problem reported by Nagendra in
29906         <http://bugs.gnu.org/10305#192>.
29907         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
29908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29909         Test the getcwd function, not any macro, since getcwd.c wants the
29910         function.
29911         * m4/getcwd.m4 (gl_FUNC_GETCWD):
29912         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
29913         compile, as might happen if there's a macro but no function.
29915         strtod: support coreutils better
29916         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
29917         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
29918         disables the raw decl checks.  This assumes there is an underlying
29919         strtod, but that's a safe assumption these days.
29920         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
29922         mountlist: port to HP NonStop
29923         Reported by Joachim Schmitz in
29924         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
29925         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
29926         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
29928 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29930         extern-inline: avoid compilation error with HP-UX cc
29931         Reported by Richard Lloyd in
29932         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
29933         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
29934         Suppress extern inline with HP-UX cc.  This should be safe,
29935         though it may hurt performance.  Perhaps someone with some HP-UX
29936         experience can come up with a higher-performance fix.
29938 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
29940         putenv: fix heap corruption with mixed putenv/_putenv
29941         Problem reported by Michael Goffioul in
29942         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
29943         * lib/putenv.c (putenv) [HAVE__PUTENV]:
29944         Rely on _putenv to allocate the new environment.
29945         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
29946         * modules/putenv (configure.ac): Use it.
29948 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
29950         unsetenv etc.: port to Solaris 11 + GNU Emacs
29951         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
29952         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
29953         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
29954         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
29955         idea but is too painful to fix right now), and without this gnulib
29956         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
29957         compiling unsetenv.c on Solaris 11.  Fix the problem for
29958         unsetenv.c, and fix other similar occurrences.
29960 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29962         secure_getenv: fix C++ declaration typo
29963         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
29964         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
29965         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
29967 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29969         careadlinkat: stop exporting careadlinkatcwd
29970         Only Emacs used it directly, and Emacs no longer needs it.
29971         * NEWS: Document this simplification.
29972         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
29973         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
29974         for readlink.
29975         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
29976         Don't include stdlib.h; no longer needed.
29977         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
29978         * lib/relocwrapper.c: Adjust comment to match new dependencies.
29979         * modules/areadlink (Depends-on): Add readlink.
29980         (Maintainer): Add self.
29981         * modules/careadlinkat (Depends-on): Remove readlink.
29983         extensions: port better to HP-UX
29984         This is merged from git Autoconf.
29985         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
29986         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
29987         so that it's compatible with the value used when compiling.
29989         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
29990         Problem reported by Mats Erik Andersson in
29991         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
29992         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
29993         openpty function exists, not merely when we intend to replace it.
29994         This corrects the 2013-01-31 patch, which mistakenly defined
29995         HAVE_OPENPTY even on hosts that lacked it.
29997 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
29999         secure_getenv: fix include typo
30000         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
30002         secure_getenv: port better to FreeBSD and Solaris
30003         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
30004         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
30005         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
30006         This works better on BSDish platforms.
30007         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
30008         Test for issetugid if __secure_getenv is missing.
30010 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
30012         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
30013         Some of these changes are merged in from git Autoconf.
30014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
30015         When deciding whether to define _XOPEN_SOURCE, inspect the
30016         preprocessor macro __hpux instead of the more-heavyweight
30017         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
30018         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
30019         as the key for __EXTENSIONS__.
30021         unistd: avoid namespace pollution on non-glibc systems
30022         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
30023         This avoids namespace pollution on non-glibc systems, by causing
30024         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
30025         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
30026         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
30028 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
30030         tmpdir: use secure_getenv
30031         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
30032         Define to secure_getenv, not getenv.
30033         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
30034         as that's now secure_getenv's job.
30035         * modules/tmpdir (Depends-on): Add secure_getenv.
30037         tempname: use secure_getenv
30038         * lib/tempname.c (__secure_getenv) [!_LIBC]:
30039         Define to secure_getenv, not getenv.
30040         * modules/tempname (Depends-on):
30041         Add secure_getenv.
30043         secure_getenv: new module
30044         * MODULES.html.sh (Extra functions based on ANSI C 89):
30045         Add secure_getenv.
30046         * doc/glibc-functions/secure_getenv.texi: New file.
30047         * doc/gnulib.texi: Include it.
30048         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
30049         New files.
30050         * lib/stdlib.in.h (secure_getenv): New decl.
30051         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
30052         * modules/stdlib (stdlib.h):
30053         Add secure_getenv checks.
30055 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30057         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
30058         Reported for OS X 10.8.2 by Assaf Gordon in
30059         <http://bugs.gnu.org/13516>.
30060         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
30061         !HAVE_OPENAT && !HAVE_FDOPENDIR.
30062         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
30063         so that they can be kept in sync more easily.  Avoid PATH_MAX
30064         test on the Hurd.  Sync from test-getcwd.c for errno tests after
30065         mkdir or chdir failure.
30066         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
30067         lib/getcwd.c.
30068         (test_abort_bug): Do not test for the deep directory bug unless we
30069         have openat support.  Avoid PATH_MAX test on the Hurd.
30071         regex-tests, regex: fix bug: memset undeclared
30072         * tests/test-regex.c: Don't include regex.h twice.  Include
30073         string.h, to declare memset.  Christensen's report also mentioned
30074         this issue.
30075         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
30076         test-regex.c, to avoid future problems like this.  Remove
30077         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
30078         twice.
30080         regex-tests: fix link errors on older Solaris
30081         These need to link with @LIBINTL@ to get libintl_gettext.
30082         Problem reported by Tom G. Christensen in
30083         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
30084         * modules/regex-tests (test_regex_LDADD): New macro.
30086 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
30088         regex-tests: new module
30089         * modules/regex-tests, tests/test-regex.c: New files.
30091         regex: fix off-by-one error in configure test
30092         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
30094 2013-01-31  Eric Blake  <eblake@redhat.com>
30096         regex: avoid infinite configure test
30097         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
30099 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
30101         openpty: fix bug where HAVE_OPENPTY wasn't defined
30102         See the thread starting at:
30103         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
30104         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
30105         openpty function exists, not merely when we intend to replace it.
30107 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
30109         sys_time: port to Solaris 2.6
30110         There is a circularity problem on Solaris 2.6, where <time.h> includes
30111         <sys/time.h> for struct timespec.  The include nesting is gnulib
30112         <time.h>, system <time.h>, gnulib <sys/time.h>, system
30113         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
30114         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
30115         <sys/siginfo.h>; the last, innermost file needs struct
30116         timestruc_t, which is defined in <sys/time.h>, which has not been
30117         fully parsed.  Problem reported by Tom G. Christensen in
30118         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
30119         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
30120         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
30121         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
30122         uses split double-inclusion guards.
30124 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
30126         regex: test for buffer overrun
30127         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
30128         for the just-fixed regex bug.
30130 2013-01-29  Andreas Schwab  <schwab@suse.de>
30132         regex: fix buffer overrun in regexp matcher [BZ #15078]
30133         * lib/regexec.c (extend_buffers): Add parameter min_len.
30134         (check_matching): Pass minimum needed length.
30135         (clean_state_log_if_needed): Likewise.
30136         (get_subexp): Likewise.
30138 2013-01-28  Pádraig Brady  <P@draigBrady.com>
30140         mountlist: don't consider "devtmpfs" as dummy
30141         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
30142         as there is storage associcated with it.
30144 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
30146         futimens-tests, utimens-tests: Depend on gettext.
30147         This works around a problem introduced in my 2013-01-12 patch,
30148         which added @LIBINTL@ to these modules.
30149         * modules/futimens-tests (Depends-on):
30150         * modules/utimens-tests (Depends-on): Add gettext.
30152 2013-01-26  Eric Blake  <eblake@redhat.com>
30154         test-getpeername: fix typo
30155         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
30157 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
30159         bootstrap: remove the need for a sorted .gitignore file
30160         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
30161         rename to insert_if_absent(), so that we don't need or generate
30162         a sorted .gitignore file.  We do require a .gitignore with no
30163         existing duplicate entries and enforce that.
30164         (sort_patterns): Remove this function as we now use the simpler
30165         technigue of inserting blacklist entries at the top of the file,
30166         assuming gnulib won't be inserting !whitelist entries.
30168 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30170         readlinkat: don't depend on gl_FUNC_OPENAT
30171         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
30172         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
30173         renameat.m4, symlinkat.m4; but one thing at a time.
30175         statat: new module, split out from fstatat
30176         GNU Emacs needs the POSIX-specified fstatat, but not the
30177         gnulib-specified statat and lstat.  Split the latter two into a
30178         new module 'statat'.
30179         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
30180         * lib/openat.h, lib/statat.c (STATAT_INLINE):
30181         Rename from FSTATAT_INLINE. All uses changed.
30182         * modules/fstatat (Files): Remove lib/statat.c.
30183         (gl_MODULE_INDICATOR([fstatat])): Remove.
30184         (lib_SOURCES): Remove.
30185         (Maintainer): Add self.
30186         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
30187         * tests/test-fstatat.c (BASE): Don't define if already defined.
30188         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
30190 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30192         tests: don't assume fd 99 is closed
30193         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
30194         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
30195         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
30196         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
30197         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
30198         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
30199         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
30200         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
30201         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
30202         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
30203         * tests/test-fwrite.c, tests/test-getpeername.c:
30204         * tests/test-getsockname.c, tests/test-getsockopt.c:
30205         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
30206         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
30207         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
30208         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
30209         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
30210         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
30211         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
30212         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
30213         * tests/test-unlinkat.c, tests/test-unlockpt.c:
30214         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
30215         Close file descriptor 99, instead of assuming it's already closed.
30217 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
30219         stpncpy: port to OS X 10.8
30220         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
30221         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
30223 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30225         unistd: port to recent mingw
30226         * lib/unistd.in.h: Remove special invocation convention for mingw,
30227         which breaks for the latest mingw version.  See John W. Eaton in
30228         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
30230         largefile: port better to Mac OS X 10.5
30231         This patch is backported from Autoconf git.
30232         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
30233         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
30234         with ino_t size being different for configuration time versus
30235         build/run time.  Problem reported by PHO in
30236         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
30238 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30240         doc: clarify -Werror
30241         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
30242         clarify that it's intended for developers, not for ordinary builds,
30243         and mention --enable-gcc-warnings as one possible use.
30245 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
30247         stdint: fix build with Android's Bionic fox x86
30248         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
30249         was already included as _SSIZE_T_DEFINED_ might also be defined
30250         in include/machine/_types.h, which is included by stdio.h
30252 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
30254         net_if-tests: port to Solaris 7 + GCC 3.4.6
30255         Problem reported by Tom G. Christensen in
30256         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
30257         * tests/test-net_if.c (ni): Move to next the code that uses it,
30258         so that it's declared only if needed.
30260 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
30262         net_if-tests: port to older Solaris
30263         Problem reported by Tom G. Christensen in
30264         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
30265         * modules/net_if-tests (NET_IF_LIB): New substitution.
30266         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
30267         (HAVE_IF_NAMEINDEX): New C macro.
30268         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
30270         system-quote-tests: port to older Solaris
30271         Problem reported by Tom G. Christensen in
30272         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
30273         * tests/test-system-quote-child.c (fopen, fread): Undef.
30275         c-xvasprintf etc.: fix link errors on older Solaris
30276         These need to link with @LIBINTL@ to get libintl_gettext.
30277         Problem reported by Tom G. Christensen in
30278         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
30279         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
30280         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
30281         * modules/futimens-tests (test_futimens_LDADD):
30282         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
30284 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
30286         locale: port to Solaris 2.6 and 7 + GNU gettext
30287         * lib/locale.in.h: Just include_next <locale.h> when
30288         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
30289         when combining the localename module with GNU gettext 0.18.2.
30290         Problem reported by Tom G. Christensen in
30291         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
30293 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30295         stdlib: port to Solaris 2.6
30296         Also, the code worked on Solaris 7 through 9 only by accident.
30297         Problem reported by Tom G. Christensen in
30298         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
30299         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
30300         simply include the system stdlib.h.
30301         * lib/getopt.in.h (__need_system_stdlib_h):
30302         * lib/pthread.in.h (__need_system_stdlib_h):
30303         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
30304         Define when including <stdlib.h>, to avoid problems at least for
30305         the pthread case on Solaris 2.6 and 7.  These .h files can get by
30306         with the system stdlib.h.
30308 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30310         doc: update main copyright year
30311         * doc/gnulib.texi: Update copyright date.
30313         doc: improve ISO 8601 discussion
30314         * doc/parse-datetime.texi (Combined date and time of day items):
30315         Specify more carefully what formats are supported and what is
30316         done with excess precision.
30318 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
30320         doc: avoid small caps
30321         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
30322         they're more trouble than they're worth.  Suggested by Karl Berry
30323         in <http://bugs.gnu.org/13360>.
30325         regex: conform to strict C
30326         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
30327         From Aharon Robbins.
30329         gnulib-tool: fix incompatibility with autopoint 0.18.2
30330         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
30331         Problem reported by Tom G. Christensen in
30332         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
30334 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30336         fprintftime: bring back and reword fwrite comment
30337         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
30339         stdio: remove now-unnecessary stdio.c
30340         Since stdio.in.h no longer uses inline functions, we no longer
30341         need to compile the extern versions.
30342         * lib/stdio.c: Remove.
30343         * modules/stdio (Files): Remove lib/stdio.c.
30344         (lib_SOURCES): Remove.
30346         unicodeio: depend on stdio, not ignore-value
30347         * lib/unicodeio.c: Do not include ignore-value.h.
30348         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
30349         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
30351         fprintftime: depend on stdio, not ignore-value
30352         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
30353         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
30354         since the stdio module arranges to silence that warning now.
30355         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
30357 2012-10-04  Simon Josefsson  <simon@josefsson.org>
30359         stdint-tests: Fix expanded-before-required-warning.
30360         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
30362 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30364         fwrite: silence __wur only for older glibc versions
30365         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
30366         This will help us remove this workaround some time in the far future.
30368 2013-01-03  Eric Blake  <eblake@redhat.com>
30370         fwrite: silence __wur without using inline
30371         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
30372         just gcc, and in a way that avoids inline issues.
30373         * modules/stdio (Depends-on): Drop extern-inline.
30375 2013-01-03  Jim Meyering  <jim@meyering.net>
30377         update-copyright: avoid copyright notice date corruption
30378         Given a sequence of copyright year numbers in which the final
30379         one was a two-digit number that happened to be a substring of
30380         a preceding four-digit year number, we would mistakenly update
30381         the substring (from two- to four-digit) rather than the two-digit
30382         number at the end, which, combined with the addition of the current
30383         4-digit year number would yield two 5-digit year numbers, e.g.,
30384         here, it would convert the first "99" to "1999, 2013" rather than
30385         the final one:
30386           1991, 99
30387           11999, 20131, 1999
30388         * build-aux/update-copyright: Tighten a regexp.
30389         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
30390         Reported by Joseph Myers in
30391         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
30393 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30395         regex: omit needless signed-pointer casts
30396         * lib/regcomp.c (build_charclass, build_charclass_op):
30397         Use char *, not unsigned char *, for class name and extra.
30398         The char values are always nonnegative so there's no need to
30399         insist on unsigned char * here, and using char * removes the need
30400         for casts.  Reported by Aharon Robbins in
30401         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30403         regex: support Gawk, which never uses alloca
30404         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
30405         Do not include in this case.  Gawk doesn't supply a substitute
30406         alloca.h and doesn't need one.
30408         regex: port __libc_lock_define usage to C89
30409         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
30410         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
30411         does not conform to C89, as it has an empty macro argument.
30412         Reported by Aharon Robbins in
30413         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30415 2013-01-01  Eric Blake  <eblake@redhat.com>
30417         maint: update all copyright year number ranges
30418         Run "make update-copyright".
30420         version-etc: bump copyright year reported in --version
30421         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
30423 2012-12-31  Eric Blake  <eblake@redhat.com>
30425         sigprocmask-tests: skip test if pid is unexpectedly large
30426         * tests/test-sigprocmask.c (main): Add range check.
30428         git-version-gen: avoid test -z portability glitch
30429         * build-aux/git-version-gen: Prefer portable test spelling, since
30430         git-version-gen is run on more than just developer machines.
30432 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
30434         git-version-gen: add --fallback option to use if git is not present
30435         * build-aux/git-version-gen: Add support for the new option --fallback,
30436         which comes into play when there is no $tarball_version_file and
30437         git is not working.
30438         (scriptversion): Update.
30440         maint.mk: handle missing git with more grace
30441         * top/maint.mk (no-submodule-changes, public-submodule-commit):
30442         Quietly proceed if git is not present.
30444 2012-12-31  Eric Blake  <eblake@redhat.com>
30446         dup2: work around cygwin bug
30447         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
30448         * lib/dup2.c (rpl_dup2): Work around it.
30449         * doc/posix-functions/dup2.texi (dup2): Document it.
30451 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
30453         regex: remove unnecessary dependency on localcharset.h
30454         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
30455         hasn't been needed for years.
30456         * modules/regex (Depends-on): Remove localcharset.
30458         regex: revert single-byte change
30459         * lib/regexec.c (check_node_accept_bytes): Revert previous change
30460         to this function.  This was alredy fixed in a different way, at
30461         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
30462         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
30463         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
30465         regex: simplify based on Gawk version
30466         * lib/regex_internal.c (re_dfa_add_node): Simplify.
30467         Reported by Aharon Robbins in
30468         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30470 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
30472         regex: check that pattern char is single-byte
30473         Reported by Aharon Robbins in
30474         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30475         * lib/regexec.c (check_node_accept_bytes):
30476         Return 0 if the pattern string has a multibyte character here.
30478         regex: implement rational ranges
30479         Reported by Aharon Robbins in
30480         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30481         * lib/regcomp.c (build_range_exp) [!_LIBC]:
30482         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
30483         Implement rational ranges.
30485         regex: avoid redefining __wctype
30486         Reported by Aharon Robbins in
30487         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30488         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
30489         #undef before defining.
30491         regex: port to hosts where malloc (0) == NULL
30492         Reported by Aharon Robbins in
30493         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30494         * lib/regex_internal.c (re_node_set_alloc):
30495         Don't assume that malloc (0) yields nonnull.
30496         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
30497         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
30498         * modules/regex (Files): Add m4/eealloc.m4.
30500         regex: port to C89
30501         Reported by Aharon Robbins in
30502         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30503         * lib/regcomp.c (init_word_char): Declaration before statement.
30505         regex: merge glibc changes
30506         Also, copy the license wording from glibc.  This simplifies
30507         merging changes.  gnulib-tool will change the wording to GPL as
30508         appropriate, when importing it to other packages.  The only
30509         glibc change made since the last merge, which needs merging, is:
30510         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
30511         * lib/regex_internal.h (gettext): Remove use of INTUSE.
30513         * users.txt: Add Emacs.
30515         doc: omit mention of version when not needed
30516         * doc/gnulib-intro.texi (Portability and Application Code):
30517         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
30518         Don't mention particular dates or versions when not necessary, so
30519         that the documentation won't go out of date so quickly.
30521         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
30523 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
30525         bootstrap: pass --force to autoreconf.
30526         * build-aux/bootstrap (AUTORECONFFLAGS): New.
30527         Add "--force" so that Automake's ylwrap and other such tools
30528         be updated at each bootstrap invocation.
30529         Use it.
30531 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
30533         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
30534         The earlier patch forgot to update one of the #if conditions, causing
30535         a problem on Debian testing i386 reported by Mats Erik Andersson
30536         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
30537         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
30538         (__argp_fmtstream_puts, argp_fmtstream_puts)
30539         (__argp_fmtstream_write, argp_fmtstream_write)
30540         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
30542         * doc/gnulib-readme.texi: Minor fixups.
30543         (Portability guidelines): Modernize URLs.  Remove some repetition.
30544         (Indent with spaces not TABs): Reword to avoid too-long lines.
30545         Remove some '@ifset standalone' stuff that isn't used.
30547         * doc/gnulib-readme.texi (Portability guidelines):
30548         ctype.h, not ctime.h.
30550         Correct name of POSIX.1-2001.
30551         * doc/posix-functions/fgetc.texi (fgetc):
30552         * doc/posix-functions/fgets.texi (fgets):
30553         * doc/posix-functions/fread.texi (fread):
30554         * doc/posix-functions/fscanf.texi (fscanf):
30555         * doc/posix-functions/getc.texi (getc):
30556         * doc/posix-functions/getchar.texi (getchar):
30557         * doc/posix-functions/scanf.texi (scanf):
30558         POSIX.1-2001, not POSIX-2001.
30560         doc: move README into manual
30561         * README: Move contents to new file doc/gnulib-readme.texi.
30562         Replace with a one-line summary.
30563         * doc/gnulib.texi (Brief Overview): New section,
30564         with old intro preface.  Include gnulib-readme.texi for contents.
30565         (Philosophy): Rename from "Introduction", since this
30566         section no longer introduces the rest.  Write a new preface.
30567         * doc/gnulib-readme.texi: New file, with the old contents of
30568         README texinfo-ized.  This way, the README info appears
30569         in the online and printed manual.
30571 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
30573         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
30574         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
30575         c_vasprintf() prototype.
30577 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
30579         c-vasprintf: Fix "empty declaration" warning reported by GCC.
30580         * lib/c-vasprintf.h: Remove stray semicolon.
30582 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30584         gettext: avoid obsolete macro AM_PROG_MKDIR_P
30585         It is obsolete and is planned to be removed from Automake 1.14; see
30586         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
30587         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
30588         (installdirs-data, installdirs-data-yes):
30589         Use $(MKDIR_P), not $(mkdir_p).
30590         * m4/intl.m4 (AM_INTL_SUBDIR):
30591         * m4/po.m4 (AM_PO_SUBDIRS):
30592         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
30594 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
30596         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
30597         On this platform, we are not optimizing but we are using
30598         the substitute for extern inlines, so compile as if
30599         C99-style extern inline, or a substitute, is available.
30600         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
30601         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
30602         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
30603         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
30604         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
30605         Declare as ARGP_FS_EI, not as extern.
30606         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
30607         (__option_is_short, _option_is_end, __option_is_end)
30608         [!_LIBC && __USE_EXTERN_INLINES]:
30609         Declare as ARGP_EI, not as extern.
30611 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
30613         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
30614         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
30615         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
30616         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
30617         ...), as the latter is fatal with older Autoconfs.
30618         Problem reported and fix suggested by Eric Blake in thread starting at
30619         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
30621 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30623         AC_PROG_MKDIR_P: don't workaround if not buggy
30624         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
30625         Define only for Autoconf versions before 2.62.
30626         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
30627         undocumented m4_PACKAGE_VERSION, for consistency with the
30628         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
30629         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
30630         was introduced in 2.62.
30632 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
30634         New 'c-*printf' modules for formatted output in C locale.
30636         New module 'c-vasnprintf'.
30637         * modules/c-vasnprintf: New file.
30638         * lib/c-vasnprintf.c: New file.
30639         * lib/c-vasnprintf.h: New file.
30641         New module 'c-snprintf'.
30642         * modules/c-snprintf: New file.
30643         * modules/c-snprintf-tests: New file.
30644         * lib/c-snprintf.c: New file.
30645         * lib/c-snprintf.h: New file.
30646         * tests/test-c-snprintf.c: New file.
30647         * tests/test-c-snprintf.sh: New file.
30649         New module 'c-vsnprintf'.
30650         * modules/c-vsnprintf: New file.
30651         * modules/c-vsnprintf-tests: New file.
30652         * lib/c-vsnprintf.c: New file.
30653         * lib/c-vsnprintf.h: New file.
30654         * tests/test-c-vsnprintf.c: New file.
30655         * tests/test-c-vsnprintf.sh: New file.
30657         New module 'c-vasprintf'.
30658         * modules/c-vasprintf: New file.
30659         * modules/c-vasprintf-tests: New file.
30660         * lib/c-asprintf.c: New file.
30661         * lib/c-vasprintf.c: New file.
30662         * lib/c-vasprintf.h: New file.
30663         * tests/test-c-vasprintf.c  +: New file.
30664         * tests/test-c-vasprintf.sh: New file.
30666         New module 'c-xvasprintf'.
30667         * modules/c-xvasprintf: New file.
30668         * modules/c-xvasprintf-tests: New file.
30669         * lib/c-xasprintf.c: New file.
30670         * lib/c-xvasprintf.c: New file.
30671         * lib/c-xvasprintf.h: New file.
30672         * tests/test-c-xvasprintf.c: New file.
30673         * tests/test-c-xvasprintf.sh: New file.
30675 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30677         argp: better 'inline'
30678         Use extern-inline module to declare extern inline functions.
30679         This avoids some bogus warning diagnostics.  Problem discovered
30680         when modifying GNU tar to use the manywarnings module.
30681         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
30682         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
30683         Define based on extern-inline.
30684         * modules/argp (Depends-on): Add extern-inline.
30686 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30688         filemode, sys_stat: Handle MPX files a la AIX.
30689         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
30690         * lib/sys_stat.in.h (S_ISMPX): New macro.
30691         * tests/test-sys_stat.c: Add tests for MPX files.
30693 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30695         x-to-1: honor $PERL
30696         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
30697         a chance to use his preferred version of Perl.  This is typically
30698         required by Darwin users whose default /usr/bin/perl does not have all
30699         the libraries required by help2man, and who need to use their MacPorts
30700         installation of Perl instead.
30702 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
30704         gnu-web-doc-update: add all the new files, even in new directories
30705         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
30706         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
30707         Use it.
30708         (main): Don't use cvsutils to get the list of unknown files,
30709         just add all the existing files and directories.
30711 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
30713         gnu-web-doc-update: improve --help
30714         * build-aux/gnu-web-doc-update: Move comments into --help.
30716 2012-12-07  Eric Wong  <normalperson@yhbt.net>
30718         mountlist: recognize more "dummy" file systems
30719         * lib/mountlist.c (ME_DUMMY_0):
30720         Add these dummy FS names to the list:
30721         - "debugfs" virtual filesystem for kernel debugging
30722         - "devpts" PTY slave filesystem
30723         - "devtmpfs" device filesystem on top of tmpfs/ramfs
30724         - "fusectl" control filesystem for FUSE
30725         - "mqueue" enumerates POSIX message queues
30726         - "rpc_pipefs" kernel <-> userspace bridge for NFS
30727         - "sysfs" is for exporting kernel objects
30728         - "devfs" device filesystem for Linux 2.4 and FreeBSD
30730 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
30732         extern-inline: avoid incompatibility with Darwin Libc
30733         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
30734         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
30735         Problem reported by Akim Demaille in
30736         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
30738 2012-12-11  Simon Josefsson  <simon@josefsson.org>
30740         gnupload: Work with GnuPG using gpg-agent (for smartcards).
30741         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
30742         let it handle password prompting.
30744 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
30746         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
30747         * lib/canonicalize.c (canonicalize_filename_mode):
30748         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
30749         fetching the current directory.  Don't overrun the beginning of
30750         rpath if there's no slashes after the MS-Windows drive letter.
30752 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
30754         maint.mk: avoid extra forks
30755         * top/maint.mk (_cfg_mk): The GNU make manual documents that
30756         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
30757         So use that instead of "$(shell test -f FILE && echo FILE)".
30759 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30761         vasnprintf: fix ASCII_ONLY typo
30762         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
30763         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
30764         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
30765         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
30766         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
30768 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30770         list, oset, xlist, xoset: fix extern inline issue with C99
30771         This was introduced by my recent changes for 'inline'.
30772         Problem reported for gettext by Daiki Ueno in
30773         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
30774         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
30775         (gl_list_nx_create, gl_list_size, gl_list_node_value)
30776         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
30777         (gl_list_previous_node, gl_list_get_at)
30778         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
30779         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
30780         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
30781         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
30782         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
30783         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
30784         (gl_list_iterator_free, gl_sortedlist_search)
30785         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
30786         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
30787         (gl_sortedlist_remove):
30788         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
30789         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
30790         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
30791         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
30792         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
30793         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
30794         (gl_list_add_at, gl_sortedlist_add):
30795         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
30796         Wrap these extern decls inside "#if 0", because they are implemented
30797         as inline functions, and extern inline is not what's wanted here.
30798         It would simplify these .h files to remove the extern decls entirely,
30799         although a downside would be less-clear separation between
30800         specification and implementation.
30802 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
30804         sys_stat: no 'static inline'
30805         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
30806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
30808         extern-inline: no 'static inline'
30809         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30810         Do not require AC_C_INLINE.
30811         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
30812         'static inline', for older compilers.
30814         snippet/warn-on-use: no 'static inline'
30815         * build-aux/snippet/warn-on-use.h:
30816         Remove unnecessary 'inline' in comment.
30818         rbtree-list, rbtreehash-list: no 'static inline'
30819         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
30820         * lib/gl_anytree_list2.h (node_at):
30821         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
30822         (gl_oset_first, add_nodes_to_buckets):
30823         Now static, not static inline.
30825         regex: no 'static inline'
30826         * lib/regex_internal.c (calc_state_hash):
30827         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
30828         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
30829         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
30830         Now static, not static inline.
30831         (inline) [__GNUC__ < 3 && _LIBC]:
30832         Remove macro; no longer needed.
30834         xvasprintf: no 'static inline'
30835         * lib/xvasprintf.c (xstrcat):
30836         Now static, not static inline.
30837         * m4/xvasprintf.m4 (gl_XVASPRINTF):
30838         Do not require AC_C_INLINE.
30840         parse-datetime, parse-duration: no 'static inline'
30841         * lib/parse-datetime.y (to_uchar):
30842         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
30843         (scale_n_add):
30844         Now static, not static inline.
30845         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
30846         * modules/parse-duration (configure.ac):
30847         Do not require AC_C_INLINE.
30849         getaddrinfo: no 'static inline'
30850         * lib/getaddrinfo.c (validate_family):
30851         Now static, not static inline.
30852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
30853         Do not require AC_C_INLINE.
30855         ftruncate, fts, lstat, openat, raise: no 'static inline'
30856         * lib/ftruncate.c (chsize_nothrow):
30857         * lib/fts.c (opendirat, diropen):
30858         * lib/lstat.c (orig_lstat):
30859         * lib/openat.c (orig_openat):
30860         * lib/raise.c (raise_nothrow):
30861         Now static, not static inline.
30862         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
30863         * m4/fts.m4 (gl_FUNC_FTS_CORE):
30864         * m4/lstat.m4 (gl_PREREQ_LSTAT):
30865         * m4/openat.m4 (gl_PREREQ_OPENAT):
30866         * m4/raise.m4 (gl_PREREQ_RAISE):
30867         Do not require AC_C_INLINE.
30869         fflush, stat: no 'static inline'
30870         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30871         (clear_ungetc_buffer, disable_seek_optimization)
30872         (restore_seek_optimization, update_fpos_cache):
30873         * lib/stat.c (orig_stat):
30874         Now static, not static inline.
30875         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
30876         (update_fpos_cache):
30877         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
30878         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
30879         * m4/stat.m4 (gl_PREREQ_STAT):
30880         Do not require AC_C_INLINE.
30882         error, filevercmp: no 'static inline'
30883         * lib/error.c (is_open, flush_stdout):
30884         * lib/filevercmp.c (order):
30885         Now static, not static inline.
30886         * m4/error.m4 (gl_PREREQ_ERROR):
30887         * modules/filevercmp (configure.ac):
30888         Do not require AC_C_INLINE.
30890         dup, execute, fatal-signal, etc.: no 'static inline'
30891         * lib/dup.c (dup_nothrow):
30892         * lib/execute.c (nonintr_close, nonintr_open):
30893         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
30894         * lib/fopen.c (orig_fopen):
30895         * lib/freadseek.c (freadptrinc):
30896         * lib/freopen.c (orig_freopen):
30897         * lib/fstat.c (orig_fstat, fstat_nothrow):
30898         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
30899         (get_rusage_as_via_iterator):
30900         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
30901         * lib/getdtablesize.c (_setmaxstdio_nothrow):
30902         * lib/isatty.c (_isatty_nothrow):
30903         * lib/open.c (orig_open):
30904         * lib/read.c (read_nothrow):
30905         * lib/sigprocmask.c (signal_nothrow):
30906         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
30907         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
30908         * lib/wait-process.c (unregister_slave_subprocess):
30909         * lib/write.c (write_nothrow):
30910         Now static, not static inline.
30911         * lib/spawn-pipe.c (nonintr_open): Define only if
30912         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
30913         * m4/dup.m4 (gl_PREREQ_DUP):
30914         * m4/execute.m4 (gl_EXECUTE):
30915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
30916         * m4/fopen.m4 (gl_PREREQ_FOPEN):
30917         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
30918         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
30919         * m4/fstat.m4 (gl_PREREQ_FSTAT):
30920         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
30921         * m4/isatty.m4 (gl_PREREQ_ISATTY):
30922         * m4/open.m4 (gl_PREREQ_OPEN):
30923         * m4/read.m4 (gl_PREREQ_READ):
30924         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
30925         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
30926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
30927         * m4/wait-process.m4 (gl_WAIT_PROCESS):
30928         * m4/write.m4 (gl_PREREQ_WRITE):
30929         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
30930         Do not require AC_C_INLINE.
30932         c-strtod, memcoll, readutmp: no 'static inline'
30933         * lib/c-strtod.c (c_locale):
30934         * lib/memcoll.c (strcoll_loop):
30935         * lib/readutmp.c (desirable_utmp_entry):
30936         Now static, not static inline.
30937         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
30938         * m4/memcoll.m4 (gl_MEMCOLL):
30939         * m4/readutmp.m4 (gl_READUTMP):
30940         Do not require AC_C_INLINE.
30942         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
30943         * lib/arctwo.c (to_uchar):
30944         * lib/md4.c (set_uint32):
30945         * lib/md5.c (set_uint32):
30946         * lib/sha1.c (set_uint32):
30947         * lib/sha256.c (set_uint32):
30948         * lib/sha512.c (set_uint64):
30949         Now static, not static inline.  This is a bit simpler, and doesn't
30950         affect performance with GCC and default optimization.
30951         * m4/arctwo.m4 (gl_ARCTWO):
30952         * m4/md4.m4 (gl_MD4):
30953         * m4/md5.m4 (gl_MD5):
30954         * m4/sha1.m4 (gl_SHA1):
30955         * m4/sha256.m4 (gl_SHA256):
30956         * m4/sha512.m4 (gl_SHA512):
30957         Do not require AC_C_INLINE.
30959         cond, lock, thread: better 'inline'
30960         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
30961         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
30962         New macros.  Use them instead of static inline, for header functions.
30963         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
30964         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
30965         * lib/glthread/lock.c (gl_waitqueue_init)
30966         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
30967         * lib/glthread/thread.c (get_current_thread_handle):
30968         Change 'static inline' to 'inline'.
30969         * lib/glthread/cond.h, lib/glthread/thread.h:
30970         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30971         * m4/cond.m4 (gl_COND):
30972         * m4/lock.m4 (gl_PREREQ_LOCK):
30973         * m4/thread.m4 (gl_THREAD):
30974         Do not require AC_C_INLINE.
30975         * modules/cond, modules/thread (Depends-on): Add extern-inline.
30977         chdir-long, cycle-check, savewd: better 'inline'
30978         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
30979         (find_non_slash):
30980         * lib/cycle-check.c (is_zero_or_power_of_two):
30981         * lib/savewd.c (savewd_delegating):
30982         Change 'static inline' to 'inline'.
30983         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
30984         Replace all remaining uses of 'static inline' with it.
30985         * lib/savewd.h:
30986         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30987         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
30988         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30989         * m4/savewd.m4 (gl_SAVEWD):
30990         Do not require AC_C_INLINE.
30991         * modules/savewd (Depends-on): Add extern-inline.
30993         base32, base64: no need for 'inline'
30994         * lib/base32.c (to_uchar, get_8, decode_8):
30995         * lib/base64.c (to_uchar, get_4, decode_4):
30996         Change 'static inline' to 'inline'.
30997         * m4/base32.m4 (gl_PREREQ_BASE32):
30998         * m4/base64.m4 (gl_PREREQ_BASE64):
30999         Do not require AC_C_INLINE.
31001         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
31002         * lib/gl_array_oset.c (gl_array_nx_add_at):
31003         (gl_array_remove_at):
31004         * lib/gl_linkedhash_list.c (hash_resize_after_add)
31005         (add_to_bucket, remove_from_bucket):
31006         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
31007         Change 'static inline' to 'static', as it's simpler to omit
31008         'inline' unless there's a significant performance advantage.
31010         list, oset, xlist, xoset, xsublist: simplify via extern inline
31011         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
31012         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
31013         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
31014         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
31015         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
31016         New macro.  Replace all uses of 'static inline' with it.
31017         [HAVE_INLINE]: Implement functions as *_INLINE functions,
31018         instead of as macros FOO that are defined to static inline
31019         functions FOO_inline.
31020         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
31021         * lib/gl_xsublist.c:
31022         Reimplement from scratch, by defining the corresponding *_INLINE
31023         macro and including the corresponding .h file.  This is simpler.
31024         * modules/list, modules/oset, modules/xlist, modules/xoset:
31025         (Files): Remove m4/gl_list.m4.
31026         (configure.ac): Remove gl_LIST.
31027         * m4/gl_list.m4: Remove.
31028         * modules/list, modules/oset, modules/xlist, modules/xoset:
31029         * modules/xsublist:
31030         (Depends-on): Depend on extern-inline, not inline.
31032         xalloc: better 'inline'
31033         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
31034         New macro.  Replace all uses of 'static inline' with it.
31035         (static_inline): Remove.
31036         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
31037         Let 'extern inline' do the work automatically, instead of doing
31038         it by hand.
31039         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
31040         Remove.  All uses removed.
31041         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
31043         gethrxtime: better 'inline'
31044         * lib/xtime.c: New file.
31045         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
31046         * lib/xtime.h (XTIME_INCLUDE):
31047         New macros.  Replace all uses of 'static inline' with them.
31048         * lib/gethrxtime.c (gethrxtime): Define only if
31049         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
31050         this source file is now always compiled, because of the extern inline.
31051         * lib/gethrxtime.h, lib/xtime.h:
31052         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31053         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
31054         if gethrtime works, as they're not needed in that case.
31055         (gl_XTIME): Do not require AC_C_INLINE.
31056         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
31057         compiled now.  Move the check into gl_GETHRXTIME.
31058         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
31059         (Depends-on): Add extern-inline.
31060         (configure.ac): gethrxtime is always compiled now.
31061         (lib_SOURCES): Add gethrxtime.c.
31063         wctype-h: better 'inline'
31064         * lib/wctype-h.c: New file.
31065         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
31066         New macro.  Replace all uses of 'static inline' with it.
31067         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31068         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
31069         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
31070         (Depends-on): Add extern-inline.
31072         unistd: better 'inline'
31073         * lib/unistd.c: New file.
31074         * lib/unistd.in.h (_GL_UNISTD_INLINE):
31075         New macro.  Replace all uses of 'static inline' with it.
31076         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31077         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
31078         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
31079         (Depends-on): Add extern-inline.
31081         sys_socket: better 'inline'
31082         * lib/sys_socket.c: New file.
31083         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
31084         New macro.  Replace all uses of 'static inline' with it.
31085         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31086         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
31087         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
31088         (Depends-on): Add extern-inline.
31090         stdio: better 'inline'
31091         * lib/stdio.c: New file.
31092         * lib/stdio.in.h (_GL_STDIO_INLINE):
31093         New macro.  Replace all uses of 'static inline' with it.
31094         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31095         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
31096         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
31097         (Depends-on): Add extern-inline.
31099         sigaction: better 'inline'
31100         * lib/sig-handler.c: New file.
31101         * lib/sig-handler.h (SIG_HANDLER_INLINE):
31102         New macro.  Replace all uses of 'static inline' with it.
31103         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31104         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
31105         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
31106         (Depends-on): Add extern-inline.
31108         selinux-h: better 'inline'
31109         * lib/se-context.c, lib/se-selinux.c: New files.
31110         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
31111         * lib/se-context.in.h (SE_CONTEXT_INLINE):
31112         New macro.  Replace all uses of 'static inline' with it.
31113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31114         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
31115         New macro.  Replace all uses of 'static inline' with it.
31116         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31117         * modules/selinux-h (Files, lib_SOURCES):
31118         Add lib/se-context.c, lib/se-selinux.c.
31119         (Depends-on): Add extern-inline.
31120         (configure.ac): Do not require AC_C_INLINE.
31122         pthread: better 'inline'
31123         * lib/pthread.c: New file.
31124         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
31125         New macro.  Replace all uses of 'static inline' with it.
31126         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31127         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31128         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
31129         * modules/pthread (Files): Add lib/pthread.c.
31130         (Depends-on): Add extern-inline.
31132         math: better 'inline'
31133         * lib/math.c: New file.
31134         * lib/math.in.h (_GL_MATH_INLINE):
31135         New macro.  Replace all uses of 'static inline' with it.
31136         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31137         * m4/math_h.m4 (gl_MATH_H):
31138         Do not require AC_C_INLINE.
31139         * modules/math (Files, lib_SOURCES):
31140         Add lib/math.c.
31141         (Depends-on): Add extern-inline.
31143         count-one-bits: better 'inline'
31144         * lib/count-one-bits.c: New file.
31145         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
31146         New macro.  Replace all uses of 'static inline' with it.
31147         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31148         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
31149         Do not require AC_C_INLINE.
31150         * modules/count-one-bits (Files, lib_SOURCES):
31151         Add lib/count-one-bits.c.
31152         (Depends-on): Add extern-inline.
31154         count-leading-zeros: better 'inline'
31155         * lib/count-leading-zeros.c: New file.
31156         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
31157         New macro.  Replace all uses of 'static inline' with it.
31158         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31159         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
31160         Do not require AC_C_INLINE.
31161         * modules/count-leading-zeros (Files, lib_SOURCES):
31162         Add lib/count-leading-zeros.c.
31163         (Depends-on): Add extern-inline.
31165         bitrotate: better 'inline'
31166         * lib/bitrotate.c: New file.
31167         * lib/bitrotate.h (BITROTATE_INLINE):
31168         New macros.
31169         Replace all uses of 'static inline' with them.
31170         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31171         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
31172         (Depends-on): Add extern-inline.
31173         (configure.ac): Do not require AC_C_INLINE.
31175 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
31177         maint.mk: avoid gratuitous failure
31178         Reported by Stefano Lattarini in
31179         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
31180         * top/maint.mk (public-submodule-commit): Quote more safely.
31182 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
31184         canonicalize, canonicalize-lgpl: support MS-Windows file names
31185         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
31186         for test cases, which it'd be nice to add at some point.
31187         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
31188         * lib/canonicalize.c (canonicalize_filename_mode):
31189         * lib/canonicalize-lgpl.c (__realpath):
31190         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
31191         slash is at the beginning of the file name.  Use ISSLASH, instead
31192         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
31193         the first character with '/'.  Test for
31194         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
31195         with a drive letter.
31196         * lib/canonicalize.c (SLASHES): New macro.
31197         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
31199 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
31201         fts: introduce FTS_VERBATIM
31202         * lib/fts_.h (FTS_VERBATIM): New bit flag.
31203         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
31204         * lib/fts.c (fts_open): Honor it.
31206 2012-11-09  Pádraig Brady  <P@draigBrady.com>
31208         getlogin-tests: allow errno == ENXIO
31209         * tests/test-getlogin.c (main): Skip tests if getlogin fails
31210         with errno == ENXIO (No controlling tty).
31211         getlogin_r-tests: Likewise. Also allow errno == ENOENT
31212         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
31213         with errno == ENOENT.  This was reported to happen in various
31214         situations on GNU/Linux.
31216 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31218         getlogin-tests: allow errno == ENOENT
31219         * tests/test-getlogin.c (main): Skip tests if getlogin fails
31220         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
31221         when running a test in an Emacs shell buffer.
31223 2012-11-08  Jim Meyering  <jim@meyering.net>
31225         tests/nap.h: avoid warning about unused variable
31226         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
31228         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
31229         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
31230         white space before each of the special-cased file names, to avoid
31231         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
31232         in http://bugs.gnu.org/12830.
31234 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
31236         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
31237         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
31238         fails with errno == EBADF when fd is opened with O_PATH.
31239         Reported by Jim Meyering in
31240         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
31241         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
31242         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
31244 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
31246         test-utimens: speed up by taking shorter naps
31247         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
31248         New functions.
31249         (nap): Use them, to do a better job of guessing the delay.
31250         On Fedora 17 with ext4 atop md atop hard disks, this made
31251         test-utimens run 10x faster, because the test napped for
31252         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
31253         <http://bugs.gnu.org/12820#11>.
31255 2012-11-07  Jim Meyering  <jim@meyering.net>
31257         mountlist.c: fix a compilation failure
31258         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
31259         I introduced while transforming commit v0.0-7683-g613bcb6
31261 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31263         errno: port to LynxOS 178 2.2.2
31264         Problem reported by Joel Brobecker in
31265         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
31266         * doc/posix-headers/errno.texi (errno.h): Document this.
31267         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
31268         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
31269         Supply a string for EILSEQ.
31270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
31272 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31274         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
31275         Linux kernel 2.6.39 introduced O_PATH (see
31276         <http://lwn.net/Articles/433854/>) and this is a better fallback
31277         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
31278         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
31279         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
31280         * lib/fcntl.in.h (O_ACCMODE):
31281         * tests/test-fcntl-h.c (main):
31282         Do not reject O_ACCMODE merely because it has more than the
31283         minimal number of bits, as POSIX allows extensions here.
31285 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
31287         mountlist: do not classify a bind-mounted dir entry as "dummy"
31288         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
31289         the "none"-testing clause.
31290         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
31291         exception for bind-mounted directories.
31293 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
31295         quote: provide a means to escape strings with nul characters
31296         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
31297         (quote, quote_n): Rename formal arguments for consistency with
31298         quotearg.
31300 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31302         test-raise: don't assume 199 is an invalid signal
31303         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
31305         sh-quote-tests: port to Solaris 9
31306         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
31307         Problem reported by Dagobert Michelsen in
31308         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
31310 2012-10-28  Jim Meyering  <jim@meyering.net>
31312         maint.mk: rename a new configurable variable
31313         * top/maint.mk (_gl_translatable_string_re): Rename from
31314         translation-markers: _gl_ prefix to insulate from user Makefile code,
31315         and the _re suffix to inform that it's a regular expression.
31317 2012-10-26  Eric Blake  <eblake@redhat.com>
31319         maint.mk: let packages tweak sc_po_check pattern
31320         * top/maint.mk (sc_po_check): Add translation-markers, to allow
31321         finding files with other translation markers.
31323 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31325         euidaccess: speed up 'configure' on GNU hosts
31326         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
31327         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
31328         it's needed only in this case.  Use AC_CHECK_DECLS, not
31329         AC_CHECK_DECLS_ONCE.
31330         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
31331         or AC_REQUIRE for AC_FUNC_GETGROUPS.
31333         * lib/regexec.c (re_search_internal): Fix grammar in comment.
31335 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
31337         fchmodat, fchownat, fstatat: port to non-inlining compilers
31338         Problem reported for FreeBSD 9 by Jim Meyering in
31339         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
31340         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
31341         New files, which define FCHMODAT_INLINE etc.
31342         * lib/fchmodat.c (FCHMODAT_INLINE):
31343         * lib/fchownat.c (FCHOWNAT_INLINE):
31344         * lib/fstatat.c (FSTATAT_INLINE):
31345         Remove, as chmodat.c etc. now do this.
31346         * modules/fchmodat (Files): Add lib/chmodat.c.
31347         * modules/fchownat (Files): Add lib/chownat.c.
31348         * modules/fstatat (Files): Add lib/statat.c.
31350 2012-10-15  Jim Meyering  <jim@meyering.net>
31352         fchmodat.c, fchownat.c: compile-impeding typos
31353         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
31354         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
31355         Introduced in commit v0.0-7636-gd202279.
31357 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
31359         fcntl-h: support GNU flags like O_IGNORE_CTTY
31360         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
31361         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
31362         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
31363         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
31364         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
31365         Define to 0 if not already defined.
31366         * tests/test-fcntl-h.c: Test these new flags.
31368 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31370         faccessat, etc.: support AT_FDCWD-only use
31371         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
31372         this function only if its first argument is AT_FDCWD.
31373         Emacs wants faccessat for AT_EACCESS but not for any first-arg
31374         values other than AT_FDCWD, so it doesn't want all the openat
31375         machinery with fchdir etc.
31376         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
31377         * modules/fstatat, modules/mkdirat, modules/openat (Files):
31378         * modules/unlinkat (Files):
31379         Remove lib/openat-priv.h, as at-internal supplies this file.
31380         Removing this file here allows us to support programs like Emacs
31381         that avoid at-internal.
31383         faccessat: speed up 'configure' on mainstream hosts
31384         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
31385         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
31386         since it's only on unusual platforms that we need to check for
31387         'access', and it's better not to slow 'configure' down on all
31388         platforms.
31390         faccessat: port to Solaris 10
31391         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
31392         Needed on Solaris 10, which doesn't have AT_EACCESS,
31393         so we need the Gnulib fcntl.h, which defines it.
31395 2012-10-14  Pádraig Brady  <P@draigBrady.com>
31396         canonicalize: fix C89 compilation
31397         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
31398         declarations so C89 is supported.  Also remove the comment
31399         referencing memorty allocation as the suggested feature could
31400         not be implemented as suggested.
31401         Reported by Michael Goffioul.
31403 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31405         group-member: omit unnecessary dependencies
31406         This is for Emacs, which has its own allocator and where we
31407         don't want to use xalloc.
31408         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
31409         since we no longer use xmalloc.  Do not include stdbool.h, since
31410         the changes below happen to remove the only use of bool.
31411         (GROUPBUF_SIZE): New constant.
31412         (struct group_info): Remove n_groups member.  Add groupbuf member.
31413         This lets us get the groups without using malloc, usually.
31414         (free_group_info, get_group_info): Adjust to this.
31415         (get_group_info): Return the number of groups found, or -1 on error.
31416         Use plain malloc not xmalloc, and treat its failure as if there
31417         are no groups, as the user already loses in case of error.
31418         (group_member): Simplify, based on changes to get_group_info.
31419         * modules/group-member (Depends-on): Remove dependencies on
31420         xalloc and stdbool.  Add dependency on xalloc-oversized.
31422 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
31424         gethrxtime: port to C++
31425         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
31427 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31429         ptsname: fix macro-name typo
31430         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
31432 2012-10-03  Simon Josefsson  <simon@josefsson.org>
31434         inttostr: Relax license.
31435         * modules/inttostr (License): Change from LGPL to LGPLv2+.
31437 2012-10-03  Eric Blake  <eblake@redhat.com>
31439         ptsname_r: support ptys returned by FreeBSD posix_openpt
31440         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
31441         lives in /dev/pts/.
31443 2012-10-02  Eric Blake  <eblake@redhat.com>
31445         pselect: reject invalid file descriptors
31446         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
31447         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
31448         * modules/pselect (Depends-on): Add dup2.
31449         * doc/posix-functions/pselect.texi (pselect): Document this.
31451         select: reject invalid file descriptors
31452         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
31453         * lib/select.c (rpl_select) [!win32]: Work around it.
31454         * modules/select (Depends-on): Add dup2.
31455         * doc/posix-functions/select.texi (select): Document this.
31457         select: enhance test
31458         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
31459         New functions.
31460         (test_function): Enhance test.
31461         (do_select_bad_fd): Avoid any stale errno values.
31463         ptsname: reject invalid file descriptors
31464         http://www.austingroupbugs.net/view.php?id=503
31465         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
31466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
31467         * modules/stdlib (Makefile.am): Replace witness.
31468         * lib/stdlib.in.h (ptsname): Allow for replacement.
31469         * modules/ptsname (configure.ac): Trigger replacement.
31470         * doc/posix-functions/ptsname.texi (ptsname): Document this.
31472 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
31474         hash-pjw-bare: new module
31475         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
31476         * lib/hash-pjw-bare.h: Likewise.
31477         * modules/hash-pjw-bare: New file.
31478         * MODULES.html.sh (Misc): Add it.
31480 2012-10-02  Eric Blake  <eblake@redhat.com>
31482         manywarnings: cater to more gcc infelicities
31483         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
31484         -Wuninitialized without -O.
31486 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
31488         select, poll tests: Make setsockopt invocation effective.
31489         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
31490         the bind() call.
31491         * tests/test-select.h (open_server_socket): Likewise.
31493 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31495         sockets, sys_stat: restore AC_C_INLINE
31496         This undoes the 2012-09-22 patch.
31497         * m4/sockets.m4 (gl_SOCKETS):
31498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
31499         Restore AC_C_INLINE, since MSVC requires __inline or _inline
31500         and does not support plain 'inline'.  Reported by Bruno Haible in
31501         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
31503 2012-09-30  Bruno Haible  <bruno@clisp.org>
31505         localeconv tests: Avoid test failure on OpenIndiana.
31506         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
31507         skip the 'grouping' and 'mon_grouping' tests.
31508         Reported by Jim Meyering.
31510 2012-09-30  Bruno Haible  <bruno@clisp.org>
31512         havelib: Follow libtool developments.
31513         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
31514         Suggested by Simon Josefsson.
31516 2012-09-29  Jim Meyering  <meyering@redhat.com>
31518         fstatat.c: fix a compile-impeding typo
31519         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
31520         Introduced in commit v0.0-7636-gd202279.
31521         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
31523 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
31525         extern-inline: provide a -Wundef safe config.h
31526         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
31527         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
31528         to produce a -Wundef warning free config.h.
31530 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31532         hash-pjw: relax license to LGPLv2+
31533         * modules/hash-pjw (License): Relax, with consent of author.
31535 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
31537         maint.mk: fix strict vs. lazy variable issues with RELEASE
31538         * top/maint.mk (_equal): New function.
31539         (member_check): Strip the result to avoid spurious spaces.
31540         (url_dir_list): Do not use ifeq, which is strict, as it will
31541         require RELEASE_TYPE to be defined.
31542         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
31543         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
31544         (announcement_Cc_alpha,announcement_mail_headers_alpha)
31545         (announcement_Cc_beta,announcement_mail_headers_beta)
31546         (announcement_Cc_stable,announcement_mail_headers_stable): these.
31547         (release): Do not depend on $(release-type), as it forces its
31548         evaluation.  Bounce to it.
31550 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
31552         maint.mk: formatting changes
31553         * top/maint.mk: Indent bodies of if's.
31555 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
31557         maint.mk: factor the validation of RELEASE_TYPE
31558         With help from Jim Meyering.
31559         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
31560         * top/maint.mk (_empty, _sp): Move their definition earlier.
31561         (member-check, release-type): New.
31562         Use the latter instead of $(RELEASE_TYPE).
31563         Remove now useless local checks.
31565 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
31567         maint.mk: provide "make upload" to ease uploading
31568         See
31569         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
31570         Do not depend simply on the current $(VERSION), as there may have been
31571         new commits since the tarball generation.  Rather, rely on $(RELEASE),
31572         as "make release-commit" already does.
31574         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
31575         "make TYPE".
31577         * top/maint.mk (upload_command, upload, release): New.
31578         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
31579         (VERSION): first word of $(RELEASE) is always right.
31580         (emit_upload_commands): Adjust.
31581         * top/README-release: Update.
31583 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
31585         maint.mk: silent rules
31586         With help from Stefano Lattarini.
31587         * top/maint.mk (writable-files): Use $(AM_V_GEN).
31588         (announcement): Use $(AM_V_at).
31590 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31592         localename: port gl_locale_name_thread_unsafe to FreeBSD
31593         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
31594         and use the simpler FreeBSD implementation on Mac OS X as well.
31595         Original idea suggested by Ed Maste in
31596         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
31598 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31600         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
31601         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
31602         * lib/mbuiter.c, lib/xsize.c: New files.
31603         * lib/binary-io.h (BINARY_IO_INLINE):
31604         * lib/eealloc.h (EEALLOC_INLINE):
31605         * lib/mbfile.h (MBFILE_INLINE):
31606         * lib/mbiter.h (MBITER_INLINE):
31607         * lib/mbuiter.h (MBUITER_INLINE):
31608         * lib/xsize.h (XSIZE_INLINE):
31609         New macros.
31610         Replace all uses of 'static inline' with them.
31611         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31612         * m4/eealloc.m4 (gl_EEALLOC):
31613         * m4/mbfile.m4 (gl_MBFILE):
31614         * m4/mbiter.m4 (gl_MBITER):
31615         * m4/xsize.m4 (gl_XSIZE):
31616         Do not require AC_C_INLINE.
31617         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
31618         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
31619         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
31620         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
31621         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
31622         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
31623         * modules/binary-io, modules/eealloc, modules/mbfile:
31624         * modules/mbiter, modules/mbuiter:
31625         (Depends-on): Add extern-inline.
31627         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
31628         * lib/pipe-filter-aux.c: New file.
31629         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
31630         Replace all uses of 'static inline' with it.
31631         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31632         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
31633         (filter_retcode): No real need for inline here.
31634         * modules/pipe-filter-gi, modules/pipe-filter-ii:
31635         (Files): Add lib/pipe-filter-aux.c.
31636         (Depends-on): Add extern-inline.
31637         (configure.ac): Do not require AC_C_INLINE.
31638         (lib_SOURCES): Add pipe-filter-aux.c.
31640         fdutimensat: omit unnecessary AC_C_INLINE
31641         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
31643         fchmodat, fchownat, fstatat: use extern-inline
31644         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
31645         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
31646         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
31647         New macros.
31648         * lib/openat.h:
31649         Replace all uses of 'static inline' with them.
31650         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31651         * modules/fchmodat, modules/fchownat, modules/fstatat:
31652         * modules/openat-h:
31653         (Depends-on):
31654         Add extern-inline.
31655         (configure.ac): Remove AC_C_INLINE.
31657         acl, mbchar, priv-set: use extern-inline
31658         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
31659         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
31660         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
31661         New macros.
31662         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
31663         Replace all uses of 'static inline' with it.
31664         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31665         * m4/acl.m4 (gl_FUNC_ACL):
31666         * m4/mbchar.m4 (gl_MBCHAR):
31667         * m4/priv-set.m4 (gl_PRIV_SET):
31668         Remove AC_C_INLINE, since 'inline' is no longer used directly.
31669         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
31670         Add extern-inline.
31672         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
31673         * m4/sockets.m4 (gl_SOCKETS):
31674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
31675         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
31676         environments where it's already guaranteed to work, so we needn't
31677         check for it at 'configure'-time.
31679         tls-tests: omit unnecessary 'inline'
31680         * tests/test-tls.c (perhaps_yield): No longer inline.
31681         Simplicity and portability trump efficiency in test cases.
31683         utimens-tests: avoid unnecessary 'inline'
31684         * modules/fdutimensat-tests (configure.ac):
31685         * modules/futimens-tests (configure.ac):
31686         * modules/utimens-tests (configure.ac):
31687         * modules/utimensat-tests (configure.ac):
31688         Remove AC_C_INLINE.
31689         * tests/test-utimens-common.h (ctime_compare):
31690         No longer inline.  Simplicity and portability trump efficiency here.
31692         misc: don't limit commentary to inline functions
31693         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
31694         * lib/xalloc-oversized.h, lib/xsize.h:
31695         Contrast macros to functions in general, not just to inline functions,
31696         when the commentary does not apply only to inline functions.
31698 2012-09-20  Jim Meyering  <meyering@redhat.com>
31700         non-recursive-gnulib-prefix-hack: new module
31701         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
31702         the file that originated in Bison.
31703         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
31704         largely copied from a snippet that resided in bison's configure.ac.
31705         * modules/non-recursive-gnulib-prefix-hack: New file.
31706         * MODULES.html.sh (Support for maintaining and releasing projects):
31707         Add it.
31709 2012-09-18  Jim Meyering  <meyering@redhat.com>
31711         maint.mk: generalize _gl_tight_scope for non-recursive make
31712         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
31713         that *.h would describe additional .h files in the directory
31714         specified by $(_gl_TS_dir).  I.e., add this...
31715         (_gl_TS_other_headers): New variable.
31717         maint.mk: exempt trailing blanks found in "binary" files
31718         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
31719         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
31720         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31722 2012-09-17  Jim Meyering  <meyering@redhat.com>
31724         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
31725         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
31726         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
31727         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31729 2012-09-17  Jim Meyering  <meyering@redhat.com>
31731         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
31732         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
31733         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
31734         It is not in the same category as "exit (0)" or "exit (1)", and
31735         besides, I know of no symbolic name for that 77.  Reported by
31736         Richard W.M. Jones in
31737         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31739 2012-09-17  Jim Meyering  <meyering@redhat.com>
31741         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
31742         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
31743         all uses of #define, not just those that start in column 1.
31744         Richard W.M. Jones reported a false positive in
31745         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31747 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31749         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
31750         * lib/localcharset.c (locale_charset) [DARWIN7]:
31751         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
31752         as these two values are incompatible.  Problem reported by Max Horn.
31753         For more discussion, please see
31754         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
31756         doc: document sticky-EOF issue
31757         * doc/posix-functions/fgetc.texi (fgetc):
31758         * doc/posix-functions/fgets.texi (fgets):
31759         * doc/posix-functions/fread.texi (fread):
31760         * doc/posix-functions/fscanf.texi (fscanf):
31761         * doc/posix-functions/getc.texi (getc):
31762         * doc/posix-functions/getchar.texi (getchar):
31763         * doc/posix-functions/scanf.texi (scanf):
31764         Mention that glibc and default Solaris do not conform to
31765         C99 and POSIX-2001 or later, with respect to how getchar
31766         etc. behave when feof reports nonzero.
31768 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
31770         poll: fix poll(0, NULL, msec)
31771         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
31772         but nfd is 0.  In that case poll should behave like select.
31774 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
31775             Paolo Bonzini  <bonzini@gnu.org>
31777         poll: fix for systems that can't recv() on a non-socket
31778         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
31779         is readable.  In this case POLLHUP will not be supported.
31780         * doc/posix-functions/poll.texi: Document this.
31782 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
31784         poll/select: document portability problems not fixed by Gnulib.
31785         * doc/posix-functions/poll.texi: poll does not work well on
31786         pipes under Windows.  It has the same limitations as select on
31787         BeOS.
31788         * doc/posix-functions/select.texi: select does not work well
31789         on pipes under Windows.
31791 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31793         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
31794         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
31795         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
31796         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
31798 2012-09-06  Eric Blake  <eblake@redhat.com>
31800         net_if: give more details about the bug being fixed
31801         * doc/posix-headers/net_if.texi: Add clarification.
31803 2012-09-05  Eric Blake  <eblake@redhat.com>
31805         net_if: new module
31806         * modules/net_if: New module, borrowing ideas from netinet_in.
31807         * m4/net_if_h.m4: New file.
31808         * lib/net_if.in.h: Likewise.
31809         * doc/posix-headers/net_if.texi (net/if.h): Document it.
31810         * MODULES.html.sh (lacking POSIX:2008): Likewise.
31811         * tests/test-net_if.c: Make function checks conditional.
31812         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
31814 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31816         readutmp: fix non-portable UT_PID use
31817         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
31818         Use `UT_PID (u) > 0' as absolute condition.
31820 2012-09-04  Jim Meyering  <meyering@redhat.com>
31822         fts: reduce two or more trailing spaces to just one, usually
31823         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
31824         or more slashes, trim all but the final one.  But if a name consists
31825         solely of two slashes, don't modify it.  If it consists solely of
31826         three or more slashes, strip all but one.
31828         This is part of the solution to a minor problem with rm:
31829         it would print a bogus ELOOP diagnostic when failing to remove
31830         the slash-decorated name of a symlink-to-directory:
31832             $ mkdir d && ln -s d s && env rm -r s/
31833             rm: cannot remove 's': Too many levels of symbolic links
31835         With the change below and a trivial don't-trim-trailing-slashes
31836         adjustment to remove.c, it does this:
31838             $ env rm -r s/
31839             rm: cannot remove 's/': Not a directory
31841         Improved by: Eric Blake
31843         fts: when there is no risk of overlap, use memcpy, not memmove
31844         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
31846 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31848         stdbool: be more compatible with mixed C/C++ compiles
31849         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
31850         Define to bool, true, false, respectively, as GCC's builtin
31851         stdbool.h does.  Problem reported by Michael Goffioul in
31852         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
31854 2012-08-28  Jim Meyering  <meyering@redhat.com>
31856         revert last change: it was not needed
31857         * tests/test-vc-list-files-git.sh: There's already a test for
31858         a working git, just below.
31860 2012-08-28  Jim Meyering  <meyering@redhat.com>
31862         tests: test-vc-list-files-git.sh: skip if git is not available
31863         * tests/test-vc-list-files-git.sh: Skip this test when git is
31864         not available.
31866 2012-08-26  Bruno Haible  <bruno@clisp.org>
31868         gnulib-tool: Remove no-op option --no-changelog.
31869         * gnulib-tool (func_usage): Don't mention --no-changelog.
31870         (do_changelog): Remove variable.
31871         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31873 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31875         doc: remove fdl-1.2.texi
31876         It is no longer used or maintained, and its use of @acronym
31877         is problematic.  See the thread containing
31878         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
31879         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
31880         * doc/old-licenses/fdl-1.2.texi: Remove.
31882         execinfo: port to FreeBSD
31883         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
31884         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
31885         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
31886         * modules/execinfo (Link): Add $(LIB_EXECINFO).
31888 2012-08-23  Jim Meyering  <meyering@redhat.com>
31890         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
31891         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
31892         to placate gcc's -Wold-style-declaration.
31894 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31896         doc: do not use @acronym
31897         * doc/inet_ntoa.texi (inet_ntoa):
31898         * doc/parse-datetime.texi (Seconds since the Epoch)
31899         (Specifying time zone rules):
31900         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
31901         Don't use @acronym.  Problem reported by John Darlington in
31902         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
31904 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31906         stdnoreturn: port to newer GCCs
31907         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
31908         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
31909         Problem reported by Jim Meyering in
31910         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
31911         Also, rename the 'test' function to a void a clash with the
31912         already-supplied 'main' function; this fixes a bug that incorrectly
31913         rejected GCC 4.7.1's <stdnoreturn.h>.
31914         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
31915         Document GCC problem.
31917 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
31919         pipe-filter: fix comment typo
31920         * lib/pipe-filter.h: Mention correct function.
31922 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31924         execinfo: new module
31925         This is for Emacs.  Currently, it provides a no-effect stub
31926         on all platforms where it does not already work.
31927         It already works on glibc-based systems, and on Solaris 11.
31928         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
31929         New files.
31930         * doc/glibc-headers/execinfo.texi (execinfo.h):
31931         * MODULES.html.sh (Misc): Document it.
31933 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31935         extern-inline: support old GCC 'inline'
31936         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
31937         if available.  This applies to GCC versions 2.7 through 4.2, or
31938         when newer GCC is using -fgnu89-inline.  The goal is to address
31939         some of the performance issues mentioned by Bruno Haible in
31940         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
31942 2012-08-20  Eric Blake  <eblake@redhat.com>
31944         maint.mk: avoid redundant file name in message
31945         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
31946         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
31947         (sc_makefile_path_separator_check): Remove bogus $(ME).
31949 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
31951         timer-time: fix link order when static linking on glibc
31952         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
31953         _after_ -lrt so that it's significant.
31955 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31957         timespec: omit unnecessary AC_C_INLINE
31958         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
31960         stat-time: omit unnecessary AC_C_INLINE
31961         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
31962         Do not require AC_C_INLINE.
31964         ignore-value: omit unnecessary AC_C_INLINE
31965         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
31967         sys_select: avoid 'static inline'
31968         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
31970         mktime: avoid 'static inline'
31971         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
31972         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
31974 2012-08-19  Bruno Haible  <bruno@clisp.org>
31976         gnulib-tool: Improve coding style.
31977         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
31978         func_emit_lib_Makefile_am.
31979         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31981 2012-08-19  Bruno Haible  <bruno@clisp.org>
31983         gnulib-tool: Fix indentation.
31984         * gnulib-tool (func_import): Fix indentation.
31986 2012-08-19  Bruno Haible  <bruno@clisp.org>
31988         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
31989         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
31990         on the list of removed files.
31992 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31994         test-parse-datetime: avoid glibc leap-second glitch
31995         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
31996         with the 2012 rules.  Problem reported by Bruce Dubbs in
31997         <http://bugs.gnu.org/12206>.
31999 2012-08-14  Bruno Haible  <bruno@clisp.org>
32001         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
32002         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
32003         from argument.
32004         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
32006 2012-08-14  Eric Blake  <eblake@redhat.com>
32008         ldexp: relax license
32009         * modules/ldexp (License): Trivial relax, since the module only
32010         provides a permissively licensed m4 file.
32012 2012-08-13  Bruno Haible  <bruno@clisp.org>
32014         gnulib-tool: Fix persistence of --witness-c-macro option.
32015         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
32016         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
32018 2012-08-11  Eric Blake  <eblake@redhat.com>
32020         count-leading-zeros: use a lookup table on non-gcc compilers
32021         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
32022         alternate implementation, suggested by Jim Meyering.
32024 2012-08-10  Eric Blake  <eblake@redhat.com>
32026         count-leading-zeros: new module
32027         * modules/count-leading-zeros: New module.
32028         * m4/count-leading-zeros.m4: New file.
32029         * lib/count-leading-zeros.h: Likewise.
32030         * modules/count-leading-zeros-tests: New test.
32031         * tests/test-count-leading-zeros.c: New file.
32032         * MODULES.html.sh (Integer arithmetic functions): Document it.
32034 2012-08-07  Simon Josefsson  <simon@josefsson.org>
32035             Jim Meyering  <meyering@redhat.com>
32037         maintainer-makefile: Fix syntax error with dash.
32038         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
32039         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
32041 2012-08-05  Jim Meyering  <meyering@redhat.com>
32043         extern-inline: also ignore -Wmissing-declarations
32044         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
32045         required with gcc-4.8.0-to-be.
32047         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
32048         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
32049         for /error ?([^,]*)/.  This avoids false-positives for strings like
32050         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
32052 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
32054         gnumakefile: better interaction with Automake-NG
32055         * modules/gnumakefile [Makefile.am]: The makefiles generated by
32056         Automake-NG always contain a definition of VPATH, even in non-VPATH
32057         builds (its value being simply '.' in that case).  So, in the
32058         'clean-GNUmakefile' rule, to determine whether running under a
32059         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
32060         '$(VPATH)' expands to the empty string.
32062 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
32064         base64: Use extern C scope in header file, for C++.
32065         * lib/base64.h: Add C++ namespace protection.
32067 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
32069         stat-time, timespec, u64: support naive out-of-dir builds
32070         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
32071         Use '#include "foo.h"', not '#include <foo.h>', when including
32072         one's own interface.  This works better when configuring with
32073         out-of-directory builds, since packages need not add an
32074         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
32076 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
32078         utimens: use extern-inline
32079         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
32080         * lib/utimens.h: Add copyright notice, since this is now large enough
32081         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32082         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
32083         * modules/utimens (Depends-on): Add extern-inline.
32085         u64: use extern-inline
32086         * lib/u64.c: New file.
32087         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32088         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
32089         * modules/u64 (Files): Add lib/u64.c.
32090         (Depends-on): Add extern-inline.
32091         (configure.ac): No need to require AC_C_INLINE, since extern-inline
32092         does that now.
32093         (lib_SOURCES): Add u64.c.
32095         timespec: use extern-inline
32096         * lib/timespec.c: New file.
32097         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32098         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
32099         * modules/timespec (Files): Add lib/timespec.c.
32100         (Depends-on): Add extern-inline.
32101         (lib_SOURCES): Add timespec.c.
32103         stat-time: use extern-inline
32104         * lib/stat-time.c: New file.
32105         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32106         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
32107         * modules/stat-time (Files): Add lib/stat-time.c.
32108         (Depends-on): Add extern-inline.
32109         (lib_SOURCES): Add stat-time.c.
32111         extern-inline: new module
32112         * modules/extern-inline, m4/extern-inline.m4: New files.
32113         This is for better support of 'extern inline' a la ISO C99,
32114         with a portable alternative on compilers that do not support
32115         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
32116         of the Emacs executable, when compiled with debugging disabled,
32117         which is a typical way that Emacs is built while developing.
32119 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
32121         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
32122         * build-aux/do-release-commit-and-tag: Move variable definitions
32123         together.
32124         ($branch): Instead of defaulting to "master", default to the current
32125         branch (as gnu-web-doc-update does).
32126         (help): Display the current values of the option arguments.
32127         * top/maint.mk (release-commit): New.
32128         * top/README-release: Simplify the corresponding step.
32130 2012-07-30  Eric Blake  <eblake@redhat.com>
32132         passfd: fix comment on recvfd
32133         * lib/passfd.c (recvfd): Fix comment.
32134         Reported by Jann Horn <jannhorn@googlemail.com>.
32136 2012-07-30  Jim Meyering  <meyering@redhat.com>
32138         maint.mk: avoid a sub-shell
32139         * top/maint.mk (release-prep): Remove unneeded sub-shell.
32141 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
32143         maint.mk: use silent-rules support from Automake
32144         * top/maint.mk (news-check, vc-diff-check, announcement)
32145         (no-submodule-changes, alpha beta stable, release-prep)
32146         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
32148 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
32150         maint.mk: provide a web-manual-update target
32151         * top/maint.mk: here.
32152         * top/README-release: Use it to simplify the web manual update step.
32154 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
32156         README-release: shorten the circuit to post a news
32157         * top/README-release: Point directly to the news submission form.
32159 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
32161         gnu-web-doc-update: fix --help
32162         * build-aux/gnu-web-doc-update: The information "top level" was written
32163         twice.
32165 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
32167         maint.mk: absolute VPATH issue
32168         * top/maint.mk (release-prep): Help Git find .git/.
32169         From Jim Meyering.
32171 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
32173         gitlog-to-changelog: fix previous change
32174         * build-aux/gitlog-to-changelog: Fix condition.
32175         Add missing ";".
32177 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
32179         gitlog-to-changelog: don't expect .git to be in $srcdir
32180         Reported by Bruno Haible.
32181         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
32182         * build-aux/gitlog-to-changelog (&git_dir_option): New.
32183         Use it.
32185 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
32187         maint.mk: absolute VPATH build fix
32188         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
32189         $(srcdir) is not a parent of $(builddir).
32191 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
32193         clean-temp: Fix memory leak.
32194         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
32195         'files' members of tmpdir.
32197 2012-07-27  Jim Meyering  <meyering@redhat.com>
32199         maint.mk: new rule: refresh-gnulib-patches
32200         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
32201         Use this rule to refresh them.
32202         * top/maint.mk (refresh-gnulib-patches): New rule.
32204 2012-07-24  Bruno Haible  <bruno@clisp.org>
32206         gnulib-tool: Fix handling of inctests variable.
32207         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
32208         Reported by Nick Bowler <nbowler@elliptictech.com>.
32210 2012-07-22  Bruno Haible  <bruno@clisp.org>
32212         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
32213         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
32214         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
32215         Remove exemption for getpass.h.
32216         Suggested by Eric Blake.
32218 2012-07-20  Eric Blake  <eblake@redhat.com>
32220         verify: document conflict with -Wnested-externs
32221         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
32223         maint.mk: forbid exit(-1)
32224         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
32226 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
32228         fsusage: port back to Solaris
32229         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
32230         error (fsd not declared) on Solaris 10.  Reported privately by
32231         Andrew Borodin.
32233 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
32235         gnu-web-doc-update: fix error messages
32236         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
32238         gnu-web-doc-update: check the requirements.
32239         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
32240         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
32241         * build-aux/bootstrap (find_tool): Comment change.
32243 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
32245         maint.mk: minor simplication.
32246         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
32247         for default values.
32249 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
32251         gitlog-to-changelog: VPATH build issues
32252         If builddir is not a subdirectory of srcdir, running git from it will
32253         fail.
32254         * build-aux/gitlog-to-changelog (--srcdir): New option.
32256 2012-07-15  Bruno Haible  <bruno@clisp.org>
32258         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
32259         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
32260         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
32261         Remove exemption for fpending.h.
32262         Suggested by Eric Blake.
32264 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32266         pthread_sigmask: fix bug on FreeBSD 9
32267         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
32268         Include string.h.
32269         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
32270         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
32271         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
32272         but pthread_sigmask (1729, NULL, NULL) returns zero.
32273         See <http://bugs.gnu.org/11884>.
32274         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
32275         by inspecting whether the main call changed the old mask.
32277 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
32279         README-release: make it more legible
32280         * top/README-release: Improve typography slightly.
32282 2012-07-15  Jim Meyering  <meyering@redhat.com>
32284         maint: require that each sc_... command start with "@"
32285         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
32286         "make sc_maint" helps us avoid this nit.
32288 2012-07-15  Jim Meyering  <meyering@redhat.com>
32290         maint.mk: add leading "@" to quiet new "make syntax-check" rule
32291         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
32293 2012-07-13  Eric Blake  <eblake@redhat.com>
32295         maint.mk: new syntax check for HAVE_DECL checks
32296         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
32297         * cfg.mk
32298         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
32299         Exempt some false positives.
32300         Based on a report by Karel Zak.
32302         argp: make HAVE_DECL usage consistent
32303         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
32304         macros, not whether they are defined.
32305         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
32306         convention with other declaration checks.
32307         Reported by Karel Zak, with suggestions from Paul Eggert.
32309         stat-time: relax license to LGPLv2+
32310         * modules/stat-time (License): Relax, with consent of all authors.
32312         strndup: fix m4 usage error
32313         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
32314         defined, to either 0 or 1.
32315         Reported by Karel Zak.
32317 2012-07-11  Jim Meyering  <meyering@redhat.com>
32319         maint: enable the sc_avoid_if_before_free syntax-check rule
32320         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
32321         (if_before_free_offenders_): Define.
32322         (if_before_free_basename_re_): Define.
32323         Exempt current files with useless if-before-free.
32325 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32327         gettext: do not assume '#define ... defined ...' behavior
32328         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
32329         Do not use '#define FOO ... defined BAR ...', as the C standard says
32330         it's not portable to expect that this works after macro expansion.
32331         Problem reported for gzip by Steven M. Schweda in
32332         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
32334 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
32336         getloadavg: clean out old Emacs and Autoconf cruft
32337         See Glenn Morris in <http://bugs.gnu.org/11905>.
32338         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
32339         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
32340         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
32341         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
32343 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
32345         bootstrap: let warn be like tests/init.sh's warn_
32346         Reported by Jim Meyering.
32347         * build-aux/bootstrap (warn): Remove, replaced by...
32348         (warnf_, warn_): these.
32349         Adjust callers.
32350         Shorten messages that no longer fit in 80 columns.
32352 2012-07-09  Bruno Haible  <bruno@clisp.org>
32354         getopt: Simplify after Emacs changed.
32355         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
32356         (gl_GETOPT_IFELSE): Remove macro.
32358 2012-07-09  Jim Meyering  <meyering@redhat.com>
32360         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
32361         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
32363         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
32364         Bugs in both of those conspired to make the
32365         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
32366         _sc_search_regexp's handling of non-empty $in_files would filter
32367         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
32368         choice of in_files value meant there would be no match in most
32369         projects, due to the presence of two or more Makefile.in files.
32370         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
32371         Fix a bug in how a non-empty $$in_files was processed:
32372         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
32373         in spite of the name, it's a regexp, not a list of file names.
32375 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32377         getloadavg, getopt: fix commentary re configure.in
32378         Autoconf is deprecating the name 'configure.in', so change it to
32379         to the new name 'configure.ac' in a couple of places.
32380         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
32381         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
32382         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
32383         Emacs has renamed it to configure.ac, and it no longer refers
32384         to these macros anyway.
32386         timespec: mark functions with const attributes
32387         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
32388         Mark with _GL_ATTRIBUTE_CONST.
32390 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
32392         canonicalize[-lgpl]: handle "guessing" values when cross-building
32393         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32394         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
32395         matches "*yes" instead of just "yes".  Regression introduced in commit
32396         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
32398 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
32399             Bruno Haible  <bruno@clisp.org>
32401         canonicalize: make the right guess when cross-compiling to GNU
32402         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
32403         determine whether cross-compiling to glibc systems, so as to
32404         include GNU/Hurd.
32406 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32408         timespec-sub: avoid duplicate include
32409         * lib/timespec-sub.c: Do not include <config.h> twice.
32410         Reported by Juanma Barranquero.
32412 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
32414         bootstrap: use a more consistent error reporting scheme
32415         * build-aux/bootstrap (warn, die): New.
32416         Use them.
32418 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32420         sys_time: allow too-wide tv_sec
32421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
32422         timeval even if tv_sec is wider than time_t.  This allows
32423         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
32424         as without this patch gnulib replaces struct timeval
32425         and OpenBSD futimes therefore has a type mismatch.
32426         * doc/posix-headers/sys_time.texi: Mention this.
32428         pthread: check for both pthread_create and pthread_join
32429         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
32430         alter the check so that it tests for both pthread_create and
32431         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
32432         Suggested by Bruno Haible and Richard Yao in
32433         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
32435         parse-datetime: doc tuneup
32436         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
32437         spacing issues.
32439 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
32441         do-release-commit-and-tag: fix the previous commit
32442         * build-aux/do-release-commit-and-tag: Actually the test was right,
32443         but the comment and the error message were misleading.
32444         Fix comment, and improve error message.
32445         Perform check first, so that NEWS is not modified uselessly.
32447         do-release-commit-and-tag: fix typo
32448         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
32449         _not_ start with a stub.
32451 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32453         pthread: check for pthread_create, not pthread_join
32454         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
32455         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
32456         pthread_join in libc.  I hope this removes the need for all the
32457         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
32458         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
32460 2012-07-04  Jim Meyering  <meyering@redhat.com>
32462         parse-datetime: fix failure to diagnose invalid input
32463         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
32464         rather than diagnosing the invalid input.  Now it reports this:
32465         date: invalid date '\260'
32466         * lib/parse-datetime.y (to_uchar): Define.
32467         (yylex): Don't sign-extend "other" bytes.
32468         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
32469         Thanks to Bruno Haible for the patch to this file.
32470         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
32471         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
32473 2012-07-03  Jim Meyering  <meyering@redhat.com>
32475         bootstrap: do not require now-removed build-aux/missing
32476         Now that build-aux/missing is, er, missing, bootstrap would
32477         silently fail.
32478         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
32479         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
32480         no longer part of gnulib.
32481         Diagnose the failure.
32483 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32485         alloca: add support for HP NonStop TNS/E native
32486         * lib/alloca.in.h (alloca): Support the new host.
32487         From a suggestion by Joachim Schmitz in
32488         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
32490 2012-07-02  Pádraig Brady  <P@draigBrady.com>
32492         fsusage: remove code not needed on non GNU/Linux systems.
32494         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
32495         Don't include headers no longer needed in this case.
32496         * lib/fsusage.c [STAT_STATVFS &&
32497         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
32498         STAT_STATFS2_FRSIZE to exclude code not used in this case.
32500 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32502         fsusage: include files needed for glibc 2.6 fallback
32503         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
32504         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
32505         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
32506         Problem reported by Ludovic Courtès in
32507         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
32509         fsusage: avoid needless check on GNU/Linux
32510         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
32511         on GNU/Linux systems, since it can't possibly work.
32513 2012-07-01  Bruno Haible  <bruno@clisp.org>
32515         log: Fix an autoconf >= 2.64 warning.
32516         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
32517         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
32519 2012-06-28  Bruno Haible  <bruno@clisp.org>
32521         log10f: Fix possible configuration problem.
32522         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
32523         $LOGF_LIBM.
32524         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
32526 2012-06-28  Bruno Haible  <bruno@clisp.org>
32528         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
32529         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
32530         not gl_cv_func_unlink_works.
32531         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
32533 2012-06-27  Eric Blake  <eblake@redhat.com>
32535         config: drop scripts that automake says are not independent
32536         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
32537         * build-aux/elisp-comp: Delete.
32538         * build-aux/missing: Likewise.
32539         * build-aux/ylwrap: Likewise.
32540         * modules/elisp-comp: Likewise.
32541         * MODULES.html.sh: Drop mention of elisp-comp.
32542         * NEWS: Mention this.
32544 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32546         root-uid: new module
32547         This is for portability to Tandem's NonStop Kernel.
32548         * lib/root-uid.h, modules/root-uid: New files.
32549         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
32550         * lib/write-any-file.c, tests/test-sethostname2.c:
32551         Include "root-uid.h".
32552         * lib/euidaccess.c (euidaccess):
32553         * lib/pt_chown.c (main):
32554         * lib/unlinkdir.c (cannot_unlink_dir):
32555         * lib/write-any-file.c (can_write_any_file):
32556         * m4/mknod.m4 (gl_FUNC_MKNOD):
32557         * tests/test-sethostname2.c (geteuid, main):
32558         Don't assume ROOT_UID == 0.
32559         * modules/euidaccess (Depends-on):
32560         * modules/pt_chown (Depends-on):
32561         * modules/sethostname-tests (Depends-on):
32562         * modules/unlinkdir (Depends-on):
32563         * modules/write-any-file (Depends-on):
32564         Add root-uid.
32566         regex: use locale-independent comparison for codeset name
32567         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
32568         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
32569         for codeset name.
32570         * lib/regex_internal.h: Do not include <strings.h>, since we
32571         no longer use strcasecmp.
32572         * modules/regex (Depends-on): Remove strcase.
32574 2012-06-23  Bruno Haible  <bruno@clisp.org>
32576         getopt-posix: No longer guarantee that option processing is resettable.
32577         * doc/posix-functions/getopt.texi: Drop description of problem with
32578         internal state. Fix info about mingw and msvc9.
32579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
32580         option processing by getopt(). Run three test programs instead of one.
32581         Simplify cross-compilation guess.
32582         * NEWS: Mention the change.
32583         Reported by Rich Felker <dalias@aerifal.cx>.
32585 2012-06-26  Bruno Haible  <bruno@clisp.org>
32587         argp, regex: Ensure strcasecmp gets declared.
32588         * lib/argp-help.c: Include <strings.h>.
32589         * lib/regex_internal.h: Likewise.
32590         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
32592 2012-06-24  Bruno Haible  <bruno@clisp.org>
32594         ptsname_r: Make it consistent with ptsname on AIX.
32595         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
32596         implementation as for OSF/1.
32597         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
32598         a pty master.
32600         ptsname_r: Make it consistent with ptsname on OSF/1.
32601         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
32602         OSF/1.
32604 2012-06-24  Bruno Haible  <bruno@clisp.org>
32606         ttyname_r: Fix result on OSF/1, Solaris.
32607         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
32609 2012-06-24  Bruno Haible  <bruno@clisp.org>
32611         ptsname_r: Add support for Solaris.
32612         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
32613         Solaris.
32615         ptsname_r: Fix test failure on native Windows.
32616         * modules/ptsname_r (Depends-on): Add isatty.
32618         ptsname_r: Fix test failures on IRIX, Solaris.
32619         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
32620         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
32621         accordingly.
32622         * lib/ptsname_r.c: Include <fcntl.h>.
32623         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
32624         set errno if fd is invalid.
32625         * tests/test-isatty.c (main): Update comments.
32627 2012-06-24  Bruno Haible  <bruno@clisp.org>
32629         ptsname test: Extend test.
32630         * tests/test-ptsname.c: Include <errno.h>.
32631         (main): Test behaviour with invalid file descriptor.
32633 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32635         time: fix obsolete comment
32636         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
32637         reference to HAVE_STRUCT_TIMESPEC in comment.
32639 2012-06-23  Bruno Haible  <bruno@clisp.org>
32641         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
32642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
32643         does not handle abbreviated long options with equivalent
32644         disambiguations, set gl_replace_getopt to yes.
32645         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
32647 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32649         time_r: fix typo that always overrode localtime_r decl
32650         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
32651         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
32652         not in a standard include.
32654 2012-06-22  Bruno Haible  <bruno@clisp.org>
32656         Write "Mac OS X" instead of "MacOS X".
32657         * README: Write "Mac OS X" instead of "MacOS X".
32658         * build-aux/bootstrap: Likewise.
32659         * build-aux/install-reloc: Likewise.
32660         * lib/acl-internal.h: Likewise.
32661         * lib/acl_entries.c: Likewise.
32662         * lib/argp-ba.c: Likewise.
32663         * lib/argp-pv.c: Likewise.
32664         * lib/config.charset: Likewise.
32665         * lib/copy-acl.c: Likewise.
32666         * lib/csharpexec.c: Likewise.
32667         * lib/euidaccess.c: Likewise.
32668         * lib/fbufmode.c: Likewise.
32669         * lib/fflush.c: Likewise.
32670         * lib/file-has-acl.c: Likewise.
32671         * lib/filemode.h: Likewise.
32672         * lib/fpurge.c: Likewise.
32673         * lib/freadable.c: Likewise.
32674         * lib/freadahead.c: Likewise.
32675         * lib/freading.c: Likewise.
32676         * lib/freadptr.c: Likewise.
32677         * lib/freadseek.c: Likewise.
32678         * lib/fseeko.c: Likewise.
32679         * lib/fseterr.c: Likewise.
32680         * lib/fsusage.c: Likewise.
32681         * lib/fwritable.c: Likewise.
32682         * lib/fwriting.c: Likewise.
32683         * lib/get-rusage-as.c: Likewise.
32684         * lib/get-rusage-data.c: Likewise.
32685         * lib/getdomainname.c: Likewise.
32686         * lib/idpriv-drop.c: Likewise.
32687         * lib/idpriv-droptemp.c: Likewise.
32688         * lib/localcharset.c: Likewise.
32689         * lib/locale.in.h: Likewise.
32690         * lib/localename.c: Likewise.
32691         * lib/mbsrtowcs-state.c: Likewise.
32692         * lib/nproc.c: Likewise.
32693         * lib/passfd.c: Likewise.
32694         * lib/posix_openpt.c: Likewise.
32695         * lib/printf-parse.c: Likewise.
32696         * lib/progreloc.c: Likewise.
32697         * lib/safe-read.h: Likewise.
32698         * lib/safe-write.h: Likewise.
32699         * lib/sched.in.h: Likewise.
32700         * lib/set-mode-acl.c: Likewise.
32701         * lib/signal.in.h: Likewise.
32702         * lib/stdint.in.h: Likewise.
32703         * lib/stdio-impl.h: Likewise.
32704         * lib/stdlib.in.h: Likewise.
32705         * lib/strtod.c: Likewise.
32706         * lib/sys_select.in.h: Likewise.
32707         * lib/tcgetsid.c: Likewise.
32708         * lib/unistd.in.h: Likewise.
32709         * lib/unlockpt.c: Likewise.
32710         * lib/vasnprintf.c: Likewise.
32711         * lib/vma-iter.c: Likewise.
32712         * lib/wcsrtombs-state.c: Likewise.
32713         * m4/acl.m4: Likewise.
32714         * m4/acosl.m4: Likewise.
32715         * m4/asinl.m4: Likewise.
32716         * m4/atanl.m4: Likewise.
32717         * m4/c-stack.m4: Likewise.
32718         * m4/cosl.m4: Likewise.
32719         * m4/expl.m4: Likewise.
32720         * m4/extensions.m4: Likewise.
32721         * m4/fdatasync.m4: Likewise.
32722         * m4/fmal.m4: Likewise.
32723         * m4/frexp.m4: Likewise.
32724         * m4/frexpf.m4: Likewise.
32725         * m4/frexpl.m4: Likewise.
32726         * m4/fsusage.m4: Likewise.
32727         * m4/getdomainname.m4: Likewise.
32728         * m4/getloadavg.m4: Likewise.
32729         * m4/getopt.m4: Likewise.
32730         * m4/gettext.m4: Likewise.
32731         * m4/gnulib-common.m4: Likewise.
32732         * m4/intdiv0.m4: Likewise.
32733         * m4/intlmacosx.m4: Likewise.
32734         * m4/largefile.m4: Likewise.
32735         * m4/ldexpl.m4: Likewise.
32736         * m4/link-follow.m4: Likewise.
32737         * m4/locale-ar.m4: Likewise.
32738         * m4/locale-fr.m4: Likewise.
32739         * m4/locale-ja.m4: Likewise.
32740         * m4/locale-tr.m4: Likewise.
32741         * m4/locale-zh.m4: Likewise.
32742         * m4/locale_h.m4: Likewise.
32743         * m4/lock.m4: Likewise.
32744         * m4/logl.m4: Likewise.
32745         * m4/mathfunc.m4: Likewise.
32746         * m4/minus-zero.m4: Likewise.
32747         * m4/mktime.m4: Likewise.
32748         * m4/mmap-anon.m4: Likewise.
32749         * m4/multiarch.m4: Likewise.
32750         * m4/nanosleep.m4: Likewise.
32751         * m4/nocrash.m4: Likewise.
32752         * m4/poll.m4: Likewise.
32753         * m4/printf-frexpl.m4: Likewise.
32754         * m4/printf.m4: Likewise.
32755         * m4/signbit.m4: Likewise.
32756         * m4/sinl.m4: Likewise.
32757         * m4/sqrtl.m4: Likewise.
32758         * m4/strerror_r.m4: Likewise.
32759         * m4/tanl.m4: Likewise.
32760         * m4/threadlib.m4: Likewise.
32761         * m4/ttyname_r.m4: Likewise.
32762         * m4/unlink.m4: Likewise.
32763         * m4/visibility.m4: Likewise.
32764         * m4/wcwidth.m4: Likewise.
32765         * tests/minus-zero.h: Likewise.
32766         * tests/test-alloca-opt.c: Likewise.
32767         * tests/test-copy-acl.sh: Likewise.
32768         * tests/test-copy-file.sh: Likewise.
32769         * tests/test-fdatasync.c: Likewise.
32770         * tests/test-file-has-acl.sh: Likewise.
32771         * tests/test-flock.c: Likewise.
32772         * tests/test-fsync.c: Likewise.
32773         * tests/test-localename.c: Likewise.
32774         * tests/test-malloca.c: Likewise.
32775         * tests/test-nonblocking-pipe.h: Likewise.
32776         * tests/test-nonblocking-socket.h: Likewise.
32777         * tests/test-openpty.c: Likewise.
32778         * tests/test-posix_openpt.c: Likewise.
32779         * tests/test-ptsname.c: Likewise.
32780         * tests/test-ptsname_r.c: Likewise.
32781         * tests/test-sameacls.c: Likewise.
32782         * tests/test-select.h: Likewise.
32783         * tests/test-set-mode-acl.sh: Likewise.
32784         * tests/test-snprintf-posix.h: Likewise.
32785         * tests/test-sprintf-posix.h: Likewise.
32786         * tests/test-strtod.c: Likewise.
32787         * tests/test-time.c: Likewise.
32788         * tests/test-vasnprintf-posix.c: Likewise.
32789         * tests/test-vasprintf-posix.c: Likewise.
32790         * doc/acl-resources.txt: Likewise.
32791         * doc/**/*.texi: Likewise.
32792         Reported by Max Horn <max@quendi.de>.
32794 2012-06-22  Bruno Haible  <bruno@clisp.org>
32796         grantpt: Relax requirement regarding invalid file descriptors.
32797         * lib/grantpt.c: Don't include <fcntl.h>.
32798         (grantpt): Don't verify the validity of the file descriptor.
32799         * modules/grantpt (Depends-on): Remove fcntl-h.
32800         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
32801         file descriptors.
32802         * doc/posix-functions/grantpt.texi: Document more platforms on which
32803         grantpt succeeds for invalid file descriptors.
32804         Reported by Rich Felker <dalias@aerifal.cx>.
32806 2012-06-22  Bruno Haible  <bruno@clisp.org>
32808         fbufmode test: Don't test unportable behaviour.
32809         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
32810         (main): Invoke it three times.
32811         Reported by Szabolcs Nagy <nsz@port70.net>
32812         and Rich Felker <dalias@aerifal.cx>.
32814 2012-06-21  Bruno Haible  <bruno@clisp.org>
32816         gnulib-tool: Refactor inctests variable.
32817         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
32818         (func_modules_transitive_closure,
32819         func_modules_transitive_closure_separately,
32820         func_import, func_create_testdir): Update.
32822         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
32823         * gnulib-tool: Accept option --without-tests.
32824         (func_usage): Document --without-tests option. Rearrange.
32825         (inctests): Normalize according to the mode.
32826         * NEWS: Mention the change.
32827         Suggested by Simon Josefsson.
32829 2012-06-21  Bruce Korb  <bkorb@gnu.org>
32831         parse-duration test: Avoid spurious output.
32832         * tests/test-parse-duration.sh: Reindent with leading tabs.
32834 2012-06-21  Jim Meyering  <meyering@redhat.com>
32836         maint: disable the strncpy prohibition
32837         * cfg.mk: Do not prohibit strncpy here.
32839 2012-06-21  Bruno Haible  <bruno@clisp.org>
32841         nonblocking: Avoid compilation error on mingw64.
32842         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
32843         fscanf.
32844         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
32845         * modules/vfscanf (configure.ac): Likewise.
32846         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
32847         definition only if stdio.h has prepared it.
32848         Reported by Daniel P. Berrange <berrange@redhat.com>.
32850 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
32852         gnulib-tool: Use readlink if it is available.
32853         * gnulib-tool (func_readlink): Choose function more appropriately.
32855 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32857         posixtm-tests: port to buggy compiler
32858         Problem reported by Simon Josefsson in
32859         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
32860         * modules/posixtm-tests (Depends-on): Add stdint.
32861         * tests/test-posixtm.c (struct posixtm_test.t_expected):
32862         Now of type int_least64_t, not int64_t, both because that's
32863         what INT64_C returns and because int_least64_t works even
32864         on 72-bit hosts.
32865         (T): Use INT64_C on constants outside the traditional int range,
32866         to work around compiler bug noted by Simon.
32868         mktime: fix integer overflow in 'configure'-time test
32869         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
32870         after integer overflow.  Problem reported by Rich Felker in
32871         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
32872         Also, don't look for further instances of a bug if we've already
32873         found one instance; this helps 'configure' run faster.
32875 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
32877         tmpfile, clean-temp: Fix invocation of GetVersionEx.
32878         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
32879         GetVersionEx correctly.
32880         * lib/clean-temp.c (supports_delete_on_close): Likewise.
32882 2012-06-20  Bruno Haible  <bruno@clisp.org>
32884         fdopen: Allow implementations that don't reject invalid fd arguments.
32885         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
32886         succeeds.
32887         Reported by Rich Felker <dalias@aerifal.cx>.
32889 2012-06-20  Simon Josefsson  <simon@josefsson.org>
32891         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
32892         bring in LIBINTL.
32894 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32896         init.sh: do not rely on autoupated PWD
32897         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
32898         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
32899         Although Nelson's bug was not necessarily fixed by this patch,
32900         it seems wise to make the change for safety.
32901         * tests/init.sh (path_prepend_): Do not rely on PWD updating
32902         automagically after 'cd'; this is not reliable on older shells.
32903         (setup_): Fail if we cannot cd to temporary directory.
32905 2012-06-19  Bruno Haible  <bruno@clisp.org>
32907         stat, fstat: Avoid warnings on mingw64.
32908         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
32909         redefining.
32910         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
32911         Reported by Daniel P. Berrange <berrange@redhat.com>.
32913 2012-06-19  Bruno Haible  <bruno@clisp.org>
32915         stdioext: Add support for musl libc.
32917         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
32918         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
32920         * m4/fseterr.m4: New file.
32921         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
32922         function exists.
32923         * modules/fseterr (Files): Add m4/fseterr.m4.
32924         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
32925         __fseterr does not exist.
32926         (Makefile.am): Remove fseterr.c from lib_SOURCES.
32928         * lib/freadable.h: Update comment.
32930         * lib/fwritable.h: Update comment.
32932         * lib/freading.h: Update comment.
32934         * lib/fwriting.h: Update comment.
32936         * m4/freadahead.m4: New file.
32937         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
32938         that function exists.
32939         * modules/freadahead (Files): Add m4/freadahead.m4.
32940         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
32941         __freadahead does not exist.
32942         (Makefile.am): Remove freadahead.c from lib_SOURCES.
32944         * m4/freadptr.m4: New file.
32945         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
32946         function exists.
32947         * modules/freadptr (Files): Add m4/freadptr.m4.
32948         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
32949         __freadptr does not exist.
32950         (Makefile.am): Remove freadptr.c from lib_SOURCES.
32952         * m4/freadseek.m4: New file.
32953         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
32954         exists.
32955         * modules/freadseek (Files): Add m4/freadseek.m4.
32956         (configure.ac): Invoke gl_FUNC_FREADSEEK.
32958         * lib/fpurge.c (fpurge): Update comment.
32960         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
32962 2012-06-19  Bruno Haible  <bruno@clisp.org>
32964         *printf-posix: Put more info into config.log.
32965         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
32966         exit code into config.log.
32968 2012-06-19  Bruno Haible  <bruno@clisp.org>
32970         getopt-gnu: Fix exit code overflow in autoconf test.
32971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
32972         to keep them below < 128.
32974 2012-06-17  Jim Meyering  <meyering@redhat.com>
32976         maint.mk: fix typo in code to derive GPG key at release time
32977         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
32979 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32981         regex: avoid warning when pointers are not long
32982         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
32983         and uintptr_t, not long, for portability to hosts where pointers and
32984         long have different sizes.  Issue noted by Daniel P. Berrange in
32985         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
32986         and fix suggested by Bruno Haible in
32987         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
32989 2012-06-17  Bruno Haible  <bruno@clisp.org>
32991         dummy: Relicense into the public domain.
32992         * modules/dummy (License): Set to "public domain".
32993         Suggested by Reuben Thomas.
32995 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
32997         announce-gen: VPATH issues
32998         * build-aux/announce-gen (--srcdir): New option, used to trim the
32999         $srcdir part of the path from $builddir to NEWS.
33000         * top/maint.mk (announcement): Adjust.
33002 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
33004         gnu-web-doc-update: VPATH builds
33005         * build-aux/gnu-web-doc-update (--builddir): New option.
33006         Revamp the handling of options.
33007         Prefer $(...) to `...`.
33008         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
33009         the template, and it is GNU mktemp specific.
33010         Prefer set -e to long series of &&.
33011         Restore the initial git branch, not "master".
33012         Properly initialize submodules (don't rely only on bootstrap).
33013         Do not reconfigure blindly, use config.status.
33014         * top/README-release: Update instructions for gnu-web-doc-update.
33016 2012-06-11  Jim Meyering  <meyering@redhat.com>
33018         maint.mk: revert most of the previous change re "all these"
33019         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
33020         For rationale, see the discussion at
33021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
33023 2012-06-10  Karl Berry  <karl@gnu.org>
33025         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
33027         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
33029 2012-06-10  Bruce Korb  <bkorb@gnu.org>
33031         parse-duration: Relicense under LGPLv2+.
33032         * modules/parse-duration (License): Change to LGPLv2+.
33034 2012-06-10  Jim Meyering  <meyering@redhat.com>
33036         maint.mk: prohibit common grammar error: "all these"
33037         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
33038         the list of prohibited word sequences.  It should be "all of these".
33039         * lib/tempname.c (__gen_tempname): Fix one of them.
33041 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
33043         do-release-commit-and-tag: support VPATH builds
33044         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
33045         (noteworthy): Defined earlier to factor its value.
33046         (noteworthy_stub): New.
33047         Use it to factor.
33048         (help_version): Split into...
33049         (help, version): these.
33050         Adjust the option processing part.
33051         Support "--option=value" in addition to "--option value".
33052         (builddir): New.
33053         (--builddir): New option.
33054         * top/README-release: Document this.
33055         Reword slightly so that the reader cannot understand that he
33056         has to do these steps before calling do-release-commit-and-tag.
33058 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
33060         readme-release: also require announce-gen and maintainer-makefile
33061         * modules/readme-release (Depends-on): here.
33062         * modules/announce-gen, modules/do-release-commit-and-tag,
33063         modules/gnu-web-doc-update, modules/maintainer-makefile
33064         (Description): Point to readme-release.
33066 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
33068         maint.mk: fix VPATH issues.
33069         * top/maint.mk (news-check): GNU Make understand $< very well.
33070         (release-prep): NEWS is in $(srcdir).
33072 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
33074         readme-release: require the promoted modules.
33075         * modules/readme-release (Depends-on): Add
33076         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
33077         in this text.
33079 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
33080             Bruno Haible  <bruno@clisp.org>
33082         error, strerror-override: Support mingw64 from Fedora 17.
33083         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
33084         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
33085         EINPROGRESS.
33086         * lib/strerror-override.h (strerror_override): Test it.
33087         * lib/strerror-override.c (strerror_override): Likewise.
33088         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
33090 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
33091             Bruno Haible  <bruno@clisp.org>
33093         error, strerror-override: Support mingw64 from Fedora 17.
33094         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
33095         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
33096         * lib/strerror-override.h (strerror_override): Test it.
33097         * lib/strerror-override.c (strerror_override): Likewise.
33099 2012-06-03  Bruno Haible  <bruno@clisp.org>
33101         error, strerror-override: Support new errno values from POSIX:2008.
33102         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
33103         ENOTRECOVERABLE.
33104         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
33105         platforms.
33106         * lib/strerror-override.c (strerror_override): Conditionalize the
33107         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
33108         * lib/strerror-override.h (strerror_override): Declare also if
33109         GNULIB_defined_EOWNERDEAD is defined.
33110         * tests/test-errno.c (e130, e131): New variables.
33111         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
33112         ENOTRECOVERABLE.
33113         Reported by Paolo Bonzini.
33115 2012-05-31  Jim Meyering  <meyering@redhat.com>
33117         savewd: add missing dependency on sys_wait module
33118         * modules/savewd (Depends-on): Add sys_wait, needed at least
33119         for MSVC.  Report and suggested change by Michael Goffioul.
33121 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33123         system-quote-tests: port to CentOS 5
33124         Problem reported by Tom G. Christensen in
33125         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
33126         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
33128 2012-05-29  Jim Meyering  <meyering@redhat.com>
33130         maint: fix typos in comments and ChangeLog
33131         Culprits identified and fixed mostly automatically using these commands:
33132         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
33133         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
33134         using http://github.com/lyda/misspell-check
33135         * ChangeLog: Fix typos.
33136         * doc/solaris-versions: Likewise.
33137         * lib/regexec.c (re_search_stub): Likewise.
33138         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
33140 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
33142         manywarnings: remove duplicate -Wmultichar entry
33143         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
33144         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
33145         so keep the entry marked as documented.
33147 2012-05-27  Karl Berry  <karl@gnu.org>
33149         * config/srclist.txt (mktime.c): remove last libc sync,
33150         perhaps just temporarily.
33152 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
33154         regex: don't assume uint64_t or uint32_t
33155         * lib/regcomp.c (init_word_char): Don't assume that the types
33156         uint64_t and uint32_t exist.  The C standard doesn't guarantee
33157         them, and on some 32-bit compilers there is no uint64_t.
33158         Problem reported by Gianluigi Tiesi in
33159         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
33161 2012-05-25  Jim Meyering  <meyering@redhat.com>
33163         maint.mk: add strncpy-prohibiting syntax-check rule
33164         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
33166 2012-05-24  Jim Meyering  <meyering@redhat.com>
33168         maint.mk: compute $(gpg_key_ID) more portably
33169         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
33170         That use of sed is not portable to some fringe systems.
33171         Reported by Paul Eggert in
33172         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
33174 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
33176         mktime: sync from glibc
33177         * config/srclist.txt: Uncomment mktime.c.
33178         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
33179         First, indent with tabs, since glibc uses tabs and doesn't want to
33180         change and we'd rather be identical to glibc.  Also, two small
33181         coding changes:
33182         (isdst_differ): Use &&, not &, as && is the usual style.
33183         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
33184         for clarity.
33186 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
33188         announce-gen: du -h is more portable than du --human
33189         * build-aux/announce-gen (sizes): Invoke du with -h instead
33190         of --human.  Accept leading white space in its output.
33192 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
33194         announce-gen: Improve diagnostics.
33195         * build-aux/announce-gen: When parsing command line options,
33196         prefer "announce-gen: option --release-type requires an argument"
33197         to "Option release-type requires an argument".
33199 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
33201         maint.mk: gpg_key_ID: use sed more portably
33202         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
33203         the closing brace.
33204         (refresh-po): Fuse two sed invocations into one.
33206 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
33208         gitlog-to-changelog: support the log message format used in Bison.
33209         * build-aux/gitlog-to-changelog: Support --strip-tab and
33210         --strip-cherry-picked.
33212 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
33214         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
33215         the rest of the current time slice to another thread in the current
33216         process. So if the thread that feeds the file decscriptor we're
33217         polling is not in the current process, we get busy-waiting.
33218         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
33219         Patch from Theodore Leblond.
33220         * lib/select.c: Split polling out of the loop that sets the output
33221         fd_sets.  Check for zero result and loop if the wait timeout is
33222         infinite.
33224 2012-05-21  Simon Josefsson  <simon@josefsson.org>
33226         select: Fix build error on IRIX 6.5.
33227         * lib/select.c: Include stddef.h for NULL.
33229 2012-05-21  Simon Josefsson  <simon@josefsson.org>
33231         gc: fix libgcrypt detection on older machines.
33232         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
33233         copyright years because the file has been distributed every year
33234         since it was created.
33236 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
33238         crypto: fix bug in large buffer handling
33239         Problem reported by Serge Belyshev for glibc in
33240         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
33241         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
33242         * lib/md4.c (md4_process_block):
33243         * lib/md5.c (md5_process_block):
33244         * lib/sha1.c (sha1_process_block):
33245         * lib/sha256.c (sha256_process_block):
33246         Don't assume the buffer length is less than 2**32.
33247         * lib/sha512.c (sha512_process_block): Likewise.
33248         Here, the bug is present only in the rare case where the host does
33249         not support uint64_t or where size_t is wider than 64 bits.
33250         Use u64size to work around the problems.
33251         * lib/u64.h (u64size): New macro.
33253 2012-05-15  Pádraig Brady  <P@draigBrady.com>
33255         fsusage: fix block size returned on older Linux 2.6
33257         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
33258         which is available since Linux 2.6.
33259         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
33260         when the member is available so it can be used as a fallback.
33261         * doc/posix-functions/statvfs.texi: Mention the hang issue
33262         on Linux < 2.6.36.
33264 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33266         bootstrap: suppress stderr chatter
33267         * build-aux/bootstrap (insert_sorted_if_absent, main program):
33268         Omit unnecessary chatter to stderr.  The main program chatter
33269         was there only inadvertantly.
33271         bootstrap: .gitignore files created by autopoint, libtool
33272         I ran into this problem when bootstrapping the latest diffutils.
33273         After './bootstrap', 'git status' reported lots of untracked files
33274         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
33275         autopoint and do not need to be version-controlled.
33276         * build-aux/bootstrap: Put into .gitignore the files that
33277         autopoint and libtool create, by keeping track of files that exist
33278         after but not before these programs are run.
33279         (version_controlled_file): Move up.  2nd arg is now full file
33280         name, not base name; this is more convenient.  Put CVS at the end,
33281         as it's now somewhat deprecated.
33283 2012-05-14  Jim Meyering  <meyering@redhat.com>
33285         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
33286         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
33287         definition.  Reported by Bruno Haible.
33289 2012-05-13  Bruno Haible  <bruno@clisp.org>
33290             Paul Eggert  <eggert@cs.ucla.edu>
33292         binary-io: Define set_binary_mode function.
33293         * lib/binary-io.h (set_binary_mode): New function.
33294         (SET_BINARY): Define in terms of set_binary_mode.
33295         * modules/binary-io (configure.ac): Require AC_C_INLINE.
33296         * tests/test-binary-io.c (main): Accept an argument, and test either
33297         set_binary_mode or SET_BINARY depending on the argument.
33298         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
33299         argument. Clean up also t-bin-out0.tmp.
33301 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
33303         bootstrap: take advantage of POSIX shell features
33305         The 'bootstrap' script offered by Gnulib script already uses POSIX
33306         shell features (like $((...)) arithmetic expansions) that are not
33307         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
33308         means that bootstrap must already be run using a proper POSIX shell,
33309         which will thus provide more features, like ${var#pattern} parameter
33310         expansion or inversion of a command exit status with '!'.  We can
33311         thus use these features to improve the clarity and the performances
33312         of the bootstrap script.
33314         Suggested by Eric Blake.
33316         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
33317         of sed/expr plus command substitutions, to save some forks.  While
33318         we are at it, prefer the POSIX $(...) form of command substitution,
33319         rather than the legacy form `...` (since the former is visually
33320         clearer and interacts better with quoting), and prefer the idiom:
33321           "if ! CMD; then ACTION ..."
33322         over the idiom:
33323           "if CMD; then :; else ACTION ..."
33324         which was required by legacy Bourne shells not supporting '!'.
33326 2012-05-12  Bruno Haible  <bruno@clisp.org>
33328         system-quote: Add more comments.
33329         * lib/system-quote.h: Add more comments about wilcards and limitations.
33330         Suggested by Eli Zaretskii <eliz@gnu.org>.
33332         sh-quote, system-quote: Add comments about wildcards.
33333         * lib/sh-quote.h: Clarify what happens with wildcard characters.
33334         * lib/system-quote.h: Likewise.
33335         Reported by Eli Zaretskii <eliz@gnu.org>.
33337 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33339         fsusage: check for GNU/Linux statvfs problem dynamically
33340         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
33341         Define STAT_STATFS2_BSIZE too, since in this case the code now
33342         checks dynamically whether statvfs is reliable, falling back on
33343         Linux-style statfs otherwise.
33344         (statvfs_works): New function, for dynamically testing statvfs.
33345         (get_fs_usage) [STAT_STATVFS]: Use it.
33346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
33347         statvfs on GNU/Linux hosts, since it's now done dynamically.
33349 2012-05-10  Bruno Haible  <bruno@clisp.org>
33351         system-quote, execute, spawn-pipe: Escape '?' on Windows.
33352         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
33353         '?' character.
33354         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
33355         * tests/test-system-quote-main.c (check_all): Check also strings like
33356         "??????????".
33357         Reported by Eli Zaretskii <eliz@gnu.org>.
33359 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33361         _Noreturn: port config.h to gcc -Wundef
33362         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
33363         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
33364         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
33366 2012-05-10  Bruno Haible  <bruno@clisp.org>
33368         system-quote: Refactor.
33369         * lib/system-quote.h (system_quote_copy): Fix comment.
33370         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
33371         New functions, extracted from system_quote_copy.
33372         (system_quote_length, system_quote_copy): Use these functions.
33373         Reported by Paul Eggert.
33375 2012-05-08  Bruno Haible  <bruno@clisp.org>
33377         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
33378         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
33380 2012-05-08  Bruno Haible  <bruno@clisp.org>
33382         Tests for module 'system-quote'.
33383         * modules/system-quote-tests: New file.
33384         * tests/test-system-quote.sh: New file.
33385         * tests/test-system-quote-main.c: New file.
33386         * tests/test-system-quote-child.c: New file.
33388         New module 'system-quote'.
33389         * lib/system-quote.h: New file.
33390         * lib/system-quote.c: New file.
33391         * modules/system-quote: New file.
33393 2012-05-08  Bruno Haible  <bruno@clisp.org>
33395         sh-quote: Make C++ safe and allow multiple inclusion.
33396         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
33397         declarations in extern "C".
33399 2012-05-08  Bruno Haible  <bruno@clisp.org>
33401         sh-quote tests: Make tests stricter.
33402         * tests/test-sh-quote.c (check_one): Check the return value of
33403         shell_quote_copy.
33404         (main): Check a string with a CR character. Check a string that
33405         contains UCHAR_MAX.
33407 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
33409         warnings.m4: provide a means to specify the program to compile.
33410         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
33411         (gl_WARN_ADD): here.
33412         Use gl_AS_VAR_APPEND.
33413         Support an argument to specify the program to compile.
33414         (gl_WARN_ADD): Accept an argument to specify the program to compile.
33415         AC_SUBST the WARN_CFLAGS when they are used.
33416         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
33417         leave this to gl_WARN_ADD.
33419 2012-05-08  Eric Blake  <eblake@redhat.com>
33421         doc: recommendations on gettext version
33422         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
33423         choice between versions.
33424         * DEPENDENCIES (gettext): Cover both approaches.
33426 2012-05-08  Jim Meyering  <meyering@redhat.com>
33428         init.sh: explain why EXEEXT support uses aliases rather than functions
33429         * tests/init.sh: Add a comment.
33431         init.sh: don't let bash aliases interfere with tests
33432         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
33433         is bash.  This avoids problems for those who alias standard commands to
33434         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
33435         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
33437 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33439         stdint: be more consistent with glibc, SunOS libc
33440         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
33441         (gl_int_fast16_t, gl_uint_fast16_t)
33442         (gl_int_fast32_t, gl_uint_fast32_t)
33443         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
33444         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
33445         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
33446         Be consistent with glibc by default, and with SunOS 5.10 and later
33447         if __sun is defined.  This lessens the likelihood of clashes if
33448         code compiled for older hosts is combined with code compiled for
33449         newer ones.  Problem reported by Niels Möller in
33450         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
33452 2012-05-07  Eric Blake  <eblake@redhat.com>
33454         isatty: relax license to LGPLv2+
33455         * modules/isatty (License): Relax license.
33457 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33459         stat-size: comment fix
33460         * lib/stat-size.h: Remove obsolete comment about indenting.
33462 2012-05-06  Bruno Haible  <bruno@clisp.org>
33464         Tests for module 'sh-quote'.
33465         * modules/sh-quote-tests: New file.
33466         * tests/test-sh-quote.c: New file.
33468 2012-05-06  Bruno Haible  <bruno@clisp.org>
33470         sh-quote: Improve shell_quote_argv's signature.
33471         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
33472         * lib/sh-quote.c (shell_quote_argv): Likewise.
33474 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33476         stdint: document issues with int_fast8_t etc.
33477         * doc/posix-headers/stdint.texi (stdint.h): Say that other
33478         stdint.h substitutes may define these types differently.  See
33479         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
33481 2012-05-05  Bruno Haible  <bruno@clisp.org>
33483         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
33484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
33485         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
33486         or 'guessing no (mishandles large arguments)'.
33488 2012-05-05  Bruno Haible  <bruno@clisp.org>
33490         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
33491         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
33492         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
33493         set gl_cv_func_link_follows_symlink to "guessing no".
33495 2012-05-05  Bruno Haible  <bruno@clisp.org>
33497         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
33498         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
33499         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
33500         "guessing no".
33501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
33503 2012-05-05  Bruno Haible  <bruno@clisp.org>
33505         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
33506         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
33507         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
33508         set gl_cv_struct_dirent_d_ino to "guessing yes".
33510 2012-05-05  Bruno Haible  <bruno@clisp.org>
33512         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
33513         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
33514         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
33515         "guessing yes".
33517 2012-05-05  Bruno Haible  <bruno@clisp.org>
33519         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
33520         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
33521         compiling to a glibc system, set gl_cv_func_signbit and
33522         gl_cv_func_signbit_gcc to "guessing yes".
33524 2012-05-05  Bruno Haible  <bruno@clisp.org>
33526         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
33527         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
33528         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
33529         to "guessing yes".
33530         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
33531         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
33533 2012-05-05  Bruno Haible  <bruno@clisp.org>
33535         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
33536         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
33537         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
33538         gl_cv_func_realpath_works to "guessing yes".
33540 2012-05-05  Bruno Haible  <bruno@clisp.org>
33542         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
33543         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
33544         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
33546 2012-05-04  Bruno Haible  <bruno@clisp.org>
33548         Tweak last commit.
33549         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
33550         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33552 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
33554         unistd_h: make it easier to avoid sys_types_h
33555         This is useful for Emacs, which has its own method of porting to
33556         Windows, and which therefore does not need the sys_types_h module.
33557         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
33558         code moved here from gl_SYS_TYPES_H.
33559         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
33560         using the code directly.
33561         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
33562         gl_SYS_TYPES_H.
33563         * modules/sys_types (Files):
33564         * modules/unistd (Files): Add m4/off_t.m4.
33566 2012-05-03  Bruno Haible  <bruno@clisp.org>
33568         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
33569         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
33570         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
33571         "guessing yes" or "guessing no".
33572         (gl_FUNC_LSTAT): Update.
33573         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
33574         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
33575         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
33577 2012-05-03  Bruno Haible  <bruno@clisp.org>
33579         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
33580         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
33581         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
33582         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
33583         cross-compiling, choose the first alternative on glibc systems.
33584         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
33586 2012-05-03  Bruno Haible  <bruno@clisp.org>
33588         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
33589         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
33590         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
33592 2012-05-03  Bruno Haible  <bruno@clisp.org>
33594         chown: Avoid "guessing no" when cross-compiling to glibc systems.
33595         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
33597 2012-05-03  Bruno Haible  <bruno@clisp.org>
33599         Avoid "guessing no" guesses when cross-compiling to glibc systems.
33600         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
33601         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
33602         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
33603         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
33604         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
33605         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
33606         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
33607         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
33608         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
33609         compiling to glibc systems, set gl_cv_func_chown_slash_works,
33610         gl_cv_func_chown_ctime_works to "guessing yes".
33611         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
33612         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
33613         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
33614         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
33615         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
33616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
33617         compiling to glibc systems, set gl_cv_func_open_directory_works to
33618         "guessing yes".
33619         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
33620         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
33621         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
33622         "guessing yes".
33623         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
33624         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
33625         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
33626         compiling to glibc systems, set gl_cv_func_floorf_ieee to
33627         "guessing yes".
33628         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
33629         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
33630         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
33631         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
33632         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
33633         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
33634         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
33635         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
33636         "guessing yes".
33637         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
33638         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
33639         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
33640         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
33641         "guessing yes".
33642         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
33643         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
33644         "guessing yes".
33645         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
33646         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
33647         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
33648         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
33649         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
33650         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
33651         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
33652         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
33653         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
33654         compiling to glibc systems, set gl_cv_func_log10f_ieee to
33655         "guessing yes".
33656         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
33657         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
33658         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
33659         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
33660         "guessing yes".
33661         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
33662         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
33663         "guessing yes".
33664         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
33665         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
33666         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
33667         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
33668         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
33669         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
33670         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
33671         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
33672         compiling to glibc systems, set gl_cv_func_mkfifo_works to
33673         "guessing yes".
33674         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
33675         compiling to glibc systems, set gl_cv_func_mknod_works to
33676         "guessing yes".
33677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
33678         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
33679         "guessing yes".
33680         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
33681         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
33682         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
33683         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
33684         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
33685         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
33686         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
33687         compiling to glibc systems, set gl_cv_func_svid_putenv to
33688         "guessing yes".
33689         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
33690         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
33691         "guessing yes".
33692         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
33693         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
33694         "guessing yes".
33695         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
33696         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
33697         to "guessing yes".
33698         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
33699         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
33700         to "guessing yes".
33701         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
33702         compiling to glibc systems, set gl_cv_func_rmdir_works to
33703         "guessing yes".
33704         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
33705         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
33706         gl_cv_func_unlink_parent_fails to "guessing yes".
33707         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
33708         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
33709         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
33710         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
33711         gl_cv_func_rename_dest_works to "guessing yes".
33712         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
33713         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
33714         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
33715         compiling to glibc systems, set gl_cv_func_roundf_ieee to
33716         "guessing yes".
33717         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
33718         compiling to glibc systems, set gl_cv_func_roundl_ieee to
33719         "guessing yes".
33720         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
33721         compiling to glibc systems, set gl_cv_func_setenv_works to
33722         "guessing yes".
33723         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
33724         compiling to glibc systems, set gl_cv_func_unsetenv_works to
33725         "guessing yes".
33726         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
33727         compiling to glibc systems, set gl_cv_func_sleep_works to
33728         "guessing yes".
33729         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
33730         compiling to glibc systems, set gl_cv_func_stat_file_slash to
33731         "guessing yes".
33732         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
33733         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
33734         "guessing yes".
33735         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
33736         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
33737         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
33738         compiling to glibc systems, set gl_cv_func_truncf_ieee to
33739         "guessing yes".
33740         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
33741         compiling to glibc systems, set gl_cv_func_truncl_ieee to
33742         "guessing yes".
33743         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
33744         compiling to glibc systems, set gl_cv_func_usleep_works to
33745         "guessing yes".
33746         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
33747         compiling to glibc systems, set gl_cv_func_futimesat_works to
33748         "guessing yes".
33750 2012-05-03  Bruno Haible  <bruno@clisp.org>
33752         Say "guessing yes" or "guessing no" when cross-compiling.
33753         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
33754         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
33755         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
33756         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
33757         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
33758         am_cv_func_working_getline to "guessing yes" or "guessing no".
33759         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
33760         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
33761         (gl_FUNC_MEMMEM): When cross-compiling, set
33762         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
33763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
33764         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
33765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
33766         set gl_cv_func_strcasestr_works_always to "guessing yes" or
33767         "guessing no".
33768         (gl_FUNC_STRCASESTR): When cross-compiling, set
33769         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
33770         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
33771         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
33772         (gl_FUNC_STRSTR): When cross-compiling, set
33773         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
33774         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
33775         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
33776         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
33777         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
33779 2012-05-01  Bruno Haible  <bruno@clisp.org>
33781         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
33782         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
33783         * build-aux/reloc-ldflags: Likewise.
33784         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
33786 2012-05-01  Bruno Haible  <bruno@clisp.org>
33788         gnulib-tool: Remove transitional code.
33789         * gnulib-tool: Don't warn about --import with 0 arguments any more.
33790         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33792 2012-05-01  Bruno Haible  <bruno@clisp.org>
33794         getcwd: Fix misindentation.
33795         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
33797 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
33799         exclude: process exclude and include directives in order
33800         This restores the pre-2009 behavior, and is part of a fix of a
33801         grep bug reported by Quentin Arce in
33802         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
33803         * lib/exclude.c (struct exclude): Remove 'tail' member.
33804         (new_exclude_segment): Prepend the new segment instead of appending.
33805         Return void, since that's now more convenient.
33806         (file_pattern_matches): Renamed from excluded_file_pattern_p.
33807         (file_name_matches): Renamed from excluded_file_name_p.
33808         (file_pattern_matches, file_name_matches):
33809         Return true if the pattern matches, not if it excludes.
33810         All callers changed.
33811         (excluded_file_name): Process the list in reverse order;
33812         since the list is now reversed this restores the pre-2009 behavior.
33813         (add_exclude): Adjust to new reversed-order list.  Use local var
33814         rather than macro, for clarity.
33815         * tests/test-exclude7.sh: Adjust to corrected behavior.
33817         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
33818         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
33819         it's not possible here.  Handle the case of \ at end of pattern
33820         without dumping core.
33821         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
33823         _Noreturn: future-proof non-GNU and non-MSVC compilers
33824         * build-aux/snippet/_Noreturn.h (_Noreturn):
33825         * m4/gnulib-common.m4 (gl_COMMON_BODY):
33826         Do not define _Noreturn if __STDC_VERSION__ indicates this is
33827         C11 or later.  This is more likely to work with random future C
33828         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
33829         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
33831         exclude: handle wildcards with FNM_EXTMATCH
33832         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
33833         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
33834         comment that "has wildcards" really means "has or may have
33835         wildcards".  Simplify by avoiding the need to call strcspn.
33837 2012-04-29  Bruno Haible  <bruno@clisp.org>
33839         gnulib-tool: Fix list of authors.
33840         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
33842 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
33844         bootstrap: support Automake-NG in $buildreq
33845         * bootstrap (check_versions): Handle automake and aclocal from
33846         Automake-NG specially.  They can be specified as respectively
33847         the "automake-ng" and "aclocal-ng" requirements.
33849 2012-04-25  Eric Blake  <eblake@redhat.com>
33851         bootstrap: only force latest Makefile.in.in for gettext module
33852         * build-aux/bootstrap (with_gettext): Only install latest
33853         Makefile.in.in for projects requesting bleeding edge gettext.
33855 2012-04-22  Bruno Haible  <bruno@clisp.org>
33857         doc: Mention reason for replacement on glibc/Linux systems.
33858         * doc/posix-functions/dprintf.texi: Mention the problem with special
33859         'long double' values.
33860         * doc/posix-functions/fprintf.texi: Likewise.
33861         * doc/posix-functions/printf.texi: Likewise.
33862         * doc/posix-functions/snprintf.texi: Likewise.
33863         * doc/posix-functions/sprintf.texi: Likewise.
33864         * doc/posix-functions/vdprintf.texi: Likewise.
33865         * doc/posix-functions/vfprintf.texi: Likewise.
33866         * doc/posix-functions/vprintf.texi: Likewise.
33867         * doc/posix-functions/vsnprintf.texi: Likewise.
33868         * doc/posix-functions/vsprintf.texi: Likewise.
33869         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
33870         platforms with F_DUPFD_CLOEXEC problems.
33871         * doc/posix-functions/glob.texi: Mention which platforms are affected
33872         by the problem with symbolic links.
33873         * doc/posix-functions/linkat.texi: Mention the problem with
33874         AT_SYMLINK_FOLLOW on Linux.
33876 2012-04-22  Bruno Haible  <bruno@clisp.org>
33878         pwrite: Don't replace on all platforms.
33879         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
33881 2012-04-22  Bruno Haible  <bruno@clisp.org>
33883         rint* tests: Avoid gcc warnings.
33884         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
33885         * tests/test-rintf.c (INFINITY, NAN): Likewise.
33886         * tests/test-rintl.c (INFINITY, NAN): Likewise.
33888 2012-04-21  Bruno Haible  <bruno@clisp.org>
33890         users.txt: Update.
33891         * users.txt: Add freedink, wdiff. Update URLs for projects that have
33892         switched from CVS to git, bzr, or svn.
33894 2012-04-21  Bruno Haible  <bruno@clisp.org>
33896         Large File Support for native Windows platforms.
33898         * m4/largefile.m4 (gl_LARGEFILE): New macro.
33899         * modules/largefile (configure.ac): Require gl_LARGEFILE.
33901         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
33902         type.
33903         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
33904         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
33905         * doc/posix-headers/sys_types.texi: Mention the effect of the
33906         'largefile' module.
33908         * lib/fcntl.in.h: Add comments about off_t.
33909         * modules/fcntl-h (Depends-on): Add sys_types.
33911         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
33912         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
33913         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
33914         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
33915         * modules/unistd (Depends-on): Add sys_types.
33916         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
33918         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
33919         instead of lseek.
33920         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
33921         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
33922         * modules/lseek (Depends-on): Add sys_types.
33924         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
33925         msvc-nothrow.h.
33926         (SetFileSize): New function.
33927         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
33928         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
33929         if Large File Support is requested.
33930         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
33931         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
33933         * lib/stdio.in.h: Add comments about off_t.
33934         * modules/stdio (Depends-on): Add sys_types.
33936         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
33937         instead of ftello.
33938         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
33939         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
33940         (gl_PREREQ_FTELLO): New macro.
33941         * modules/ftello (Depends-on): Add sys_types.
33942         (configure.ac): Incoke gl_PREREQ_FTELLO.
33944         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
33945         instead of fseeko.
33946         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
33947         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
33948         (gl_PREREQ_FSEEKO): New macro.
33949         * modules/fseeko (Depends-on): Add sys_types.
33950         (configure.ac): Invoke gl_PREREQ_FSEEKO.
33952         * lib/sys_stat.in.h: Add comments about off_t.
33953         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
33954         64-bit integer for st_size in 'struct stat'.
33955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
33956         Define _GL_WINDOWS_64_BIT_ST_SIZE.
33957         * modules/sys_stat (Depends-on): Add sys_types.
33958         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
33960         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
33961         instead of stat or _stat.
33963         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
33964         'struct _stati64' instead of fstat and 'struct stat'.
33965         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
33966         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
33968         Reported by Ray Satiro <raysatiro@yahoo.com>.
33970 2012-04-19  Eric Blake  <eblake@redhat.com>
33972         bootstrap: accommodate older libtool
33973         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
33974         Reported by Daniel P. Berrange.
33976 2012-04-19  Jim Meyering  <meyering@redhat.com>
33978         announce-gen: avoid failure due to lack of Digest::SHA1
33979         Even with the preferred Digest::SHA available, this script
33980         would fail when the backup module, Digest::SHA1, was not installed.
33981         * build-aux/announce-gen: Quote the conditional use of "use".
33982         Reported by Reuben Thomas in:
33983         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
33985         bootstrap: don't let a user's CDPATH setting affect this script
33986         When CDPATH is set, cd will sometimes generate output.
33987         When "cd" is run in a subshell whose output matters, that
33988         surprising-to-some output can cause malfunction.
33989         Unsetting CDPATH turns off this shell "feature."
33990         * build-aux/bootstrap (CDPATH): Unset.
33991         Reported by Reuben Thomas in:
33992         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
33993         and inspired by his patch here:
33994         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
33996 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
33997         and Jim Meyering  <meyering@redhat.com>
33999         maint.mk: catch "see @xref{}" and similar
34000         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
34001         prohibit "See also @xref{", "Also see @pxref{", and similar.
34003 2012-04-16  Jim Meyering  <meyering@redhat.com>
34005         bootstrap: really use gnulib's po/Makefile.in.in
34006         * build-aux/bootstrap: Correct the source file name in previous change.
34007         Reported by Akim Demaille.
34009         configmake: correct minor inconsistency in Makefile rule
34010         * modules/configmake (Makefile.am): All other rules like this one
34011         run the final "mv -f ..." in the same backslash-continued command
34012         as the one that does everything else.  This one put the mv -f ...
34013         command on a separate, non-backslash-continued line.
34014         Make it like the others.
34016         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
34017         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
34018         the one from gettext.  Reported by Akim Demaille.
34020 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
34022         Fix recursion of install-* into po directories.
34023         Bison's install-pdf bug reported by Hans Aberg at
34024         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
34025         * build-aux/po/Makefile.in.in (install-dvi, install-html)
34026         (install-info, install-pdf, install-ps): New targets.
34028 2012-04-16  Jim Meyering  <meyering@redhat.com>
34030         maint: avoid spurious "make sc_maint" failure
34031         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
34032         exempt all *.class file names, for lib/javaversion.class.
34034 2012-04-15  Bruno Haible  <bruno@clisp.org>
34036         lseek: Make configure test independent of environment.
34037         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
34038         Windows, we know that lseek() on pipes is broken; skip the runtime
34039         test.
34041 2012-04-14  Bruno Haible  <bruno@clisp.org>
34043         stat: Bypass buggy override in mingw64.
34044         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
34045         * lib/stat.c (stat) [mingw64]: Define to _stat.
34046         * doc/posix-functions/stat.texi: Mention mingw64 bug.
34048 2012-04-14  Bruno Haible  <bruno@clisp.org>
34050         pathmax: Fix compilation error on MSVC 9.
34051         * modules/pathmax (Depends-on): Add unistd.
34053 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34055         README: document pointer comparison assumption
34056         * README (Portability guidelines): Document assumption about
34057         pointer comparisons, in response to a recent bug-gnulib comment by
34058         Jeffrey Kegler.
34060 2012-04-12  Bruno Haible  <bruno@clisp.org>
34062         Tests for module 'getrusage'.
34063         * modules/getrusage-tests: New file.
34064         * tests/test-getrusage.c: New file.
34066         New module 'getrusage'.
34067         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
34068         warn-on-use.h.
34069         (getrusage): New declaration.
34070         * lib/getrusage.c: New file.
34071         * m4/getrusage.m4: New file.
34072         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
34073         is declared.
34074         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
34075         HAVE_GETRUSAGE.
34076         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
34077         snippet/c++defs, snippet/warn-on-use.
34078         (Makefile.am): Update generation of sys/resource.h. Substitute
34079         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
34080         * modules/getrusage: New file.
34081         * doc/posix-functions/getrusage.texi: Mention the new module.
34083 2012-04-12  Bruno Haible  <bruno@clisp.org>
34085         Tests for module 'sys_resource'.
34086         * modules/sys_resource-tests: New file.
34087         * tests/test-sys_resource.c: New file.
34089         New module 'sys_resource'.
34090         * lib/sys_resource.in.h: New file.
34091         * m4/sys_resource_h.m4: New file.
34092         * modules/sys_resource: New file.
34093         * doc/posix-headers/sys_resource.texi: Mention the new module.
34095 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
34097         ioctl: Fix compilation error on mingw.
34098         * lib/ioctl.c: Include <windows.h>.
34099         Also reported by Ray Satiro <raysatiro@yahoo.com>.
34101 2012-04-04  Jim Meyering  <meyering@redhat.com>
34103         regex: correct #pragma guard expression
34104         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
34105         not 4.3.  Correct its cpp guard expression.
34107 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34109         regex: remove unnecessary type punning
34110         Problem reported by Vladimir Serbinenko in
34111         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
34112         * lib/regex.h (struct re_pattern_buffer): Change the type of
34113         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
34114         Fix comment to match code.
34115         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
34116         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
34117         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
34118         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
34119         (set_regs):
34120         Omit no-longer-necessary casts.
34122 2012-04-03  Bruno Haible  <bruno@clisp.org>
34124         Tests for module 'ilogbl'.
34125         * modules/ilogbl-tests: New file.
34126         * tests/test-ilogbl.c: New file.
34128         New module 'ilogbl'.
34129         * lib/math.in.h (ilogbl): New declaration.
34130         * lib/ilogbl.c: New file.
34131         * m4/ilogbl.m4: New file.
34132         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
34133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
34134         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
34135         Split sed invocation, to avoid the limit of 100 substitutions of
34136         HP-UX 'sed'.
34137         * modules/ilogbl: New file.
34138         * tests/test-math-c++.cc: Check the declaration of ilogbl.
34139         * doc/posix-functions/ilogbl.texi: Mention the new module.
34141 2012-04-03  Bruno Haible  <bruno@clisp.org>
34143         Tests for module 'ilogbf'.
34144         * modules/ilogbf-tests: New file.
34145         * tests/test-ilogbf.c: New file.
34147         New module 'ilogbf'.
34148         * lib/math.in.h (ilogbf): New declaration.
34149         * lib/ilogbf.c: New file.
34150         * m4/ilogbf.m4: New file.
34151         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
34152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
34153         REPLACE_ILOGBF.
34154         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
34155         REPLACE_ILOGBF.
34156         * modules/ilogbf: New file.
34157         * tests/test-math-c++.cc: Check the declaration of ilogbf.
34158         * doc/posix-functions/ilogbf.texi: Mention the new module.
34160 2012-04-03  Bruno Haible  <bruno@clisp.org>
34162         Tests for module 'ilogb'.
34163         * modules/ilogb-tests: New file.
34164         * tests/test-ilogb.c: New file.
34165         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
34166         tests/test-logb-ieee.h.
34168         New module 'ilogb'.
34169         * lib/math.in.h (ilogb): New declaration.
34170         * lib/ilogb.c: New file.
34171         * m4/ilogb.m4: New file.
34172         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
34173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
34174         REPLACE_ILOGB.
34175         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
34176         REPLACE_ILOGB.
34177         * modules/ilogb: New file.
34178         * tests/test-math-c++.cc: Check the declaration of ilogb.
34179         * doc/posix-functions/ilogb.texi: Mention the new module.
34181 2012-04-03  Bruno Haible  <bruno@clisp.org>
34183         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
34184         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
34185         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
34186         (main): Check their values.
34187         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
34188         problem.
34190 2012-04-03  Bruno Haible  <bruno@clisp.org>
34192         Tests for module 'logbl-ieee'.
34193         * modules/logbl-ieee-tests: New file.
34194         * tests/test-logbl-ieee.c: New file.
34196         New module 'logbl-ieee'.
34197         * modules/logbl-ieee: New file.
34199         Tests for module 'logb-ieee'.
34200         * modules/logb-ieee-tests: New file.
34201         * tests/test-logb-ieee.c: New file.
34203         New module 'logb-ieee'.
34204         * modules/logb-ieee: New file.
34206         Tests for module 'logbf-ieee'.
34207         * modules/logbf-ieee-tests: New file.
34208         * tests/test-logbf-ieee.c: New file.
34209         * tests/test-logb-ieee.h: New file.
34211         New module 'logbf-ieee'.
34212         * modules/logbf-ieee: New file.
34214 2012-04-03  Bruno Haible  <bruno@clisp.org>
34216         Tests for module 'logbl'.
34217         * modules/logbl-tests: New file.
34218         * tests/test-logbl.c: New file.
34220         New module 'logbl'.
34221         * lib/math.in.h (logbl): New declaration.
34222         * lib/logbl.c: New file.
34223         * m4/logbl.m4: New file.
34224         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
34225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
34226         REPLACE_LOGBL.
34227         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
34228         REPLACE_LOGBL.
34229         * modules/logbl: New file.
34230         * tests/test-math-c++.cc: Check the declaration of logbl.
34231         * doc/posix-functions/logbl.texi: Mention the new module.
34233 2012-04-02  Bruno Haible  <bruno@clisp.org>
34235         Tests for module 'logbf'.
34236         * modules/logbf-tests: New file.
34237         * tests/test-logbf.c: New file.
34239         New module 'logbf'.
34240         * lib/math.in.h (logbf): New declaration.
34241         * lib/logbf.c: New file.
34242         * m4/logbf.m4: New file.
34243         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
34244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
34245         REPLACE_LOGBF.
34246         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
34247         REPLACE_LOGBF.
34248         * modules/logbf: New file.
34249         * tests/test-math-c++.cc: Check the declaration of logbf.
34250         * doc/posix-functions/logbf.texi: Mention the new module.
34252 2012-04-02  Bruno Haible  <bruno@clisp.org>
34254         logb tests: More tests.
34255         * tests/test-logb.h: New file, based on tests/test-logb.c and
34256         tests/test-frexp.h.
34257         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
34258         (main): Just invoke test_function.
34259         * modules/logb-tests (Files): Add tests/test-logb.h,
34260         tests/minus-zero.h, tests/randomd.c.
34261         (Makefile.am): Add randomd.c to test_logb_SOURCES.
34263         logb: Provide replacement and workarounds.
34264         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
34265         is 1.
34266         * lib/logb.c: New file.
34267         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
34268         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
34269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
34270         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
34271         * modules/logb (Files): Add lib/logb.c.
34272         (Depends-on): Add isfinite, frexp, isnand.
34273         (configure.ac): Compile the replacement code logb.c if needed.
34274         * tests/test-math-c++.cc: Check the declaration of logb.
34275         * doc/posix-functions/logb.texi: Mention the replacement and the bug
34276         with subnormal numbers.
34278 2012-04-02  Bruno Haible  <bruno@clisp.org>
34280         log10* tests: Speed up.
34281         * tests/test-log10.h (test_function): Reduce amount of random numbers
34282         to test.
34284 2012-04-01  Bruno Haible  <bruno@clisp.org>
34286         logf-ieee: Fix test whether logf works.
34287         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
34289 2012-04-01  Bruno Haible  <bruno@clisp.org>
34291         log10l: Work around log10l-ieee test failure on IRIX 6.5.
34292         * lib/log10l.c: Include <float.h>
34293         (log10l): On IRIX, normalize the +Infinity value.
34294         * modules/log10l (Depends-on): Add 'float'.
34295         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
34296         +Infinity.
34298         log10f-ieee: Work around test failure on NetBSD 5.1.
34299         * m4/log10f-ieee.m4: New file.
34300         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
34301         test whether log10f works with a negative argument. Replace it if not.
34302         * lib/log10f.c (log10f): For negative arguments, return NaN.
34303         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
34304         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
34305         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
34307         log10f-ieee: Work around test failure on Solaris 9.
34308         * modules/log10f-ieee (Depends-on): Add log10-ieee.
34309         (configure.ac): Require gl_FUNC_LOG10F.
34311         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
34312         * m4/log10-ieee.m4: New file.
34313         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
34314         whether log10 works with a negative argument. Replace it if not.
34315         * lib/log10.c (log10): For negative arguments, return NaN.
34316         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
34317         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
34318         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
34320         Tests for module 'log10l-ieee'.
34321         * modules/log10l-ieee-tests: New file.
34322         * tests/test-log10l-ieee.c: New file.
34324         New module 'log10l-ieee'.
34325         * modules/log10l-ieee: New file.
34327         Tests for module 'log10-ieee'.
34328         * modules/log10-ieee-tests: New file.
34329         * tests/test-log10-ieee.c: New file.
34331         New module 'log10-ieee'.
34332         * modules/log10-ieee: New file.
34334         Tests for module 'log10f-ieee'.
34335         * modules/log10f-ieee-tests: New file.
34336         * tests/test-log10f-ieee.c: New file.
34337         * tests/test-log10-ieee.h: New file.
34339         New module 'log10f-ieee'.
34340         * modules/log10f-ieee: New file.
34342 2012-04-01  Bruno Haible  <bruno@clisp.org>
34344         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
34345         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
34346         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
34347         workaround.
34348         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
34349         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
34350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
34351         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
34352         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
34353         (Depends-on): Update conditions.
34354         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
34355         IRIX 6.5, OSF/1 5.1 problems.
34357 2012-04-01  Bruno Haible  <bruno@clisp.org>
34359         log10f: Work around OSF/1 5.1 bug.
34360         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
34361         * lib/log10f.c (log10f): If logf exists, use it and provide just the
34362         workaround.
34363         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
34364         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
34365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
34366         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
34367         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
34368         (Depends-on): Update conditions.
34369         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
34371 2012-04-01  Bruno Haible  <bruno@clisp.org>
34373         log10: Work around OSF/1 5.1 bug.
34374         * lib/math.in.h (log10): New declaration.
34375         * lib/log10.c: New file.
34376         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
34377         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
34378         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
34379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
34380         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
34381         * modules/log10 (Files): Add lib/log10.c.
34382         (Depends-on): Add math.
34383         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
34384         * tests/test-math-c++.cc: Check the declaration of log10.
34385         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
34387 2012-03-31  Bruno Haible  <bruno@clisp.org>
34389         log10l tests: More tests.
34390         * modules/log10l-tests (Files): Add tests/test-log10l.h,
34391         tests/minus-zero.h, tests/randoml.c.
34392         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
34393         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
34394         (main): Invoke test_function.
34396         log10f tests: More tests.
34397         * modules/log10f-tests (Files): Add tests/test-log10.h,
34398         tests/minus-zero.h, tests/randomf.c.
34399         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
34400         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
34401         (main): Invoke test_function.
34403         log10 tests: More tests.
34404         * tests/test-log10.h: New file.
34405         * modules/log10-tests (Files): Add tests/test-log10.h,
34406         tests/minus-zero.h, tests/randomd.c.
34407         (Makefile.am): Add randomd.c to test_log10_SOURCES.
34408         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
34409         (main): Invoke test_function.
34411 2012-03-31  Simon Josefsson  <simon@josefsson.org>
34413         fflush: Fix syntax error.
34414         * lib/fflush.c: Include unused-parameter.h, needed for
34415         _GL_UNUSED_PARAMETER.
34416         * modules/fflush (Depends-on): Add snippet/unused-parameter.
34418 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34420         regex: pacify GCC when compiling GRUB
34421         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
34422         a diagnostic.  Reported by Vladimir Serbinenko in
34423         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
34425 2012-03-29  Eric Blake  <eblake@redhat.com>
34427         stdio: don't assume gets any more
34428         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
34429         support.
34430         * modules/stdio (Makefile.am): Likewise.
34431         * lib/stdio-read.c (gets): Likewise.
34432         * tests/test-stdio-c++.cc: Likewise.
34433         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
34434         * lib/stdio.in.h (gets): Make warning occur in more places.
34435         * doc/posix-functions/gets.texi (gets): Update documentation.
34436         Reported by Christer Solskogen.
34438         maint.mk: fix syntax checks without exclusions
34439         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
34440         Reported by Daniel P. Berrange.
34442         strerror_r: avoid compiler warning
34443         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
34444         level.
34446         fflush: avoid compiler warning
34447         * lib/fflush.c (update_fpos_cache): Mark variables that are
34448         potentially unused.
34450 2012-03-25  Bruno Haible  <bruno@clisp.org>
34452         Tests for module 'localeconv'.
34453         * modules/localeconv-tests: New file.
34454         * tests/test-localeconv.c: New file.
34456         New module 'localeconv'.
34457         * lib/locale.in.h (localeconv): New declaration.
34458         * lib/localeconv.c: New file.
34459         * m4/localeconv.m4: New file.
34460         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
34461         REPLACE_LOCALECONV.
34462         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
34463         REPLACE_LOCALECONV.
34464         * modules/localeconv: New file.
34465         * modules/nl_langinfo (Depends-on): Add localeconv.
34466         * modules/human (Depends-on): Likewise.
34467         * doc/posix-functions/localeconv.texi: Mention the new module.
34469 2012-03-25  Bruno Haible  <bruno@clisp.org>
34471         locale: Provide a complete 'struct lconv'.
34472         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
34473         'struct lconv' does not contain int_p_cs_precedes.
34474         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
34475         * doc/posix-headers/locale.texi: Update.
34477         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
34478         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
34479         * doc/posix-headers/locale.texi: Update.
34481         locale: Provide a working 'struct lconv'.
34482         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
34483         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
34484         'struct lconv' does not even contain decimal_point.
34485         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
34486         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
34487         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
34488         * doc/posix-headers/locale.texi: Mention the problems with
34489         'struct lconv'.
34490         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
34492 2012-03-24  Bruno Haible  <bruno@clisp.org>
34494         Enable common subexpression optimization in GCC.
34495         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
34496         macros.
34497         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
34498         GCC attribute 'const'.
34499         (uc_locale_language): Declare with GCC attribute 'pure'.
34500         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
34501         with GCC attribute 'const'.
34502         * lib/unictype.in.h (uc_is_general_category_withtable,
34503         uc_combining_class, uc_combining_class_name,
34504         uc_combining_class_long_name, uc_bidi_class_name,
34505         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
34506         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
34507         uc_decimal_value, uc_digit_value, uc_numeric_value,
34508         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
34509         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
34510         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
34511         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
34512         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
34513         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
34514         Declare with GCC attribute 'const'.
34515         (uc_general_category_name, uc_general_category_long_name,
34516         uc_general_category_byname, uc_general_category,
34517         uc_is_general_category, uc_combining_class_byname,
34518         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
34519         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
34520         Declare with GCC attribute 'pure'.
34521         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
34522         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
34523         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
34524         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
34525         with GCC attribute 'pure'.
34526         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
34527         'const'.
34528         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
34529         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
34530         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
34531         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
34532         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
34533         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
34534         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
34535         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
34536         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
34537         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
34538         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
34539         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
34540         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
34541         GCC attribute 'pure'.
34542         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
34543         'const'.
34544         * lib/uniwidth.in.h (uc_width): Simplify declaration.
34545         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
34546         u32_strwidth): Declare with GCC attribute 'pure'.
34548         Enable common subexpression optimization in GCC.
34549         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
34550         (alphasort): Declare with GCC attribute 'pure'.
34551         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
34552         (atoll): Declare with GCC attribute 'pure'.
34553         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34554         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34555         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
34556         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
34557         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
34558         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
34559         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
34561 2012-03-24  Bruno Haible  <bruno@clisp.org>
34563         gnulib-tool: Avoid unintended error output from 'cmp'.
34564         * gnulib-tool (func_add_file, func_update_file, func_import): Use
34565         "cmp -s", not "cmp > /dev/null".
34567 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
34569         gnulib-tool: fix imprecise comments w.r.t. an automake bug
34571         It's not just Automake versions < 1.9b that creates an empty
34572         pkgdatadir at installation time if pkgdata_DATA is specified
34573         to empty; modern automake versions do this as well, at least
34574         until automake 1.11.4 (not yet released at the moment of writing,
34575         but soon to appear).  That behaviour was generally considered a
34576         feature rather than a bug, at least until this discussion:
34577         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
34579         See also automake bugs #10997 and #11030.
34581         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
34582         reference to relevant automake bug numbers.
34583         (func_emit_tests_Makefile_am): Likewise.
34585 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
34587         announce-gen: use Digest::SHA when possible
34588         * build-aux/announce-gen: Use Digest::SHA when possible, falling
34589         back to Digest::SHA1 if necessary.
34591 2012-03-20  Jim Meyering  <meyering@redhat.com>
34593         tests: avoid gcc warnings about argv vs. const initializers
34594         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
34595         warnings about discarding 'const' qualifier from pointer target type.
34596         * tests/test-posix_spawn2.c (main): Likewise.
34598 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
34600         README-release: simplify slightly
34601         * top/README-release: Run "git checkout master" only once.
34603 2012-03-15  Mark Wielaard  <mark@klomp.org>
34605         git-merge-changelog: add specific example on how to use with hg.
34606         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
34608 2012-03-18  Mark Wielaard  <mark@klomp.org>
34610         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
34612 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
34614         git-version-gen: don't let "prefix" envvar cause trouble
34615         * build-aux/git-version-gen (prefix): Initialize properly,
34616         so as not to use a value specified via the environment.
34617         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
34619 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
34621         regex: diagnose too-large repeat counts in EREs
34622         Previously, the code did not diagnose the too-large repeat count
34623         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
34624         as if it were 'b\{1000000000}', which is unexpected.
34625         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
34626         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
34627         is a reasonable one for this problem.  Another option would be to
34628         create a new REG_OVERFLOW error for repeat counts that are too large.
34629         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
34630         count is too large, so that the caller can distinguish the two cases.
34631         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
34632         "Too large" return code, and that repeat counts are one example of this.
34634 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
34636         doc: some glibc x32 integer width issues
34637         * doc/posix-headers/sys_types.texi (sys/types.h):
34638         * doc/posix-headers/time.texi (time.h):
34639         Mention that glibc x32 does not conform to POSIX in a couple of
34640         areas related to integer widths.
34642 2012-03-15  Bruno Haible  <bruno@clisp.org>
34644         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
34645         * lib/fma.c (VOLATILE): New macro.
34646         (FUNC): Use it to work around a GCC compiler bug.
34648 2012-03-13  Bruno Haible  <bruno@clisp.org>
34650         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34651         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
34652         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
34653         REPLACE_HYPOTL to 1.
34654         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
34656 2012-03-13  Bruno Haible  <bruno@clisp.org>
34658         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34659         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
34660         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
34661         REPLACE_REMAINDERL to 1.
34662         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
34663         bug.
34665 2012-03-13  Bruno Haible  <bruno@clisp.org>
34667         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34668         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
34669         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
34670         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
34671         too big rounding errors.
34672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
34673         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
34674         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
34675         (Depends-on): Update conditions.
34676         * tests/test-sqrtl.c (my_ldexpl): New function.
34677         (main): Add test of a particular value.
34678         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
34680 2012-03-13  Pádraig Brady  <P@draigBrady.com>
34682         doc: Update timer_* platform portability notes.
34683         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
34684         that always return ENOSYS.
34685         * doc/posix-functions/timer_delete.texi: Likewise.
34686         * doc/posix-functions/timer_gettime.texi: Likewise.
34687         * doc/posix-functions/timer_settime.texi: Likewise.
34689 2012-03-13  Bruno Haible  <bruno@clisp.org>
34691         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34692         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
34693         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
34694         REPLACE_CBRTL to 1.
34695         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
34697 2012-03-13  Bruno Haible  <bruno@clisp.org>
34699         remainderl: Avoid compilation error on AIX >= 5.2.
34700         * lib/math.in.h (remainderl): Undefine macro from the system header.
34702 2012-03-13  Bruno Haible  <bruno@clisp.org>
34704         Avoid compilation errors with MSVC option -fp:strict.
34705         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
34706         * lib/cbrtf.c: Likewise.
34707         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
34709 2012-03-12  Bruno Haible  <bruno@clisp.org>
34711         uninorm: Don't crash in out-of-memory conditions.
34712         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
34713         gracefully.
34714         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
34715         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
34717 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
34719         quote: fix syntax-check
34720         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
34721         also exports quote_quoting_options.
34723 2012-03-12  Simon Josefsson  <simon@josefsson.org>
34725         Collapse list of copyright years to ranges.  See
34726         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
34727         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
34728         build-aux/csharpexec.sh.in, build-aux/gnupload,
34729         build-aux/install-reloc, build-aux/javacomp.sh.in,
34730         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
34731         build-aux/move-if-change, build-aux/reloc-ldflags,
34732         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
34734 2012-03-11  Bruno Haible  <bruno@clisp.org>
34736         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
34737         * m4/log2f-ieee.m4: New file.
34738         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
34739         whether log2f works with a minus zero argument. Replace it if not.
34740         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
34741         (Depends-on): Add log2-ieee.
34742         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
34743         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
34745         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
34746         * m4/log2-ieee.m4: New file.
34747         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
34748         whether log2 works with a minus zero argument. Replace it if not.
34749         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
34750         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
34751         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
34753         Tests for module 'log2l-ieee'.
34754         * modules/log2l-ieee-tests: New file.
34755         * tests/test-log2l-ieee.c: New file.
34757         New module 'log2l-ieee'.
34758         * modules/log2l-ieee: New file.
34760         Tests for module 'log2-ieee'.
34761         * modules/log2-ieee-tests: New file.
34762         * tests/test-log2-ieee.c: New file.
34764         New module 'log2-ieee'.
34765         * modules/log2-ieee: New file.
34767         Tests for module 'log2f-ieee'.
34768         * modules/log2f-ieee-tests: New file.
34769         * tests/test-log2f-ieee.c: New file.
34770         * tests/test-log2-ieee.h: New file.
34772         New module 'log2f-ieee'.
34773         * modules/log2f-ieee: New file.
34775 2012-03-11  Bruno Haible  <bruno@clisp.org>
34777         Tests for module 'log2l'.
34778         * modules/log2l-tests: New file.
34779         * tests/test-log2l.c: New file.
34781         New module 'log2l'.
34782         * lib/math.in.h (log2l): New declaration.
34783         * lib/log2l.c: New file.
34784         * m4/log2l.m4: New file.
34785         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
34786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
34787         REPLACE_LOG2L.
34788         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
34789         REPLACE_LOG2L.
34790         * modules/log2l: New file.
34791         * tests/test-math-c++.cc: Check the declaration of log2l.
34792         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
34793         and OSF/1 problems.
34795 2012-03-11  Bruno Haible  <bruno@clisp.org>
34797         Tests for module 'log2f'.
34798         * modules/log2f-tests: New file.
34799         * tests/test-log2f.c: New file.
34801         New module 'log2f'.
34802         * lib/math.in.h (log2f): New declaration.
34803         * lib/log2f.c: New file.
34804         * m4/log2f.m4: New file.
34805         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
34806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
34807         REPLACE_LOG2F.
34808         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
34809         REPLACE_LOG2F.
34810         * modules/log2f: New file.
34811         * tests/test-math-c++.cc: Check the declaration of log2f.
34812         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
34813         and OSF/1 and Cygwin problems.
34815 2012-03-11  Bruno Haible  <bruno@clisp.org>
34817         Tests for module 'log2'.
34818         * modules/log2-tests: New file.
34819         * tests/test-log2.c: New file.
34820         * tests/test-log2.h: New file.
34822         New module 'log2'.
34823         * lib/math.in.h (log2): New declaration.
34824         * lib/log2.c: New file.
34825         * m4/log2.m4: New file.
34826         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
34827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
34828         REPLACE_LOG2.
34829         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
34830         REPLACE_LOG2.
34831         * modules/log2: New file.
34832         * tests/test-math-c++.cc: Check the declaration of log2.
34833         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
34834         and OSF/1 and Cygwin problems.
34836 2012-03-11  Bruno Haible  <bruno@clisp.org>
34838         exp2* tests: More tests.
34839         * tests/test-exp2.h (test_function): Test all integral arguments that
34840         don't need to overflow or denormalized numbers.
34841         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
34842         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
34843         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
34845 2012-03-10  Bruno Haible  <bruno@clisp.org>
34847         log1pl-ieee: Work around test failure on AIX 7.1.
34848         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
34850         log1pl-ieee: Work around test failure on IRIX 6.5.
34851         * m4/log1pl-ieee.m4: New file.
34852         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
34853         test whether log1pl works with a minus zero argument. Replace it if
34854         not.
34855         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
34856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
34857         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
34858         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
34859         (Depends-on): Update conditions.
34860         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
34861         m4/signbit.m4.
34862         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
34863         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
34865         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
34866         * m4/log1pf-ieee.m4: New file.
34867         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
34868         test whether log1pf works with a minus zero argument. Replace it if
34869         not.
34870         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
34871         m4/signbit.m4.
34872         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
34873         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
34875         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
34876         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
34877         (configure.ac): Require gl_FUNC_LOG1PF.
34879         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
34880         * m4/log1p-ieee.m4: New file.
34881         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
34882         whether log1p works with a minus zero argument. Replace it if not.
34883         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
34884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
34885         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
34886         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
34887         (Depends-on): Update conditions.
34888         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
34889         m4/signbit.m4.
34890         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
34891         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
34893         Tests for module 'log1pl-ieee'.
34894         * modules/log1pl-ieee-tests: New file.
34895         * tests/test-log1pl-ieee.c: New file.
34897         New module 'log1pl-ieee'.
34898         * modules/log1pl-ieee: New file.
34900         Tests for module 'log1p-ieee'.
34901         * modules/log1p-ieee-tests: New file.
34902         * tests/test-log1p-ieee.c: New file.
34904         New module 'log1p-ieee'.
34905         * modules/log1p-ieee: New file.
34907         Tests for module 'log1pf-ieee'.
34908         * modules/log1pf-ieee-tests: New file.
34909         * tests/test-log1pf-ieee.c: New file.
34910         * tests/test-log1p-ieee.h: New file.
34912         New module 'log1pf-ieee'.
34913         * modules/log1pf-ieee: New file.
34915 2012-03-10  Bruno Haible  <bruno@clisp.org>
34917         Tests for module 'log1pl'.
34918         * modules/log1pl-tests: New file.
34919         * tests/test-log1pl.c: New file.
34921         New module 'log1pl'.
34922         * lib/math.in.h (log1pl): New declaration.
34923         * lib/log1pl.c: New file.
34924         * m4/log1pl.m4: New file.
34925         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
34926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
34927         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
34928         * modules/log1pl: New file.
34929         * tests/test-math-c++.cc: Check the declaration of log1pl.
34930         * doc/posix-functions/log1pl.texi: Mention the new module.
34932 2012-03-10  Bruno Haible  <bruno@clisp.org>
34934         Tests for module 'log1pf'.
34935         * modules/log1pf-tests: New file.
34936         * tests/test-log1pf.c: New file.
34938         New module 'log1pf'.
34939         * lib/math.in.h (log1pf): New declaration.
34940         * lib/log1pf.c: New file.
34941         * m4/log1pf.m4: New file.
34942         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
34943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
34944         REPLACE_LOG1PF.
34945         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
34946         REPLACE_LOG1PF.
34947         * modules/log1pf: New file.
34948         * tests/test-math-c++.cc: Check the declaration of log1pf.
34949         * doc/posix-functions/log1pf.texi: Mention the new module.
34951 2012-03-10  Bruno Haible  <bruno@clisp.org>
34953         log1p tests: More tests.
34954         * tests/test-log1p.h: New file.
34955         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
34956         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
34957         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
34958         (main): Invoke test_function.
34960         log1p: Provide replacement for Minix and MSVC.
34961         * lib/math.in.h (log1p): New declaration.
34962         * lib/log1p.c: New file.
34963         * m4/log1p.m4: New file.
34964         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
34965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
34966         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
34967         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
34968         (Depends-on): Add math, isnand, log, round.
34969         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
34970         HAVE_LOG1P is 0.
34971         * tests/test-math-c++.cc: Check the declaration of log1p.
34972         * doc/posix-functions/log1p.texi: Mention the replacement.
34974 2012-03-10  Bruno Haible  <bruno@clisp.org>
34976         math tests: Small simplification.
34977         * tests/test-exp.h (test_function): Use the same err_bound for
34978         'double' on platforms with sizeof (long double) == sizeof (double)
34979         than on platforms with sizeof (long double) > sizeof (double).
34980         * tests/test-exp2.h (test_function): Likewise.
34981         * tests/test-expm1.h (test_function): Likewise.
34982         * tests/test-log.h (test_function): Likewise.
34984 2012-03-10  Bruno Haible  <bruno@clisp.org>
34986         Fix some comments.
34987         * lib/expl.c: Fix an ambiguous comment.
34988         * lib/expm1.c: Likewise.
34989         * lib/expm1l.c: Likewise.
34990         * lib/exp2.c: Likewise.
34991         * lib/exp2l.c: Likewise.
34993 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
34995         regex: allow inclusion of <regex.h> before <limits.h>
34996         Without this patch, portable programs had to include <limits.h> before
34997         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
34998         I ran into this problem with a test version of GNU grep on Solaris 8.
34999         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
35000         This is done conditionally so that this change can be merged
35001         back to glibc.
35002         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
35003         using the included regex.
35005         fts: depend on fdopendir
35006         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
35007         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
35008         problem was introduced when fdopendir was split out.
35010 2012-03-10  Bruno Haible  <bruno@clisp.org>
35012         Remove unused variables.
35013         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
35014         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
35016 2012-03-10  Bruno Haible  <bruno@clisp.org>
35018         isnanf-nolibm: Fix last commit.
35019         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
35021         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
35022         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
35024 2012-03-10  Bruno Haible  <bruno@clisp.org>
35026         logf-ieee: Work around test failure on NetBSD 5.1.
35027         * m4/logf-ieee.m4: New file.
35028         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
35029         whether logf works with a negative argument. Replace it if not.
35030         * lib/logf.c (logf): For negative arguments, return NaN.
35031         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
35032         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
35033         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
35035         logf-ieee: Work around test failure on Solaris 9.
35036         * modules/logf-ieee (Depends-on): Add log-ieee.
35037         (configure.ac): Require gl_FUNC_LOGF.
35039         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
35040         * m4/log-ieee.m4: New file.
35041         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
35042         log works with a negative argument. Replace it if not.
35043         * lib/log.c (log): For negative arguments, return NaN.
35044         * modules/log-ieee (Files): Add m4/log-ieee.m4.
35045         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
35046         * doc/posix-functions/log.texi: Mention the log-ieee module.
35048         Tests for module 'logl-ieee'.
35049         * modules/logl-ieee-tests: New file.
35050         * tests/test-logl-ieee.c: New file.
35052         New module 'logl-ieee'.
35053         * modules/logl-ieee: New file.
35055         Tests for module 'log-ieee'.
35056         * modules/log-ieee-tests: New file.
35057         * tests/test-log-ieee.c: New file.
35059         New module 'log-ieee'.
35060         * modules/log-ieee: New file.
35062         Tests for module 'logf-ieee'.
35063         * modules/logf-ieee-tests: New file.
35064         * tests/test-logf-ieee.c: New file.
35065         * tests/test-log-ieee.h: New file.
35067         New module 'logf-ieee'.
35068         * modules/logf-ieee: New file.
35070 2012-03-10  Bruno Haible  <bruno@clisp.org>
35072         log: Fix bug introduced on 2012-03-09.
35073         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
35075 2012-03-10  Pádraig Brady  <P@draigBrady.com>
35077         timer-time: link explicitly with pthreads on glibc
35078         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
35079         to support static linking, when newer glibc is
35080         detected, as that contains pthread emulation of
35081         POSIX timer functions where required.
35082         * modules/timer-time: Depend on threadlib to
35083         pull in the appropriate library to link.
35085 2012-03-10  Bruno Haible  <bruno@clisp.org>
35087         log* tests: More tests.
35088         * tests/test-log.h: New file.
35089         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
35090         (main): Invoke test_function.
35091         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
35092         (main): Invoke test_function.
35093         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
35094         (main): Invoke test_function.
35095         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
35096         tests/randomd.c.
35097         (Makefile.am): Add randomd.c to test_log_SOURCES.
35098         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
35099         tests/randomf.c.
35100         (Makefile.am): Add randomf.c to test_logf_SOURCES.
35101         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
35102         tests/randoml.c.
35103         (Depends-on): Add 'float'.
35104         (Makefile.am): Add randoml.c to test_logl_SOURCES.
35106 2012-03-09  Bruno Haible  <bruno@clisp.org>
35108         logl: Work around OSF/1 5.1 bug.
35109         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
35110         * lib/logl.c (logl): If logl exists, use it and provide just the
35111         workaround.
35112         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
35113         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
35114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
35115         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
35116         * modules/logl (configure.ac): Consider REPLACE_LOGL.
35117         (Depends-on): Update conditions.
35118         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
35120 2012-03-09  Bruno Haible  <bruno@clisp.org>
35122         logf: Work around OSF/1 5.1 bug.
35123         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
35124         * lib/logf.c (logf): If logf exists, use it and provide just the
35125         workaround.
35126         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
35127         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
35128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
35129         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
35130         * modules/logf (configure.ac): Consider REPLACE_LOGF.
35131         (Depends-on): Update conditions.
35132         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
35134 2012-03-09  Bruno Haible  <bruno@clisp.org>
35136         log: Work around OSF/1 5.1 bug.
35137         * lib/math.in.h (log): New declaration.
35138         * lib/log.c: New file.
35139         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
35140         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
35141         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
35142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
35143         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
35144         * modules/log (Files): Add lib/log.c.
35145         (Depends-on): Add math.
35146         (configure.ac): If REPLACE_LOG is 1, compile an override.
35147         * tests/test-math-c++.cc: Check the declaration of log.
35148         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
35150 2012-03-09  Jim Meyering  <meyering@redhat.com>
35152         readtokens.c: adjust wording in a comment
35153         * lib/readtokens.c: Insert omitted "that" in a comment.
35155 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35157         modechange: add notations +40, 00440, etc.
35158         * lib/modechange.c (mode_compile): Support new notations
35159         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
35161 2012-03-08  Bruno Haible  <bruno@clisp.org>
35163         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
35164         * m4/exp2l-ieee.m4: New file.
35165         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
35166         test whether exp2l works with a NaN argument and with a negative
35167         infinity argument. Replace it if not.
35168         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
35169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
35170         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
35171         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
35172         (Depends-on): Update conditions.
35173         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
35174         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
35175         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
35177         Tests for module 'exp2l-ieee'.
35178         * modules/exp2l-ieee-tests: New file.
35179         * tests/test-exp2l-ieee.c: New file.
35181         New module 'exp2l-ieee'.
35182         * modules/exp2l-ieee: New file.
35184         Tests for module 'exp2-ieee'.
35185         * modules/exp2-ieee-tests: New file.
35186         * tests/test-exp2-ieee.c: New file.
35188         New module 'exp2-ieee'.
35189         * modules/exp2-ieee: New file.
35191         Tests for module 'exp2f-ieee'.
35192         * modules/exp2f-ieee-tests: New file.
35193         * tests/test-exp2f-ieee.c: New file.
35194         * tests/test-exp2-ieee.h: New file.
35196         New module 'exp2f-ieee'.
35197         * modules/exp2f-ieee: New file.
35199 2012-03-08  Bruno Haible  <bruno@clisp.org>
35201         Tests for module 'exp2l'.
35202         * modules/exp2l-tests: New file.
35203         * tests/test-exp2l.c: New file.
35205         New module 'exp2l'.
35206         * lib/math.in.h (exp2l): New declaration.
35207         * lib/exp2l.c: New file.
35208         * lib/expl-table.c: New file, extracted from lib/expl.c.
35209         * lib/expl.c (gl_expl_table): New declaration.
35210         (expl): Remove expl_table. Update reference.
35211         * m4/exp2l.m4: New file.
35212         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
35213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
35214         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
35215         * modules/exp2l: New file.
35216         * modules/expl (Files): Add lib/expl-table.c.
35217         (configure.ac): Compile also expl-table.c.
35218         * tests/test-math-c++.cc: Check the declaration of exp2l.
35219         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
35220         problem.
35222 2012-03-08  Bruno Haible  <bruno@clisp.org>
35224         Tests for module 'exp2f'.
35225         * modules/exp2f-tests: New file.
35226         * tests/test-exp2f.c: New file.
35228         New module 'exp2f'.
35229         * lib/math.in.h (exp2f): New declaration.
35230         * lib/exp2f.c: New file.
35231         * m4/exp2f.m4: New file.
35232         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
35233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
35234         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
35235         * modules/exp2f: New file.
35236         * tests/test-math-c++.cc: Check the declaration of exp2f.
35237         * doc/posix-functions/exp2f.texi: Mention the new module and the
35238         IRIX problem.
35240 2012-03-08  Bruno Haible  <bruno@clisp.org>
35242         Tests for module 'exp2'.
35243         * modules/exp2-tests: New file.
35244         * tests/test-exp2.c: New file.
35245         * tests/test-exp2.h: New file.
35247         New module 'exp2'.
35248         * lib/math.in.h (exp2): New declaration.
35249         * lib/exp2.c: New file.
35250         * m4/exp2.m4: New file.
35251         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
35252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
35253         REPLACE_EXP2.
35254         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
35255         REPLACE_EXP2.
35256         * modules/exp2: New file.
35257         * tests/test-math-c++.cc: Check the declaration of exp2.
35258         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
35259         and OpenBSD problems.
35261 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35263         savedir: fix comment typo
35264         * lib/savedir.c (savedirstream): Fix typo in comment.
35266 2012-03-08  Bruno Haible  <bruno@clisp.org>
35268         test-readtokens.c: use const; remove unwarranted cast
35269         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
35271 2012-03-08  Bruno Haible  <bruno@clisp.org>
35273         fmal: Avoid compilation error on AIX.
35274         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
35275         AIX 5.2..7.1.
35277 2012-03-08  Bruno Haible  <bruno@clisp.org>
35279         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
35280         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
35281         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
35282         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
35283         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
35284         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
35285         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
35287 2012-03-08  Bruno Haible  <bruno@clisp.org>
35289         remainderf: Override buggy system function on IRIX 6.5.
35290         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
35291         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
35292         when it exists.
35293         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
35295 2012-03-08  Jim Meyering  <meyering@redhat.com>
35297         test-readtokens.c: avoid const-related compilation warnings
35298         * tests/test-readtokens.c: Avoid const-related compilation warnings.
35300 2012-03-07  Jim Meyering  <meyering@redhat.com>
35301             Bruno Haible  <bruno@clisp.org>
35303         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
35304         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
35305         tests/randomd.c.
35306         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
35307         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
35308         tests/randoml.c.
35309         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
35311 2012-03-07  Bruno Haible  <bruno@clisp.org>
35313         expm1l: Avoid compilation error on AIX.
35314         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
35315         AIX 5.2..7.1.
35317 2012-03-07  Bruno Haible  <bruno@clisp.org>
35319         expm1l: Don't override undeclared system function on IRIX 6.5.
35320         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
35321         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
35322         it exists. Set HAVE_DECL_EXPM1L.
35323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
35324         HAVE_EXPM1L.
35325         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
35326         HAVE_EXPM1L.
35327         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
35329 2012-03-07  Bruno Haible  <bruno@clisp.org>
35331         remainderl: Don't override undeclared system function on IRIX 6.5.
35332         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
35333         HAVE_REMAINDERL.
35334         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
35335         declared when it exists. Set HAVE_DECL_REMAINDERL.
35336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
35337         not HAVE_REMAINDERL.
35338         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
35339         HAVE_REMAINDERL.
35340         * doc/posix-functions/remainderl.texi: Mention missing declaration
35341         problem.
35343 2012-03-07  Bruno Haible  <bruno@clisp.org>
35345         rintf: Don't override undeclared system function on IRIX 6.5.
35346         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
35347         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
35348         exists. Set HAVE_DECL_RINTF.
35349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
35350         HAVE_RINTF.
35351         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
35352         HAVE_RINTF.
35353         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
35355 2012-03-07  Bruno Haible  <bruno@clisp.org>
35357         roundl: Avoid compilation error on AIX.
35358         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
35359         AIX 5.2..7.1.
35361 2012-03-07  Bruno Haible  <bruno@clisp.org>
35363         roundl: Don't override undeclared system function on IRIX 6.5.
35364         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
35365         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
35366         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
35367         * modules/roundl (configure.ac): For replacement code, test
35368         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
35369         (Depends-on): Update conditions.
35370         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
35372 2012-03-07  Bruno Haible  <bruno@clisp.org>
35374         roundf: Don't override undeclared system function on IRIX 6.5.
35375         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
35376         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
35377         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
35378         * modules/roundf (configure.ac): For replacement code, test
35379         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
35380         (Depends-on): Update conditions.
35381         * modules/roundf-ieee (Depends-on): Update conditions.
35382         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
35384 2012-03-07  Bruno Haible  <bruno@clisp.org>
35386         round: Don't override undeclared system function on IRIX 6.5.
35387         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
35388         argument.
35389         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
35390         also when it is not declared. Set HAVE_ROUND. For replacement code,
35391         test HAVE_ROUND, not HAVE_DECL_ROUND.
35392         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
35393         not HAVE_DECL_ROUND.
35394         (Depends-on): Update conditions.
35395         * modules/round-ieee (Depends-on): Update conditions.
35396         * doc/posix-functions/round.texi: Mention the IRIX problem.
35398 2012-03-07  Bruno Haible  <bruno@clisp.org>
35400         copysignf: Don't override undeclared system function on IRIX 6.5.
35401         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
35402         HAVE_COPYSIGNF.
35403         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
35404         declared when it exists. Set HAVE_DECL_COPYSIGNF.
35405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
35406         not HAVE_COPYSIGNF.
35407         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
35408         HAVE_COPYSIGNF.
35409         * doc/posix-functions/copysignf.texi: Mention missing declaration
35410         problem.
35412 2012-03-07  Jim Meyering  <meyering@redhat.com>
35414         readtokens: add tests
35415         * modules/readtokens-tests: New file.
35416         * tests/test-readtokens.c: New file.
35418 2012-03-07  Jim Meyering  <meyering@redhat.com>
35420         quotearg: the module must now include quote.h
35421         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
35422         So must the module.
35423         * modules/quotearg (Files): Add quote.h.
35425 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
35427         readtokens: avoid core dumps with unusual calling patterns
35428         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
35429         * lib/readtokens.c: Include limits.h.
35430         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
35431         (readtoken): Don't cache the delimiters; the cache code was buggy
35432         if !delim && saved_delim, or if the new n_delim differs from the old.
35433         Also, it wasn't thread-safe.
35435 2012-03-07  Bruno Haible  <bruno@clisp.org>
35437         quote: Adhere to common module description layout.
35438         * modules/quote (Makefile.am): Add back empty section.
35440 2012-03-06  Akim Demaille  <demaille@gostai.com>
35442         quote: fuse into quotearg
35443         This patch is made for the benefit of Bison.
35444         quote does not leave the choice of the quoting style to the user.
35445         quoting_style provides poor customizability, yet quoting_options,
35446         which is very rich, is hidden inside quotearg.c.  So in order to
35447         allow quote customization, move its implementation to quotearg.c.
35448         * lib/quote.c: Remove.
35449         * modules/quote: Adjust.
35450         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
35451         warning: provide all the members of literal structs.
35452         (quote_quoting_options): New.
35453         (quote, quote_n): Import implementation from quote.c.
35454         * lib/quote.h: Import the comments from quote.c.
35455         (quote_quoting_options): New.
35457 2012-03-06  Bruno Haible  <bruno@clisp.org>
35459         Tests for module 'expm1l-ieee'.
35460         * modules/expm1l-ieee-tests: New file.
35461         * tests/test-expm1l-ieee.c: New file.
35463         New module 'expm1l-ieee'.
35464         * modules/expm1l-ieee: New file.
35466         Tests for module 'expm1f-ieee'.
35467         * modules/expm1f-ieee-tests: New file.
35468         * tests/test-expm1f-ieee.c: New file.
35470         New module 'expm1f-ieee'.
35471         * modules/expm1f-ieee: New file.
35473         Tests for module 'expm1-ieee'.
35474         * modules/expm1-ieee-tests: New file.
35475         * tests/test-expm1-ieee.c: New file.
35476         * tests/test-expm1-ieee.h: New file.
35478         New module 'expm1-ieee'.
35479         * modules/expm1-ieee: New file.
35480         * m4/expm1-ieee.m4: New file.
35481         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
35482         whether expm1 works with a minus zero argument. Replace it if not.
35483         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
35484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
35485         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
35486         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
35487         (Depends-on): Update conditions.
35488         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
35489         AIX problem.
35491 2012-03-06  Bruno Haible  <bruno@clisp.org>
35493         Work around expm1f bug on IRIX 6.5.
35494         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
35495         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
35496         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
35497         not work.
35498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
35499         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
35500         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
35501         (Depends-on): Update conditions.
35502         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
35504 2012-03-06  Bruno Haible  <bruno@clisp.org>
35506         Tests for module 'expm1l'.
35507         * modules/expm1l-tests: New file.
35508         * tests/test-expm1l.c: New file.
35510         New module 'expm1l'.
35511         * lib/math.in.h (expm1l): New declaration.
35512         * lib/expm1l.c: New file.
35513         * m4/expm1l.m4: New file.
35514         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
35515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
35516         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
35517         * modules/expm1l: New file.
35518         * tests/test-math-c++.cc: Check the declaration of expm1l.
35519         * doc/posix-functions/expm1l.texi: Mention the new module.
35521 2012-03-06  Bruno Haible  <bruno@clisp.org>
35523         Tests for module 'expm1f'.
35524         * modules/expm1f-tests: New file.
35525         * tests/test-expm1f.c: New file.
35527         New module 'expm1f'.
35528         * lib/math.in.h (expm1f): New declaration.
35529         * lib/expm1f.c: New file.
35530         * m4/expm1f.m4: New file.
35531         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
35532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
35533         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
35534         * modules/expm1f: New file.
35535         * tests/test-math-c++.cc: Check the declaration of expm1f.
35536         * doc/posix-functions/expm1f.texi: Mention the new module.
35538 2012-03-06  Bruno Haible  <bruno@clisp.org>
35540         Tests for module 'expm1'.
35541         * modules/expm1-tests: New file.
35542         * tests/test-expm1.c: New file.
35543         * tests/test-expm1.h: New file.
35545         New module 'expm1'.
35546         * lib/math.in.h (expm1): New declaration.
35547         * lib/expm1.c: New file.
35548         * m4/expm1.m4: New file.
35549         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
35550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
35551         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
35552         * modules/expm1: New file.
35553         * tests/test-math-c++.cc: Check the declaration of expm1.
35554         * doc/posix-functions/expm1.texi: Mention the new module.
35556 2012-03-06  Bruno Haible  <bruno@clisp.org>
35558         math: Ensure declarations of math functions.
35559         * modules/acosf (Depends-on): Add 'extensions'.
35560         * modules/asinf (Depends-on): Likewise.
35561         * modules/atan2f (Depends-on): Likewise.
35562         * modules/atanf (Depends-on): Likewise.
35563         * modules/cbrt (Depends-on): Likewise.
35564         * modules/cbrtf (Depends-on): Likewise.
35565         * modules/cbrtl (Depends-on): Likewise.
35566         * modules/copysignf (Depends-on): Likewise.
35567         * modules/copysignl (Depends-on): Likewise.
35568         * modules/cosf (Depends-on): Likewise.
35569         * modules/coshf (Depends-on): Likewise.
35570         * modules/expf (Depends-on): Likewise.
35571         * modules/fabsf (Depends-on): Likewise.
35572         * modules/fabsl (Depends-on): Likewise.
35573         * modules/fmaf (Depends-on): Likewise.
35574         * modules/fmal (Depends-on): Likewise.
35575         * modules/fmodf (Depends-on): Likewise.
35576         * modules/fmodl (Depends-on): Likewise.
35577         * modules/frexpf (Depends-on): Likewise.
35578         * modules/frexpl (Depends-on): Likewise.
35579         * modules/hypot (Depends-on): Likewise.
35580         * modules/hypotf (Depends-on): Likewise.
35581         * modules/hypotl (Depends-on): Likewise.
35582         * modules/ldexpf (Depends-on): Likewise.
35583         * modules/ldexpl (Depends-on): Likewise.
35584         * modules/log10f (Depends-on): Likewise.
35585         * modules/log10l (Depends-on): Likewise.
35586         * modules/log1p (Depends-on): Likewise.
35587         * modules/logb (Depends-on): Likewise.
35588         * modules/logf (Depends-on): Likewise.
35589         * modules/modff (Depends-on): Likewise.
35590         * modules/modfl (Depends-on): Likewise.
35591         * modules/powf (Depends-on): Likewise.
35592         * modules/remainderf (Depends-on): Likewise.
35593         * modules/remainderl (Depends-on): Likewise.
35594         * modules/rintf (Depends-on): Likewise.
35595         * modules/rintl (Depends-on): Likewise.
35596         * modules/sinf (Depends-on): Likewise.
35597         * modules/sinhf (Depends-on): Likewise.
35598         * modules/sqrtf (Depends-on): Likewise.
35599         * modules/tanf (Depends-on): Likewise.
35600         * modules/tanhf (Depends-on): Likewise.
35601         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
35602         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
35603         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
35604         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
35605         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
35606         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
35607         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
35608         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
35609         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
35610         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
35611         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
35612         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
35613         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
35614         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
35615         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
35616         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
35617         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
35618         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
35619         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
35620         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
35621         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
35622         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
35623         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
35624         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
35625         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
35626         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
35627         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
35628         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
35629         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
35630         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
35631         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
35632         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
35633         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
35634         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
35635         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
35636         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
35637         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
35638         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
35639         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
35640         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
35641         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
35643 2012-03-06  Bruno Haible  <bruno@clisp.org>
35645         math: Update module names in warnings.
35646         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35647         tanl): Use specific module name in warn-on-use warning.
35649 2012-03-06  Bruno Haible  <bruno@clisp.org>
35651         expl: Simplify computation.
35652         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
35654 2012-03-05  Bruno Haible  <bruno@clisp.org>
35656         exp* tests: More tests.
35657         * tests/test-exp.h: New file.
35658         * tests/test-exp.c: Include <float.h> and test-exp.h.
35659         (main): Invoke test_function.
35660         * tests/test-expf.c: Include <float.h> and test-exp.h.
35661         (main): Invoke test_function.
35662         * tests/test-expl.c: Include <float.h> and test-exp.h.
35663         (main): Invoke test_function.
35664         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
35665         (Makefile.am): Add randomd.c to test_exp_SOURCES.
35666         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
35667         (Makefile.am): Add randomf.c to test_expf_SOURCES.
35668         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
35669         (Depends-on): Add 'float'.
35670         (Makefile.am): Add randoml.c to test_expl_SOURCES.
35672         expl: Fix precision of computed result.
35673         * lib/expl.c: Completely rewritten.
35674         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
35675         (Maintainer): Add me.
35676         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
35678 2012-03-05  Bruno Haible  <bruno@clisp.org>
35680         cbrt* tests: More tests.
35681         * tests/test-cbrt.h: New file.
35682         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
35683         (main): Invoke test_function.
35684         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
35685         (main): Invoke test_function.
35686         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
35687         (main): Invoke test_function.
35688         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
35689         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
35690         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
35691         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
35692         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
35693         (Depends-on): Add 'float'.
35694         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
35696 2012-03-05  Bruno Haible  <bruno@clisp.org>
35698         hypot* tests: More tests.
35699         * tests/test-hypot.h: New file, partially extracted from
35700         tests/test-hypotl.c.
35701         * tests/test-hypot.c: Include test-hypot.h.
35702         (main): Invoke test_function.
35703         * tests/test-hypotf.c: Include test-hypot.h.
35704         (main): Invoke test_function.
35705         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
35706         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
35707         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
35708         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
35709         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
35710         tests/randomf.c.
35711         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
35712         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
35713         tests/randoml.c.
35714         (Depends-on): Add 'fpucw', 'float'.
35715         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
35717 2012-03-05  Bruno Haible  <bruno@clisp.org>
35719         fpucw: Doc about FreeBSD.
35720         * lib/fpucw.h: Mention FreeBSD in comments.
35722 2012-03-04  Bruno Haible  <bruno@clisp.org>
35724         sqrt* tests: More tests.
35725         * tests/test-sqrt.h: New file.
35726         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
35727         (main): Invoke test_function.
35728         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
35729         (main): Invoke test_function.
35730         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
35731         (main): Invoke test_function.
35732         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
35733         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
35734         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
35735         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
35736         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
35737         (Depends-on): Add 'float'.
35738         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
35740 2012-03-04  Bruno Haible  <bruno@clisp.org>
35742         remainder* tests: More tests.
35743         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
35744         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
35745         (main): Invoke test_function.
35746         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
35747         (main): Invoke test_function.
35748         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
35749         (main): Invoke test_function.
35750         * modules/remainder-tests (Files): Add tests/test-remainder.h,
35751         tests/randomd.c.
35752         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
35753         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
35754         tests/randomf.c.
35755         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
35756         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
35757         tests/randoml.c.
35758         (Depends-on): Add 'float'.
35759         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
35761 2012-03-04  Bruno Haible  <bruno@clisp.org>
35763         remainder, remainderf, remainderl: Fix computation for large quotients.
35764         * lib/remainder.c: Completely rewritten.
35765         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
35766         USE_FLOAT.
35767         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
35768         USE_LONG_DOUBLE.
35769         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
35770         isnand, isinf. Remove round, fma.
35771         * modules/remainderf (Files): Add lib/remainder.c.
35772         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
35773         Remove roundf, fmaf.
35774         * modules/remainderl (Files): Add lib/remainder.c.
35775         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
35776         isinf. Remove roundl, fmal.
35777         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
35778         REMAINDER_LIBM.
35779         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
35780         REMAINDERF_LIBM.
35781         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
35782         REMAINDERL_LIBM.
35784 2012-03-04  Bruno Haible  <bruno@clisp.org>
35786         fmod* tests: More tests.
35787         * tests/test-fmod.h (my_ldexp): New function.
35788         (test_function): Reduce amount of random numbers to test. Add tests
35789         of very large quotients x / y.
35790         * tests/test-fmod.c (MAX_EXP): New macro.
35791         * tests/test-fmodf.c (MAX_EXP): Likewise.
35792         * tests/test-fmodl.c (MAX_EXP): Likewise.
35794 2012-03-04  Bruno Haible  <bruno@clisp.org>
35796         fmod, fmodl: Fix computation for large quotients x / y.
35797         * lib/fmod.c: Completely rewritten.
35798         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
35799         USE_LONG_DOUBLE.
35800         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
35801         isnand. Remove fma.
35802         * modules/fmodl (Files): Add lib/fmod.c.
35803         (Depends-on): Add float, isfinite, signbit, fabsl,
35804         frexpl, ldexpl, isnanl. Remove fma.
35805         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
35806         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
35808 2012-03-03  Bruno Haible  <bruno@clisp.org>
35810         fmod* tests: More tests.
35811         * tests/test-fmod.h: New file.
35812         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
35813         (main): Invoke test_function.
35814         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
35815         (main): Invoke test_function.
35816         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
35817         (main): Invoke test_function.
35818         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
35819         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
35820         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
35821         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
35822         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
35823         (Depends-on): Add 'float'.
35824         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
35826 2012-03-03  Bruno Haible  <bruno@clisp.org>
35828         rint* tests: More tests.
35829         * tests/test-rint.h: New file, partially extracted from
35830         tests/test-rintl.c.
35831         * tests/test-rint.c: Include test-rint.h.
35832         (main): Invoke test_function.
35833         * tests/test-rintf.c: Include test-rint.h.
35834         (main): Invoke test_function.
35835         * tests/test-rintl.c: Include test-rint.h.
35836         (main): Invoke test_function.
35837         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
35838         (Makefile.am): Add randomd.c to test_rint_SOURCES.
35839         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
35840         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
35841         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
35842         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
35844 2012-03-03  Bruno Haible  <bruno@clisp.org>
35846         modf* tests: More tests.
35847         * tests/test-modf.h: New file.
35848         * tests/test-modf.c: Include <float.h> and test-modf.h.
35849         (main): Invoke test_function.
35850         * tests/test-modff.c: Include <float.h> and test-modf.h.
35851         (main): Invoke test_function.
35852         * tests/test-modfl.c: Include <float.h> and test-modf.h.
35853         (main): Invoke test_function.
35854         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
35855         (Makefile.am): Add randomd.c to test_modf_SOURCES.
35856         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
35857         (Makefile.am): Add randomf.c to test_modff_SOURCES.
35858         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
35859         (Depends-on): Add 'float'.
35860         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
35862 2012-03-03  Bruno Haible  <bruno@clisp.org>
35864         fabs* tests: More tests.
35865         * tests/test-fabs.h: New file, partially extracted from
35866         tests/test-fabsl.c.
35867         * tests/test-fabs.c (RANDOM): New macro.
35868         * tests/test-fabsf.c (RANDOM): New macro.
35869         * tests/test-fabsl.c (RANDOM): New macro.
35870         * modules/fabs-tests (Files): Add tests/randomd.c.
35871         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
35872         * modules/fabsf-tests (Files): Add tests/randomf.c.
35873         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
35874         * modules/fabsl-tests (Files): Add tests/randoml.c.
35875         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
35877 2012-03-03  Bruno Haible  <bruno@clisp.org>
35879         ldexp* tests: More tests.
35880         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
35881         * tests/test-ldexp.c (RANDOM): New macro.
35882         * tests/test-ldexpf.c (RANDOM): New macro.
35883         * tests/test-ldexpl.c (RANDOM): New macro.
35884         * modules/ldexp-tests (Files): Add tests/randomd.c.
35885         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
35886         * modules/ldexpf-tests (Files): Add tests/randomf.c.
35887         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
35888         * modules/ldexpl-tests (Files): Add tests/randoml.c.
35889         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
35891 2012-03-03  Bruno Haible  <bruno@clisp.org>
35893         frexp* tests: More tests.
35894         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
35895         * tests/test-frexp.c (RANDOM): New macro.
35896         * tests/test-frexpf.c (RANDOM): New macro.
35897         * tests/test-frexpl.c (RANDOM): New macro.
35898         * modules/frexp-tests (Files): Add tests/randomd.c.
35899         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
35900         * modules/frexpf-tests (Files): Add tests/randomf.c.
35901         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
35902         * modules/frexpl-tests (Files): Add tests/randoml.c.
35903         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
35905 2012-03-03  Bruno Haible  <bruno@clisp.org>
35907         Support for pseudo-random numbers in tests.
35908         * tests/randomf.c: New file.
35909         * tests/randomd.c: New file.
35910         * tests/randoml.c: New file.
35911         * tests/macros.h (randomf, randomd, randoml): New declarations.
35913 2012-03-03  Bruno Haible  <bruno@clisp.org>
35915         frexp* tests: Refactor.
35916         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
35917         * tests/test-frexp.c: Include and use it.
35918         * tests/test-frexpf.c: Likewise.
35919         * tests/test-frexpl.c: Likewise.
35920         * modules/frexp-tests (Files): Add tests/test-frexp.h.
35921         * modules/frexpf-tests (Files): Likewise.
35922         * modules/frexpl-tests (Files): Likewise.
35924 2012-03-02  Jim Meyering  <meyering@redhat.com>
35926         maint: don't specify XZ_OPT=-9ev in dist-related rule
35927         Using xz's -9 option is warranted only if you have a very large
35928         tarball (see xz's documentation for the sizes vs. presets), and
35929         requires 64MiB of memory at decompression time.
35930         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
35931         Automake's default of just "-e" is fine.  Override on a
35932         per-package basis by setting XZ_OPT e.g., in cfg.mk.
35934 2012-03-01  Eric Blake  <eblake@redhat.com>
35936         maint.mk: allow announcement for non-gnulib project
35937         * maint.mk (announcement): Skip gnulib version if not used.
35939 2012-03-01  Jim Meyering  <meyering@redhat.com>
35941         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
35942         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
35943         envvar settings cannot interfere.  Otherwise, setting envvars like
35944         prohibit=foo require=bar, etc. would cause spurious test failures.
35946 2012-03-01  Eric Blake  <eblake@redhat.com>
35948         maint.mk: add per-line exclusions to prohibitions
35949         * maint.mk (_sc_search_regexp): Add $exclude parameter.
35950         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
35951         (sc_const_long_option): Use it.
35953 2012-03-01  Bruno Haible  <bruno@clisp.org>
35955         Tests for module 'expl-ieee'.
35956         * modules/expl-ieee-tests: New file.
35957         * tests/test-expl-ieee.c: New file.
35959         New module 'expl-ieee'.
35960         * modules/expl-ieee: New file.
35962         Tests for module 'exp-ieee'.
35963         * modules/exp-ieee-tests: New file.
35964         * tests/test-exp-ieee.c: New file.
35966         New module 'exp-ieee'.
35967         * modules/exp-ieee: New file.
35969         Tests for module 'expf-ieee'.
35970         * modules/expf-ieee-tests: New file.
35971         * tests/test-expf-ieee.c: New file.
35972         * tests/test-exp-ieee.h: New file.
35974         New module 'expf-ieee'.
35975         * modules/expf-ieee: New file.
35977 2012-02-29  Bruno Haible  <bruno@clisp.org>
35979         cbrtl-ieee: Work around test failure on IRIX 6.5.
35980         * m4/cbrtl-ieee.m4: New file.
35981         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
35982         test whether cbrtl works with a minus zero argument. Replace it if not.
35983         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
35984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
35985         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
35986         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
35987         (Depends-on): Update conditions.
35988         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
35989         m4/signbit.m4.
35990         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
35991         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
35992         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
35994         Tests for module 'cbrtl-ieee'.
35995         * modules/cbrtl-ieee-tests: New file.
35996         * tests/test-cbrtl-ieee.c: New file.
35998         New module 'cbrtl-ieee'.
35999         * modules/cbrtl-ieee: New file.
36001         Tests for module 'cbrt-ieee'.
36002         * modules/cbrt-ieee-tests: New file.
36003         * tests/test-cbrt-ieee.c: New file.
36005         New module 'cbrt-ieee'.
36006         * modules/cbrt-ieee: New file.
36008         Tests for module 'cbrtf-ieee'.
36009         * modules/cbrtf-ieee-tests: New file.
36010         * tests/test-cbrtf-ieee.c: New file.
36011         * tests/test-cbrt-ieee.h: New file.
36013         New module 'cbrtf-ieee'.
36014         * modules/cbrtf-ieee: New file.
36016 2012-02-29  Bruno Haible  <bruno@clisp.org>
36018         cbrtf: Work around bug in IRIX 6.5 system function.
36019         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
36020         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
36021         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
36022         work.
36023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
36024         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
36025         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
36026         (Depends-on): Update conditions.
36027         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
36029 2012-02-29  Bruno Haible  <bruno@clisp.org>
36031         Tests for module 'cbrtl'.
36032         * modules/cbrtl-tests: New file.
36033         * tests/test-cbrtl.c: New file.
36035         New module 'cbrtl'.
36036         * lib/math.in.h (cbrtl): New declaration.
36037         * lib/cbrtl.c: New file.
36038         * m4/cbrtl.m4: New file.
36039         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
36040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
36041         HAVE_DECL_CBRTL.
36042         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
36043         HAVE_DECL_CBRTL.
36044         * modules/cbrtl: New file.
36045         * tests/test-math-c++.cc: Check the declaration of cbrtl.
36046         * doc/posix-functions/cbrtl.texi: Mention the new module.
36048 2012-02-29  Bruno Haible  <bruno@clisp.org>
36050         Tests for module 'cbrtf'.
36051         * modules/cbrtf-tests: New file.
36052         * tests/test-cbrtf.c: New file.
36054         New module 'cbrtf'.
36055         * lib/math.in.h (cbrtf): New declaration.
36056         * lib/cbrtf.c: New file.
36057         * m4/cbrtf.m4: New file.
36058         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
36059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
36060         HAVE_DECL_CBRTF.
36061         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
36062         HAVE_DECL_CBRTF.
36063         * modules/cbrtf: New file.
36064         * tests/test-math-c++.cc: Check the declaration of cbrtf.
36065         * doc/posix-functions/cbrtf.texi: Mention the new module.
36067 2012-02-29  Bruno Haible  <bruno@clisp.org>
36069         cbrt: Provide replacement on MSVC and Minix.
36070         * lib/math.in.h (cbrt): New declaration.
36071         * lib/cbrt.c: New file.
36072         * m4/cbrt.m4: New file.
36073         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
36074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
36075         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
36076         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
36077         (Depends-on): Add dependencies.
36078         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
36079         * tests/test-math-c++.cc: Check the declaration of cbrt.
36080         * doc/posix-functions/cbrt.texi: Mention that the module provides a
36081         replacement.
36083 2012-02-29  Bruno Haible  <bruno@clisp.org>
36085         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
36086         * m4/hypotl-ieee.m4: New file.
36087         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
36088         test whether hypotl works with mixed NaN and Infinity arguments.
36089         Replace it if not.
36090         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
36091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
36092         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
36093         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
36094         (Depends-on): Update conditions.
36095         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
36096         (Depends-on): Add hypot-ieee.
36097         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
36098         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
36100         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
36101         * m4/hypotf-ieee.m4: New file.
36102         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
36103         test whether hypotf works with mixed NaN and Infinity arguments.
36104         Replace it if not.
36105         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
36106         (Depends-on): Add hypot-ieee.
36107         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
36108         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
36110         hypot-ieee: Work around test failure on OSF/1 and native Windows.
36111         * lib/math.in.h (hypot): New declaration.
36112         * lib/hypot.c: New file.
36113         * m4/hypot-ieee.m4: New file.
36114         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
36115         whether hypot works with mixed NaN and Infinity arguments. Replace it
36116         if not.
36117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
36118         REPLACE_HYPOT.
36119         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
36120         * modules/hypot (Files): Add lib/hypot.c.
36121         (Depends-on): Add dependencies.
36122         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
36123         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
36124         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
36125         * tests/test-math-c++.cc: Check the declaration of hypot.
36126         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
36128         Tests for module 'hypotl-ieee'.
36129         * modules/hypotl-ieee-tests: New file.
36130         * tests/test-hypotl-ieee.c: New file.
36132         New module 'hypotl-ieee'.
36133         * modules/hypotl-ieee: New file.
36135         Tests for module 'hypot-ieee'.
36136         * modules/hypot-ieee-tests: New file.
36137         * tests/test-hypot-ieee.c: New file.
36139         New module 'hypot-ieee'.
36140         * modules/hypot-ieee: New file.
36142         Tests for module 'hypotf-ieee'.
36143         * modules/hypotf-ieee-tests: New file.
36144         * tests/test-hypotf-ieee.c: New file.
36145         * tests/test-hypot-ieee.h: New file.
36147         New module 'hypotf-ieee'.
36148         * modules/hypotf-ieee: New file.
36150 2012-02-29  Bruno Haible  <bruno@clisp.org>
36152         Remove unused variables.
36153         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
36154         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
36155         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
36156         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
36158 2012-02-29  Eric Blake  <eblake@redhat.com>
36160         termios: fix pid_t always, not just for tcgetsid
36161         * doc/posix-headers/termios.texi (termios.h): Mention problem.
36162         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
36163         just when building tcgetsid.
36165 2012-02-29  Bruno Haible  <bruno@clisp.org>
36167         Tests for module 'hypotl'.
36168         * modules/hypotl-tests: New file.
36169         * tests/test-hypotl.c: New file.
36171         New module 'hypotl'.
36172         * lib/math.in.h (hypotl): New declaration.
36173         * lib/hypotl.c: New file.
36174         * m4/hypotl.m4: New file.
36175         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
36176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
36177         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
36178         * modules/hypotl: New file.
36179         * tests/test-math-c++.cc: Check the hypotl declaration.
36180         * doc/posix-functions/hypotl.texi: Mention the new module.
36182 2012-02-29  Eric Blake  <eblake@redhat.com>
36184         tcgetsid: fix cygwin header bug
36185         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
36187         docs: update cygwin progress
36188         * doc/posix-functions/llround.texi (llround): Added in cygwin
36189         1.7.8.
36190         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
36191         * doc/glibc-functions/program_invocation_name.texi
36192         (program_invocation_name): Likewise.
36193         * doc/glibc-functions/program_invocation_short_name.texi
36194         (program_invocation_short_name): Likewise.
36195         * doc/glibc-functions/madvise.texi (madvise): Likewise.
36196         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
36197         Likewise.
36198         * doc/posix-functions/pthread_spin_destroy.texi
36199         (pthread_spin_destroy): Added in cygwin 1.7.10.
36200         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
36201         Likewise.
36202         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
36203         Likewise.
36204         * doc/posix-functions/pthread_spin_trylock.texi
36205         (pthread_spin_trylock): Likewise.
36206         * doc/posix-functions/pthread_spin_unlock.texi
36207         (pthread_spin_unlock): Likewise.
36208         * doc/posix-functions/pthread_setschedprio.texi
36209         (pthread_setschedprio): Likewise.
36210         * doc/posix-functions/pthread_attr_getstack.texi
36211         (pthread_attr_getstack): Likewise.
36212         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
36213         (pthread_attr_getstackaddr): Likewise.
36214         * doc/glibc-functions/pthread_getattr_np.texi
36215         (pthread_getattr_np): Likewise.
36216         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
36217         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
36218         * doc/posix-functions/clock_settime.texi (clock_settime):
36219         Likewise.
36220         * doc/posix-functions/pthread_attr_getguardsize.texi
36221         (pthread_attr_getguardsize): Likewise.
36222         * doc/posix-functions/pthread_attr_setguardsize.texi
36223         (pthread_attr_setguardsize): Likewise.
36224         * doc/posix-functions/pthread_attr_setstack.texi
36225         (pthread_attr_setstack): Likewise.
36226         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
36227         (pthread_attr_setstackaddr): Likewise.
36228         * doc/posix-functions/clock_getcpuclockid.texi
36229         (clock_getcpuclockid): Likewise.
36230         * doc/posix-functions/pthread_getcpuclockid.texi
36231         (pthread_getcpuclockid): Likewise.
36232         * doc/glibc-functions/error.texi (error): Likewise.
36233         * doc/glibc-functions/error_at_line.texi (error_at_line):
36234         Likewise.
36235         * doc/glibc-functions/error_message_count.texi
36236         (error_message_count): Likewise.
36237         * doc/glibc-functions/error_one_per_line.texi
36238         (error_one_per_line): Likewise.
36239         * doc/glibc-functions/error_print_progname.texi
36240         (error_print_progname): Likewise.
36241         * doc/posix-functions/pthread_condattr_getclock.texi
36242         (pthread_condattr_getclock): Likewise.
36243         * doc/posix-functions/pthread_condattr_setclock.texi
36244         (pthread_condattr_setclock): Likewise.
36245         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
36246         Likewise.
36247         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
36248         * doc/glibc-functions/getpt.texi (getpt): Likewise.
36249         * doc/glibc-functions/get_current_dir_name.texi
36250         (get_current_dir_name): Likewise.
36251         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
36252         Likewise.
36253         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
36254         wrong return type.
36255         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
36256         1.7.11.
36258 2012-02-29  Bruno Haible  <bruno@clisp.org>
36260         Tests for module 'hypotf'.
36261         * modules/hypotf-tests: New file.
36262         * tests/test-hypotf.c: New file.
36264         New module 'hypotf'.
36265         * lib/math.in.h (hypotf): New declaration.
36266         * lib/hypotf.c: New file.
36267         * m4/hypotf.m4: New file.
36268         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
36269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
36270         REPLACE_HYPOTF.
36271         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
36272         REPLACE_HYPOTF.
36273         * modules/hypotf: New file.
36274         * tests/test-math-c++.cc: Check the hypotf declaration.
36275         * doc/posix-functions/hypotf.texi: Mention the new module.
36277         hypot: Prepare for hypotf module.
36278         * m4/hypot.m4: New file.
36279         * modules/hypot (Files): Add m4/hypot.m4.
36280         (configure.ac): Invoke gl_FUNC_HYPOT.
36282 2012-02-29  Bruno Haible  <bruno@clisp.org>
36284         hypot tests: More tests.
36285         * tests/test-hypot.c: Include <float.h>.
36286         (main): Add tests about overflow and underflow.
36288 2012-02-29  Bruno Haible  <bruno@clisp.org>
36290         math code: Add comments.
36291         * lib/acosl.c: Add comment about related glibc source files.
36292         * lib/asinl.c: Likewise.
36293         * lib/atanl.c: Likewise.
36294         * lib/expl.c: Likewise.
36295         * lib/logl.c: Likewise.
36296         * lib/sincosl.c: Likewise.
36297         * lib/sinl.c: Likewise.
36298         * lib/tanl.c: Likewise.
36299         * lib/trigl.c: Likewise.
36300         * lib/cosl.c: Likewise. Fix comments.
36302 2012-02-28  Bruno Haible  <bruno@clisp.org>
36304         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
36305         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
36306         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
36307         HUGE_VALL are defined.
36308         (numeric_equald): Renamed from numeric_equal.
36309         (numeric_equalf, numeric_equall): New functions.
36310         (main): Check also HUGE_VALF, HUGE_VALL.
36311         * modules/math-tests (Files): Add tests/macros.h.
36312         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
36313         HUGE_VALL.
36315 2012-02-28  Bruno Haible  <bruno@clisp.org>
36317         doc: Move ISO C11 feature notes into POSIX chapters.
36318         * doc/posix-functions/aligned_alloc.texi: Renamed from
36319         doc/glibc-functions/aligned_alloc.texi.
36320         * doc/posix-functions/quick_exit.texi: Renamed from
36321         doc/glibc-functions/quick_exit.texi.
36322         * doc/posix-headers/uchar.texi: Renamed from
36323         doc/glibc-headers/uchar.texi.
36324         * doc/posix-functions/c16rtomb.texi: Renamed from
36325         doc/glibc-functions/c16rtomb.texi.
36326         * doc/posix-functions/c32rtomb.texi: Renamed from
36327         doc/glibc-functions/c32rtomb.texi.
36328         * doc/posix-functions/mbrtoc16.texi: Renamed from
36329         doc/glibc-functions/mbrtoc16.texi.
36330         * doc/posix-functions/mbrtoc32.texi: Renamed from
36331         doc/glibc-functions/mbrtoc32.texi.
36332         * doc/gnulib.texi: Update.
36333         (Glibc uchar.h): Remove section.
36334         Suggested by Eric Blake.
36336 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
36338         stdnoreturn: port to MSVC better
36339         MSVC standard headers use __declspec(noreturn), so #define noreturn
36340         to empty on that platform.  Reported by Bruno Haible in
36341         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
36342         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
36343         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
36345 2012-02-28  Bruno Haible  <bruno@clisp.org>
36347         doc: Mention new glibc headers and functions.
36348         * doc/glibc-headers/uchar.texi: New file.
36349         * doc/glibc-functions/aligned_alloc.texi: New file.
36350         * doc/glibc-functions/c16rtomb.texi: New file.
36351         * doc/glibc-functions/c32rtomb.texi: New file.
36352         * doc/glibc-functions/clock_adjtime.texi: New file.
36353         * doc/glibc-functions/fanotify_init.texi: New file.
36354         * doc/glibc-functions/fanotify_mark.texi: New file.
36355         * doc/glibc-functions/inet6_opt_append.texi: New file.
36356         * doc/glibc-functions/inet6_opt_find.texi: New file.
36357         * doc/glibc-functions/inet6_opt_finish.texi: New file.
36358         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
36359         * doc/glibc-functions/inet6_opt_init.texi: New file.
36360         * doc/glibc-functions/inet6_opt_next.texi: New file.
36361         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
36362         * doc/glibc-functions/inet6_rth_add.texi: New file.
36363         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
36364         * doc/glibc-functions/inet6_rth_init.texi: New file.
36365         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
36366         * doc/glibc-functions/inet6_rth_segments.texi: New file.
36367         * doc/glibc-functions/inet6_rth_space.texi: New file.
36368         * doc/glibc-functions/login.texi: New file.
36369         * doc/glibc-functions/mbrtoc16.texi: New file.
36370         * doc/glibc-functions/mbrtoc32.texi: New file.
36371         * doc/glibc-functions/name_to_handle_at.texi: New file.
36372         * doc/glibc-functions/ntp_gettimex.texi: New file.
36373         * doc/glibc-functions/open_by_handle_at.texi: New file.
36374         * doc/glibc-functions/prlimit.texi: New file.
36375         * doc/glibc-functions/process_vm_readv.texi: New file.
36376         * doc/glibc-functions/process_vm_writev.texi: New file.
36377         * doc/glibc-functions/recvmmsg.texi: New file.
36378         * doc/glibc-functions/scandirat.texi: New file.
36379         * doc/glibc-functions/sendmmsg.texi: New file.
36380         * doc/glibc-functions/setns.texi: New file.
36381         * doc/glibc-functions/timespec_get.texi: New file.
36382         * doc/gnulib.texi: Include them.
36383         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
36384         sections.
36385         Reported by Eric Blake.
36387 2012-02-28  Bruno Haible  <bruno@clisp.org>
36389         Avoid compilation errors with MSVC option -fp:strict.
36390         * lib/floor.c: Use MSVC specific pragma fenv_access.
36391         * lib/ceil.c: Likewise.
36392         * lib/trunc.c: Likewise.
36393         * lib/round.c: Likewise.
36394         * lib/rint.c: Likewise.
36395         * lib/fma.c: Likewise.
36396         * lib/integer_length.c: Likewise.
36397         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36399         * tests/test-floor2.c: Likewise.
36400         * tests/test-floorf2.c: Likewise.
36401         * tests/test-ceil2.c: Likewise.
36402         * tests/test-ceilf2.c: Likewise.
36403         * tests/test-trunc2.c: Likewise.
36404         * tests/test-truncf2.c: Likewise.
36405         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36407 2012-02-27  Bruno Haible  <bruno@clisp.org>
36409         Tests for module 'sqrtl-ieee'.
36410         * modules/sqrtl-ieee-tests: New file.
36411         * tests/test-sqrtl-ieee.c: New file.
36413         New module 'sqrtl-ieee'.
36414         * modules/sqrtl-ieee: New file.
36416         Tests for module 'sqrt-ieee'.
36417         * modules/sqrt-ieee-tests: New file.
36418         * tests/test-sqrt-ieee.c: New file.
36420         New module 'sqrt-ieee'.
36421         * modules/sqrt-ieee: New file.
36423         Tests for module 'sqrtf-ieee'.
36424         * modules/sqrtf-ieee-tests: New file.
36425         * tests/test-sqrtf-ieee.c: New file.
36426         * tests/test-sqrt-ieee.h: New file.
36428         New module 'sqrtf-ieee'.
36429         * modules/sqrtf-ieee: New file.
36431 2012-02-27  Bruno Haible  <bruno@clisp.org>
36433         remainderl-ieee: Work around test failure on OSF/1.
36434         * m4/remainderl-ieee.m4: New file.
36435         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
36436         present, test whether remainderl works with a zero second argument.
36437         Replace it if not.
36438         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
36439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
36440         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
36441         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
36442         (Depends-on): Update conditions.
36443         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
36444         (Depends-on): Add remainder-ieee.
36445         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
36446         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
36447         module.
36449         remainderf-ieee: Work around test failure on OSF/1.
36450         * m4/remainderf-ieee.m4: New file.
36451         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
36452         present, test whether remainderf works with a zero second argument.
36453         Replace it if not.
36454         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
36455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
36456         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
36457         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
36458         (Depends-on): Update conditions.
36459         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
36460         (Depends-on): Add remainder-ieee.
36461         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
36462         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
36463         module.
36465         remainder-ieee: Work around test failure on OSF/1.
36466         * m4/remainder-ieee.m4: New file.
36467         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
36468         present, test whether remainder works with a zero second argument.
36469         Replace it if not.
36470         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
36471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
36472         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
36473         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
36474         (Depends-on): Update dependencies.
36475         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
36476         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
36477         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
36479         Tests for module 'remainderl-ieee'.
36480         * modules/remainderl-ieee-tests: New file.
36481         * tests/test-remainderl-ieee.c: New file.
36483         New module 'remainderl-ieee'.
36484         * modules/remainderl-ieee: New file.
36486         Tests for module 'remainder-ieee'.
36487         * modules/remainder-ieee-tests: New file.
36488         * tests/test-remainder-ieee.c: New file.
36490         New module 'remainder-ieee'.
36491         * modules/remainder-ieee: New file.
36493         Tests for module 'remainderf-ieee'.
36494         * modules/remainderf-ieee-tests: New file.
36495         * tests/test-remainderf-ieee.c: New file.
36496         * tests/test-remainder-ieee.h: New file.
36498         New module 'remainderf-ieee'.
36499         * modules/remainderf-ieee: New file.
36501 2012-02-27  Bruno Haible  <bruno@clisp.org>
36503         modff, modfl: Fix configure syntax error.
36504         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
36505         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
36507 2012-02-27  Bruno Haible  <bruno@clisp.org>
36509         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
36510         * m4/fmodl-ieee.m4: New file.
36511         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
36512         whether fmodl works with zero arguments. Replace it if not.
36513         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
36514         (Depends-on): Add fmod-ieee.
36515         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
36516         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
36518         fmodf-ieee: Work around test failure on OSF/1.
36519         * m4/fmodf-ieee.m4: New file.
36520         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
36521         whether fmodf works with zero arguments. Replace it if not.
36522         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
36523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
36524         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
36525         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
36526         (Depends-on): Update dependencies.
36527         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
36528         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
36529         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
36531         fmodf-ieee: Work around test failure on MSVC 9.
36532         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
36533         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
36535         fmod-ieee: Work around test failures on OSF/1, mingw.
36536         * m4/fmod-ieee.m4: New file.
36537         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
36538         whether fmod works with zero arguments. Replace it if not.
36539         * lib/math.in.h (fmod): New declaration.
36540         * lib/fmod.c: New file.
36541         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
36542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
36543         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
36544         * modules/fmod (Files): Add lib/fmod.c.
36545         (Depends-on): Add math, isinf, trunc, fma.
36546         (configure.ac): Arrange to compile lib/fmod.c if needed.
36547         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
36548         m4/signbit.m4.
36549         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
36550         * tests/test-math-c++.cc: Check the declaration of fmod.
36551         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
36553         fmodl-ieee: Fix test failures.
36554         * lib/fmodl.c (fmodl): Treat Inf specially.
36555         * modules/fmodl (Depends-on): Add isinf.
36557         Tests for module 'fmodl-ieee'.
36558         * modules/fmodl-ieee-tests: New file.
36559         * tests/test-fmodl-ieee.c: New file.
36561         New module 'fmodl-ieee'.
36562         * modules/fmodl-ieee: New file.
36564         Tests for module 'fmod-ieee'.
36565         * modules/fmod-ieee-tests: New file.
36566         * tests/test-fmod-ieee.c: New file.
36568         New module 'fmod-ieee'.
36569         * modules/fmod-ieee: New file.
36571         Tests for module 'fmodf-ieee'.
36572         * modules/fmodf-ieee-tests: New file.
36573         * tests/test-fmodf-ieee.c: New file.
36574         * tests/test-fmod-ieee.h: New file.
36576         New module 'fmodf-ieee'.
36577         * modules/fmodf-ieee: New file.
36579 2012-02-27  Bruno Haible  <bruno@clisp.org>
36581         Tests for module 'rintl-ieee'.
36582         * modules/rintl-ieee-tests: New file.
36583         * tests/test-rintl-ieee.c: New file.
36585         New module 'rintl-ieee'.
36586         * modules/rintl-ieee: New file.
36588         Tests for module 'rint-ieee'.
36589         * modules/rint-ieee-tests: New file.
36590         * tests/test-rint-ieee.c: New file.
36592         New module 'rint-ieee'.
36593         * modules/rint-ieee: New file.
36595         Tests for module 'rintf-ieee'.
36596         * modules/rintf-ieee-tests: New file.
36597         * tests/test-rintf-ieee.c: New file.
36598         * tests/test-rint-ieee.h: New file.
36600         New module 'rintf-ieee'.
36601         * modules/rintf-ieee: New file.
36603 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
36605         regex: re_search etc. should return -2 when memory exhausted
36606         This bug was uncovered when testing 'grep'.  Without the fix,
36607         re_search and friends return -1 when memory is exhausted, but -1
36608         means no match, and this causes grep to falsely report no-match
36609         instead of memory-exhaustion.  See
36610         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
36611         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
36612         trouble; this can occur if re_search_internal ran out of memory.
36614 2012-02-26  Bruno Haible  <bruno@clisp.org>
36616         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
36617         * m4/modfl-ieee.m4: New file.
36618         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
36619         whether modfl works with Inf. Replace it if not.
36620         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
36621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
36622         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
36623         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
36624         (Depends-on): Update dependencies.
36625         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
36626         m4/signbit.m4.
36627         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
36628         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
36630         modfl-ieee: Fix dependencies.
36631         * modules/modfl-ieee (Depends-on): Add modf-ieee.
36633         modfl-ieee: Fix test failures.
36634         * lib/modfl.c (modfl): Treat NaN and Inf specially.
36635         * modules/modfl (Depends-on): Add isfinite, isinf.
36637         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
36638         * m4/modff-ieee.m4: New file.
36639         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
36640         whether modff works with NaN and Inf. Replace it if not.
36641         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
36642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
36643         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
36644         * modules/modff (configure.ac): Consider REPLACE_MODFF.
36645         (Depends-on): Update dependencies.
36646         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
36647         m4/signbit.m4.
36648         (Depends-on): Add modf-ieee.
36649         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
36650         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
36652         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
36653         * m4/modf-ieee.m4: New file.
36654         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
36655         whether modf works with NaN and Inf. Replace it if not.
36656         * lib/math.in.h (modf): New declaration.
36657         * lib/modf.c: New file.
36658         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
36659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
36660         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
36661         * modules/modf (Files): Add lib/modf.c.
36662         (Depends-on): Add math, isfinite, trunc, isinf.
36663         (configure.ac): Addrange to compile lib/modf.c if needed.
36664         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
36665         m4/signbit.m4.
36666         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
36667         * tests/test-math-c++.cc: Check the declaration of modf.
36668         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
36670         Tests for module 'modfl-ieee'.
36671         * modules/modfl-ieee-tests: New file.
36672         * tests/test-modfl-ieee.c: New file.
36674         New module 'modfl-ieee'.
36675         * modules/modfl-ieee: New file.
36677         Tests for module 'modf-ieee'.
36678         * modules/modf-ieee-tests: New file.
36679         * tests/test-modf-ieee.c: New file.
36681         New module 'modf-ieee'.
36682         * modules/modf-ieee: New file.
36684         Tests for module 'modff-ieee'.
36685         * modules/modff-ieee-tests: New file.
36686         * tests/test-modff-ieee.c: New file.
36687         * tests/test-modf-ieee.h: New file.
36689         New module 'modff-ieee'.
36690         * modules/modff-ieee: New file.
36692 2012-02-26  Bruno Haible  <bruno@clisp.org>
36694         Tests for module 'fabsl-ieee'.
36695         * modules/fabsl-ieee-tests: New file.
36696         * tests/test-fabsl-ieee.c: New file.
36698         New module 'fabsl-ieee'.
36699         * modules/fabsl-ieee: New file.
36701         Tests for module 'fabs-ieee'.
36702         * modules/fabs-ieee-tests: New file.
36703         * tests/test-fabs-ieee.c: New file.
36705         New module 'fabs-ieee'.
36706         * modules/fabs-ieee: New file.
36708         Tests for module 'fabsf-ieee'.
36709         * modules/fabsf-ieee-tests: New file.
36710         * tests/test-fabsf-ieee.c: New file.
36711         * tests/test-fabs-ieee.h: New file.
36713         New module 'fabsf-ieee'.
36714         * modules/fabsf-ieee: New file.
36716 2012-02-26  Bruno Haible  <bruno@clisp.org>
36718         Tests for module 'fmal-ieee'.
36719         * modules/fmal-ieee-tests: New file.
36720         * tests/test-fmal-ieee.c: New file.
36722         New module 'fmal-ieee'.
36723         * modules/fmal-ieee: New file.
36725         Tests for module 'fma-ieee'.
36726         * modules/fma-ieee-tests: New file.
36727         * tests/test-fma-ieee.c: New file.
36729         New module 'fma-ieee'.
36730         * modules/fma-ieee: New file.
36732         Tests for module 'fmaf-ieee'.
36733         * modules/fmaf-ieee-tests: New file.
36734         * tests/test-fmaf-ieee.c: New file.
36735         * tests/test-fma-ieee.h: New file.
36737         New module 'fmaf-ieee'.
36738         * modules/fmaf-ieee: New file.
36740 2012-02-26  Bruno Haible  <bruno@clisp.org>
36742         Tests for module 'ldexpl-ieee'.
36743         * modules/ldexpl-ieee-tests: New file.
36744         * tests/test-ldexpl-ieee.c: New file.
36746         New module 'ldexpl-ieee'.
36747         * modules/ldexpl-ieee: New file.
36749         Tests for module 'ldexp-ieee'.
36750         * modules/ldexp-ieee-tests: New file.
36751         * tests/test-ldexp-ieee.c: New file.
36753         New module 'ldexp-ieee'.
36754         * modules/ldexp-ieee: New file.
36756         Tests for module 'ldexpf-ieee'.
36757         * modules/ldexpf-ieee-tests: New file.
36758         * tests/test-ldexpf-ieee.c: New file.
36759         * tests/test-ldexp-ieee.h: New file.
36761         New module 'ldexpf-ieee'.
36762         * modules/ldexpf-ieee: New file.
36764 2012-02-26  Bruno Haible  <bruno@clisp.org>
36766         Refactor frexp*-ieee tests.
36767         * tests/test-frexp-ieee.h: New file.
36768         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
36769         (main): Just call test_function.
36770         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
36771         (main): Just call test_function.
36772         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
36773         (main): Just call test_function.
36774         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
36775         * modules/frexp-ieee-tests (Files): Likewise.
36776         * modules/frexpl-ieee-tests (Files): Likewise.
36778         Tests for module 'frexpl-ieee'.
36779         * modules/frexpl-ieee-tests: New file.
36780         * tests/test-frexpl-ieee.c: New file.
36782         New module 'frexpl-ieee'.
36783         * modules/frexpl-ieee: New file.
36785         Tests for module 'frexp-ieee'.
36786         * modules/frexp-ieee-tests: New file.
36787         * tests/test-frexp-ieee.c: New file.
36789         New module 'frexp-ieee'.
36790         * modules/frexp-ieee: New file.
36792         Tests for module 'frexpf-ieee'.
36793         * modules/frexpf-ieee-tests: New file.
36794         * tests/test-frexpf-ieee.c: New file.
36796         New module 'frexpf-ieee'.
36797         * modules/frexpf-ieee: New file.
36799 2012-02-26  Bruno Haible  <bruno@clisp.org>
36801         roundl-ieee tests: More tests.
36802         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36803         (main): Add tests for [MX] shaded specification in POSIX.
36804         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36805         (Depends-on): Add isnanl-nolibm.
36807         round-ieee tests: More tests.
36808         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36809         (main): Add tests for [MX] shaded specification in POSIX.
36810         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36811         (Depends-on): Add isnand-nolibm.
36813         roundf-ieee tests: More tests.
36814         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36815         (main): Add tests for [MX] shaded specification in POSIX.
36816         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36817         (Depends-on): Add isnanf-nolibm.
36819         truncl-ieee tests: More tests.
36820         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36821         (main): Add tests for [MX] shaded specification in POSIX.
36822         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36823         (Depends-on): Add isnanl-nolibm.
36825         trunc-ieee tests: More tests.
36826         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36827         (main): Add tests for [MX] shaded specification in POSIX.
36828         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36829         (Depends-on): Add isnand-nolibm.
36831         truncf-ieee tests: More tests.
36832         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36833         (main): Add tests for [MX] shaded specification in POSIX.
36834         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36835         (Depends-on): Add isnanf-nolibm.
36837         ceill-ieee tests: More tests.
36838         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36839         (main): Add tests for [MX] shaded specification in POSIX.
36840         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36841         (Depends-on): Add isnanl-nolibm.
36843         ceil-ieee tests: More tests.
36844         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36845         (main): Add tests for [MX] shaded specification in POSIX.
36846         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36847         (Depends-on): Add isnand-nolibm.
36849         ceilf-ieee tests: More tests.
36850         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36851         (main): Add tests for [MX] shaded specification in POSIX.
36852         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36853         (Depends-on): Add isnanf-nolibm.
36855         floorl-ieee tests: More tests.
36856         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36857         (main): Add tests for [MX] shaded specification in POSIX.
36858         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36859         (Depends-on): Add isnanl-nolibm.
36861         floor-ieee tests: More tests.
36862         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36863         (main): Add tests for [MX] shaded specification in POSIX.
36864         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36865         (Depends-on): Add isnand-nolibm.
36867         floorf-ieee tests: More tests.
36868         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36869         (main): Add tests for [MX] shaded specification in POSIX.
36870         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36871         (Depends-on): Add isnanf-nolibm.
36873 2012-02-26  Bruno Haible  <bruno@clisp.org>
36875         fpieee: More comments.
36876         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
36878 2012-02-25  Bruno Haible  <bruno@clisp.org>
36880         Tests for module 'log10l'.
36881         * modules/log10l-tests: New file.
36882         * tests/test-log10l.c: New file.
36883         * tests/test-math-c++.cc: Check the declaration of log10l.
36885         New module 'log10l'.
36886         * lib/math.in.h (log10l): New declaration.
36887         * lib/log10l.c: New file.
36888         * m4/log10l.m4: New file.
36889         * modules/log10l: New file.
36890         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
36891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
36892         HAVE_DECL_LOG10L.
36893         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
36894         HAVE_DECL_LOG10L.
36895         * doc/posix-functions/log10l.texi: Mention the new module.
36897 2012-02-25  Bruno Haible  <bruno@clisp.org>
36899         fmodl, remainder*: Avoid wrong results due to rounding errors.
36900         * lib/fmodl.c (fmodl): Correct the result if it is not within the
36901         expected bounds.
36902         * lib/remainderf.c (remainderf): Likewise.
36903         * lib/remainder.c (remainder): Likewise.
36904         * lib/remainderl.c (remainderl): Likewise.
36906 2012-02-25  Bruno Haible  <bruno@clisp.org>
36908         Tests for module 'remainderl'.
36909         * modules/remainderl-tests: New file.
36910         * tests/test-remainderl.c: New file.
36911         * tests/test-math-c++.cc: Check the declaration of remainderl.
36913         New module 'remainderl'.
36914         * lib/math.in.h (remainderl): New declaration.
36915         * lib/remainderl.c: New file.
36916         * m4/remainderl.m4: New file.
36917         * modules/remainderl: New file.
36918         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
36919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
36920         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
36921         HAVE_REMAINDERL.
36922         * doc/posix-functions/remainderl.texi: Mention the new module.
36924 2012-02-25  Bruno Haible  <bruno@clisp.org>
36926         Tests for module 'remainderf'.
36927         * modules/remainderf-tests: New file.
36928         * tests/test-remainderf.c: New file.
36929         * tests/test-math-c++.cc: Check the declaration of remainderf.
36931         New module 'remainderf'.
36932         * lib/math.in.h (remainderf): New declaration.
36933         * lib/remainderf.c: New file.
36934         * m4/remainderf.m4: New file.
36935         * modules/remainderf: New file.
36936         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
36937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
36938         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
36939         HAVE_REMAINDERF.
36940         * doc/posix-functions/remainderf.texi: Mention the new module.
36942 2012-02-25  Bruno Haible  <bruno@clisp.org>
36944         remainder: Support for MSVC.
36945         * lib/math.in.h (remainder): New declaration.
36946         * lib/remainder.c: New file.
36947         * m4/remainder.m4: New file.
36948         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
36949         (Depends-on): Add math, round, fma.
36950         (configure.ac): Use results of gl_FUNC_REMAINDER.
36951         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
36952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
36953         HAVE_DECL_REMAINDER.
36954         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
36955         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
36956         * tests/test-math-c++.cc: Check the declaration of remainder.
36957         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
36958         problems are fixed.
36960 2012-02-25  Bruno Haible  <bruno@clisp.org>
36962         Tests for module 'fmodl'.
36963         * modules/fmodl-tests: New file.
36964         * tests/test-fmodl.c: New file.
36965         * tests/test-math-c++.cc: Check the declaration of fmodl.
36967         New module 'fmodl'.
36968         * lib/math.in.h (fmodl): New declaration.
36969         * lib/fmodl.c: New file.
36970         * m4/fmodl.m4: New file.
36971         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
36972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
36973         REPLACE_FMODL.
36974         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
36975         REPLACE_FMODL.
36976         * modules/fmodl: New file.
36977         * doc/posix-functions/fmodl.texi: Mention the new module.
36979 2012-02-25  Bruno Haible  <bruno@clisp.org>
36981         Tests for module 'modfl'.
36982         * modules/modfl-tests: New file.
36983         * tests/test-modfl.c: New file.
36984         * tests/test-math-c++.cc: Check the declaration of modfl.
36986         New module 'modfl'.
36987         * lib/math.in.h (modfl): New declaration.
36988         * lib/modfl.c: New file.
36989         * m4/modfl.m4: New file.
36990         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
36991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
36992         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
36993         * modules/modfl: New file.
36994         * doc/posix-functions/modfl.texi: Mention the new module.
36996 2012-02-25  Bruno Haible  <bruno@clisp.org>
36998         Tests for module 'fabsl'.
36999         * modules/fabsl-tests: New file.
37000         * tests/test-fabsl.c: New file.
37001         * tests/test-math-c++.cc: Check the declaration of fabsl.
37003         New module 'fabsl'.
37004         * lib/math.in.h (fabsl): New declaration.
37005         * lib/fabsl.c: New file.
37006         * m4/fabsl.m4: New file.
37007         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
37008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
37009         REPLACE_FABSL.
37010         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
37011         REPLACE_FABSL.
37012         * modules/fabsl: New file.
37013         * doc/posix-functions/fabsl.texi: Mention the new module.
37015 2012-02-25  Bruno Haible  <bruno@clisp.org>
37017         fabs tests: More tests.
37018         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
37019         (zero): New variable.
37020         (main): Add tests for signed zero.
37021         * modules/fabs-tests (Files): Add tests/minus-zero.h.
37023         fabsf tests: More tests.
37024         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
37025         (zero): New variable.
37026         (main): Add tests for signed zero.
37027         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
37029 2012-02-24  Bruno Haible  <bruno@clisp.org>
37031         atanl: Provide function definition on MSVC.
37032         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
37033         function pointer.
37034         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
37036 2012-02-24  Bruno Haible  <bruno@clisp.org>
37038         acosl: Provide function definition on MSVC.
37039         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
37040         function pointer.
37041         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
37043 2012-02-24  Bruno Haible  <bruno@clisp.org>
37045         asinl: Provide function definition on MSVC.
37046         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
37047         function pointer.
37048         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
37050 2012-02-24  Bruno Haible  <bruno@clisp.org>
37052         tanl: Provide function definition on MSVC.
37053         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
37054         function pointer.
37055         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
37057 2012-02-24  Bruno Haible  <bruno@clisp.org>
37059         cosl: Provide function definition on MSVC.
37060         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
37061         function pointer.
37062         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
37064 2012-02-24  Bruno Haible  <bruno@clisp.org>
37066         sinl: Provide function definition on MSVC.
37067         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
37068         function pointer.
37069         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
37071 2012-02-24  Bruno Haible  <bruno@clisp.org>
37073         logl: Provide function definition on MSVC.
37074         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
37075         function pointer.
37076         * lib/math.in.h (logl): Undefine if it does not exist as a function.
37078 2012-02-24  Bruno Haible  <bruno@clisp.org>
37080         expl: Provide function definition on MSVC.
37081         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
37082         function pointer.
37083         * lib/math.in.h (expl): Undefine if it does not exist as a function.
37085 2012-02-24  Bruno Haible  <bruno@clisp.org>
37087         sqrtl: Provide function definition on MSVC.
37088         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
37089         a function pointer.
37090         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
37092 2012-02-24  Bruno Haible  <bruno@clisp.org>
37094         ceill: Provide function definition on MSVC.
37095         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
37096         used as a function pointer.
37097         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
37099 2012-02-24  Bruno Haible  <bruno@clisp.org>
37101         floorl: Provide function definition on MSVC.
37102         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
37103         used as a function pointer.
37104         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
37106 2012-02-24  Bruno Haible  <bruno@clisp.org>
37108         ceilf: Provide function definition on MSVC.
37109         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
37110         used as a function pointer.
37111         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
37113 2012-02-24  Bruno Haible  <bruno@clisp.org>
37115         floorf: Provide function definition on MSVC.
37116         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
37117         used as a function pointer.
37118         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
37120 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37122         stdnoreturn: new module
37123         This implements a replacement for C11's <stdnoreturn.h>.
37124         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
37125         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
37126         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
37127         * tests/test-stdnoreturn.c: New files.
37129 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
37131         regex: fix false multibyte matches in some regular expressions
37132         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
37133         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
37134         * lib/regex_internal.c (re_string_skip_chars):
37135         Fix miscomputation of remain_len that may cause incomplete
37136         multi-byte character and false match.
37138 2012-02-24  Jim Meyering  <meyering@redhat.com>
37140         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
37141         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
37142         uses with "==" *before* the call, e.g., 0 == strcmp (...)
37143         Remove now-unnecessary str''cmp obfuscation.
37144         Suggested by Akim Demaille.
37146 2012-02-24  Bruno Haible  <bruno@clisp.org>
37148         streq: Rename macro.
37149         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
37150         * NEWS: Mention the change.
37151         * lib/mbrtowc.c (mbrtowc): Update.
37152         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
37153         * lib/wcwidth.c (wcwidth): Update.
37154         Suggested by Akim Demaille and Jim Meyering.
37156 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37158         regex: fix typo in definition of MIN
37159         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
37160         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
37162 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
37163             Bruno Haible  <bruno@clisp.org>
37165         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
37166         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
37167         entries into a stack-allocated buffer directly.
37168         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
37170 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
37171             Bruno Haible  <bruno@clisp.org>
37173         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
37175          - There were several instances of this pattern:
37177              for (;;) {
37178                n = acl (f, GETACLCNT, 0, NULL);
37179                [ allocate an array A of size N ]
37180                if (acl (f, GETACL, n, a) == n)
37181                  break;
37182              }
37184            This loop might never terminate if some other process is constantly
37185            manipulating the file's ACL.  The loop should be rewritten to
37186            terminate.
37188          - The acl (... GETACLNT ...) call is merely an optimization; its value
37189            is merely a hint as to how big to make the array.  A better
37190            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
37191            and just guess a reasonably-big size, growing the size and trying
37192            again if it's not large enough.  This guarantees termination, and
37193            saves a system call.
37195         * lib/acl-internal.h: Include <limits.h>.
37196         (MIN, SIZE_MAX): New macros.
37197         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
37198         a stack-allocated buffer, and use malloc if it does not fit. Don't
37199         use GETACLCNT.
37200         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
37202 2012-02-19  Bruno Haible  <bruno@clisp.org>
37204         acl: Fix endless loop on Solaris with vxfs.
37205         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
37206         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
37207         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
37208         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
37209         * tests/test-sameacls.c (main)[Solaris]: Likewise.
37210         Reported by Bill Jones in
37211         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
37213 2012-02-19  Bruno Haible  <bruno@clisp.org>
37215         acl: Fix copy-acl test failure on Solaris 11.0.
37216         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
37217         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
37218         that this function returns 0 in some more cases.
37220 2012-02-19  Bruno Haible  <bruno@clisp.org>
37222         acl: Update doc references.
37223         * doc/acl-resources.txt: Update links to Solaris documentation.
37225 2012-02-19  Bruno Haible  <bruno@clisp.org>
37227         Fix test failure in many locales on Solaris 11.
37228         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
37229         'tr' arguments.
37230         * tests/test-pipe-filter-ii1.c (main): Likewise.
37231         * build-aux/bootstrap (check_versions): Run 'tr' command with range
37232         expressions in the C locale.
37233         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
37234         * m4/host-os.m4 (gl_HOST_OS): Likewise.
37236 2012-02-19  Bruno Haible  <bruno@clisp.org>
37238         gnulib-tool: Improve usage message.
37239         * gnulib-tool (func_usage): Move doc of --help and --version to the
37240         section "Operation modes".
37242 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
37244         README-release: make it easier to execute commands
37245         * top/README-release: break commands out on to separate lines.
37247 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
37249         GNUmakefile: simplify detection of unconfigured trees
37250         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
37251         whether the tree make is being run from is already configured or
37252         not.  Related simplifications.
37254 2012-02-13  Simon Josefsson  <simon@josefsson.org>
37256         * gnulib-tool (func_usage): Document --help and --version.
37258 2012-02-11  Jim Meyering  <meyering@redhat.com>
37260         bootstrap: don't exit 0 upon gnulib-tool failure
37261         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
37262         its exit status, not 0.
37264 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
37266         README-release: various improvements
37267         * top/README-release: Give a command to push changes for the
37268         release.  Add "distcheck" to list of other pre-release checks.
37269         Fix instance of "make stable" which should be "make TYPE".
37271 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
37273         maint: replace FSF snail-mail addresses with URLs
37274         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
37275         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
37276         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
37277         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
37278         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
37279         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
37280         * lib/check-version.c, lib/check-version.h, lib/config.charset:
37281         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
37282         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
37283         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
37284         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
37285         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
37286         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
37287         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
37288         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
37289         * lib/glthread/thread.c, lib/glthread/thread.h:
37290         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
37291         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
37292         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
37293         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
37294         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
37295         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
37296         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
37297         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
37298         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
37299         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
37300         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
37301         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
37302         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
37303         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
37304         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
37305         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
37306         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
37307         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
37308         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
37309         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
37310         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
37311         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
37312         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
37313         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
37314         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
37315         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
37316         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
37317         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
37318         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
37319         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
37320         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
37321         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
37322         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
37323         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
37324         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
37325         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
37326         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
37327         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
37328         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
37329         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
37330         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
37331         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
37332         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
37333         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
37334         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
37335         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
37336         * tests/test-poll.c, tests/test-quotearg-simple.c:
37337         * tests/test-quotearg.c, tests/test-quotearg.h:
37338         * tests/test-round-ieee.c, tests/test-round1.c:
37339         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
37340         * tests/test-roundl-ieee.c, tests/test-roundl.c:
37341         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
37342         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
37343         * tests/test-strerror.c, tests/test-strerror_r.c:
37344         * tests/test-strsignal.c, tests/test-strverscmp.c:
37345         * tests/test-xmemdup0.c:
37346         Replace FSF snail mail addresses with URLs, as per GNU coding
37347         standards.  See glibc bug
37348         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
37350 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
37352         README-release: capitalize a word and split a line
37353         * top/README-release: Fix punctuation and spacing.
37355 2012-02-08  Akim Demaille  <demaille@gostai.com>
37357         fatal-signal: use C prototypes (with explicit void).
37358         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37359         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
37361 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37363         regex: spelling fix
37364         * lib/regexec.c: spelling fix
37366         regex: rely on stdint.h for SIZE_MAX
37367         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
37369 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37371         regex: merge glibc changes
37373         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
37374         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
37375         (init_word_char): Work even if bitset words are not exactly 32 or
37376         64 bits wide.  Don't assume there are no padding bits.
37377         * lib/regex.c [_LIBC]: Do not include <config.h>.
37378         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
37379         and -Wtype-limits.
37380         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
37381         needless disagreement with glibc.  All uses changed.  Define it to
37382         1 only if _GNU_SOURCE, to match glibc.
37383         (_REG_RM_NAME): Remove; no longer needed, since the names in
37384         question are now all protected by __USE_GNU.
37385         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
37386         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
37387         * lib/regex_internal.h (MIN): New macro.
37389         2012-01-03 Ulrich Drepper <drepper@gmail.com>
37390         * lib/regcomp.c (init_word_char): Optimize regex a bit.
37392         2011-12-30 Jakub Jelinek <jakub@redhat.com>
37393         * lib/regex_internal.c (re_string_fetch_byte_case):
37394         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
37395         is miscompiled, and it turns out it is because of an incorrect
37396         attribute on re_string_fetch_byte_case.  Unlike
37397         re_string_peek_byte_case, this one is really not pure, it modifies
37398         memory (increments pstr->cur_idx), and with the pure attribute GCC
37399         assumed it doesn't and it cached the presumed value of
37400         regexp->cur_idx in a variable across the
37401          for (;; ++i)
37402            {
37403              if (i >= BRACKET_NAME_BUF_SIZE)
37404                return REG_EBRACK;
37405              if (token->type == OP_OPEN_CHAR_CLASS)
37406                ch = re_string_fetch_byte_case (regexp);
37407              else
37408                ch = re_string_fetch_byte (regexp);
37409              if (re_string_eoi(regexp))
37410                return REG_EBRACK;
37411              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
37412                break;
37413              elem->opr.name[i] = ch;
37414            }
37416         2011-11-29 Andreas Schwab <schwab@redhat.com>
37417         * lib/regcomp.c (build_equiv_class):
37418         Fix access after end of search string in regex matcher.
37420         2011-11-12 Ulrich Drepper <drepper@redhat.com>
37421         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
37423         2011-10-12 Ulrich Drepper <drepper@redhat.com>
37424         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
37426         2011-10-11 Ulrich Drepper <drepper@redhat.com>
37427         * lib/regcomp.c (parse_branch, parse_sub_exp):
37428         More regex memory leak fixes and tests.
37429         (parse_sub_exp, parse_bracket_exp):
37430         Fix memory leak for some invalid regular expressions.
37432         2011-05-28 Ulrich Drepper <drepper@gmail.com>
37433         * lib/regex_internal.c, lib/regexec.c:
37434         Fix unnecessary overallocation due to incomplete character.  When
37435         incomplete characters are found at the end of a string the code
37436         ran amok and allocated lots of memory.  Stricter limits are now in
37437         place.
37439         2011-05-20 Reuben Thomas <rrt@sc3d.org>
37440         * lib/regex.h: Update documentation.
37442         2011-05-16 Aharon Robbins <arnold@skeeve.com>
37443         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
37445         2010-05-05 Andreas Schwab <schwab@redhat.com>
37446         * lib/regexec.c (find_collation_sequence_value):
37447         Fix lookup of collation sequence value during regexp matching.
37449         2010-01-22 Ulrich Drepper <drepper@redhat.com>
37450         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
37452         2008-01-16 Ulrich Drepper <drepper@redhat.com>
37453         * lib/regex.h: Cleanup namespace.
37455         2007-11-26 Ulrich Drepper <drepper@redhat.com>
37456         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
37458         2007-08-26 Ulrich Drepper <drepper@redhat.com>
37459         * lib/regex_internal.h: Prevent some declarations and definitions
37460         to be seen when used in tests.
37462         2005-05-06 Ulrich Drepper <drepper@redhat.com>
37463         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
37464         __libc_lock_* macros if not _LIBC.
37465         (struct re_dfa_t): Add lock.
37467 2012-02-07  Eric Blake  <eblake@redhat.com>
37469         maint.mk: also prohibit lower-case @var@
37470         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
37471         lower case, like @top_srcdir@.
37473 2012-02-04  Eric Blake  <eblake@redhat.com>
37475         canonicalize: avoid uninitialized memory use
37476         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
37477         random '/' left in dest.
37478         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
37480 2012-02-04  Bruno Haible  <bruno@clisp.org>
37482         isatty: Fix test failure of ptsname_r on native Windows.
37483         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
37484         and don't set errno.
37485         (isatty): Test first whether fd is valid. Set errno when returning 0.
37487 2012-02-04  Bruno Haible  <bruno@clisp.org>
37489         spawn-pipe tests: Fix a NULL program name in a diagnostic.
37490         * tests/test-spawn-pipe-main.c: Include progname.h.
37491         (main): Invoke set_program_name.
37492         * modules/spawn-pipe-tests (Depends-on): Add progname.
37494         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
37495         * tests/test-nonblocking-socket-main.c: Include progname.h.
37496         (main): Invoke set_program_name.
37497         * modules/nonblocking-socket-tests (Depends-on): Add progname.
37499         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
37500         * tests/test-nonblocking-pipe-main.c: Include progname.h.
37501         (main): Invoke set_program_name.
37502         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
37504 2012-02-04  Eric Blake  <eblake@redhat.com>
37506         canonicalize-lgpl: fix // handling
37507         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
37509         canonicalize: fix // handling
37510         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
37511         /// to //, since only // is special.
37513 2012-02-04  Bruno Haible  <bruno@clisp.org>
37515         ioctl: Fix test failure on native Windows.
37516         * lib/ioctl.c: Include msvc-nothrow.h.
37517         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
37519 2012-02-04  Bruno Haible  <bruno@clisp.org>
37521         fsync: Avoid test failure on native Windows.
37522         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
37523         read-only.
37525 2012-02-04  Bruno Haible  <bruno@clisp.org>
37527         sys_select: Avoid syntax error on OpenBSD 5.0.
37528         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
37529         currently being included, just include the system's <sys/select.h>.
37531 2012-02-04  Bruno Haible  <bruno@clisp.org>
37533         sys_select: Avoid syntax error on OpenBSD 5.0.
37534         * lib/sys_select.in.h: Include <signal.h> only after the include_next
37535         <sys/select.h>, not before.
37536         Reported by Jiri B <jirib@devio.us>.
37538 2012-02-04  Bruno Haible  <bruno@clisp.org>
37540         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
37541         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
37542         global variables.
37543         * tests/test-get-rusage-data.c (main): Likewise.
37544         Reported by Jim Meyering.
37546 2012-02-04  Bruno Haible  <bruno@clisp.org>
37548         stdioext: Fix last commit.
37549         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
37551 2012-02-03  Bruno Haible  <bruno@clisp.org>
37553         stdioext: Add tentative support for Plan9.
37554         * lib/stdio-impl.h: Include <errno.h>.
37555         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
37556         * lib/freadable.c (freadable): Likewise.
37557         * lib/fwritable.c (fwritable): Likewise.
37558         * lib/fbufmode.c (fbufmode): Likewise.
37559         * lib/freading.c (freading): Likewise.
37560         * lib/fwriting.c (fwriting): Likewise.
37561         * lib/freadptr.c (freadptr): Likewise.
37562         * lib/freadseek.c (freadptrinc): Likewise.
37563         * lib/freadahead.c (freadahead): Likewise.
37564         * lib/fpurge.c (fpurge): Likewise.
37565         * lib/fseeko.c (rpl_fseeko): Likewise.
37566         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
37567         Reported by Jens Staal <staal1978@gmail.com>.
37569 2012-02-02  Jim Meyering  <meyering@redhat.com>
37571         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
37572         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
37573         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
37574         not even to try to add the attribute.  Instead, add a pragma to suppress
37575         the suggestion/warning.
37577 2012-01-31  Karl Berry  <karl@gnu.org>
37579         setstate doc: typo.
37580         * doc/posix-functions/setstate.texi (setstate): { not (.
37582 2012-01-31  Bruno Haible  <bruno@clisp.org>
37584         popen: Make more robust on Windows.
37585         * lib/popen.c: On native Windows, use the _popen based code even if
37586         HAVE_POPEN is set.
37587         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
37588         environment variable on native Windows.
37590 2012-01-30  Bruno Haible  <bruno@clisp.org>
37592         pclose: Fix typo.
37593         * lib/stdio.in.h (pclose): Fix typo in warning message.
37595 2012-01-30  Bruno Haible  <bruno@clisp.org>
37597         doc about getlogin_r, setstate.
37598         * doc/posix-functions/getlogin_r.texi: List the incompatible
37599         declaration problem under "not fixed by gnulib".
37600         * doc/posix-functions/setstate.texi: Mention incompatible declaration
37601         problem on Solaris 11 and other platforms.
37603 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
37604             Bruno Haible  <bruno@clisp.org>
37606         poll tests: Make test more robust.
37607         * tests/test-poll.c: Include macros.h.
37608         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
37609         return value of various I/O operations.
37610         * modules/poll-tests (Files): Add tests/macros.h.
37612 2012-01-30  Bruno Haible  <bruno@clisp.org>
37614         sys_stat: Fix support for mingw64 and MSVC.
37615         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
37616         header files already do it.
37617         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
37618         stat itself.
37619         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
37621 2012-01-30  Bruno Haible  <bruno@clisp.org>
37623         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
37624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
37625         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
37627 2012-01-29  Bruno Haible  <bruno@clisp.org>
37629         quotearg: Fix test failure on MacOS X 10.5.
37630         * tests/test-quotearg-simple.c: Include localcharset.h.
37631         (main): If the locale encoding is not ASCII, bypass the tests of
37632         locale_quoting_style and clocale_quoting_style.
37633         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
37635 2012-01-29  Jim Meyering  <meyering@redhat.com>
37637         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
37638         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
37639         detect uses of canonicalize_file_name.
37641 2012-01-28  Bruno Haible  <bruno@clisp.org>
37643         test-framework-sh: Fix test failure with AIX 7.1 diff.
37644         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
37645         in column 1, like 'diff -c' does.
37646         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
37647         whether 'diff -u' is used. Instead, test whether the output contains
37648         some '@' character.
37650 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37652         strtoimax: eliminate need for stdint.h, inttypes.h checks
37653         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
37654         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
37655         the prerequisites for a recently-introduced strtoimax test.
37656         I guess this might cause strtoimax to be replaced when not
37657         strictly necessary on older hosts, but this shouldn't introduce
37658         any bugs and it should make Emacs 'configure' faster on typical
37659         modern hosts.  Problem discovered when importing the latest gnulib
37660         to an Emacs test version.
37661         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
37663 2012-01-28  Bruno Haible  <bruno@clisp.org>
37665         sys_time: Override 'struct timeval' on some native Windows platforms.
37666         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
37667         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
37668         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
37669         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
37670         needs to be overridden.
37671         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
37672         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
37673         * tests/test-sys_select.c: Check that the tv_sec member has the same
37674         size as a 'time_t'.
37675         * tests/test-sys_time.c: Likewise.
37676         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
37677         is set, set also REPLACE_GETTIMEOFDAY.
37678         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
37679         convert the resulting 'struct timeval' before returning.
37680         * lib/select.c: Include <sys/time.h>.
37681         (select, timeval): Undefine at the right place.
37682         * modules/select (Depends-on): Add sys_time.
37683         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
37684         some Windows platforms.
37685         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
37687 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
37689         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
37690         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
37691         an integer.
37692         * lib/fcntl.c (dupfd): Likewise.
37693         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
37695 2012-01-28  Bruno Haible  <bruno@clisp.org>
37697         fcntl: Avoid compilation error on native Windows.
37698         * modules/fcntl (Depends-on): Add 'close'.
37700 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
37702         select, poll, isatty: Avoid warnings on x86_64 mingw64.
37703         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
37704         pointer to an integer.
37705         * lib/poll.c (IsConsoleHandle): Likewise.
37706         * lib/isatty.c (IsConsoleHandle): Likewise.
37708 2012-01-28  Jim Meyering  <meyering@redhat.com>
37710         doc: clarify README-release
37711         * top/README-release: Clarify: you should make a point to have
37712         the latest stable versions of build tools in your PATH, and the
37713         reference to buildreq is solely for its list of tool names, not
37714         for its minimal-functional version numbers.
37715         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
37717         maint.mk: use more readable (yet functionally equivalent) quoting
37718         It is common to quote a single quote in a single quoted string like
37719         this:  '...'\''...'.  Unless you know the idiom, that looks like
37720         gibberish, so prefer to double-quote the string when possible.
37721         Then you can use a more readable, lone single quote: "...'..."
37722         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
37723         "don't" is more readable than the equivalent 'don'\''t'.
37724         (sc_cast_of_x_alloc_return_value): Likewise.
37725         (sc_cast_of_alloca_return_value): Likewise.
37726         (sc_makefile_path_separator_check): Similar: use ":" in '...',
37727         rather than '\'':'\''.
37729 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37731         stdalign: relax _Alignof and tighten _Alignas test
37732         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
37733         as it was too strict: alignof must divide offsetof, but it need
37734         not equal offsetof.  Inspired by Joseph S. Myers's comment
37735         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
37736         Conversely, tighten the _Alignas test a bit, as the resulting
37737         alignment must be exactly 8.
37739 2012-01-27  Bruno Haible  <bruno@clisp.org>
37741         stdalign: Document the last change.
37742         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
37744 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37746         stdalign: check that alignof and offsetof are consistent
37747         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
37748         Problem reported for gnulib by Richard W.M. Jones in
37749         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
37751 2012-01-27  Jim Meyering  <meyering@redhat.com>
37753         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
37754         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
37755         convert a sequence with gaps to the minimal containing range.
37756         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
37757         * tests/test-update-copyright.sh: Test for this.
37758         The FSF confirmed it is ok to do this, assuming there is at
37759         least one significant change per year in the affected range:
37760         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
37762 2012-01-26  Bruno Haible  <bruno@clisp.org>
37764         pipe2: refine doc about thread-safety
37765         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
37766         multithread-safety problem.
37767         * doc/glibc-functions/accept4.texi: Likewise.
37769 2012-01-26  Bruno Haible  <bruno@clisp.org>
37771         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
37772         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
37773         In the test program, include <fcntl.h>, for O_RDONLY.
37775 2012-01-26  Eric Blake  <eblake@redhat.com>
37777         pipe2: document lack of thread-safety in replacement
37778         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
37779         issue in replacement.
37780         * doc/glibc-functions/accept4.texi (accept4): Likewise.
37781         Based on a report by Eric Wong.
37783 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
37784             Bruno Haible  <bruno@clisp.org>
37786         malloca: Avoid warnings on x86_64 mingw64.
37787         * lib/malloca.c: Include <stdint.h>.
37788         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
37789         * modules/malloca (Depends-on): Add stdint.
37790         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
37792 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37794         obstack: remove __STDC__ conditionals
37795         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
37796         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
37797         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
37798         m4/include_next.m4 as the only gnulib-maintained places that still
37799         refer to __STDC__.
37801 2012-01-24  Bruno Haible  <bruno@clisp.org>
37803         havelib: Modern quoting.
37804         * build-aux/config.rpath: Quote 'like this', not `like this', as per
37805         the recent change to the GNU coding standards.
37807 2012-01-24  Bruno Haible  <bruno@clisp.org>
37809         stdint: Improve support for Android.
37810         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
37811         Reported by Simon Josefsson <simon@josefsson.org>.
37813 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37815         doc: omit trailing empty lines from INSTALL etc.
37816         * doc/Makefile (INSTALL): Omit trailing empty lines.
37817         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
37818         omit trailing empty lines.  This simplifies the build procedure.
37820 2012-01-23  Jim Meyering  <meyering@redhat.com>
37822         tests: avoid spurious warnings about gl_sockets_startup
37823         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
37824         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
37825         reporting a "statement with no effect".
37826         * tests/test-accept.c (main): Mark as "(void)".
37827         * tests/test-accept4.c (main): Likewise.
37828         * tests/test-bind.c (main): Likewise.
37829         * tests/test-connect.c (main): Likewise.
37830         * tests/test-getpeername.c (main): Likewise.
37831         * tests/test-getsockname.c (main): Likewise.
37832         * tests/test-getsockopt.c (main): Likewise.
37833         * tests/test-listen.c (main): Likewise.
37834         * tests/test-recv.c (main): Likewise.
37835         * tests/test-recvfrom.c (main): Likewise.
37836         * tests/test-send.c (main): Likewise.
37837         * tests/test-sendto.c (main): Likewise.
37838         * tests/test-setsockopt.c (main): Likewise.
37839         * tests/test-shutdown.c (main): Likewise.
37841 2012-01-21  Bruno Haible  <bruno@clisp.org>
37843         locale-fr.m4: Fix for Android.
37844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
37845         failure of the test program on Bionic libc.
37847 2012-01-21  Jim Meyering  <meyering@redhat.com>
37849         bootstrap: fail when bootstrap_post_import_hook fails
37850         Otherwise, it's far too easy to miss diagnostics emitted
37851         between gnulib-tool's output and that of running configure.
37852         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
37854 2012-01-17  Jim Meyering  <meyering@redhat.com>
37856         maint: enable sc_trailing_blank
37857         * build-aux/pmccabe.css: Remove trailing blanks.
37858         * doc/acl-cygwin.txt: Likewise.
37859         * doc/gnu-oids.texi: Likewise
37860         * cfg.mk: Enable sc_trailing_blank.
37861         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
37863 2012-01-17  Jim Meyering  <meyering@redhat.com>
37865         maint: enable sc_prohibit_openat_without_use
37866         * cfg.mk: Enable sc_prohibit_openat_without_use.
37867         Exempt lib/selinux-at.c.
37869 2012-01-17  Jim Meyering  <meyering@redhat.com>
37871         maint: enable sc_prohibit_cloexec_without_use
37872         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
37873         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
37875 2012-01-17  Jim Meyering  <meyering@redhat.com>
37877         maint: enable sc_prohibit_intprops_without_use
37878         * cfg.mk: Enable sc_prohibit_intprops_without_use
37879         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
37881 2012-01-17  Jim Meyering  <meyering@redhat.com>
37883         maint: enable sc_prohibit_hash_pjw_without_use
37884         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
37885         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
37886         to match any use of \<hash_pjw\>, i.e., not necessarily with a
37887         following " (".
37889 2012-01-17  Jim Meyering  <meyering@redhat.com>
37891         maint: enable double-word-prohibiting rule
37892         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
37893         Exempt three files.
37895 2012-01-17  Jim Meyering  <meyering@redhat.com>
37897         maint: remove empty lines at EOF, but excluding modules/*
37898         Apply syntax rules at home as well as abroad.  Most changes
37899         were induced by running this:
37900           make srcdir=. _build-aux=build-aux -f top/maint.mk \
37901             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
37902             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
37903         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
37904         Exempt modules/* and two binary files.
37905         Also exempt doc/INSTALL*, per request from Bruno Haible.
37906         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
37907         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
37908         * doc/Copyright/request-assign.future: Likewise.
37909         * doc/Copyright/request-disclaim.changes: Likewise.
37910         * doc/INSTALL: Likewise.
37911         * doc/INSTALL.ISO: Likewise.
37912         * doc/INSTALL.UTF-8: Likewise.
37913         * doc/acl-cygwin.txt: Likewise.
37914         * doc/acl-resources.txt: Likewise.
37915         * doc/fdl-1.2.texi: Likewise.
37916         * doc/fdl-1.3.texi: Likewise.
37917         * doc/fdl.texi: Likewise.
37918         * lib/argp-pin.c: Likewise.
37919         * lib/round.c: Likewise.
37920         * lib/unicase/u16-totitle.c: Likewise.
37921         * lib/unictype/block_test.c: Likewise.
37922         * lib/uninorm/canonical-decomposition.c: Likewise.
37923         * m4/README: Likewise.
37924         * m4/relocatable-lib.m4: Likewise.
37925         * tests/test-isnand-nolibm.c: Likewise.
37926         * tests/test-isnand.c: Likewise.
37927         * tests/uninorm/NormalizationTest.txt: Likewise.
37929 2012-01-17  Jim Meyering  <meyering@redhat.com>
37931         maint: add framework to run syntax-check rules against gnulib sources
37932         * cfg.mk: New file, to disable all currently-failing tests.
37933         We'll enable them one by one, as they are made to pass.
37934         * Makefile (sc_maint): New rule.
37936 2012-01-21  Bruno Haible  <bruno@clisp.org>
37938         stdint: Add support for Android.
37939         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
37940         include the system's <stdint.h>.
37941         Reported by Simon Josefsson <simon@josefsson.org>.
37943 2012-01-19  Jim Meyering  <meyering@redhat.com>
37945         bootstrap: add bootstrap_post_import_hook
37946         Bison does still need something like the gnulib_mk_hook whose
37947         invocation I had to remove along with slurp in commit 767ccd40.
37948         Technically, we could get along without it, but doing so would
37949         have required living with a warning and a mandatory post-bootstrap
37950         automake rerun.
37951         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
37952         (bootstrap_post_import_hook): New function.
37953         Invoke it after gnulib-tool --import and before autoreconf.
37955 2012-01-18  Jim Meyering  <meyering@redhat.com>
37957         gitlog-to-changelog: don't use "no_"-prefixed variable name
37958         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
37959         to enable both --cluster and --no-cluster.  Change variable name,
37960         s/\$no_cluster/$cluster/, and reverse usage to match.
37962         gitlog-to-changelog: use "||", not "or" in expressions
37963         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
37964         expressions.
37966 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
37968         gitlog-to-changelog: new option --no-cluster
37969         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
37970         clustering of adjacent commit messages.
37972 2012-01-17  Jim Meyering  <meyering@redhat.com>
37974         maint: spell file systems with two words, not one
37975         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
37976         two words, not one.
37978 2012-01-16  Jim Meyering  <meyering@redhat.com>
37980         bootstrap: add a FIXME comment to ensure we eventually remove the hack
37981         * build-aux/bootstrap (gnulib_tool_options): Add comment.
37983 2012-01-16  Eric Blake  <eblake@redhat.com>
37985         bootstrap: cater to autoconf 2.59
37986         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
37987         is not available.
37989         bootstrap: properly check for libtool
37990         * build-aux/bootstrap (libtoolize): Also run libtool when older
37991         usage is detected.
37993 2012-01-15  Bruno Haible  <bruno@clisp.org>
37995         Improve support for MSVC 9.
37996         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
37997         clashes on MSVC.
37998         * lib/fcntl.in.h: Likewise.
37999         * lib/stdlib.in.h: Likewise.
38000         * lib/sys_stat.in.h: Likewise.
38002 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
38004         gnupload: we hold the master copy of this script now
38005         For motivation and more information, see:
38006         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
38007         * build-aux/gnupload: Make it clear in the heading comments that the
38008         master copy of this file is maintained by gnulib.  Since we are at
38009         it, bump its copyright year and ...
38010         ($scriptversion): ... the date in its version.
38011         ($usage): Patches and bug reports should be sent to the gnulib list,
38012         not the automake one.
38013         * config/srclist.txt: Don't try to sync 'gnupload' from automake
38014         anymore.
38016 2012-01-15  Bruno Haible  <bruno@clisp.org>
38018         Fix module 'random'.
38019         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
38020         initstate, setstate are declared.
38022 2012-01-14  Bruno Haible  <bruno@clisp.org>
38024         Tests for module 'random'.
38025         * modules/random-tests: New file.
38026         * tests/test-random.c: New file, based on tests/test-random_r.c.
38028         New module 'random'.
38029         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
38030         declarations.
38031         * lib/random.c: New file, based on glibc/stdlib/random.c.
38032         * m4/random.m4: New file.
38033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
38034         HAVE_RANDOM.
38035         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
38036         * modules/random: New file.
38037         * config/srclist.txt: Add an entry for random.c.
38038         * doc/posix-functions/random.texi: Mention the 'random' module.
38039         * doc/posix-functions/initstate.texi: Likewise.
38040         * doc/posix-functions/setstate.texi: Likewise.
38041         * doc/posix-functions/srandom.texi: Likewise.
38043 2012-01-12  Bruno Haible  <bruno@clisp.org>
38045         random_r: Use common idioms.
38046         * lib/random_r.c: Include <stdlib.h> first.
38048         random_r: Override incompatible API on AIX, OSF/1.
38049         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
38050         Override the system function if REPLACE_RANDOM_R is 1.
38051         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
38052         and OSF/1, set REPLACE_RANDOM_R.
38053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
38054         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
38055         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
38056         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
38057         * doc/glibc-functions/random_r.texi: Likewise.
38058         * doc/glibc-functions/setstate_r.texi: Likewise.
38060         random_r: Support for MSVC 9.
38061         * lib/random_r.c: Include stdint.h, not inttypes.h.
38063 2012-01-12  Eric Blake  <eblake@redhat.com>
38065         inet_ntop: guard extra work by IF_LINT
38066         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
38067         better code generation when not checking for warnings.
38068         Suggested by Paul Eggert and Jim Meyering.
38070         strptime: fix regression on mingw
38071         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
38072         Fix regression.  Reported by Bruno Haible.
38074 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
38075             Bruno Haible  <bruno@clisp.org>
38077         copy-file: add error-code-returning variant.
38078         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
38079         (qcopy_file_preserving): New declaration.
38080         * lib/copy-file.c (qcopy_file_preserving): Renamed from
38081         copy_file_preserving. Change return type to 'int'. Don't emit an error
38082         message here.
38083         (copy_file_preserving): New function.
38084         * tests/test-copy-file.c: Include <stdlib.h>.
38085         (main): Test qcopy_file_preserving if the environment variable
38086         NO_STDERR_OUTPUT is set.
38087         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
38088         with NO_STDERR_OUTPUT
38089         * tests/test-copy-file-2.sh: Likewise.
38091 2012-01-10  Bruno Haible  <bruno@clisp.org>
38093         copy-file: Use 'quote' module consistently.
38094         * lib/copy-file.c (copy_file_preserving): Use quote().
38096         copy-file: Refactor.
38097         * lib/copy-file.c: Include quote.h.
38098         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
38099         message here.
38100         * modules/copy-file (Depends-on): Add quote.
38102         acl: Export qcopy_acl.
38103         * lib/acl.h (qcopy_acl): New declaration.
38104         * lib/copy-acl.c (qcopy_acl): Make non-static.
38106         acl: Rename a local variable.
38107         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
38109         acl: Align return values of copy_acl and qcopy_acl.
38110         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
38111         maybe < -1.
38113 2012-01-11  Eric Blake  <eblake@redhat.com>
38115         strptime: silence gcc warnings
38116         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
38117         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
38118         Reported by Daniel P. Berrange.
38120         inet_ntop: silence gcc warning
38121         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
38122         Reported by Daniel P. Berrange.
38124 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
38126         getloadavg test: skip the test on GNU/Linux without /proc mounted
38127         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
38128         file.  When /proc is not mounted, it always fails with ENOENT.
38129         * tests/test-getloadavg.c (main): Treat ENOENT return code from
38130         getloadavg(3) the same way as ENOSYS and ENOTSUP.
38132 2012-01-10  Bruno Haible  <bruno@clisp.org>
38134         regex: Avoid link error on MSVC 9.
38135         * modules/regex (Depends-on): Add wctype.
38137 2012-01-10  Bruno Haible  <bruno@clisp.org>
38139         doc: Mention --with-tests option.
38140         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
38141         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
38142         --with-tests.
38143         Reported by Reuben Thomas.
38145 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
38147         users.txt: order package names lexicographically.
38148         * users.txt: Order package names lexicographically.
38150 2012-01-10  Jim Meyering  <meyering@redhat.com>
38152         maint.mk: fix description in comment
38153         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
38155         ignore-value: remove deprecated ignore_ptr function
38156         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
38157         * NEWS: Note this.
38159 2012-01-09  Jim Meyering  <meyering@redhat.com>
38161         test-init.sh: avoid a subshell
38162         * tests/test-init.sh: Remove protective subshell.
38163         Suggested by Bernhard Voelker.  While a subshell is normally
38164         required to protect against older shells (Solaris, FreeBSD) that
38165         warn about a missing program before performing redirection, the
38166         shell-selection tests performed by init.sh probably exclude any
38167         offending shell.
38169 2012-01-08  Bruno Haible  <bruno@clisp.org>
38171         setlocale tests: Avoid test failure on Solaris 11.0.
38172         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
38173         variable.
38175 2012-01-08  Bruno Haible  <bruno@clisp.org>
38177         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
38178         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
38179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
38180         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
38181         macro.
38182         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
38183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
38184         * lib/spawn_faction_addopen.c: Add workaround implementation if
38185         HAVE_WORKING_POSIX_SPAWN.
38186         * modules/spawn (Makefile): Substitute
38187         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
38188         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
38189         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
38190         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
38191         (Depends-on): Update conditions.
38192         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38193         the Solaris 11 bug.
38195 2012-01-08  Bruno Haible  <bruno@clisp.org>
38197         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
38198         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
38199         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
38200         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
38201         macro.
38202         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
38203         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
38204         * lib/spawn_faction_adddup2.c: Add workaround implementation if
38205         HAVE_WORKING_POSIX_SPAWN.
38206         * modules/spawn (Makefile): Substitute
38207         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
38208         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
38209         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
38210         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
38211         (Depends-on): Update conditions.
38212         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38213         the Solaris 11 bug.
38215 2012-01-08  Bruno Haible  <bruno@clisp.org>
38217         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
38218         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
38219         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
38220         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
38221         HAVE_WORKING_POSIX_SPAWN.
38222         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
38223         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
38224         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
38225         * lib/spawn_faction_addclose.c: Add workaround implementation if
38226         HAVE_WORKING_POSIX_SPAWN.
38227         * modules/spawn (Makefile): Substitute
38228         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
38229         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
38230         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
38231         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
38232         (Depends-on): Update conditions.
38233         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38234         the Solaris 11 bug.
38236 2012-01-08  Bruno Haible  <bruno@clisp.org>
38238         doc: Update for Solaris 11.0.
38239         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
38240         * m4/printf.m4: Update comments.
38242 2012-01-08  Bruno Haible  <bruno@clisp.org>
38244         mktime: Avoid compilation error on Solaris 11.
38245         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
38247 2012-01-08  Bruno Haible  <bruno@clisp.org>
38249         doc: Small fix.
38250         * doc/posix-headers/nl_types.texi: Correct platforms list.
38252 2012-01-08  Simon Josefsson  <simon@josefsson.org>
38254         Add lgpl-3.0 module.
38255         * MODULES.html.sh (Support for building documentation): Add
38256         lgpl-3.0.
38257         * modules/lgpl-3.0: New file.
38259 2012-01-08  Jim Meyering  <meyering@redhat.com>
38261         select.c: indent with spaces, not TABs
38262         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
38264 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
38266         quotearg: do not use grave accent for left quote
38267         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
38268         locale_quoting_style.
38269         (quotearg_buffer_restyled): Fix example.
38270         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
38272 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
38274         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
38275         Most programs do not have translation catalogs for English and much
38276         less separate catalogs for British and American English.  Drop the
38277         suggestion to translators about these two, and provide it
38278         automatically for Unicode locales.  Like most programs, even those
38279         using American English, we use single quotation marks.  This conflicts
38280         with the American typographic convention, but works better when you
38281         cite the entire error message within double quotes.  It also tries not
38282         to clash with established practice and with what non-gnulib programs
38283         will usually do.
38284         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
38285         using an UTF-8 or GB-18030 locale.  The list of other locales with
38286         quotes was provided by Bruno Haible.
38287         (quotearg_buffer_restyled): Adjust instructions to translators.
38288         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
38289         text, since this would be wrong when using Unicode.
38290         * modules/quotearg: Depend on c-strcaseeq.
38292 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
38294         quotearg: fix Wikipedia link
38295         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
38297 2012-01-07  Simon Josefsson  <simon@josefsson.org>
38299         Fix for mingw with MSVC9.
38300         * m4/ld-version-script.m4: Check that compiler rejects version
38301         scripts with syntax errors.  Reported by Bruno Haible
38302         <bruno@clisp.org>.
38304 2012-01-06  Bruno Haible  <bruno@clisp.org>
38306         Talk about "native Windows API", not "Woe32".
38307         * lib/accept4.c: Update comments to mention native Windows.
38308         * lib/execute.c: Likewise.
38309         * lib/fatal-signal.c: Likewise.
38310         * lib/localcharset.c: Likewise.
38311         * lib/nanosleep.c: Likewise.
38312         * lib/nl_langinfo.c: Likewise.
38313         * lib/pclose.c: Likewise.
38314         * lib/pipe-filter-gi.c: Likewise.
38315         * lib/pipe-filter-ii.c: Likewise.
38316         * lib/pipe.c: Likewise.
38317         * lib/pipe2.c: Likewise.
38318         * lib/popen.c: Likewise.
38319         * lib/progreloc.c: Likewise.
38320         * lib/relocatable.c: Likewise.
38321         * lib/sigaction.c: Likewise.
38322         * lib/sigprocmask.c: Likewise.
38323         * lib/spawn-pipe.h: Likewise.
38324         * lib/spawn-pipe.c: Likewise.
38325         * lib/spawni.c: Likewise.
38326         * lib/stat-time.h: Likewise.
38327         * lib/w32spawn.h: Likewise.
38328         * tests/test-isatty.c: Likewise.
38329         * lib/config.charset: More comments.
38330         * doc/gnulib-intro.texi: Mention native Windows.
38331         * doc/posix-functions/_Exit_C99.texi: Likewise.
38332         * doc/posix-headers/fcntl.texi: Likewise.
38334 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
38336         argp: Avoid crash if translator uses % characters in a translation.
38337         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
38338         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
38340 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
38342         doc: C11 and C++11 are now official
38343         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
38344         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
38345         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
38346         * modules/stdalign:
38347         Replace references to draft C1X to C11, and to draft C++0X to C++11.
38349 2012-01-06  Bruno Haible  <bruno@clisp.org>
38351         uc-is-grapheme-break tests: Tweak.
38352         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
38353         message.
38355 2012-01-06  Bruno Haible  <bruno@clisp.org>
38357         test-init.sh: correct the test for diff -u
38358         * tests/test-init.sh: Also redirect stdout to /dev/null.
38360 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38362         Use ', not `, for quoting output.
38363         * build-aux/announce-gen (usage, sizes, print_news_deltas)
38364         (print_changelog_deltas, get_tool_versions, main program):
38365         * build-aux/git-version-gen:
38366         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
38367         * build-aux/move-if-change (help):
38368         * build-aux/useless-if-before-free (usage, main program):
38369         * check-module (parse_module_file, usage)
38370         (find_included_lib_files, check_module):
38371         * lib/argmatch.c (main) [TEST]:
38372         * lib/argp-help.c (_help):
38373         * lib/getopt1.c (main) [TEST]:
38374         * lib/git-merge-changelog.c (usage):
38375         * lib/xstrtol-error.c (xstrtol_error):
38376         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
38377         * m4/argz.m4 (gl_FUNC_ARGZ):
38378         * m4/bison.m4 (gl_BISON):
38379         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
38380         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
38381         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
38382         * m4/fpending.m4 (gl_PREREQ_FPENDING):
38383         * m4/gc-random.m4 (gl_GC_RANDOM):
38384         * m4/intl.m4 (gt_CHECK_DECL):
38385         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
38386         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
38387         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
38388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
38389         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
38390         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
38391         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
38392         * tests/test-dirname.c (main):
38393         * tests/test-getpass.c (main):
38394         * tests/test-iconvme.c (main):
38395         * tests/test-parse-datetime.c (LOG):
38396         * tests/test-xstrtoimax.sh:
38397         * tests/test-xstrtol.sh:
38398         * tests/test-xstrtoll.sh:
38399         * tests/test-xstrtoumax.sh:
38400         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
38401         * top/GNUmakefile (abort-due-to-no-makefile):
38402         Quote 'like this', not `like this', as per the recent change to
38403         the GNU coding standards.
38405 2012-01-05  Bruno Haible  <bruno@clisp.org>
38407         strtoimax: Don't force a replacement on systems where intmax_t is int.
38408         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
38409         'intmax_t' is not larger than 'int'.
38410         Reported by Pádraig Brady <P@draigBrady.com>.
38412 2012-01-05  Bruno Haible  <bruno@clisp.org>
38414         doc: Mention NetBSD bugs.
38415         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
38416         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
38418 2012-01-05  Bruno Haible  <bruno@clisp.org>
38420         strtoumax tests: Enhance tests.
38421         * tests/test-strtoumax.c (main): Add tests for large values.
38423 2012-01-05  Bruno Haible  <bruno@clisp.org>
38425         strtoimax: Work around AIX 5.1 bug.
38426         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
38427         definition.
38428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
38429         Set HAVE_STRTOIMAX.
38430         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
38431         REPLACE_STRTOIMAX.
38432         * modules/inttypes-incomplete (Makefile.am): Substitute
38433         REPLACE_STRTOIMAX.
38434         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
38435         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
38436         (Depends-on): Update conditions.
38437         * tests/test-strtoimax.c (main): Add tests for large values.
38438         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
38440 2012-01-05  Bruno Haible  <bruno@clisp.org>
38442         inttypes: Modernize.
38443         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
38444         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
38445         (Makefile.am): Update inttypes.h rule.
38447 2012-01-05  Jim Meyering  <meyering@redhat.com>
38449         init.sh: don't waste a subshell just to redirect stderr
38450         * tests/init.sh: In testing for diff -u and diff -c, use a
38451         stderr-redirecting exec inside `...` rather than a subshell.
38453         test-init.sh: avoid failure on HP-UX 11.00
38454         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
38455         resolves to diff -c or cmp.  Reported by Bruno Haible.
38457 2012-01-05  Bruno Haible  <bruno@clisp.org>
38459         Tests for module 'strtoull'.
38460         * modules/strtoull-tests: New file.
38461         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
38463 2012-01-05  Bruno Haible  <bruno@clisp.org>
38465         Tests for module 'strtoll'.
38466         * modules/strtoll-tests: New file.
38467         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
38469 2012-01-05  Bruno Haible  <bruno@clisp.org>
38471         Tests for module 'strtoul'.
38472         * modules/strtoul-tests: New file.
38473         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
38475 2012-01-05  Bruno Haible  <bruno@clisp.org>
38477         Tests for module 'strtol'.
38478         * modules/strtol-tests: New file.
38479         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
38481 2012-01-04  Jim Meyering  <meyering@redhat.com>
38483         test-init.sh: accommodate Solaris 5.10's different diff -u output
38484         * tests/test-init.sh: Also exempt @@ lines from the comparison
38485         of diff output, since Solaris 5.10 and GNU diff formats differ.
38486         Reported by Stefano Lattarini.
38488 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38490         test-posixtm: don't assume signed integer wraparound
38491         * tests/test-posixtm.c (main): Don't assume wraparound semantics
38492         after signed integer overflow.  Inspired by (though it may not
38493         fix) Bruno Haible's bug report in
38494         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
38496         Spell out "Windows 9x" and "Windows XP".
38497         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
38498         "Windows 9x" and "WinXP" with "Windows XP".
38500 2012-01-04  Jim Meyering  <meyering@redhat.com>
38502         test-vc-list-files-cvs.sh: remove obsolete comment
38503         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
38504         double exit.  Now that's all encapsulated via skip_ and Exit.
38506 2012-01-04  Bruno Haible  <bruno@clisp.org>
38508         Talk about "native Windows API", not "Win32".
38509         * lib/classpath.c: Update comments to mention native Windows.
38510         * lib/csharpexec.c: Likewise.
38511         * lib/dup2.c: Likewise.
38512         * lib/error.c: Likewise.
38513         * lib/fcntl.c: Likewise.
38514         * lib/filename.h: Likewise.
38515         * lib/findprog.c: Likewise.
38516         * lib/get-rusage-as.c: Likewise.
38517         * lib/get-rusage-data.c: Likewise.
38518         * lib/getpagesize.c: Likewise.
38519         * lib/javaexec.c: Likewise.
38520         * lib/msvc-inval.c: Likewise.
38521         * lib/msvc-nothrow.c: Likewise.
38522         * lib/nanosleep.c: Likewise.
38523         * lib/nonblocking.c: Likewise.
38524         * lib/printf-parse.c: Likewise.
38525         * lib/setlocale.c: Likewise.
38526         * lib/sigaction.c: Likewise.
38527         * lib/strerror_r.c: Likewise.
38528         * lib/tmpdir.c: Likewise.
38529         * lib/vasnprintf.c: Likewise.
38530         * lib/w32spawn.h: Likewise.
38531         * lib/waitpid.c: Likewise.
38532         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
38533         * m4/locale-ar.m4: Likewise.
38534         * m4/locale-fr.m4: Likewise.
38535         * m4/locale-ja.m4: Likewise.
38536         * m4/locale-tr.m4: Likewise.
38537         * m4/locale-zh.m4: Likewise.
38538         * m4/printf.m4: Likewise.
38539         * tests/test-cloexec.c: Likewise.
38540         * tests/test-copy-acl.sh: Likewise.
38541         * tests/test-copy-file.sh: Likewise.
38542         * tests/test-file-has-acl.sh: Likewise.
38543         * tests/test-set-mode-acl.sh: Likewise.
38544         * tests/test-dup-safer.c: Likewise.
38545         * tests/test-dup2.c: Likewise.
38546         * tests/test-dup3.c: Likewise.
38547         * tests/test-fcntl.c: Likewise.
38548         * tests/test-nonblocking-pipe.h: Likewise.
38549         * tests/test-nonblocking-socket.h: Likewise.
38550         * tests/test-pipe.c: Likewise.
38551         * tests/test-pipe2.c: Likewise.
38552         * tests/test-spawn-pipe-child.c: Likewise.
38553         * doc/acl-resources.txt: Likewise.
38554         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
38555         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
38556         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
38557         * lib/localcharset.c: Update comments to mention native Windows.
38558         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
38559         * lib/localename.c: Likewise.
38560         * lib/progreloc.c: Likewise.
38561         * lib/relocatable.c: Likewise.
38562         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
38563         (windows_compute_revents): Renamed from win32_compute_revents.
38564         (windows_compute_revents_socket): Renamed from
38565         win32_compute_revents_socket.
38566         * lib/select.c: Update comments to mention native Windows.
38567         (windows_poll_handle): Renamed from win32_poll_handle.
38568         * m4/threadlib.m4: Update comments to mention native Windows.
38569         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
38570         --enable-threads=windows instead of --enable-threads=win32. Set
38571         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
38572         * lib/glthread/lock.h: Update comments to mention native Windows.
38573         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
38574         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
38575         USE_WIN32_THREADS.
38576         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
38577         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
38578         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
38579         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
38580         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
38581         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
38582         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
38583         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
38584         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
38585         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
38586         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
38587         * tests/test-tls.c: Likewise.
38588         Rationale:
38589         Microsoft renamed the "Win32 API" to "Windows API", as it is available
38590         on both 32-bit and 64-bit Windows systems.
38591         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
38592         line of distinction is between "native Windows" on one side and Unix/
38593         POSIX systems on the other side. More details in
38594         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
38595         Suggested by Paul Eggert.
38597 2012-01-03  Bruno Haible  <bruno@clisp.org>
38599         isatty: Support for MSVC 9.
38600         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
38601         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
38602         (_isatty_nothrow): New function.
38603         (isatty): Use it instead of _isatty.
38604         (IsConsoleHandle): Add comment, from Paolo Bonzini.
38605         * lib/poll.c (IsConsoleHandle): Likewise.
38606         * lib/select.c (IsConsoleHandle): Likewise.
38607         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
38608         (gl_PREREQ_ISATTY): New macro.
38609         * modules/isatty (Depends-on): Add msvc-inval.
38610         (configure.ac): Invoke gl_PREREQ_ISATTY.
38612 2012-01-03  Jim Meyering  <meyering@redhat.com>
38614         maint.mk: remove temporary transition aid from over 1.5 years ago
38615         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
38616         purpose was to aid in the transition (avoiding silent malfunction)
38617         from that old name to the new _sc_search_regexp.  This shim was
38618         added by commit 219c504b.
38620         init.sh: do not try to accommodate compare arguments starting with "-"
38621         * tests/init.sh (compare_dev_null_): Do not try to accommodate
38622         compare arguments that start with "-".  Besides, we do not worry
38623         about this when invoking diff or cmp; why start now with sed?
38624         Using "--" to separate options from argument would trigger sed
38625         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
38626         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
38628 2012-01-02  Bruno Haible  <bruno@clisp.org>
38630         Enhance tests for module 'isatty'.
38631         * modules/isatty-tests (Depends-on): Add pipe-posix.
38632         * tests/test-isatty.c: Include <fcntl.h>.
38633         (DEV_NULL): New macro.
38634         (main): Test the resut of isatty() also on regular files, pipes, and
38635         /dev/null.
38637         New module 'isatty'.
38638         * lib/unistd.in.h (isatty): New declaration.
38639         * lib/isatty.c: New file, based on an idea of
38640         Bastien Roucariès <roucaries.bastien@gmail.com>.
38641         * m4/isatty.m4: New file.
38642         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
38643         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
38644         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
38645         REPLACE_ISATTY.
38646         * modules/isatty: New file.
38647         * doc/posix-functions/isatty.texi: Mention the new module.
38648         Suggested by Paolo Bonzini.
38650 2012-01-02  Bruno Haible  <bruno@clisp.org>
38652         canonicalize: Tweak 2011-12-29 commit.
38653         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
38654         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
38656 2012-01-02  Jim Meyering  <meyering@redhat.com>
38658         gitlog-to-changelog: describe input syntax in --help output
38659         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
38661         gitlog-to-changelog: fix typo in --help: show backslash before email @
38662         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
38663         in sources, but not in actual output.
38665 2011-12-30  Jim Meyering  <meyering@redhat.com>
38667         gitlog-to-changelog: don't malfunction when name contains %-directive
38668         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
38669         in a name string cause trouble.  E.g., with a user name of "%s",
38670         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
38672 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
38674         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
38675         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
38676         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
38677         the "  (tiny change)" notation that is appended to the standard
38678         ChangeLog "date  name  email" header line.
38680 2012-01-01  Jim Meyering  <meyering@redhat.com>
38682         test-framework-sh: init.sh: fix "make dist" failure
38683         When using gnulib-tool's --with-tests option and any module that
38684         depends on test-framework-sh, "make dist" would fail due to the
38685         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
38686         in the gltests directory, and not in the gllib/ directory.
38687         One way to work around that is to move the EXTRA_DIST += init.sh
38688         from the primary module to the -tests one:
38689         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
38690         * modules/test-framework-sh (Makefile.am): ...not here.
38691         Reported by Tom G. Christensen in
38692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
38694         version-etc: update copyright year reported by --version
38695         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
38697 2011-12-31  Pádraig Brady  <P@draigBrady.com>
38699         canonicalize: only stat() if required
38700         * lib/canonicalize.c (canonicalize_filename_mode):
38701         Avoid calling l?stat() when both CAN_MISSING,
38702         and CAN_NOLINKS are set, as we neither need
38703         to resolve symlinks or test component existence.
38705 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
38707         doc: cover st_ino issues once; add OpenVMS etc.
38708         * doc/posix-functions/stat.texi (stat):
38709         * doc/posix-functions/lstat.texi (lstat):
38710         * doc/posix-functions/fstatat.texi (fstatat):
38711         * doc/posix-functions/fstat.texi (fstat):
38712         Move general 'struct stat' stuff to sys_stat.texi,
38713         leaving behind a pointer.
38714         * doc/posix-headers/sys_stat.texi (sys/stat.h):
38715         Merge duplicate info about 'struct stat' problems into here.
38716         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
38717         and suggest partial workarounds.
38719         same-inode: port to OpenVMS
38720         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
38721         three st_ino values.
38723 2011-12-30  Pádraig Brady  <P@draigBrady.com>
38725         canonicalize: fix references to stat() and lstat()
38726         * lib/canonicalize.c (canonicalize_filename_mode):
38727         Ensure references always resolve to a replacement
38728         function if required (even via a macro).
38730 2011-12-30  Jim Meyering  <meyering@redhat.com>
38732         gitlog-to-changelog: remove a little duplication
38733         * build-aux/gitlog-to-changelog (main): Grep @lines once,
38734         rather than twice.
38736 2011-12-29  Pádraig Brady  <P@draigBrady.com>
38738         canonicalize: add support for not resolving symlinks
38739         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
38740         indicate we don't want to follow symlinks.  Also
38741         provide CAN_MODE_MASK to aid setting these existing
38742         mutually exclusive values.
38743         * lib/canonicalize.c (canonicalize_filename_mode):
38744         Extract the flags from can_mode parameter, which
38745         are currently just used to select between stat()
38746         and lstat().  Also ensure that mutually exclusive
38747         values are flagged immediately as invalid.
38748         * tests/test-canonicalize.c: Verify symlinks are
38749         not followed, and that invalid flag combinations
38750         are diagnosed.
38752 2011-12-25  Jim Meyering  <meyering@redhat.com>
38754         gitlog-to-changelog: do not clump multi-paragraph entries
38755         Identical header lines (date,name,email+coauthors) are suppressed,
38756         thus putting all entries with those same characteristics under
38757         a single header.  However, when a log entry consists of two or
38758         more paragraphs, it may not be clear where it starts and ends.
38759         This change makes it so that such an entry is always separated
38760         from others by a header line, even when that header would
38761         otherwise be suppressed.
38762         * build-aux/gitlog-to-changelog: Implement the above.
38763         Inspired by a related request from Stefano Lattarini in
38764         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
38766 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38768         announce-gen: fix `cmd' typo in diagnostic
38769         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
38770         diagnostic: a missing '$' meant that the command was not output.
38772 2011-12-23  Jim Meyering  <meyering@redhat.com>
38774         test-framework-sh: distribute init.sh
38775         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
38776         Otherwise, "make -C gnulib-tests check" (at least in grep) would
38777         fail due to the lack of init.sh.
38779         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
38780         * modules/atexit-tests: Rather than listing tests/init.sh,
38781         now that there's a module for it, simply depend on that new module.
38782         * modules/closein-tests: Likewise.
38783         * modules/exclude-tests: Likewise.
38784         * modules/getcwd-tests: Likewise.
38785         * modules/perror-tests: Likewise.
38786         * modules/pread-tests: Likewise.
38787         * modules/pwrite-tests: Likewise.
38788         * modules/vc-list-files-tests: Likewise.
38789         * modules/verify-tests: Likewise.
38790         * modules/xalloc-die-tests: Likewise.
38791         * modules/xstrtoimax-tests: Likewise.
38792         * modules/xstrtol-tests: Likewise.
38793         * modules/xstrtoll-tests: Likewise.
38794         * modules/xstrtoumax-tests: Likewise.
38795         * modules/yesno-tests: Likewise.
38797 2011-12-22  Jim Meyering  <meyering@redhat.com>
38799         test-framework-sh: add minimal tests of init.sh's compare function
38800         * modules/test-framework-sh-tests: New file.
38801         * tests/test-init.sh: New file.
38803         test-framework-sh: new module
38804         * modules/test-framework-sh: New file.
38805         * MODULES.html.sh (Support for maintaining and releasing projects):
38806         List it.
38808         init.sh: do not emit simulated diff output to stderr
38809         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
38811 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38813         .gitignore: ignore gnulib.dvi and regex.info
38814         * doc/.gitignore:add gnulib.dvi and regex.info
38816 2011-12-22  Jim Meyering  <meyering@redhat.com>
38818         init.sh: correct previous change
38819         * tests/init.sh (compare): My previous change was wrong.
38820         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
38822         init.sh: avoid unwarranted test failure when using "set -e"
38823         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
38824         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
38825         a use like "compare exp out" would get evoke an unconditional failure.
38827 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
38829         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
38830         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
38831         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
38832         autoreconf that did not.
38833         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
38834         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
38836 2011-12-17  Jim Meyering  <meyering@redhat.com>
38838         bootstrap: remove some now-unneeded code
38839         This script arose back when gnulib-tool was young.
38840         Since then, it has seen improvements that render much of this
38841         script unnecessary.  In particular, it can now make symlinks
38842         to the files it uses.  Also, I no longer see as much value in
38843         marking files as read-only via comments.
38844         If you relied on the symlink-creation feature of the preceding
38845         version of this script, you can get most of that functionality
38846         by adding the --symlink option to the definition of
38847         gnulib_tool_option_extras in your bootstrap.conf file.
38848         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
38849         Run autopoint and libtoolize *before* gnulib-tool.
38850         After it, run an abbreviated autoreconf, rather than a loop around
38851         all tools.
38852         (slirp, bt_mark_as_generated): Remove functions.
38854 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38856         ftoastr: fix typo
38857         * lib/ftoastr.h: Fix misspelling in comment.
38859 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
38861         * top/README-release: fix punctuation.
38863 2011-12-17  Jim Meyering  <meyering@redhat.com>
38865         bootstrap: correct the recent buildreq change
38866         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
38867         had no effect.
38868         * build-aux/bootstrap (buildreq): Bracket each search term with
38869         "*...*", so that the shell "case" statement works as intended.
38870         Add comments.
38872 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
38874         build: let bootstrap resort to wget when downloading .po files
38875         * build-aux/bootstrap (download_po_files): Fallback to wget when
38876         downloading the .po files via rsync fails.  This is necessary to
38877         bootstrap from behind a strict firewall.
38879 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
38881         stdint: don't assume C++11 when compiling with g++
38882         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
38883         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
38884         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
38885         work also in C++ before C++11, as that improperly inhibits
38886         generating a substitute stdint.h for that case.
38888 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
38890         alloca: protect comment from gnulib-tool
38891         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
38892         that gnulib-tool doesn't think it's a license, and munge it to
38893         say "GCC version 3".
38895 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
38897         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
38898         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
38899         $(abs_top_builddir) instead of $(top_builddir).
38901 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
38903         strftime-tests: also test nanoseconds
38904         * tests/test-strftime.c (T): Add a test of %N.
38906 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
38908         inttypes, stdint: add C++11 support
38909         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
38910         when including inttypes.h and stdint.h.  Support this change to
38911         the standard.
38912         * doc/posix-headers/inttypes.texi (inttypes.h):
38913         * doc/posix-headers/stdint.texi (stdint.h): Document this.
38914         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
38915         Define if not defined already, for the benefit of pre-C++11 hosts.
38916         Define the standard format macros (e.g., PRId8) always.
38917         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
38918         Likewise, if __cpluspus.  Define the standard constant and limit
38919         macros (e.g., INT8_C, INT8_MAX) always.
38920         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
38921         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
38922         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
38923         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
38924         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
38925         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
38926         Likewise.
38928 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
38930         nonblocking tests: Fix test failure on Linux/PPC.
38931         Suggested by Prerna Saxena in
38932         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
38933         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
38934         Set to 1100000.
38936 2011-12-12  Jim Meyering  <meyering@redhat.com>
38938         argmatch: don't hard-code `' when listing valid option arguments
38939         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
38940         use the quote function to add quotes.  Use fputs rather than
38941         fprintf for the format string with no format directive.
38943 2011-12-07  Eric Blake  <eblake@redhat.com>
38945         bootstrap: detect tools required by gnulib-tool
38946         * build-aux/bootstrap (buildreq): Provide minimum implicit
38947         dependencies.
38948         * DEPENDENCIES: Mention patch as a prereq.
38950 2011-12-04  Bruno Haible  <bruno@clisp.org>
38952         sethostname: Port to Windows platforms.
38953         * lib/sethostname.c: Provide an alternate implementation for Windows
38954         platforms.
38955         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
38956         (main): Skip the test if sethostname() fails with EPERM. On Windows
38957         platforms, don't check the result of gethostname().
38959 2011-12-04  Bruno Haible  <bruno@clisp.org>
38960             Jim Meyering  <meyering@redhat.com>
38962         tests: Avoid spurious error message on platforms without mktemp program.
38963         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
38965 2011-12-04  Bruno Haible  <bruno@clisp.org>
38967         sethostname: Fix documentation.
38968         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
38969         "not fixed" section.
38971 2011-12-03  Bruno Haible  <bruno@clisp.org>
38973         gnulib-tool: Verify that the License field is present and non-empty.
38974         * gnulib-tool (func_get_license_raw): New function, extracted from
38975         func_get_license.
38976         (func_get_license): Use it. Warn if the module is not a test module and
38977         has no license.
38978         Suggested by Jim Meyering.
38980 2011-12-03  Bruno Haible  <bruno@clisp.org>
38982         sethostname tests: Fix link error on mingw.
38983         * tests/test-sethostname1.c: New file, extracted from
38984         tests/test-sethostname.c.
38985         * tests/test-sethostname2.c: New file, extracted from
38986         tests/test-sethostname.c.
38987         * tests/test-sethostname.c: Remove file.
38988         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
38989         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
38990         (Depends-on): Add gethostname.
38991         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
38992         Link the latter with $(GETHOSTNAME_LIB).
38994         sethostname tests: Fix compilation error on mingw.
38995         * tests/test-sethostname.c: Don't include <sys/types.h>.
38996         (geteuid): Use a dummy value without uid_t.
38997         * modules/sethostname-tests (Depends-on): Remove sys_types.
38999         sethostname tests: Avoid a gcc warning.
39000         * tests/test-sethostname.c (main): Remove an unused variable.
39002         Tweak last commit.
39003         * modules/sethostname-tests (Files): Sort by decreasing importance.
39004         (configure.ac): Check for geteuid.
39005         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
39006         the test when there's nothing to test. Drop an unnecessary cast.
39007         Improve an error message. Verify that the final sethostname() call
39008         succeeds.
39010 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
39012         Add a test suite for the sethostname module.
39013         * modules/sethostname-tests: New file.  A test program
39014         for the sethostname module.
39015         * tests/test-sethostname.c: Likewise.
39017 2011-12-03  Bruno Haible  <bruno@clisp.org>
39019         Tweak last commit.
39020         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
39021         Fix preprocessor directives indentation. Fix typos.
39022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
39023         * modules/unistd (Makefile): Likewise.
39025 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
39027         Integrate the sethostname module into unistd.
39028         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
39029         into the unistd.h header.
39030         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
39031         preprocessor directives.
39032         * modules/unistd: Setup the Makefile substitutions of the
39033         SETHOSTNAME preprocessor directives.
39035 2011-12-03  Bruno Haible  <bruno@clisp.org>
39037         Tweak last commit.
39038         * lib/sethostname.c: Don't include <string.h>.
39039         (sethostname): No need to copy the argument string to the stack. Don't
39040         call clearerr. Preserve errno when fprintf failed.
39041         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
39042         Don't invoke AC_REPLACE_FUNCS.
39043         * modules/sethostname (Link): Remove empty section.
39044         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
39045         failure problem.
39047 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
39049         New module 'sethostname'.
39050         * lib/sethostname.c (sethostname): New file.  Provide sethostname
39051         for systems that lack it.
39052         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
39053         sethostname declaration and function.
39054         * modules/sethostname: New file.  Define the sethostname module.
39056 2011-12-03  Bruno Haible  <bruno@clisp.org>
39058         Tweak last commit.
39059         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
39061 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
39063         Split the HOST_NAME_MAX detection into a separate m4 macro.
39064         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
39065         macro so it can be used by the pending sethostname module.
39067 2011-12-03  Bruno Haible  <bruno@clisp.org>
39069         Fix module descriptions syntax.
39070         * modules/argv-iter (License): Fix syntax.
39071         * modules/di-set (License): Likewise.
39072         * modules/ino-map (License): Likewise.
39073         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
39075 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
39077         stdalign: port to Clang 3.0
39078         Problem reported by Simon Josefsson in
39079         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
39080         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
39081         which has <stdalign.h> but which does not define alignof.
39082         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
39084 2011-12-01  Eric Blake  <eblake@redhat.com>
39086         mktempd: silence dd usage
39087         * build-aux/mktempd (rand_bytes): Silence dd.
39089 2011-11-30  Simon Josefsson  <simon@josefsson.org>
39091         manywarnings: Don't mention gcc version in docstring.
39092         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
39093         Jim Meyering <meyering@redhat.com>.
39095 2011-11-30  Jim Meyering  <meyering@redhat.com>
39097         hash: mark a few floating point constants with "f" suffix
39098         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
39099         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
39100         floating point constants with "f", since they're destined to be
39101         saved/used as "float"s.
39103 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
39105         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
39106         * tests/test-float.c (test_long_double): Correct and re-enable the
39107         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
39109 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
39111         Avoid subtracting two pointers that don't point into the same block.
39112         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
39113         only pointers into the same memory block are subtracted. We cannot
39114         assume that sizeof (ptrdiff_t) == sizeof (void *).
39116 2011-11-29  Eric Blake  <eblake@redhat.com>
39118         maint.mk: add syntax check for use of compare from init.sh
39119         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
39120         moved here from coreutils.
39122         manywarnings: drop -Wunsuffixed-float-constants
39123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
39124         '1.0D', which is the only way to silence this warning for 'double'.
39126 2011-11-29  Jim Meyering  <meyering@redhat.com>
39128         hash: mark compute_bucket_size with the pure attribute
39129         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
39131         quotearg, propername: correct pragma guard expression
39132         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
39133         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
39135 2011-11-28  Jim Meyering  <meyering@redhat.com>
39137         propername: do not mark proper_name with the const attribute
39138         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
39139         since it examines data pointed to by its parameter.
39140         * lib/propername.c (proper_name): Instead, add a pragma to suppress
39141         the suggestion from -Wsuggest-attribute=const.
39143         propername: mark one more function as const
39144         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
39146 2011-11-27  Jim Meyering  <meyering@redhat.com>
39148         mark functions with const and pure attributes
39150         Mark functions per suggestions from gcc-4.6 when using these options:
39151         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
39152         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
39153         Follow these guidelines: when possible, apply the attribute to
39154         an extern declaration, not to its definition.  Apply it to the
39155         definition only when the definition is static.
39156         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
39157         * lib/argv-iter.h (argv_iter_n_args): Likewise.
39158         * lib/base64.h (isbase64): Likewise.
39159         * lib/basename-lgpl.c (last_component, base_len): Likewise.
39160         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
39161         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
39162         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
39163         (c_tolower, c_toupper): Likewise.
39164         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
39165         * lib/chdir-long.c (find_non_slash): Likewise.
39166         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
39167         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
39168         * lib/file-type.h (file_type): Likewise.
39169         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
39170         * lib/filevercmp.c (verrevcmp): Likewise.
39171         * lib/freadahead.h (freadahead): Likewise.
39172         * lib/fts.c (fts_maxarglen): Likewise.
39173         * lib/hash-pjw.h (hash_pjw): Likewise.
39174         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
39175         * lib/hash.c (is_prime, next_prime): Likewise.
39176         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
39177         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
39178         (hash_table_ok, hash_get_first, hash_string): Likewise.
39179         (compute_bucket_size): Likewise.
39180         * lib/i-ring.h (i_ring_empty): Likewise.
39181         * lib/isnan.c (isnanl): Likewise.
39182         * lib/math.h (isnanl, rpl_isnanl): Likewise.
39183         * lib/memcasecmp.h (memcasecmp): Likewise.
39184         * lib/memchr2.h (memchr2): Likewise.
39185         * lib/memcmp2.h (memcmp2): Likewise.
39186         * lib/parse-datetime.y (lookup_zone): Likewise.
39187         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
39188         [!WINDOWS_SOCKETS]: Likewise.
39189         * lib/strnlen1.h (strnlen1): Likewise.
39190         * lib/uniwidth.in.h (uc_width): Likewise.
39191         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
39192         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
39193         (quoting_options_from_style): Add a comment.
39194         * lib/propername.h (proper_name): Add a comment.
39196 2011-11-27  Bruno Haible  <bruno@clisp.org>
39198         Remove unused macros from !_LIBC code in glibc-borrowed files.
39199         * lib/fnmatch.c (STRCOLL): Remove macro.
39200         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
39201         * lib/glob.c (__stat, __readdir64): Remove macros.
39202         * lib/tempname.c (__open64, __xstat64): Remove macros.
39203         Suggested by Paul Eggert.
39205 2011-11-27  Bruno Haible  <bruno@clisp.org>
39207         getcwd: Fix link error on MSVC 9.
39208         * modules/getcwd (Depends-on): Add readdir, rewinddir.
39210 2011-11-27  Bruno Haible  <bruno@clisp.org>
39212         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
39213         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
39214         HAVE_OPENDIR is 0.
39215         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
39216         HAVE_CLOSEDIR is 0.
39217         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
39218         is 0.
39219         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
39221 2011-11-27  Bruno Haible  <bruno@clisp.org>
39223         getcwd: Fix bug from 2011-08-17.
39224         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
39225         platforms that need it.
39226         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
39227         code of 4 to be a failure, not a success. This ensures that
39228         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
39230 2011-11-27  Bruno Haible  <bruno@clisp.org>
39232         binary-io tests: Avoid test failure on mingw when libtool is used.
39233         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
39234         Don't verify the size of t-bin-out1.tmp here.
39235         * tests/test-binary-io.sh: Verify it here.
39236         Reported by Simon Josefsson.
39238 2011-11-26  Bruno Haible  <bruno@clisp.org>
39240         Fix conflict between two instantiations of module 'unistd'.
39241         * gnulib-tool (func_emit_autoconf_snippet): Substitute
39242         ${include_guard_prefix} also in the autoconf snippet.
39243         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
39244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
39245         GNULIB_UNISTD_H_GETOPT.
39246         * modules/getopt-posix (configure.ac): Set the
39247         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
39248         * modules/getopt-gnu (configure.ac): Likewise.
39249         * modules/unistd (Makefile.am): Change the substitution value of
39250         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
39251         Reported by Simon Josefsson.
39253 2011-11-25  Bruno Haible  <bruno@clisp.org>
39255         pagealign_alloc: Doc and comments.
39256         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
39257         module.
39258         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
39260 2011-11-25  Jim Meyering  <meyering@redhat.com>
39262         test-update-copyright.sh: avoid false-positive failure
39263         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
39264         around false positive failure on Cygwin/Windows.  The latter was
39265         matching erroneously-created files with names like
39266         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
39268 2011-11-25  Simon Josefsson  <simon@josefsson.org>
39270         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
39271         * m4/valgrind-tests.m4: Check that the parameters that will be
39272         used works, not just a subset of them.  Reported by Bruno Haible
39273         <bruno@clisp.org>.
39275 2011-11-24  Jim Meyering  <meyering@redhat.com>
39277         test-stdalign.c: comment out long double tests
39278         * tests/test-stdalign.c: Don't try to reduce alignment of long double
39279         variables.  That provokes errors like this from gcc-4.7.0 20111124:
39280         error: '_Alignas' specifiers cannot reduce alignment of \
39281         'static_longdouble_alignas'.
39283 2011-11-22  Jim Meyering  <meyering@redhat.com>
39285         init.sh: make "compare /dev/null FILE" output more readable
39286         * tests/init.sh (compare_): Document the preferred order of arguments.
39287         (emit_diff_u_header_): New function.
39288         (compare_dev_null_): Emit a simulated diff, rather than just the
39289         contents of the unexpected file.  Suggestion from Bruno Haible.
39291 2011-11-21  Jim Meyering  <meyering@redhat.com>
39292             Eric Blake  <eblake@redhat.com>
39294         init.sh: work around OSF/1 5.1's mishandling of /dev/null
39295         * tests/init.sh: Make our compare function slightly more portable.
39296         Reported by Bruno Haible in
39297         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
39299 2011-11-21  Simon Josefsson  <simon@josefsson.org>
39301         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
39302         before using it, in code that ends up in config.h.
39304 2011-11-20  Bruno Haible  <bruno@clisp.org>
39306         getcwd: Work around getcwd bug on AIX 5..7.
39307         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
39308         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
39309         Use a different value for gl_cv_func_getcwd_path_max. Move the
39310         definition of HAVE_PARTLY_WORKING_GETCWD from here...
39311         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
39312         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
39313         Define HAVE_MINIMALLY_WORKING_GETCWD.
39314         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
39315         where it is not even minimally working, that is, on AIX.
39316         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
39317         m4/getcwd-path-max.m4.
39318         (main): Update exit code computation.
39319         * doc/posix-functions/getcwd.texi: Mention list of platforms where
39320         getcwd does not handle long file names.
39322 2011-11-20  Bruno Haible  <bruno@clisp.org>
39324         getcwd: Fix bug from 2009-09-10.
39325         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
39326         like "no".
39328 2011-11-20  Simon Josefsson  <simon@josefsson.org>
39330         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
39332 2011-11-20  Bruno Haible  <bruno@clisp.org>
39334         fma tests: Avoid shadowing local variables.
39335         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
39336         expected.
39338 2011-11-20  Bruno Haible  <bruno@clisp.org>
39340         copysignf tests: Fix.
39341         * tests/test-copysignf.c: Fix signature check.
39343 2011-11-20  Bruno Haible  <bruno@clisp.org>
39345         fma: Remove unused code.
39346         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
39347         unused macros.
39349 2011-11-20  Bruno Haible  <bruno@clisp.org>
39351         sethostname: Fix doc about AIX.
39352         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
39353         sethostname; it has it.
39355         sethostname: Mention more portability problems.
39356         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
39357         problem.
39358         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
39360 2011-11-19  Bruno Haible  <bruno@clisp.org>
39362         Depend on module fcntl-h when AT_FDCWD is used.
39363         * modules/utimens (Depends-on): Add fcntl-h.
39364         * modules/areadlinkat (Depends-on): Likewise.
39365         * modules/areadlinkat-with-size (Depends-on): Likewise.
39366         * modules/faccessat (Depends-on): Likewise.
39367         * modules/fchmodat (Depends-on): Likewise.
39368         * modules/fchownat (Depends-on): Likewise.
39369         * modules/getcwd (Depends-on): Likewise.
39370         * modules/mkdirat (Depends-on): Likewise.
39371         * modules/mkfifoat (Depends-on): Likewise.
39372         * modules/readlinkat (Depends-on): Likewise.
39373         * modules/symlinkat (Depends-on): Likewise.
39374         * modules/dup2-tests (Depends-on): Likewise.
39375         * modules/fdutimensat-tests (Depends-on): Likewise.
39376         * modules/futimens-tests (Depends-on): Likewise.
39378 2011-11-19  Bruno Haible  <bruno@clisp.org>
39380         euidaccess: Update a comment.
39381         * lib/euidaccess.c: Update comment about platforms with faccessat.
39383 2011-11-19  Bruno Haible  <bruno@clisp.org>
39385         openat: Fix file list.
39386         * modules/openat (Files): Remove lib/at-func.c.
39388 2011-11-19  Bruno Haible  <bruno@clisp.org>
39390         fstatat: Simplify.
39391         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
39392         gnulib should define rpl_fstatat, there is a
39393         "#define fstatat rpl_fstatat" in <sys/stat.h>.
39395 2011-11-19  Bruno Haible  <bruno@clisp.org>
39397         Ensure 'inline' can be used in tests/test-utimens-common.h.
39398         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
39399         * modules/futimens-tests (configure.ac): Likewise.
39400         * modules/utimens-tests (configure.ac): Likewise.
39401         * modules/utimensat-tests (configure.ac): Likewise.
39403 2011-11-19  Simon Josefsson  <simon@josefsson.org>
39405         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
39406         not hash_insert0.
39407         (hash_insert_if_absent): Doc fix.
39409 2011-11-19  Simon Josefsson  <simon@josefsson.org>
39411         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
39413 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
39415         test-getcwd: disambiguate exit status
39416         * tests/test-getcwd.c (test_long_name): Return 0..7.
39417         (main): Exit with an unambiguous exit status.  The old
39418         code yielded a mysterious mixture of two failure codes.
39420         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
39421         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
39422         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
39423         rpl_fstatat or fstatat.  This should fix the other problem
39424         reported by Kai Habel in
39425         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
39426         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
39427         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
39428         and I reproduced it on a Solaris 8 host we still have in production.
39430 2011-11-18  Jim Meyering  <meyering@redhat.com>
39432         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
39433         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
39434         Add a sentence to the comment.
39435         (hash_insert0): New function that simply calls hash_insert_if_absent.
39436         * lib/hash.h (hash_insert_if_absent): Declare it.
39437         (hash_insert0): Add deprecation attribute.
39438         (_GL_ATTRIBUTE_DEPRECATED): Define.
39439         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
39440         not hash_insert0.
39441         * NEWS: Mention it, even though it's not really an incompatible change.
39443 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
39445         openat: avoid compilation failure due to lack of <errno.h> inclusion
39446         * lib/openat.c: Include <errno.h>.
39448 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39450         * modules/getcwd (Depends-on): Add fdopendir.
39451         This fixes one of the two problems reported by Kai Habel in
39452         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
39454         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
39455         stdalign problem reported by Ian Beckwith in
39456         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
39457         * modules/crypto/gc-arcfour (Depends-on):
39458         Depend conditionally on crypto/arcfour.
39459         * modules/crypto/gc-arctwo (Depends-on):
39460         Depend conditionally on crypto/arctwo.
39461         * modules/crypto/gc-des (Depends-on):
39462         Depend conditionally on crypto/des.
39463         * modules/crypto/gc-hmac-md5 (Depends-on):
39464         Depend conditionally on crypto/hmac-md5.
39465         * modules/crypto/gc-hmac-sha1 (Depends-on):
39466         Depend conditionally on crypto/hmac-sha1.
39467         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
39468         * modules/crypto/gc-md4 (Depends-on):
39469         Depend conditionally on crypto/md4.
39470         * modules/crypto/gc-md5 (Depends-on):
39471         Depend conditionally on crypto/md5.
39472         * modules/crypto/gc-rijndael (Depends-on):
39473         Depend conditionally on crypto/rijndael.
39474         * modules/crypto/gc-sha1 (Depends-on):
39475         Depend conditionally on crypto/sha1.
39476         * modules/crypto/gc-arcfour:
39477         * modules/crypto/gc-arctwo:
39478         * modules/crypto/gc-des:
39479         * modules/crypto/gc-hmac-md5:
39480         * modules/crypto/gc-hmac-sha1:
39481         * modules/crypto/gc-md2:
39482         * modules/crypto/gc-md4:
39483         * modules/crypto/gc-md5:
39484         * modules/crypto/gc-rijndael:
39485         * modules/crypto/gc-sha1:
39486         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
39487         now that the conditional dependencies do the work for us.
39489 2011-11-17  Jim Meyering  <meyering@redhat.com>
39491         tests: factor st_ctime-comparison out of two headers
39492         * tests/test-utimens-common.h (ctime_compare): Define.
39493         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
39494         * tests/test-lutimens.h (test_lutimens): Likewise.
39495         * tests/test-utimens.h (test_utimens): Likewise.
39497         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
39498         Invoke the test program via an init.sh-using wrapper.
39499         * tests/test-getcwd.sh: New file.
39500         * modules/getcwd-tests (Files): Add it.
39501         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
39503 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
39505         gitlog-to-changelog: support multi-author commits.
39506         The FSF cares about keeping track of all authors of patches to its
39507         projects, but Git doesn't provide obvious support for multi-author
39508         changesets. Consensus seems to be forming around the use of extra
39509         Signed-off-by inspired lines in the log message formatted as
39510         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
39511         multi-author commits between version control systems.
39512         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
39513         log message and output in standard ChangeLog multi-author format.
39514         Reported by Peter Rosin <peda@lysator.liu.se>
39516 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
39517             Bruno Haible  <bruno@clisp.org>
39519         Fix some modules' file list.
39520         * modules/fstatat (Files): Add m4/lstat.m4.
39521         * modules/openat (Files): Likewise.
39522         * modules/unlinkat (Files): Likewise.
39524 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
39526         maint.mk: fix tight-scope.mk generation in VPATH builds.
39527         * top/maint.mk (tight-scope.mk): Make sure to prefix file
39528         reference with $(srcdir) so that the file is found correctly even
39529         when running `make syntax-check' in a VPATH build.
39531 2011-11-13  Bruno Haible  <bruno@clisp.org>
39532             Jim Meyering  <meyering@redhat.com>
39534         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
39535         * tests/init.sh (compare): Remove "No differences encountered" or
39536         synonymous output from the 'diff' program.
39538 2011-11-13  Bruno Haible  <bruno@clisp.org>
39540         Makefile: Tweak indentation.
39541         * Makefile: Use tab as first character in every line that contains rule
39542         commands.
39544 2011-11-13  Bruno Haible  <bruno@clisp.org>
39546         Syntax check for copyright statements.
39547         * check-copyright: New file.
39548         * Makefile (sc_check_copyright): New rule.
39550 2011-11-13  Simon Josefsson  <simon@josefsson.org>
39552         * build-aux/git-version-gen: Add --prefix to configure the tag
39553         match string.
39555 2011-11-13  Simon Josefsson  <simon@josefsson.org>
39557         * build-aux/git-version-gen: Add --help and --version.
39559 2011-11-12  Jim Meyering  <meyering@redhat.com>
39561         revamp the other test-exclude?.sh scripts to use init.sh, too
39562         * tests/test-exclude1.sh: Use init.sh.
39563         * tests/test-exclude2.sh: Likewise.
39564         * tests/test-exclude3.sh: Likewise.
39565         * tests/test-exclude4.sh: Likewise.
39566         * tests/test-exclude5.sh: Likewise.
39567         * tests/test-exclude6.sh: Likewise.
39568         * tests/test-exclude7.sh: Likewise.
39569         * tests/test-exclude8.sh: Likewise.
39570         * modules/exclude-tests (Files): List init.sh.
39572         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
39573         These shell scripts ignored failure of the binary test-exclude,
39574         so making the latter return 77 didn't cause them to be skipped.
39575         * tests/test-exclude5.sh: Exit with test-exclude's error status
39576         when that program fails.  Revamp to use init.sh.
39577         * tests/test-exclude2.sh: Likewise.
39579         test-exclude: fix a typo
39580         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
39582 2011-11-11  Bruno Haible  <bruno@clisp.org>
39584         obstack: Fix compilation error on MSVC 9.
39585         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
39587 2011-11-11  Jim Meyering  <meyering@redhat.com>
39589         test-exclude: skip tests rather than failing on deficient systems
39590         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
39591         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
39592         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
39593         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
39595 2011-11-10  Bruno Haible  <bruno@clisp.org>
39597         ptsname_r test: Avoid gcc warning on glibc systems.
39598         * tests/test-ptsname_r.c (null_ptr): New function.
39599         (test_errors): Use it.
39601 2011-11-10  Bruno Haible  <bruno@clisp.org>
39603         ptsname_r: Avoid compilation error on OSF/1 5.1.
39604         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
39605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
39606         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
39607         function is not declared or incompatibly declared.
39608         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
39609         * modules/ptsname_r (Depends-on, configure.ac): Update.
39610         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
39612 2011-11-10  Bruno Haible  <bruno@clisp.org>
39614         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
39615         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
39616         When cross-compiling, guess yes on all platforms except AIX.
39617         Reported by Ludovic Courtès <ludo@gnu.org>.
39619 2011-11-09  Bruno Haible  <bruno@clisp.org>
39621         ptsname_r tests: Fix bugs.
39622         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
39623         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
39625 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39627         fstatat: work with cross-compilation
39628         Problem reported by Ludovic Courtès in
39629         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
39630         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
39631         "cross-compiling" and assume the bug is present.  Replace
39632         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
39633         an inverted sense, to be more conservative about our assumptions.
39634         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
39636 2011-11-09  Bruno Haible  <bruno@clisp.org>
39638         Improve MODULES.html output.
39639         * modules/mkfifoat (Description): Use the word "function".
39640         * modules/readlinkat (Description): Likewise.
39641         * modules/symlinkat (Description): Likewise.
39643 2011-11-09  Eric Blake  <eblake@redhat.com>
39645         ptsname_r-tests: new test module
39646         * modules/ptsname_r-tests: New module.
39647         * tests/test-ptsname_r.c: New file.
39649         ptsname_r: new module
39650         * modules/ptsname_r: New module.
39651         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
39652         * lib/ptsname.c (__ptsname_r): Split...
39653         * lib/ptsname_r.c: ...into new file.
39654         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
39655         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
39656         * modules/stdlib (Makefile.am): Substitute witnesses.
39657         * lib/stdlib.in.h (ptsname_r): Declare it.
39658         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
39659         * MODULES.html.sh (Misc): Likewise.
39660         * modules/ptsname (Depends-on): Alter dependency.
39661         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
39663 2011-11-09  Jim Meyering  <meyering@redhat.com>
39665         announce-gen: be more concise when there's only one URL+tarball
39666         * build-aux/announce-gen (get_tool_versions): When you distribute
39667         only one type of tarball, combine the first two "Here are..."
39668         sections and make the key-checking grammar independent of
39669         how many tarballs there are.
39671 2011-11-09  Eric Blake  <eblake@redhat.com>
39673         openpty: provide a stub on mingw
39674         * lib/pty.in.h (includes): Provide forward declarations.
39675         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
39677         raise: fix mingw handling of SIGPIPE
39678         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
39680 2011-11-08  Bruno Haible  <bruno@clisp.org>
39682         More conditional dependencies.
39683         * modules/faccessat (Depends-on): Add conditions.
39684         * modules/fchmodat (Depends-on): Likewise.
39685         * modules/fchownat (Depends-on): Likewise.
39686         * modules/fstatat (Depends-on): Likewise.
39687         * modules/mkfifoat (Depends-on): Likewise.
39688         * modules/readlinkat (Depends-on): Likewise.
39689         * modules/symlinkat (Depends-on): Likewise.
39690         * modules/unlinkat (Depends-on): Likewise.
39691         * modules/utimensat (Depends-on): Likewise.
39692         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
39693         * modules/linkat (Depends-on): Refine the conditions.
39694         * modules/renameat (Depends-on): Likewise.
39696 2011-11-08  Bruno Haible  <bruno@clisp.org>
39698         faccessat: Move AC_LIBOBJ invocation to module description.
39699         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
39700         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
39701         invocation from here...
39702         * modules/faccessat (configure.ac): ... to here. Invoke
39703         gl_PREREQ_FACCESSAT.
39705 2011-11-08  Bruno Haible  <bruno@clisp.org>
39707         faccessat: Simplify autoconf macro.
39708         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
39709         gl_FUNC_EUIDACCESS.
39711 2011-11-08  Bruno Haible  <bruno@clisp.org>
39713         renameat: Fix dependencies.
39714         * modules/renameat (Depends-on): Add stdbool.
39716 2011-11-08  Bruno Haible  <bruno@clisp.org>
39718         mkfifoat: Fix module description.
39719         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
39720         not gl_UNISTD_MODULE_INDICATOR.
39722 2011-11-08  Bruno Haible  <bruno@clisp.org>
39724         fstatat: Remove unused dependency.
39725         * modules/fstatat (Depends-on): Remove fstat.
39727 2011-11-08  Simon Josefsson  <simon@josefsson.org>
39729         GNUmakefile: behave when Makefile is missing.
39730         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
39732 2011-11-08  Bruno Haible  <bruno@clisp.org>
39734         openat: Conditionalize dependencies.
39735         * lib/openat.c: Reduce the scope of some #includes.
39736         * modules/openat (Depends-on): Add conditions.
39738 2011-11-07  Jim Meyering  <meyering@redhat.com>
39740         maint.mk: extract GPG key ID without using a temporary file
39741         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
39742         without using a temporary file.  Based on a suggestion from Werner Koch
39743         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
39745 2011-11-07  Eric Blake  <eblake@redhat.com>
39747         grantpt: fix typo
39748         * lib/stdlib.in.h (grantpt): Check correct function.
39750         maint.mk: silence new syntax check
39751         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
39753 2011-11-06  Bruno Haible  <bruno@clisp.org>
39755         Doc about floating-point and math API.
39756         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
39757         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
39759 2011-11-06  Bruno Haible  <bruno@clisp.org>
39761         stdalign tests: Skip the test when compiled by Sun C.
39762         * tests/test-stdalign.c (main): Skip the test on Sun C.
39764 2011-11-06  Bruno Haible  <bruno@clisp.org>
39766         ansi-c++-opt: Complete the 2011-06-05 change.
39767         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
39768         does not support namespaces, set the variable to "no", not to ":".
39770 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39772         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
39774 2011-11-06  Bruno Haible  <bruno@clisp.org>
39776         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
39777         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
39778         (minus_zerol) [HP-UX]: New macro.
39779         (unary_minus) [HP-UX]: New function.
39780         (copysignl) [HP-UX]: Use unary_minus function.
39782 2011-11-06  Bruno Haible  <bruno@clisp.org>
39784         ldexp, ldexpf, ldexpl: Enhance tests.
39785         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
39786         and tests/test-ldexpl.c.
39787         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
39788         LDEXP, MIN_EXP, MAX_EXP): New macros.
39789         Include test-ldexp.h.
39790         (main): Just call test_function.
39791         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
39792         infinity.h, nan.h.
39793         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
39794         MAX_EXP): New macros.
39795         Include test-ldexp.h.
39796         (x, y): Remove variables.
39797         (main): Just call test_function.
39798         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
39799         infinity.h, nan.h.
39800         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
39801         MAX_EXP): New macros.
39802         Include test-ldexp.h.
39803         (x, y): Remove variables.
39804         (main): Just call test_function.
39805         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
39806         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
39807         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
39808         (Depends-on): Add isnand-nolibm, signbit, float.
39809         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
39810         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
39811         (Depends-on): Add isnanf-nolibm, signbit, float.
39813 2011-11-06  Bruno Haible  <bruno@clisp.org>
39815         math tests: Cosmetics.
39816         * tests/test-math-c++.cc: Reorder declarations.
39818 2011-11-05  Bruno Haible  <bruno@clisp.org>
39820         fma*: Simplify test.
39821         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
39822         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
39824         Tests for module 'fmal'.
39825         * modules/fmal-tests: New file.
39826         * tests/test-fmal1.c: New file.
39827         * tests/test-fmal2.c: New file.
39829         New module 'fmal'.
39830         * lib/math.in.h (fmal): New declaration.
39831         * lib/fmal.c: New file.
39832         * m4/fmal.m4: New file.
39833         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
39834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
39835         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
39836         REPLACE_FMAL.
39837         * modules/fmal: New file.
39838         * doc/posix-functions/fmal.texi: Mention the new module and the various
39839         bugs.
39841         Tests for module 'fmaf'.
39842         * modules/fmaf-tests: New file.
39843         * tests/test-fmaf1.c: New file.
39844         * tests/test-fmaf2.c: New file.
39846         New module 'fmaf'.
39847         * lib/math.in.h (fmaf): New declaration.
39848         * lib/fmaf.c: New file.
39849         * m4/fmaf.m4: New file.
39850         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
39851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
39852         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
39853         REPLACE_FMAF.
39854         * modules/fmaf: New file.
39855         * doc/posix-functions/fmaf.texi: Mention the new module and the various
39856         bugs.
39858         Tests for module 'fma'.
39859         * modules/fma-tests: New file.
39860         * tests/test-fma1.c: New file.
39861         * tests/test-fma1.h: New file.
39862         * tests/test-fma2.c: New file.
39863         * tests/test-fma2.h: New file.
39865         New module 'fma'.
39866         * lib/math.in.h (fma): New declaration.
39867         * lib/fma.c: New file.
39868         * m4/fma.m4: New file.
39869         * m4/fegetround.m4: New file.
39870         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
39871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
39872         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
39873         REPLACE_FMA.
39874         * modules/fma: New file.
39875         * doc/posix-functions/fma.texi: Mention the new module and the various
39876         bugs.
39878         Extend gl_MATHFUNC.
39879         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
39880         Support 'void' as argument type.
39881         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
39883 2011-11-05  Jim Meyering  <meyering@redhat.com>
39885         maint.mk: also prohibit inclusion of dirent.h without use
39886         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
39888 2011-11-05  Bruno Haible  <bruno@clisp.org>
39890         ldexpl tests: Avoid test failure on MSVC 9.
39891         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
39892         value. Needed in order to enforce the conversion from a value greater
39893         than LDBL_MAX to Infinity.
39895 2011-11-05  Bruno Haible  <bruno@clisp.org>
39897         New modules 'at-internal', 'openat-h', split off from module 'openat'.
39898         * modules/at-internal: New file, extracted from modules/openat.
39899         * modules/openat-h: New file.
39900         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
39901         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
39902         * modules/openat (Description): Add reference to POSIX function.
39903         (Files): Remove lib/openat.h, lib/openat-proc.c.
39904         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
39905         intprops, unistd.
39906         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
39907         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
39908         gl_FCNTL_MODULE_INDICATOR.
39909         (Include): Remove unistd.h, openat.h.
39910         * modules/areadlinkat (Files): Add lib/at-func.c.
39911         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
39912         openat-die, openat-h, save-cwd.
39913         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
39914         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
39915         openat-die, openat-h, save-cwd, unistd.
39916         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
39917         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39918         openat-h, save-cwd. Remove fcntl-h, openat.
39919         * modules/fchmodat (Files): Remove lib/openat.h.
39920         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
39921         openat, stdbool, unistd.
39922         * modules/fchownat (Files): Remove lib/openat.h.
39923         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
39924         openat, stdbool, sys_stat.
39925         * modules/fdopendir (Files): Remove lib/openat-priv.h,
39926         lib/openat-proc.c.
39927         (Depends-on): Add at-internal.
39928         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
39929         * modules/fstatat (Files): Remove lib/openat.h.
39930         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
39931         stdbool, unistd.
39932         * modules/fts (Depends-on): Add openat-h.
39933         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
39934         openat.
39935         * modules/mkdirat (Files): Remove lib/openat.h.
39936         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
39937         openat, stdbool, sys_stat.
39938         * modules/mkfifoat (Files): Add lib/at-func.c.
39939         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39940         openat-h, save-cwd. Remove fcntl-h, openat.
39941         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
39942         * modules/readlinkat (Files): Add lib/at-func.c.
39943         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39944         openat-h, save-cwd. Remove fcntl-h, openat.
39945         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
39946         openat.
39947         * modules/selinux-at (Files): Add lib/at-func.c.
39948         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
39949         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
39950         * modules/symlinkat (Files): Add lib/at-func.c.
39951         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39952         openat-h, save-cwd. Remove fcntl-h, openat.
39953         * modules/unlinkat (Files): Remove lib/openat.h.
39954         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
39955         stdbool.
39956         * modules/utimensat (Files): Add lib/at-func.c.
39957         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
39958         openat-die, openat-h, save-cwd.
39959         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
39960         * modules/fdutimensat-tests (Depends-on): Add openat.
39961         * modules/fstatat-tests (Depends-on): Add openat-h.
39962         * modules/readlinkat-tests (Depends-on): Add openat.
39963         * modules/symlinkat-tests (Depends-on): Add openat.
39965 2011-11-05  Bruno Haible  <bruno@clisp.org>
39967         openat: Include <stdbool.h>.
39968         * lib/openat.c: Include <stdbool.h>.
39970 2011-11-04  Bruno Haible  <bruno@clisp.org>
39972         fchownat, renameat, unlinkat: Fix dependencies.
39973         * modules/fchownat (Depends-on): Add fstatat.
39974         * modules/renameat (Depends-on): Likewise.
39975         * modules/unlinkat (Depends-on): Likewise.
39977 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
39979         openat: remove direct dependency on dirent
39980         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
39981         and hasn't been needed ever since fdopendir was split into its own
39982         module on 2009-08-31.
39983         * modules/openat (Depends-on): Remove dirent.
39985 2011-11-04  Bruno Haible  <bruno@clisp.org>
39987         renameat: Optimize code size.
39988         * modules/renameat (configure.ac): Don't compile at-func2.c if
39989         REPLACE_RENAMEAT is 1.
39991 2011-11-04  Bruno Haible  <bruno@clisp.org>
39993         openat tests: Fix file list.
39994         * modules/openat-tests (Files): Add tests/test-open.h.
39996 2011-11-04  Bruno Haible  <bruno@clisp.org>
39998         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
39999         * modules/fchmodat (Depends-on): Add openat-die.
40000         * modules/fchownat (Depends-on): Likewise.
40001         * modules/linkat (Depends-on): Likewise.
40002         * modules/renameat (Depends-on): Likewise.
40003         * modules/openat (Depends-on): Add dirent.
40005 2011-11-04  Jim Meyering  <meyering@redhat.com>
40007         at-func*.c: fix comments
40008         * lib/at-func2.c: Correct/improve first-line comment.
40009         * lib/at-func.c: Correct grammar in first-line comment.
40011 2011-11-04  Bruno Haible  <bruno@clisp.org>
40013         New module 'mkdirat', split off from module 'openat'.
40014         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
40015         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
40016         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
40017         * modules/mkdirat: New file, extracted from modules/openat.
40018         * modules/openat (Files): Remove lib/mkdirat.c.
40019         (Depends-on): Remove mkdir.
40020         (configure.ac): Remove AC_LIBOBJ of mkdirat.
40021         (Include): Remove <sys/stat.h>.
40022         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
40023         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
40024         tests/test-mkdir.h.
40025         (Depends-on): Remove ignore-value.
40026         (Makefile.am): Remove rules for test-mkdirat.
40027         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
40028         of module 'openat'.
40029         * NEWS: Mention the change.
40031 2011-11-04  Bruno Haible  <bruno@clisp.org>
40033         closedir: Avoid warning on mingw.
40034         * lib/closedir.c: Include <unistd.h>.
40036 2011-11-04  Bruno Haible  <bruno@clisp.org>
40038         New module 'fstatat', split off from module 'openat'.
40039         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
40040         defined.
40041         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
40042         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
40043         gl_FUNC_FSTATAT.
40044         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
40045         * modules/fstatat: New file, extracted from modules/openat.
40046         * modules/openat (Files): Remove lib/fstatat.c.
40047         (Depends-on): Remove lstat.
40048         (configure.ac): Remove AC_LIBOBJ of fstatat.
40049         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
40050         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
40051         tests/test-lstat.h, tests/test-stat.h.
40052         (Depends-on): Remove getcwd-lgpl.
40053         (Makefile.am): Remove rules for test-fstatat.
40054         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
40055         of module 'openat'.
40056         * NEWS: Mention the change.
40057         * modules/getcwd (Depends-on): Add fstatat.
40058         * modules/linkat (Depends-on): Likewise.
40059         * modules/mkfifoat-tests (Depends-on): Likewise.
40060         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
40062 2011-11-03  Bruno Haible  <bruno@clisp.org>
40064         New module 'unlinkat', split off from module 'openat'.
40065         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
40066         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
40067         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
40068         * modules/unlinkat: New file, extracted from modules/openat. Correct
40069         the dependency conditions.
40070         * modules/openat (Files): Remove lib/unlinkat.c.
40071         (Depends-on): Remove rmdir, unlink.
40072         (configure.ac): Remove AC_LIBOBJ of unlinkat.
40073         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
40074         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
40075         tests/test-rmdir.h, tests/test-unlink.h.
40076         (Depends-on): Remove unlinkdir.
40077         (Makefile.am): Remove rules for test-unlinkat.
40078         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
40079         of module 'openat'.
40080         * NEWS: Mention the change.
40081         * modules/linkat-tests (Depends-on): Add unlinkat.
40082         * modules/mkfifoat-tests (Depends-on): Likewise.
40083         * modules/readlinkat-tests (Depends-on): Likewise.
40085 2011-11-02  Bruno Haible  <bruno@clisp.org>
40087         New module 'fchmodat', split off from module 'openat'.
40088         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
40089         defined.
40090         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
40091         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
40092         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
40093         * modules/fchmodat: New file, extracted from modules/openat.
40094         * modules/openat (Files): Remove lib/fchmodat.c.
40095         (configure.ac): Remove AC_LIBOBJ of fchmodat.
40096         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
40097         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
40098         (Makefile.am): Remove rules for test-fchmodat.
40099         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
40100         of module 'openat'.
40101         * NEWS: Mention the change.
40103 2011-11-02  Jim Meyering  <meyering@redhat.com>
40105         putenv: indent #definition of "environ" to placate cppi
40106         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
40108         gitlog-to-changelog: provide a ChangeLog-repair mechanism
40109         Git logs are often treated as immutable, because editing them
40110         changes the SHA1 checksums of all descendants.  Thus, errors in
40111         git logs tend to stay there forever.  However, when we generate
40112         a ChangeLog file -- typically for distribution -- from that git log,
40113         we can actually make corrections in the generated file.  The key
40114         lies in recording in machine-readable/applicable form the desired
40115         corrections.  See --help for description and an example.
40116         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
40117         (usage): Describe it; alphabetize option descriptions.
40118         (main): Honor the new option, carefully.
40120 2011-11-01  Jim Meyering  <meyering@redhat.com>
40122         gitlog-to-changelog: avoid an infloop
40123         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
40124         that ends up being empty.
40126 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40128         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
40129         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
40130         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
40131         contains (possibly-quoted) backslashes.  This should avoid
40132         all-too-common shell bugs if COMPLICATED contains backslashes in
40133         the "wrong" places.  Reported by David Evans in
40134         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
40135         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
40136         because we want ASCII ranges.  Is there some reason we don't use
40137         the C locale everywhere in this script?
40138         (func_module, top level): Avoid unwanted pathname expansion when
40139         $repo_url_prefix or $repo_url_suffix_repl contain shell
40140         metacharacters like '?' and '*'.
40142 2011-11-01  Bruno Haible  <bruno@clisp.org>
40144         fchownat: Improve description.
40145         * modules/fchownat (Description): Add link to function.
40147 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40149         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
40150         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
40151         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
40152         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
40154 2011-11-01  Bruno Haible  <bruno@clisp.org>
40156         alignof: Avoid collision with stdalign module.
40157         * lib/alignof.h (alignof): Remove macro.
40158         * NEWS: Mention the change.
40159         Reported by Paul Eggert.
40161 2011-11-01  Bruno Haible  <bruno@clisp.org>
40163         New module 'fchownat', split off from module 'openat'.
40164         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
40165         defined.
40166         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
40167         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
40168         invoke gl_FUNC_FCHOWNAT.
40169         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
40170         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
40171         * modules/fchownat: New file, extracted from modules/openat.
40172         * modules/openat (Files): Remove lib/fchownat.c.
40173         (Depends-on): Remove lchown.
40174         (configure.ac): Remove AC_LIBOBJ of fchownat.
40175         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
40176         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
40177         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
40178         (Depends-on): Remove mgetgroups, usleep, stat-time.
40179         (configure.ac): Remove test for getegid.
40180         (Makefile.am): Remove rules for test-fchownat.
40181         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
40182         of module 'openat'.
40183         * NEWS: Mention the change.
40185 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40187         stdalign: port better to MSVC and to Sun C 5.11
40188         This fixes some of the problems reported by Bruno Haible in
40189         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
40190         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
40191         shortcomings of MSVC and of Sun C 5.11.
40192         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
40193         around __declspec arg.
40194         * modules/stdalign-tests (Files): Add tests/macros.h.
40195         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
40196         Include macros.h, for ASSERT.
40197         (DECLARE_ALIGNED): Remove.
40198         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
40199         to catch bug), and to 1 if not (simplifies the rest of the code).
40200         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
40201         (CHECK_AUTO): Remove.
40202         (CHECK_ALIGNED): Check only the alignment of the static vars,
40203         since auto var alignment isn't supported by Sun C 5.11.
40204         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
40205         ASSERT failures are easier to diagnose.
40207 2011-10-31  Bruno Haible  <bruno@clisp.org>
40209         doc about some IRIX 5.3 problems.
40210         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
40211         on IRIX 5.3.
40212         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
40213         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
40214         5.3.
40215         * doc/posix-functions/grantpt.texi: Likewise.
40216         * doc/posix-functions/unlockpt.texi: Likewise.
40217         * doc/posix-functions/lgamma.texi: Likewise.
40218         * doc/posix-functions/nextafter.texi: Likewise.
40219         * doc/posix-functions/remainder.texi: Likewise.
40220         * doc/posix-functions/select.texi: Mention misplaced declaration on
40221         IRIX 5.3.
40222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40224 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
40226         gitlog-to-changelog: fix git-log invocation.
40227         git-log mishandles date strings before 1970-01-01 UTC, and there is
40228         no use to specify --since=1970-01-01 by default anyway.
40229         * build-aux/gitlog-to-changelog: By default, when no --since option
40230         was given, do not specify explicit --since option to git-log.
40232 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
40234         gitlog-to-changelog: new option --append-dot.
40235         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
40236         first non-blank line of each commit message terminated with a dot.
40238 2011-10-30  Bruno Haible  <bruno@clisp.org>
40240         ffsl, ffsll: Avoid compilation error due to 'restrict'.
40241         * lib/ffsl.h: Include <config.h>.
40242         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
40244 2011-10-30  Jim Meyering  <meyering@redhat.com>
40246         GNUmakefile: reenable "make syntax-check" for most projects
40247         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
40248         build-aux variable", "syntax-check" would do nothing but succeed with
40249         the "No version control files detected..." diagnostic (unless you
40250         happened to override _build-aux via cfg.mk).
40251         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
40252         to precede inclusion of maint.mk.  Otherwise, these variables would
40253         be used undefined in any project that does not override the default.
40255 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
40257         gitlog-to-changelog: treat a message with only blank lines as empty.
40258         * build-aux/gitlog-to-changelog: Move the code that removes leading and
40259         trailing blank lines before the code that issues a warning about an
40260         empty commit message.
40262 2011-10-30  Jim Meyering  <meyering@redhat.com>
40264         test-parse-datetime.c: avoid new DST-related false positive test failure
40265         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
40266         based on the time/date we'll convert, not the current time.
40267         Otherwise, the moment we cross a DST boundary like today's in
40268         Europe, (CEST to CET), that offset ends up being one hour off.
40270 2011-10-27  Bruno Haible  <bruno@clisp.org>
40272         fstat: Tweak documentation.
40273         * modules/fstat (Description): More precise description.
40275 2011-10-27  Bruno Haible  <bruno@clisp.org>
40277         Update documentation regarding 'largefile' module.
40278         * doc/posix-functions/fstat.texi: Tweak wording.
40279         * doc/posix-functions/opendir.texi: Mention that the module fixes the
40280         problems with huge directories and/or small ino_t types.
40281         * doc/posix-functions/readdir.texi: Likewise.
40282         * doc/posix-functions/rewinddir.texi: Likewise.
40284 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
40286         maint.mk: don't maintain a second build-aux variable.
40287         * maint.mk (build_aux): Removed.  The maintainer-makefile module
40288         depends on GNUmakefile, which already maintains a cfg.mk
40289         overridable $(_build-aux) for projects with a non-standard
40290         build-aux directory location, although without the $(srcdir)
40291         prefix.  Use that variable consistently instead of introducing a
40292         second one.  Adjust all call sites.
40294 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40296         Add stdalign module and use it in other modules.
40297         This is based on a previous proposal by Bruno Haible
40298         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
40300         stdalign: new module
40301         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
40302         * modules/stdalign: New files.
40303         * MODULES.html.sh (c1x_core_properties): Add stdalign.
40304         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
40306         stdalign-tests: new module
40307         * modules/stdalign-tests, tests/test-stdalign.c: New files.
40309         argp: use stdalign
40310         * lib/argp-parse.c: Include <stdalign.h>.
40311         (alignof): Remove.
40312         * modules/argp (Depends-on): Add stdalign.
40314         crypto libraries: use stdalign
40315         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
40316         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
40317         Do not include <stdlib.h> twice, in md4.c.
40318         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
40319         because we are accessing a pointer's bit-pattern, not a size.
40320         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
40321         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
40322         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
40323         * modules/crypto/sha512: Likewise.
40325         sys_socket: use stdalign, not alignof
40326         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
40327         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
40329 2011-10-27  Bruno Haible  <bruno@clisp.org>
40331         raise test: Avoid a test failure on Linux/MIPS.
40332         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
40333         because 99 is a valid signal on Linux/MIPS.
40335 2011-10-27  Bruno Haible  <bruno@clisp.org>
40337         nonblocking tests: Fix test failure on Linux/MIPS.
40338         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
40339         Set to 270000.
40341 2011-10-27  Bruno Haible  <bruno@clisp.org>
40343         utimensat: Work around problem on Linux/hppa.
40344         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
40345         values.
40346         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
40348 2011-10-25  Jim Meyering  <meyering@redhat.com>
40350         maint.mk: fix a bug in sc_prohibit_stddef_without_use
40351         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
40352         after symbols like NULL, size_t, etc.
40353         Reported by Alfred M. Szmidt.
40355         maint.mk: exempt ENODATA from a syntax-check rule
40356         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
40357         from the sc_prohibit_always-defined_macros syntax-check rule.
40358         Add a comment.  See this for more details:
40359         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
40361 2011-10-23  Jim Meyering  <meyering@redhat.com>
40363         fts: close parent dir FD before returning from post-traversal fts_read
40364         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
40365         unlink A, even though an FD open on A remained.  This is suboptimal
40366         (holding a file descriptor open longer than needed), but otherwise not
40367         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
40368         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
40369         that represents a real problem: it causes the removal of A to fail
40370         with e.g., "rm: cannot remove `A': Device or resource busy"
40372         fts visits each directory twice and keeps a cache (fts_fd_ring) of
40373         directory file descriptors.  After completing the final, FTS_DP,
40374         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
40375         cache, but then proceeded to add a new FD to it via the subsequent
40376         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
40377         final file descriptor would be closed only via fts_close's call to
40378         fd_ring_clear.  Now, it is usually closed earlier, via the final
40379         FTS_DP-returning fts_read call.
40380         * lib/fts.c (restore_initial_cwd): New function, converted from
40381         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
40382         Update callers.
40383         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
40384         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
40386 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
40387             Bruno Haible  <bruno@clisp.org>
40388             Jim Meyering  <jim@meyering.net>
40390         readme-release: improve safety of release prep instructions.
40391         * README-release: Don't git pull all branches when only master
40392         is needed for the release process.
40393         Run make maintainer-clean before changing trees and merging.
40394         Don't try to run ./configure right after git pull in case files
40395         that influence the bootstrap process have changed, move the
40396         ./configure step to after running ./bootstrap.
40397         Don't bootstrap "one last time"... it's the first time!
40399 2011-10-22  Bruno Haible  <bruno@clisp.org>
40401         errno, strerror-override: Support for MSVC 10.
40402         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
40403         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
40404         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
40405         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
40406         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
40407         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
40408         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
40409         Assign values compatible with MSVC 10.
40410         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
40411         New macros.
40412         (GNULIB_defined_EWINSOCK): New macro.
40413         * lib/strerror-override.c (strerror_override): Update accordingly.
40414         * lib/strerror-override.h: Likewise.
40415         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
40416         longer equal to the corresponding errno value.
40417         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40419 2011-10-22  Bruno Haible  <bruno@clisp.org>
40421         perror: Recognize when test program crashes.
40422         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
40423         strerror, set gl_cv_func_perror_works to no.
40424         Reported by Daniel Richard G. <skunk@iskunk.org>.
40426         perror: Fix indentation.
40427         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
40429 2011-10-22  Bruno Haible  <bruno@clisp.org>
40431         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
40432         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
40433         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
40434         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
40435         functions, not as a macro.
40436         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
40437         macros.
40438         (isfinite, isinf, isnan, signbit): Check overloaded functions and
40439         absence of macro.
40440         Suggested by Eric Blake.
40441         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40443 2011-10-21  Bruno Haible  <bruno@clisp.org>
40445         relocatable-prog-wrapper: Don't leave object files behind.
40446         * build-aux/install-reloc: Re-synchronize list of .o files to be
40447         removed with list of compilation units.
40449 2011-10-20  Bruno Haible  <bruno@clisp.org>
40451         openpty, posix_openpt: Remove code duplication.
40452         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
40453         * lib/openpty.c: Include <stdlib.h>.
40454         (openpty): Use posix_openpt on all platforms except IRIX.
40455         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
40457 2011-10-20  Bruno Haible  <bruno@clisp.org>
40459         unlockpt: Detect invalid argument.
40460         * lib/unlockpt.c: Include <fcntl.h>.
40461         (unlockpt): Check whether fd is valid, using fcntl().
40462         * modules/unlockpt (Depends-on): Add fcntl-h.
40464 2011-10-20  Bruno Haible  <bruno@clisp.org>
40466         openpty: Avoid compilation error on AIX 6.1.
40467         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
40469 2011-10-20  Bruno Haible  <bruno@clisp.org>
40471         posix_openpt: Support for OpenBSD.
40472         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
40473         (posix_openpt) [OpenBSD]: New code.
40474         * lib/grantpt.c: Include <fcntl.h>.
40475         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
40476         * modules/grantpt (Depends-on): Add fcntl-h.
40478 2011-10-20  Bruno Haible  <bruno@clisp.org>
40480         posix_openpt test: Coding style.
40481         * tests/test-posix_openpt.c: Use GNU coding style.
40483 2011-10-20  Bruno Haible  <bruno@clisp.org>
40485         grantpt: Support --avoid=pt_chown.
40486         * modules/grantpt (Files): Add lib/pty-private.h.
40488 2011-10-20  Bruno Haible  <bruno@clisp.org>
40490         posix_openpt: Fix autoconf macro.
40491         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
40492         unneeded check for _getpty.
40494 2011-10-20  Bruno Haible  <bruno@clisp.org>
40496         openpty: Update comments.
40497         * lib/openpty.c: Add comments about Minix.
40499 2011-10-19  Eric Blake  <eblake@redhat.com>
40501         openpty: relax license
40502         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
40504         pt_chown: use configmake to simplify build
40505         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
40507         ptsname and others: relax license
40508         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
40509         * modules/unlockpt (License): Likewise.
40510         * modules/pt_chown (License): Likewise.
40511         * modules/ptsname (License): Likewise.
40512         * modules/ttyname_r (License): Likewise.
40514 2011-10-19  Jim Meyering  <meyering@redhat.com>
40516         posix_openpt: remove spurious #endif
40517         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
40519 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
40521         maint.mk: Respect $(build_aux) in web-manual rule.
40522         * top/maint.mk (web-manual): Find gen-announce script in user's
40523         $(build_aux) directory instead of hard-coding 'build-aux'.
40525 2011-10-19  Bruno Haible  <bruno@clisp.org>
40527         posix_openpt: Fix compilation error.
40528         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
40529         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
40530         Mention the openpty module as an alternative.
40532 2011-10-19  Bruno Haible  <bruno@clisp.org>
40534         Support for old NeXTstep 3.3 frexp().
40535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
40536         execution time of the test to 5 seconds.
40537         Reported by Daniel Richard G. <skunk@iskunk.org>.
40539 2011-10-19  Bruno Haible  <bruno@clisp.org>
40541         Support for old NeXTstep 3.3 sed.
40542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
40543         part, use /.../, not \|...|. Escape periods in the header file name.
40544         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
40545         Reported by Daniel Richard G. <skunk@iskunk.org>.
40547 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
40549         Support for old NeXTstep 3.3 gcc.
40550         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
40551         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
40552         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
40553         * lib/spawn.in.h (_Restrict_arr_): Likewise.
40554         * lib/regex.h (_Restrict_arr_): Likewise.
40555         * lib/regex_internal.h (re_token_t): Likewise.
40556         * lib/regexec.c (check_node_accept_bytes): Likewise.
40557         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
40559 2011-10-18  Eric Blake  <eblake@redhat.com>
40561         posix_openpt: new module
40562         * modules/posix_openpt: New module.
40563         * m4/posix_openpt.m4: New file.
40564         * lib/posix_openpt.c: Likewise.
40565         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
40566         (gl_STDLIB_H_DEFAULTS): Set defaults.
40567         * modules/stdlib (Makefile.am): Substitute macros.
40568         * lib/stdlib.in.h (posix_openpt): Declare.
40569         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
40570         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
40571         * modules/posix_openpt-tests: New test module.
40572         * tests/test-posix_openpt.c: New test.
40574 2011-10-15  Bruno Haible  <bruno@clisp.org>
40576         xstrtoll: Fix compilation failure.
40577         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
40578         from lib/strtol.c.
40579         * doc/posix-headers/limits.texi: Mention missing numerical limits on
40580         some platforms.
40581         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40583 2011-10-15  Bruno Haible  <bruno@clisp.org>
40585         vasnprintf: Optimize bit search operation.
40586         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
40587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
40588         gl_DOUBLE_EXPONENT_LOCATION.
40589         * modules/vasnprintf (Files): Add m4/exponentd.m4.
40590         * modules/unistdio/u8-vasnprintf (Files): Likewise.
40591         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
40592         * modules/unistdio/u16-vasnprintf (Files): Likewise.
40593         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
40594         * modules/unistdio/u32-vasnprintf (Files): Likewise.
40595         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
40596         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
40597         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
40599 2011-10-15  Bruno Haible  <bruno@clisp.org>
40601         vasnprintf: Fix comments.
40602         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
40604 2011-10-14  Bruno Haible  <bruno@clisp.org>
40606         Tests for module 'integer_length_ll'.
40607         * modules/integer_length_ll-tests: New file.
40608         * tests/test-integer_length_ll.c: New file.
40610         New module 'integer_length_ll'.
40611         * lib/integer_length_ll.c: New file.
40612         * modules/integer_length_ll: New file.
40614 2011-10-14  Bruno Haible  <bruno@clisp.org>
40616         Tests for module 'integer_length_l'.
40617         * modules/integer_length_l-tests: New file.
40618         * tests/test-integer_length_l.c: New file.
40620         New module 'integer_length_l'.
40621         * lib/integer_length_l.c: New file.
40622         * modules/integer_length_l: New file.
40624 2011-10-14  Bruno Haible  <bruno@clisp.org>
40626         Tests for module 'integer_length'.
40627         * modules/integer_length-tests: New file.
40628         * tests/test-integer_length.c: New file.
40630         New module 'integer_length'.
40631         * lib/integer_length.h: New file.
40632         * lib/integer_length.c: New file.
40633         * modules/integer_length: New file.
40635 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
40637         popen: Fix dependency conditions.
40638         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
40640 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
40642         perror: Fix autoconf test.
40643         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
40644         <stdlib.h> and <string.h>.
40646 2011-10-14  Bruno Haible  <bruno@clisp.org>
40648         ffsl: Optimize on 64-bit platforms.
40649         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
40650         unrolling.
40652 2011-10-13  Bruno Haible  <bruno@clisp.org>
40654         ffsl: Optimize on 32-bit platforms.
40655         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
40656         use ffs() without a loop.
40658         ffsl, ffsll: Optimize for GCC.
40659         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
40660         * lib/ffsl.c (GCC_BUILTIN): New macro.
40661         * lib/ffsll.c (GCC_BUILTIN): Likewise.
40663 2011-10-13  Bruno Haible  <bruno@clisp.org>
40665         ffs, bcopy, memset: Support symbol renaming via config.h.
40666         * lib/ffs.c: Include <config.h>.
40667         * lib/bcopy.c: Likewise.
40668         * lib/memset.c: Likewise.
40670 2011-10-10  Bruno Haible  <bruno@clisp.org>
40672         atanl: Simplify for platforms where 'long double' == 'double'.
40673         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40674         alternative implementation.
40675         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40676         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40677         * modules/atanl (Depends-on): Add atan. Update conditions.
40679 2011-10-10  Bruno Haible  <bruno@clisp.org>
40681         acosl: Simplify for platforms where 'long double' == 'double'.
40682         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40683         alternative implementation.
40684         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40685         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40686         * modules/acosl (Depends-on): Add acos. Update conditions.
40688 2011-10-10  Bruno Haible  <bruno@clisp.org>
40690         asinl: Simplify for platforms where 'long double' == 'double'.
40691         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40692         alternative implementation.
40693         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40694         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40695         * modules/asinl (Depends-on): Add asin. Update conditions.
40697 2011-10-10  Bruno Haible  <bruno@clisp.org>
40699         tanl: Simplify for platforms where 'long double' == 'double'.
40700         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40701         implementation.
40702         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40703         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40704         * modules/tanl (Depends-on): Add tan. Update conditions.
40705         (configure.ac): Don't compile trigl.c if
40706         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40708 2011-10-10  Bruno Haible  <bruno@clisp.org>
40710         cosl: Simplify for platforms where 'long double' == 'double'.
40711         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40712         implementation.
40713         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40714         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40715         * modules/cosl (Depends-on): Add cos. Update conditions.
40716         (configure.ac): Don't compile sincosl.c and trigl.c if
40717         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40719 2011-10-10  Bruno Haible  <bruno@clisp.org>
40721         sinl: Simplify for platforms where 'long double' == 'double'.
40722         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40723         implementation.
40724         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40725         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40726         * modules/sinl (Depends-on): Add sin. Update conditions.
40727         (configure.ac): Don't compile sincosl.c and trigl.c if
40728         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40730 2011-10-10  Bruno Haible  <bruno@clisp.org>
40732         logl: Simplify for platforms where 'long double' == 'double'.
40733         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40734         implementation.
40735         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40736         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40737         * modules/logl (Depends-on): Add log. Update conditions.
40739 2011-10-10  Bruno Haible  <bruno@clisp.org>
40741         expl: Simplify for platforms where 'long double' == 'double'.
40742         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40743         implementation.
40744         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40745         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40746         * modules/expl (Depends-on): Add exp. Update conditions.
40748 2011-10-10  Bruno Haible  <bruno@clisp.org>
40750         sqrtl: Simplify for platforms where 'long double' == 'double'.
40751         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40752         alternative implementation.
40753         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40754         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40755         * modules/sqrtl (Depends-on): Update conditions.
40757 2011-10-10  Bruno Haible  <bruno@clisp.org>
40759         ldexpl: Simplify for platforms where 'long double' == 'double'.
40760         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40761         alternative implementation.
40762         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40763         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40764         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
40766 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
40768         ffsll: set correct witness
40769         * modules/ffsll (configure.ac): Fix typo.
40771 2011-10-10  Bruno Haible  <bruno@clisp.org>
40773         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
40774         * lib/printf-frexpl.c: Include <config.h>.
40775         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40776         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
40777         second time.
40778         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
40779         gl_LONG_DOUBLE_VS_DOUBLE.
40780         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
40781         conditions.
40783 2011-10-10  Bruno Haible  <bruno@clisp.org>
40785         frexpl: Simplify for platforms where 'long double' == 'double'.
40786         * lib/frexpl.c: Include <config.h>.
40787         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40788         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40789         time.
40790         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40791         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40792         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
40793         * modules/frexpl (Depends-on): Add frexp. Update conditions.
40794         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
40795         conditions.
40797 2011-10-10  Jim Meyering  <meyering@redhat.com>
40799         test-renameat: don't leave behind a temporary file
40800         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
40801           ERROR: files left in build directory after distclean:
40802           ./gltests/test-renameat.too
40803           make[1]: *** [distcleancheck] Error 1
40804         Reported by Tom G. Christensen.
40806 2011-10-09  Bruno Haible  <bruno@clisp.org>
40808         rint: Determine RINT_LIBM correctly on AIX 7.
40809         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
40810         directly, not only through a function pointer. Also accept an optional
40811         4th argument with extra code.
40812         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
40813         rintf() call by gcc when optimizing.
40815         mathfunc.m4: Refactor.
40816         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
40817         m4 variable.
40819 2011-10-09  Bruno Haible  <bruno@clisp.org>
40821         rintl: Simplify for platforms where 'long double' == 'double'.
40822         * lib/rintl.c: Include <config.h>.
40823         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40824         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40825         time.
40826         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40827         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40828         * modules/rintl (Depends-on): Add rint. Update conditions.
40830 2011-10-09  Bruno Haible  <bruno@clisp.org>
40832         roundl: Simplify for platforms where 'long double' == 'double'.
40833         * lib/roundl.c: Include <config.h>.
40834         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40835         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40836         time.
40837         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40838         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40839         * modules/roundl (Depends-on): Add round. Update conditions.
40841 2011-10-09  Bruno Haible  <bruno@clisp.org>
40843         truncl: Simplify for platforms where 'long double' == 'double'.
40844         * lib/truncl.c: Include <config.h>.
40845         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40846         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40847         time.
40848         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40849         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40850         * modules/truncl (Depends-on): Add trunc. Update conditions.
40852 2011-10-09  Bruno Haible  <bruno@clisp.org>
40854         ceill: Simplify for platforms where 'long double' == 'double'.
40855         * lib/ceill.c: Include <config.h>.
40856         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40857         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40858         time.
40859         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40860         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40861         * modules/ceill (Depends-on): Add ceil. Update conditions.
40863 2011-10-09  Bruno Haible  <bruno@clisp.org>
40865         floorl: Simplify for platforms where 'long double' == 'double'.
40866         * lib/floorl.c: Include <config.h>.
40867         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40868         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40869         time.
40870         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40871         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40872         * modules/floorl (Depends-on): Add floor. Update conditions.
40874 2011-10-09  Bruno Haible  <bruno@clisp.org>
40876         rint: Fix ordering constraints.
40877         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
40878         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40879         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40881 2011-10-09  Bruno Haible  <bruno@clisp.org>
40883         copysignl: Simplify for platforms where 'long double' == 'double'.
40884         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40885         alternative.
40886         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40887         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40888         * modules/copysignl (Depends-on): Add copysign. Update conditions.
40890 2011-10-09  Bruno Haible  <bruno@clisp.org>
40892         Tests for module 'rintl'.
40893         * modules/rintl-tests: New file.
40894         * tests/test-rintl.c: New file.
40896         New module 'rintl'.
40897         * lib/math.in.h (rintl): New declaration.
40898         * lib/rintl.c: New file.
40899         * m4/rintl.m4: New file.
40900         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
40901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
40902         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
40903         * modules/rintl: New file.
40904         * tests/test-math-c++.cc: Check the declaration of rintl.
40905         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
40906         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
40907         * doc/posix-functions/rintl.texi: Mention the new module.
40909 2011-10-09  Bruno Haible  <bruno@clisp.org>
40911         Tests for module 'rintf'.
40912         * modules/rintf-tests: New file.
40913         * tests/test-rintf.c: New file.
40915         New module 'rintf'.
40916         * lib/math.in.h (rintf): New declaration.
40917         * lib/rintf.c: New file.
40918         * m4/rintf.m4: New file.
40919         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
40920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
40921         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
40922         * modules/rintf: New file.
40923         * tests/test-math-c++.cc: Check the declaration of rintf.
40924         * doc/posix-functions/rintf.texi: Mention the new module.
40926 2011-10-09  Bruno Haible  <bruno@clisp.org>
40928         rint: Support for MSVC.
40929         * lib/math.in.h (rint): New declaration.
40930         * lib/rint.c: New file.
40931         * m4/rint.m4: New file.
40932         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
40933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
40934         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
40935         * modules/rint (Description): Fix.
40936         (Files): Add lib/rint.c, m4/rint.m4.
40937         (Depends-on): Add math.
40938         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
40939         gl_MATH_MODULE_INDICATOR.
40940         * tests/test-math-c++.cc: Check the declaration of rint.
40941         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
40942         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
40943         * doc/posix-functions/rint.texi: Mention the replacement provided by
40944         the module.
40946         rint tests: More tests.
40947         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
40948         minus-zero.h, infinity.h, nan.h.
40949         (main): Skip the test if the current rounding mode is not standard. Add
40950         tests for negative numbers, minus zero, infinity, NaN.
40951         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
40952         tests/nan.h.
40953         (Depends-on): Add isnand-nolibm.
40955 2011-10-09  Bruno Haible  <bruno@clisp.org>
40957         Tests for module 'copysignl'.
40958         * modules/copysignl-tests: New file.
40959         * tests/test-copysignl.c: New file.
40961         New module 'copysignl'.
40962         * lib/math.in.h (copysignl): New declaration.
40963         * lib/copysignl.c: New file.
40964         * m4/copysignl.m4: New file.
40965         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
40966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
40967         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
40968         HAVE_COPYSIGNL.
40969         * modules/copysignl: New file.
40970         * tests/test-math-c++.cc: Check the declaration of copysignl.
40971         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
40972         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
40973         * doc/posix-functions/copysignl.texi: Mention the new module.
40975 2011-10-09  Bruno Haible  <bruno@clisp.org>
40977         Tests for module 'copysignf'.
40978         * modules/copysignf-tests: New file.
40979         * tests/test-copysignf.c: New file.
40981         New module 'copysignf'.
40982         * lib/math.in.h (copysignf): New declaration.
40983         * lib/copysignf.c: New file.
40984         * m4/copysignf.m4: New file.
40985         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
40986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
40987         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
40988         HAVE_COPYSIGNF.
40989         * modules/copysignf: New file.
40990         * tests/test-math-c++.cc: Check the declaration of copysignf.
40991         * doc/posix-functions/copysignf.texi: Mention the new module.
40993 2011-10-09  Bruno Haible  <bruno@clisp.org>
40995         Ensure that HAVE_* variables are set to 1 before they are set to 0.
40996         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
40997         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
40998         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40999         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
41000         gl_SIGNAL_H_DEFAULTS.
41002 2011-10-09  Bruno Haible  <bruno@clisp.org>
41004         poll: Make macro safer.
41005         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
41006         ac_cv_header_poll_h is not set.
41008 2011-10-09  Bruno Haible  <bruno@clisp.org>
41010         copysign: Provide replacement.
41011         * lib/math.in.h (copysign): New declaration.
41012         * lib/copysign.c: New file.
41013         * m4/copysign.m4: New file.
41014         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
41015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
41016         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
41017         HAVE_COPYSIGN.
41018         * modules/copysign (Description): Clarify.
41019         (Files): Add lib/copysign.c, m4/copysign.m4.
41020         (Depends-on): Add math, signbit.
41021         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
41022         gl_MATH_MODULE_INDICATOR.
41023         * tests/test-math-c++.cc: Check the declaration of copysign.
41024         * doc/posix-functions/copysign.texi: Mention the effects of the module
41025         on Minix and MSVC.
41027 2011-10-09  Bruno Haible  <bruno@clisp.org>
41029         isinf: Ensure macro on AIX 5.1.
41030         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
41031         macro.
41032         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
41034 2011-10-09  Bruno Haible  <bruno@clisp.org>
41036         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
41037         * modules/snprintf-posix-tests (configure.ac): Require
41038         gl_LONG_DOUBLE_VS_DOUBLE.
41039         * modules/sprintf-posix-tests (configure.ac): Likewise.
41040         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
41041         * modules/vasprintf-posix-tests (configure.ac): Likewise.
41042         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
41043         * modules/vsprintf-posix-tests (configure.ac): Likewise.
41044         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
41045         tests on platforms where 'long double' is the same as 'double'.
41046         * tests/test-sprintf-posix.h (test_function): Likewise.
41047         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41048         * tests/test-vasprintf-posix.c (test_function): Likewise.
41050         *printf: Fix for platforms where 'long double' == 'double'.
41051         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41052         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
41053         * modules/dprintf-posix (Files): Add m4/math_h.m4.
41054         * modules/fprintf-posix (Files): Likewise.
41055         * modules/obstack-printf-posix (Files): Likewise.
41056         * modules/snprintf-posix (Files): Likewise.
41057         * modules/sprintf-posix (Files): Likewise.
41058         * modules/vasnprintf (Files): Likewise.
41059         * modules/vasnprintf-posix (Files): Likewise.
41060         * modules/vasprintf-posix (Files): Likewise.
41061         * modules/vdprintf-posix (Files): Likewise.
41062         * modules/vfprintf-posix (Files): Likewise.
41063         * modules/vsnprintf-posix (Files): Likewise.
41064         * modules/vsprintf-posix (Files): Likewise.
41065         * modules/unistdio/u8-vasnprintf (Files): Likewise.
41066         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
41067         * modules/unistdio/u16-vasnprintf (Files): Likewise.
41068         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
41069         * modules/unistdio/u32-vasnprintf (Files): Likewise.
41070         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
41071         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
41073         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
41074         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
41075         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
41076         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
41077         'long double'.
41078         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
41080         isinf: Fix for platforms where 'long double' == 'double'.
41081         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
41082         Don't blindly assume 80-bit 'long double'.
41084         isfinite: Fix for platforms where 'long double' == 'double'.
41085         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
41086         Don't blindly assume 80-bit 'long double'.
41088         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
41089         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
41090         * modules/isfinite-tests (configure.ac): Require
41091         gl_LONG_DOUBLE_VS_DOUBLE.
41092         * modules/isinf-tests (configure.ac): Likewise.
41093         * modules/isnan-tests (configure.ac): Likewise.
41094         * modules/isnanl-tests (configure.ac): Likewise.
41095         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
41096         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
41097         tests on platforms where 'long double' is the same as 'double'.
41098         * tests/test-isinf.c (test_isinfl): Likewise.
41099         * tests/test-isnan.c (test_long_double): Likewise.
41100         * tests/test-isnanl.h (main): Likewise.
41102 2011-10-08  Bruno Haible  <bruno@clisp.org>
41104         Tests for module 'tanhf'.
41105         * modules/tanhf-tests: New file.
41106         * tests/test-tanhf.c: New file.
41108         New module 'tanhf'.
41109         * lib/math.in.h (tanhf): New declaration.
41110         * lib/tanhf.c: New file.
41111         * m4/tanhf.m4: New file.
41112         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
41113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
41114         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
41115         * modules/tanhf: New file.
41116         * tests/test-math-c++.cc: Check the declaration of tanhf.
41117         * doc/posix-functions/tanhf.texi: Mention the new module.
41119         tanh: Use a .m4 file.
41120         * m4/tanh.m4: New file.
41121         * modules/tanh (Files): Add it.
41122         (configure.ac): Just invoke gl_FUNC_TANH.
41124 2011-10-08  Bruno Haible  <bruno@clisp.org>
41126         Tests for module 'coshf'.
41127         * modules/coshf-tests: New file.
41128         * tests/test-coshf.c: New file.
41130         New module 'coshf'.
41131         * lib/math.in.h (coshf): New declaration.
41132         * lib/coshf.c: New file.
41133         * m4/coshf.m4: New file.
41134         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
41135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
41136         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
41137         * modules/coshf: New file.
41138         * tests/test-math-c++.cc: Check the declaration of coshf.
41139         * doc/posix-functions/coshf.texi: Mention the new module.
41141         cosh: Use a .m4 file.
41142         * m4/cosh.m4: New file.
41143         * modules/cosh (Files): Add it.
41144         (configure.ac): Just invoke gl_FUNC_COSH.
41146 2011-10-08  Bruno Haible  <bruno@clisp.org>
41148         Tests for module 'sinhf'.
41149         * modules/sinhf-tests: New file.
41150         * tests/test-sinhf.c: New file.
41152         New module 'sinhf'.
41153         * lib/math.in.h (sinhf): New declaration.
41154         * lib/sinhf.c: New file.
41155         * m4/sinhf.m4: New file.
41156         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
41157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
41158         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
41159         * modules/sinhf: New file.
41160         * tests/test-math-c++.cc: Check the declaration of sinhf.
41161         * doc/posix-functions/sinhf.texi: Mention the new module.
41163         sinh: Use a .m4 file.
41164         * m4/sinh.m4: New file.
41165         * modules/sinh (Files): Add it.
41166         (configure.ac): Just invoke gl_FUNC_SINH.
41168 2011-10-08  Bruno Haible  <bruno@clisp.org>
41170         Tests for module 'atan2f'.
41171         * modules/atan2f-tests: New file.
41172         * tests/test-atan2f.c: New file.
41174         New module 'atan2f'.
41175         * lib/math.in.h (atan2f): New declaration.
41176         * lib/atan2f.c: New file.
41177         * m4/atan2f.m4: New file.
41178         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
41179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
41180         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
41181         * modules/atan2f: New file.
41182         * tests/test-math-c++.cc: Check the declaration of atan2f.
41183         * doc/posix-functions/atan2f.texi: Mention the new module.
41185         atan2: Use a .m4 file.
41186         * m4/atan2.m4: New file.
41187         * modules/atan2 (Files): Add it.
41188         (configure.ac): Just invoke gl_FUNC_ATAN2.
41190 2011-10-08  Bruno Haible  <bruno@clisp.org>
41192         Tests for module 'atanf'.
41193         * modules/atanf-tests: New file.
41194         * tests/test-atanf.c: New file.
41196         New module 'atanf'.
41197         * lib/math.in.h (atanf): New declaration.
41198         * lib/atanf.c: New file.
41199         * m4/atanf.m4: New file.
41200         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
41201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
41202         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
41203         * modules/atanf: New file.
41204         * tests/test-math-c++.cc: Check the declaration of atanf.
41205         * doc/posix-functions/atanf.texi: Mention the new module.
41207         atan: Use a .m4 file.
41208         * m4/atan.m4: New file.
41209         * modules/atan (Files): Add it.
41210         (configure.ac): Just invoke gl_FUNC_ATAN.
41212 2011-10-08  Bruno Haible  <bruno@clisp.org>
41214         Tests for module 'acosf'.
41215         * modules/acosf-tests: New file.
41216         * tests/test-acosf.c: New file.
41218         New module 'acosf'.
41219         * lib/math.in.h (acosf): New declaration.
41220         * lib/acosf.c: New file.
41221         * m4/acosf.m4: New file.
41222         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
41223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
41224         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
41225         * modules/acosf: New file.
41226         * tests/test-math-c++.cc: Check the declaration of acosf.
41227         * doc/posix-functions/acosf.texi: Mention the new module.
41229         acos: Use a .m4 file.
41230         * m4/acos.m4: New file.
41231         * modules/acos (Files): Add it.
41232         (configure.ac): Just invoke gl_FUNC_ACOS.
41234 2011-10-08  Bruno Haible  <bruno@clisp.org>
41236         Tests for module 'asinf'.
41237         * modules/asinf-tests: New file.
41238         * tests/test-asinf.c: New file.
41240         New module 'asinf'.
41241         * lib/math.in.h (asinf): New declaration.
41242         * lib/asinf.c: New file.
41243         * m4/asinf.m4: New file.
41244         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
41245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
41246         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
41247         * modules/asinf: New file.
41248         * tests/test-math-c++.cc: Check the declaration of asinf.
41249         * doc/posix-functions/asinf.texi: Mention the new module.
41251         asin: Use a .m4 file.
41252         * m4/asin.m4: New file.
41253         * modules/asin (Files): Add it.
41254         (configure.ac): Just invoke gl_FUNC_ASIN.
41256 2011-10-08  Bruno Haible  <bruno@clisp.org>
41258         Tests for module 'tanf'.
41259         * modules/tanf-tests: New file.
41260         * tests/test-tanf.c: New file.
41262         New module 'tanf'.
41263         * lib/math.in.h (tanf): New declaration.
41264         * lib/tanf.c: New file.
41265         * m4/tanf.m4: New file.
41266         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
41267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
41268         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
41269         * modules/tanf: New file.
41270         * tests/test-math-c++.cc: Check the declaration of tanf.
41271         * doc/posix-functions/tanf.texi: Mention the new module.
41273         tan: Use a .m4 file.
41274         * m4/tan.m4: New file.
41275         * modules/tan (Files): Add it.
41276         (configure.ac): Just invoke gl_FUNC_TAN.
41278 2011-10-08  Bruno Haible  <bruno@clisp.org>
41280         Tests for module 'cosf'.
41281         * modules/cosf-tests: New file.
41282         * tests/test-cosf.c: New file.
41284         New module 'cosf'.
41285         * lib/math.in.h (cosf): New declaration.
41286         * lib/cosf.c: New file.
41287         * m4/cosf.m4: New file.
41288         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
41289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
41290         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
41291         * modules/cosf: New file.
41292         * tests/test-math-c++.cc: Check the declaration of cosf.
41293         * doc/posix-functions/cosf.texi: Mention the new module.
41295         cos: Use a .m4 file.
41296         * m4/cos.m4: New file.
41297         * modules/cos (Files): Add it.
41298         (configure.ac): Just invoke gl_FUNC_COS.
41300 2011-10-08  Bruno Haible  <bruno@clisp.org>
41302         Tests for module 'sinf'.
41303         * modules/sinf-tests: New file.
41304         * tests/test-sinf.c: New file.
41306         New module 'sinf'.
41307         * lib/math.in.h (sinf): New declaration.
41308         * lib/sinf.c: New file.
41309         * m4/sinf.m4: New file.
41310         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
41311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
41312         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
41313         * modules/sinf: New file.
41314         * tests/test-math-c++.cc: Check the declaration of sinf.
41315         * doc/posix-functions/sinf.texi: Mention the new module.
41317         sin: Use a .m4 file.
41318         * m4/sin.m4: New file.
41319         * modules/sin (Files): Add it.
41320         (configure.ac): Just invoke gl_FUNC_SIN.
41322 2011-10-08  Bruno Haible  <bruno@clisp.org>
41324         Tests for module 'powf'.
41325         * modules/powf-tests: New file.
41326         * tests/test-powf.c: New file.
41328         New module 'powf'.
41329         * lib/math.in.h (powf): New declaration.
41330         * lib/powf.c: New file.
41331         * m4/powf.m4: New file.
41332         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
41333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
41334         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
41335         * modules/powf: New file.
41336         * tests/test-math-c++.cc: Check the declaration of powf.
41337         * doc/posix-functions/powf.texi: Mention the new module.
41339         pow: Use a .m4 file.
41340         * m4/pow.m4: New file.
41341         * modules/pow (Files): Add it.
41342         (configure.ac): Just invoke gl_FUNC_POW.
41344 2011-10-08  Bruno Haible  <bruno@clisp.org>
41346         Tests for module 'log10f'.
41347         * modules/log10f-tests: New file.
41348         * tests/test-log10f.c: New file.
41350         New module 'log10f'.
41351         * lib/math.in.h (log10f): New declaration.
41352         * lib/log10f.c: New file.
41353         * m4/log10f.m4: New file.
41354         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
41355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
41356         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
41357         * modules/log10f: New file.
41358         * tests/test-math-c++.cc: Check the declaration of log10f.
41359         * doc/posix-functions/log10f.texi: Mention the new module.
41361         log10: Use a .m4 file.
41362         * m4/log10.m4: New file.
41363         * modules/log10 (Files): Add it.
41364         (configure.ac): Just invoke gl_FUNC_LOG10.
41366 2011-10-08  Bruno Haible  <bruno@clisp.org>
41368         Tests for module 'logf'.
41369         * modules/logf-tests: New file.
41370         * tests/test-logf.c: New file.
41372         New module 'logf'.
41373         * lib/math.in.h (logf): New declaration.
41374         * lib/logf.c: New file.
41375         * m4/logf.m4: New file.
41376         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
41377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
41378         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
41379         * modules/logf: New file.
41380         * tests/test-math-c++.cc: Check the declaration of logf.
41381         * doc/posix-functions/logf.texi: Mention the new module.
41383         log: Use a .m4 file.
41384         * m4/log.m4: New file.
41385         * modules/log (Files): Add it.
41386         (configure.ac): Just invoke gl_FUNC_LOG.
41388 2011-10-08  Bruno Haible  <bruno@clisp.org>
41390         Tests for module 'expf'.
41391         * modules/expf-tests: New file.
41392         * tests/test-expf.c: New file.
41394         New module 'expf'.
41395         * lib/math.in.h (expf): New declaration.
41396         * lib/expf.c: New file.
41397         * m4/expf.m4: New file.
41398         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
41399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
41400         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
41401         * modules/expf: New file.
41402         * tests/test-math-c++.cc: Check the declaration of expf.
41403         * doc/posix-functions/expf.texi: Mention the new module.
41405         exp: Use a .m4 file.
41406         * m4/exp.m4: New file.
41407         * modules/exp (Files): Add it.
41408         (configure.ac): Just invoke gl_FUNC_EXP.
41410 2011-10-08  Bruno Haible  <bruno@clisp.org>
41412         Tests for module 'sqrtf'.
41413         * modules/sqrtf-tests: New file.
41414         * tests/test-sqrtf.c: New file.
41416         New module 'sqrtf'.
41417         * lib/math.in.h (sqrtf): New declaration.
41418         * lib/sqrtf.c: New file.
41419         * m4/sqrtf.m4: New file.
41420         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
41421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
41422         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
41423         * modules/sqrtf: New file.
41424         * tests/test-math-c++.cc: Check the declaration of sqrtf.
41425         * doc/posix-functions/sqrtf.texi: Mention the new module.
41427 2011-10-08  Bruno Haible  <bruno@clisp.org>
41429         Tests: Avoid link failures w.r.t. libintl.
41430         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
41431         $(LIBINTL).
41432         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
41433         $(LIBINTL).
41434         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
41435         against $(LIBINTL).
41436         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
41437         $(LIBINTL).
41438         * modules/openat-tests (Makefile.am): Link test-fchmodat against
41439         $(LIBINTL).
41440         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
41442 2011-10-08  Bruno Haible  <bruno@clisp.org>
41444         pow tests: Defeat compiler optimizations.
41445         * tests/test-pow.c (main): Assign arguments to x and y before use.
41447 2011-10-08  Bruno Haible  <bruno@clisp.org>
41449         gnulib-tool: Improve last commit.
41450         * gnulib-tool (func_modules_transitive_closure): Simplify code.
41451         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
41452         ignore dependencies that are not among the modules list.
41454 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
41456         gnulib-tool: don't follow dependencies to avoided modules
41457         This fixes a bug that is related to the previous one.
41458         * gnulib-tool (func_modules_transitive_closure)
41459         (func_emit_autoconf_snippets):
41460         Check whether a dependency is acceptable before using it.
41461         (--extract-dependencies): Report an error if --avoid is also used,
41462         since this combination of options is not yet supported.
41464         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
41465         Problem reported by Peter Dyballa in
41466         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
41467         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
41468         when echoing "$condition".
41470 2011-10-07  Bruno Haible  <bruno@clisp.org>
41472         Fix documentation about math functions on MacOS X.
41473         * doc/posix-functions/exp2.texi: Don't say the function is missing on
41474         MacOS X 10.5.
41475         * doc/posix-functions/fdim.texi: Likewise.
41476         * doc/posix-functions/feclearexcept.texi: Likewise.
41477         * doc/posix-functions/fegetenv.texi: Likewise.
41478         * doc/posix-functions/fegetround.texi: Likewise.
41479         * doc/posix-functions/feholdexcept.texi: Likewise.
41480         * doc/posix-functions/feraiseexcept.texi: Likewise.
41481         * doc/posix-functions/fesetenv.texi: Likewise.
41482         * doc/posix-functions/fesetround.texi: Likewise.
41483         * doc/posix-functions/fetestexcept.texi: Likewise.
41484         * doc/posix-functions/feupdateenv.texi: Likewise.
41485         * doc/posix-functions/fmax.texi: Likewise.
41486         * doc/posix-functions/fmin.texi: Likewise.
41487         * doc/posix-functions/log2.texi: Likewise.
41488         * doc/posix-functions/modff.texi: Likewise.
41489         * doc/posix-functions/nan.texi: Likewise.
41490         * doc/posix-functions/nanf.texi: Likewise.
41491         * doc/posix-functions/nextafterf.texi: Likewise.
41492         * doc/posix-functions/remquo.texi: Likewise.
41494 2011-10-07  Bruno Haible  <bruno@clisp.org>
41496         modff: Drop assumption about library that defines modff.
41497         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
41498         AC_CHECK_FUNCS.
41499         * modules/modff (Files): Add m4/mathfunc.m4.
41501 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
41503         raise tests: Avoid a GCC warning.
41504         * tests/test-raise.c (handler): Use _Noreturn.
41506 2011-10-07  Bruno Haible  <bruno@clisp.org>
41508         Tests for module 'ldexpf'.
41509         * modules/ldexpf-tests: New file.
41510         * tests/test-ldexpf.c: New file.
41512         New module 'ldexpf'.
41513         * lib/math.in.h (ldexpf): New declaration.
41514         * lib/ldexpf.c: New file.
41515         * m4/ldexpf.m4: New file.
41516         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
41517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
41518         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
41519         * modules/ldexpf: New file.
41520         * tests/test-math-c++.cc: Check the declaration of ldexpf.
41521         * doc/posix-functions/ldexpf.texi: Mention the new module.
41523 2011-10-06  Bruno Haible  <bruno@clisp.org>
41525         frexpf: Work around problems on IRIX and mingw.
41526         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
41527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
41528         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
41529         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
41530         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
41531         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
41532         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
41534 2011-10-06  Bruno Haible  <bruno@clisp.org>
41536         fabsf: Drop assumption about library that defines fabsf.
41537         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
41538         AC_CHECK_FUNCS.
41539         * modules/fabsf (Files): Add m4/mathfunc.m4.
41541 2011-10-06  Bruno Haible  <bruno@clisp.org>
41543         frexpf: Drop assumption about library that defines frexpf.
41544         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
41545         'int *', 'float *', 'long double *', 'float', 'long double'.
41546         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
41547         AC_CHECK_FUNCS.
41548         * modules/frexpf (Files): Add m4/mathfunc.m4.
41550         Tests for module 'frexpf'.
41551         * modules/frexpf-tests: New file.
41552         * tests/test-frexpf.c: New file.
41554         New module 'frexpf'.
41555         * lib/math.in.h (frexpf): New declaration.
41556         * lib/frexpf.c: New file.
41557         * m4/frexpf.m4: New file.
41558         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
41559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
41560         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
41561         * modules/frexpf: New file.
41562         * tests/test-math-c++.cc: Check the declaration of frexpf.
41563         * doc/posix-functions/frexpf.texi: Mention the new module.
41565 2011-10-06  Bruno Haible  <bruno@clisp.org>
41567         math: Sort function declarations of math.in.h.
41568         * lib/math.in.h (frexp, logb): Move declarations.
41570 2011-10-05  Bruno Haible  <bruno@clisp.org>
41572         Tests for module 'modff'.
41573         * modules/modff-tests: New file.
41574         * tests/test-modff.c: New file.
41576         New module 'modff'.
41577         * lib/math.in.h (modff): New declaration.
41578         * lib/modff.c: New file.
41579         * m4/modff.m4: New file.
41580         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
41581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
41582         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
41583         * modules/modff: New file.
41584         * tests/test-math-c++.cc: Check the declaration of modff.
41585         * doc/posix-functions/modff.texi: Mention the new module.
41587         modf tests: Make test sharper.
41588         * tests/test-modf.c (main): Strengthen upper bound.
41590         modf: Use a .m4 file.
41591         * m4/modf.m4: New file.
41592         * modules/modf (Files): Add it.
41593         (configure.ac): Just invoke gl_FUNC_MODF.
41595 2011-10-05  Bruno Haible  <bruno@clisp.org>
41597         Tests for module 'fmodf'.
41598         * modules/fmodf-tests: New file.
41599         * tests/test-fmodf.c: New file.
41601         New module 'fmodf'.
41602         * lib/math.in.h (fmodf): New declaration.
41603         * lib/fmodf.c: New file.
41604         * m4/fmodf.m4: New file.
41605         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
41606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
41607         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
41608         * modules/fmodf: New file.
41609         * tests/test-math-c++.cc: Check the declaration of fmodf.
41610         * doc/posix-functions/fmodf.texi: Mention the new module.
41612         fmod: Use a .m4 file.
41613         * m4/fmod.m4: New file.
41614         * modules/fmod (Files): Add it.
41615         (configure.ac): Just invoke gl_FUNC_FMOD.
41617 2011-10-05  Bruno Haible  <bruno@clisp.org>
41619         Tests for module 'fabsf'.
41620         * modules/fabsf-tests: New file.
41621         * tests/test-fabsf.c: New file.
41623         New module 'fabsf'.
41624         * lib/math.in.h (fabsf): New declaration.
41625         * lib/fabsf.c: New file.
41626         * m4/fabsf.m4: New file.
41627         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
41628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
41629         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
41630         * modules/fabsf: New file.
41631         * tests/test-math-c++.cc: Check the declaration of fabsf.
41632         * doc/posix-functions/fabsf.texi: Mention the new module.
41634         fabs: Use a .m4 file.
41635         * m4/fabs.m4: New file.
41636         * modules/fabs (Files): Add it.
41637         (configure.ac): Just invoke gl_FUNC_FABS.
41639 2011-10-05  Jim Meyering  <meyering@redhat.com>
41641         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
41642         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
41643         ls -lL regression introduced in coreutils-8.12, it does so at the
41644         cost of an additional stat call in the common case.  Besides, now
41645         that the kernel change that prompted commit 95f7c57f has been reverted
41646         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
41647         we have no use for commit 95f7c57f, "file-has-acl: use
41648         acl_extended_file_nofollow if available".
41650 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
41652         file-has-acl: revert unintended change in behavior of ls -L
41653         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
41654         derived from...
41655         (file_has_acl): ...code here.  Call it.
41656         This problem was introduced with 2011-07-22 commit 95f7c57f,
41657         "file-has-acl: use acl_extended_file_nofollow if available".
41658         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
41660 2011-10-03  Bruno Haible  <bruno@clisp.org>
41662         poll: Avoid link errors on MSVC.
41663         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
41664         * modules/poll (Depends-on): Add sockets.
41665         (Link): New section.
41666         * NEWS: Mention the change.
41667         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
41668         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
41669         $(LIB_POLL) instead of $(LIBSOCKET).
41671 2011-10-03  Bruno Haible  <bruno@clisp.org>
41673         sys_select tests: Fix link error on MSVC 9.
41674         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
41675         with $(LIB_SELECT) instead of $(LIBSOCKET).
41677 2011-10-03  Bruno Haible  <bruno@clisp.org>
41679         sys_select: Fix compilation error on mingw.
41680         * lib/sys_select.in.h: On native Windows, include <io.h>.
41682 2011-10-03  Bruno Haible  <bruno@clisp.org>
41684         wmemset: Support for MSVC.
41685         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
41686         whether wmemset() exists.
41688 2011-10-03  Bruno Haible  <bruno@clisp.org>
41690         wmemmove: Support for MSVC.
41691         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
41692         whether wmemmove() exists.
41694 2011-10-03  Bruno Haible  <bruno@clisp.org>
41696         wmemcpy: Support for MSVC.
41697         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
41698         whether wmemcpy() exists.
41700 2011-10-03  Bruno Haible  <bruno@clisp.org>
41702         wmemcmp: Support for MSVC.
41703         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
41704         whether wmemcmp() exists.
41706 2011-10-03  Bruno Haible  <bruno@clisp.org>
41708         wmemchr: Support for MSVC.
41709         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
41710         whether wmemchr() exists.
41712 2011-10-03  Bruno Haible  <bruno@clisp.org>
41714         glthread/*, strsignal: Support for MSVC.
41715         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
41716         including <winsock.h> on MSVC 9.
41717         * lib/glthread/lock.h: Likewise.
41718         * lib/glthread/thread.h: Likewise.
41719         * lib/glthread/tls.h: Likewise.
41720         * lib/glthread/yield.h: Likewise.
41721         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
41722         if HAVE_UNISTD_H is false.
41723         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
41725 2011-10-03  Bruno Haible  <bruno@clisp.org>
41727         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
41728         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
41729         Set to 100000.
41731 2011-10-03  Bruno Haible  <bruno@clisp.org>
41733         acl: Fix specification.
41734         * lib/file-has-acl.c (file_has_acl): Fix specification.
41736 2011-10-03  Bruno Haible  <bruno@clisp.org>
41738         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
41739         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
41740         (compute_curr_prefix, shared_library_fullname,
41741         find_shared_library_fullname, get_shared_library_fullname, relocate):
41742         Use it together with PIC && INSTALLDIR.
41743         Reported by <jojelino@gmail.com>
41744         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
41746 2011-10-01  Jim Meyering  <meyering@redhat.com>
41748         maint.mk: adjust a release-related rule not to require use of gzip
41749         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
41750         Instead, check each file in $(DIST_ARCHIVES).  This is better for
41751         projects that build only .tar.xz files.  Also fix an erroneous test.
41753         test-linkat: don't leave behind a temporary file
41754         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
41755         Otherwise, coreutils' "make distcheck" would fail with this:
41756           Only in /c/cu/tests/torture/coreutils/test/\
41757             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
41758           make[2]: *** [my-distcheck] Error 1
41760         float, math: add omitted file
41761         * lib/itold.c: Add file, required for yesterday's float change.
41763 2011-10-01  Bruno Haible  <bruno@clisp.org>
41765         isinf: Fix for OpenBSD/x86.
41766         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
41767         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
41768         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
41770 2011-10-01  Bruno Haible  <bruno@clisp.org>
41772         isfinite: Fix syntax error in configure test.
41773         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
41775         isfinite: Fix typo.
41776         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
41777         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
41779 2011-10-01  Bruno Haible  <bruno@clisp.org>
41781         nonblocking tests: Fix test failure on Linux/IA-64.
41782         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
41783         Set to 270000.
41785 2011-10-01  Bruno Haible  <bruno@clisp.org>
41787         mkfifoat tests: Fix a test failure on mingw.
41788         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
41789         with error ENOSYS.
41791 2011-09-30  Bruno Haible  <bruno@clisp.org>
41793         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
41794         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
41795         'long double'. Set REPLACE_ITOLD.
41796         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
41797         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
41798         * lib/itold.c: New file.
41799         * modules/float (Files): Add lib/itold.c.
41800         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
41801         (Makefile.am): Substitute REPLACE_ITOLD.
41802         * modules/math (Depends-on): Add float.
41803         (Makefile.am): Substitute REPLACE_ITOLD.
41804         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
41805         * doc/posix-headers/math.texi: Likewise.
41806         * doc/posix-functions/logl.texi: Likewise.
41808 2011-09-30  Bruno Haible  <bruno@clisp.org>
41810         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
41811         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
41812         Set to 140000.
41814 2011-09-30  Bruno Haible  <bruno@clisp.org>
41816         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
41817         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
41818         invocation, say "right after AC_PROG_CC_STDC", not "right after
41819         AC_PROG_CC".
41820         Reported by Gary V. Vaughan <gary@gnu.org>.
41822 2011-09-30  Bruno Haible  <bruno@clisp.org>
41824         Centralize C99 requirement.
41825         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
41826         * modules/stdarg (configure.ac-early): Invoke it instead of
41827         AC_PROG_CC_STDC.
41828         Reported by Gary V. Vaughan and Paul Eggert.
41830 2011-09-29  Bruno Haible  <bruno@clisp.org>
41832         float: Fix LDBL_MAX value on Linux/PowerPC.
41833         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
41834         on Linux/PowerPC.
41835         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
41836         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
41837         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
41838         platform.
41839         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
41841 2011-09-29  Bruno Haible  <bruno@clisp.org>
41843         doc: Improve doc about gl_EARLY.
41844         * doc/gnulib-tool.texi (Initial import): Mention where to place an
41845         AC_PROG_CC_STDC invocation.
41846         Reported by Gary V. Vaughan <gary@gnu.org>.
41848 2011-09-28  Bruno Haible  <bruno@clisp.org>
41850         fgetc, fputc, fread, fwrite tests: Fix link error.
41851         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
41852         on non-MSVC platforms.
41853         * tests/test-fputc.c (main): Likewise.
41854         * tests/test-fread.c (main): Likewise.
41855         * tests/test-fwrite.c (main): Likewise.
41856         Reported by Jim Meyering.
41858 2011-09-27  Bruno Haible  <bruno@clisp.org>
41860         fputc, fwrite tests: Avoid test failure on MSVC.
41861         * tests/test-fgetc.c: Include msvc-inval.h.
41862         (main): Invoke gl_msvc_inval_ensure_handler.
41863         * tests/test-fputc.c: Include msvc-inval.h.
41864         (main): Invoke gl_msvc_inval_ensure_handler.
41865         * tests/test-fread.c: Include msvc-inval.h.
41866         (main): Invoke gl_msvc_inval_ensure_handler.
41867         * tests/test-fwrite.c: Include msvc-inval.h.
41868         (main): Invoke gl_msvc_inval_ensure_handler.
41869         * modules/fgetc-tests (Depends-on): Add msvc-inval.
41870         * modules/fputc-tests (Depends-on): Likewise.
41871         * modules/fread-tests (Depends-on): Likewise.
41872         * modules/fwrite-tests (Depends-on): Likewise.
41874 2011-09-27  Bruno Haible  <bruno@clisp.org>
41876         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
41877         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
41878         (raise): Remove older, duplicated declaration.
41879         (_gl_raise_SIGPIPE): New declaration.
41880         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
41881         (rpl_raise): Remove function.
41882         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
41883         a gnulib-defined SIGPIPE here.
41884         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
41885         'sigprocmask' has detected missing signal-blocking and the module
41886         'sigpipe' is enabled.
41887         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
41889 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
41891         base64-tests: avoid memory leak
41892         * tests/test-base64.c (main): Plug memory leak.
41894         base32: new module
41895         * modules/base32: New module.
41896         * lib/base32.c: New file.
41897         * lib/base32.h: Likewise.
41898         * m4/base32.m4: Likewise.
41899         * modules/base32-tests: New test.
41900         * tests/test-base32.c: Likewise.
41901         * MODULES.html.sh (Misc): Mention it.
41903 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41905         gnulib: use more-standard license notice wording
41906         * gnulib-tool (func_emit_copyright_notice): When emitting a
41907         license notice into a file, use the standard wording as suggested
41908         by the current information for GNU maintainers, except say "file"
41909         rather than "program".  The new wording gives a license version
41910         number, which addresses an issue raised by Glenn Morris in
41911         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
41912         * m4/onceonly.m4: Use that same wording here, too.
41914         dup2: minor simplification
41915         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
41916         as lib/dup2.c no longer uses 'inline'.
41918 2011-09-25  Bruno Haible  <bruno@clisp.org>
41920         strings: Fix compilation error on MSVC.
41921         * lib/strings.in.h: Include <stddef.h> for size_t.
41923 2011-09-25  Bruno Haible  <bruno@clisp.org>
41925         fflush et al.: Document limitation on MSVC.
41926         * doc/posix-functions/fflush.texi: Document possible crash in handling
41927         mode other than DEFAULT_HANDLING.
41928         * doc/posix-functions/fgetc.texi: Likewise.
41929         * doc/posix-functions/fputc.texi: Likewise.
41930         * doc/posix-functions/fread.texi: Likewise.
41931         * doc/posix-functions/fwrite.texi: Likewise.
41933 2011-09-25  Bruno Haible  <bruno@clisp.org>
41935         msvc-inval: Allow three invalid parameter handling modes.
41936         * lib/msvc-inval.h: Don't include <stdlib.h> here.
41937         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
41938         macros.
41939         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
41940         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
41941         SANE_LIBRARY_HANDLING as a no-op.
41942         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
41943         <stdlib.h>.
41944         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
41946 2011-09-25  Bruno Haible  <bruno@clisp.org>
41948         msvc-inval: Make handler multithread-safe.
41949         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
41950         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
41951         declarations.
41952         (gl_msvc_inval_current): New declaration.
41953         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
41954         Operate on the structure returned by gl_msvc_inval_current().
41955         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
41956         Remove varaiables.
41957         (tls_index, tls_initialized): New variables.
41958         (not_per_thread): New variable.
41959         (gl_msvc_inval_current): New function.
41960         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
41961         returned by gl_msvc_inval_current().
41963 2011-09-25  Bruno Haible  <bruno@clisp.org>
41965         msvc-inval: Install handler globally.
41966         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
41967         !_MSC_VER.
41968         (gl_msvc_invalid_parameter_handler): Remove declaration.
41969         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
41970         declarations.
41971         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
41972         Install the handler globally, don't uninstall it.
41973         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
41974         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
41975         currently valid, call RaiseException instead.
41976         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
41977         for !_MSC_VER.
41979 2011-09-25  Bruno Haible  <bruno@clisp.org>
41981         strerror_r-posix: Fix for MSVC 9.
41982         * lib/strerror_r.c (local_snprintf): New function.
41983         (snprintf): Define to local_snprintf, not to _snprintf.
41985 2011-09-25  Bruno Haible  <bruno@clisp.org>
41987         ftruncate: Support for MSVC 9.
41988         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
41989         (chsize_nothrow): New function.
41990         (chsize): Redefine as a macro.
41991         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
41992         * modules/ftruncate (Depends-on): Add msvc-inval.
41994 2011-09-25  Bruno Haible  <bruno@clisp.org>
41996         New module 'fstat'.
41997         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
41998         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
41999         * lib/fchdir.c (rpl_fstat): Remove function.
42000         * m4/fstat.m4: New file.
42001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
42002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
42003         declared.
42004         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
42005         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
42006         * modules/fstat: New file.
42007         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
42008         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
42009         is set.
42010         * doc/posix-functions/fstat.texi: Mention the new module and the
42011         problem on MSVC.
42012         * NEWS: Mention the change.
42013         * modules/acl (Depends-on): Add fstat.
42014         * modules/chdir-safer (Depends-on): Likewise.
42015         * modules/chown (Depends-on): Likewise.
42016         * modules/copy-file (Depends-on): Likewise.
42017         * modules/fchdir (Depends-on): Likewise.
42018         * modules/fdopendir (Depends-on): Likewise.
42019         * modules/fopen (Depends-on): Likewise.
42020         * modules/fts (Depends-on): Likewise.
42021         * modules/getcwd (Depends-on): Likewise.
42022         * modules/isapipe (Depends-on): Likewise.
42023         * modules/linkat (Depends-on): Likewise.
42024         * modules/lseek (Depends-on): Likewise.
42025         * modules/mkdir-p (Depends-on): Likewise.
42026         * modules/open (Depends-on): Likewise.
42027         * modules/openat (Depends-on): Likewise.
42028         * modules/read-file (Depends-on): Likewise.
42029         * modules/renameat (Depends-on): Likewise.
42030         * modules/utimens (Depends-on): Likewise.
42032 2011-09-25  Bruno Haible  <bruno@clisp.org>
42034         linkat: Fix compilation on MSVC 9.
42035         * lib/linkat.c: Don't include <stdint.h>.
42037 2011-09-25  Bruno Haible  <bruno@clisp.org>
42039         fclose: Support for MSVC 9.
42040         * lib/fclose.c: Include msvc-inval.h.
42041         (fclose_nothrow): New function.
42042         (rpl_fclose): Use it.
42043         * modules/fclose (Depends-on): Add msvc-inval.
42044         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
42046 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
42048         dup2: minor simplifications
42049         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
42050         that it's a performance win.
42051         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
42052         ! defined __CYGWIN__)" to "ifdef F_GETFL".
42054 2011-09-24  Jim Meyering  <meyering@redhat.com>
42056         test-futimens: avoid a warning from gcc -Wshadow
42057         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
42058         to avoid a shadowing warning.
42060 2011-09-24  Bruno Haible  <bruno@clisp.org>
42062         fdopen: Support for MSVC 9.
42063         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
42064         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
42065         * lib/fdopen.c: Include msvc-inval.h.
42066         (fdopen_nothrow): New function.
42067         (rpl_fdopen): Use it.
42068         * modules/fdopen (Depends-on): Add msvc-inval.
42069         * modules/fclose-tests (Depends-on): Add fdopen.
42070         * modules/fflush-tests (Depends-on): Likewise.
42071         * modules/fgetc-tests (Depends-on): Likewise.
42072         * modules/fputc-tests (Depends-on): Likewise.
42073         * modules/fread-tests (Depends-on): Likewise.
42074         * modules/freopen-tests (Depends-on): Likewise.
42075         * modules/fseeko-tests (Depends-on): Likewise.
42076         * modules/ftello-tests (Depends-on): Likewise.
42077         * modules/fwrite-tests  (Depends-on): Likewise.
42078         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
42080 2011-09-24  Bruno Haible  <bruno@clisp.org>
42082         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
42083         * modules/fgetc-tests (Depends-on): Add unistd.
42084         * modules/fputc-tests (Depends-on): Likewise.
42085         * modules/fread-tests (Depends-on): Likewise.
42086         * modules/fwrite-tests (Depends-on): Likewise.
42088 2011-09-24  Bruno Haible  <bruno@clisp.org>
42090         dup: Simplify autoconf test.
42091         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
42092         on gl_MSVC_INVAL's result.
42094 2011-09-24  Bruno Haible  <bruno@clisp.org>
42096         Tests for function fwrite().
42097         * modules/fwrite-tests: New file.
42098         * tests/test-fwrite.c: New file.
42099         * modules/stdio-tests (Depends-on): Add fwrite-tests.
42101         Tests for function fread().
42102         * modules/fread-tests: New file.
42103         * tests/test-fread.c: New file.
42104         * modules/stdio-tests (Depends-on): Add fread-tests.
42106         Activate fputc tests.
42107         * modules/stdio-tests (Depends-on): Add fputc-tests.
42109         Enhance fgetc, fputc tests.
42110         * tests/test-fgetc.c (main): Also test the stream's error indicator.
42111         * tests/test-fputc.c (main): Likewise.
42113 2011-09-24  Bruno Haible  <bruno@clisp.org>
42115         write: Support for MSVC 9.
42116         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
42117         is not 1.
42118         * lib/write.c (write_nothrow): New function.
42119         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
42120         not 1. Use write_nothrow.
42121         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
42122         invalid parameter handler.
42123         (gl_PREREQ_WRITE): New macro.
42124         * modules/write (Depends-on): Add msvc-inval.
42125         (configure.ac): Invoke gl_PREREQ_WRITE.
42126         * doc/posix-functions/write.texi: Mention the problem on MSVC.
42128 2011-09-24  Bruno Haible  <bruno@clisp.org>
42130         read: Fix last commit.
42131         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
42133 2011-09-24  Bruno Haible  <bruno@clisp.org>
42135         dup2: Fix last commit.
42136         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
42137         (rpl_dup2): Disable fcntl workaround on native Windows.
42139         sigprocmask: Make code safer.
42140         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
42141         section that changes macro definitions for this compilation unit.
42143 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
42145         dup2: clarify by coalescing Windows-specific material
42146         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
42147         "msvc-nothrow.h"' to the Windows-specific section, so that the
42148         Emacs source need not contain these include files.
42149         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
42150         Windows-specific fixes into this function rather than just the
42151         nothrow fix, as this shortens and clarifies the code.  Always
42152         define as a function, as that's a bit cleaner than having it be
42153         sometimes a function and sometimes a macro.
42154         (rpl_dup2): Move the Windows-specific stuff out of here and into
42155         ms_windows_dup2.  Don't protect the Haiku-related fix with
42156         "#if !defined __linux__", as the same code also works around
42157         a Linux kernel bug, and it doesn't add any system calls on any
42158         platform.  Add comment about FreeBSD 6.1.
42160         sigprocmask: move #include directive
42161         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
42162         Windows-specific section, so that the Emacs source need not
42163         contain msvc-inval.h.
42165 2011-09-23  Bruno Haible  <bruno@clisp.org>
42167         read: Support for MSVC 9.
42168         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
42169         is not 1.
42170         * lib/read.c (read_nothrow): New function.
42171         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
42172         read_nothrow.
42173         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
42174         invalid parameter handler.
42175         (gl_PREREQ_READ): New macro.
42176         * modules/read (Depends-on): Add msvc-inval.
42177         (configure.ac): Invoke gl_PREREQ_READ.
42178         * doc/posix-functions/read.texi: Mention the problem on MSVC.
42180 2011-09-23  Bruno Haible  <bruno@clisp.org>
42182         close: Support for MSVC 9.
42183         * lib/close.c: Include <errno.h>, msvc-inval.h.
42184         (close_nothrow): New function.
42185         (rpl_close): Use it.
42186         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
42187         invalid parameter handler.
42188         * modules/close (Depends-on): Add msvc-inval.
42189         * modules/dup2-tests (Depends-on): Add close.
42190         * modules/dup3-tests (Depends-on): Likewise.
42191         * modules/fcntl-tests (Depends-on): Likewise.
42192         * modules/spawn-pipe-tests (Depends-on): Likewise.
42193         * modules/unistd-safer-tests (Depends-on): Likewise.
42194         * doc/posix-functions/close.texi: Mention the problem on MSVC.
42196 2011-09-23  Bruno Haible  <bruno@clisp.org>
42198         New module 'dup'.
42199         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
42200         Allow replacement.
42201         * lib/dup.c: New file.
42202         * lib/fchdir.c (rpl_dup): Remove function.
42203         * m4/dup.m4: New file.
42204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
42205         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
42206         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
42207         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
42208         * modules/dup: New file.
42209         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
42210         'dup' module is in use.
42211         * modules/fdopendir (Depends-on): Add dup.
42212         * modules/fdutimensat-tests (Depends-on): Likewise.
42213         * modules/fts (Depends-on): Likewise.
42214         * modules/futimens-tests (Depends-on): Likewise.
42215         * modules/posix_spawnp-tests (Depends-on): Likewise.
42216         * modules/unistd-safer-tests (Depends-on): Likewise.
42217         * modules/utimens-tests (Depends-on): Likewise.
42218         * doc/posix-functions/dup.texi: Mention the new module and the problem
42219         on MSVC.
42221 2011-09-23  Bruno Haible  <bruno@clisp.org>
42223         getdtablesize: Support for MSVC 9.
42224         * lib/getdtablesize.c: Include msvc-inval.h.
42225         (_setmaxstdio_nothrow): New function.
42226         (_setmaxstdio): Redefine it.
42227         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
42228         * modules/getdtablesize (Depends-on): Add msvc-inval.
42229         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
42231 2011-09-23  Bruno Haible  <bruno@clisp.org>
42233         signal-h: Rename from signal.
42234         * modules/signal-h: Renamed from modules/signal.
42235         * modules/pthread_sigmask (Depends-on): Update.
42236         * modules/raise (Depends-on): Likewise.
42237         * modules/sigaction (Depends-on): Likewise.
42238         * modules/sigpipe (Depends-on): Likewise.
42239         * modules/sigprocmask (Depends-on): Likewise.
42240         * modules/sys_select (Depends-on): Likewise.
42241         * modules/signal-h-tests: Renamed from modules/signal-tests.
42242         (Files, Depends-on, Makefile.am): Update.
42243         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
42244         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
42245         (Files, Makefile.am): Update.
42246         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
42247         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
42248         * modules/signal: New placeholder file.
42249         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
42250         * doc/posix-headers/signal.texi: Update.
42251         * NEWS: Mention the change.
42253 2011-09-23  Bruno Haible  <bruno@clisp.org>
42255         sigprocmask: Avoid crashes through signal() on MSVC 9.
42256         * lib/sigprocmask.c: Include msvc-inval.h.
42257         (signal_nothrow): New function.
42258         (signal): Redefine it.
42259         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
42260         * modules/sigprocmask (Depends-on): Add msvc-inval.
42261         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
42263 2011-09-23  Bruno Haible  <bruno@clisp.org>
42265         Tests for module 'raise'.
42266         * modules/raise-tests: New file.
42267         * tests/test-raise.c: New file.
42269         raise: Support for MSVC.
42270         * lib/signal.in.h (raise): New declaration.
42271         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
42272         for native Windows platforms.
42273         * m4/raise.m4: New file.
42274         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
42275         HAVE_RAISE, REPLACE_RAISE.
42276         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
42277         REPLACE_RAISE.
42278         * modules/raise (Status, Notice): Remove fields.
42279         (Files): Add m4/raise.m4.
42280         (Depends-on): Add signal, msvc-inval.
42281         (configure.ac): Use the common idioms.
42282         (Maintainer): Add me.
42283         * tests/test-signal-c++.cc: Check the signature of raise.
42284         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
42286 2011-09-23  Bruno Haible  <bruno@clisp.org>
42288         pipe2: Fix compilation on pre-C99 compilers.
42289         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
42291 2011-09-23  Bruno Haible  <bruno@clisp.org>
42293         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
42294         * lib/msvc-nothrow.h: New file.
42295         * lib/msvc-nothrow.c: New file.
42296         * m4/msvc-nothrow.m4: New file.
42297         * modules/msvc-nothrow: New file.
42298         * lib/dup2.c: Include msvc-nothrow.h.
42299         (rpl_dup2): No need to protect _get_osfhandle call here.
42300         * lib/accept4.c: Include msvc-nothrow.h.
42301         * lib/error.c: Likewise.
42302         * lib/fcntl.c: Likewise.
42303         * lib/lseek.c: Likewise.
42304         * lib/nonblocking.c: Likewise.
42305         * lib/poll.c: Likewise.
42306         * lib/read.c: Likewise.
42307         * lib/select.c: Likewise.
42308         * lib/sockets.h: Likewise.
42309         * lib/sockets.c: Likewise.
42310         * lib/stdio-read.c: Likewise.
42311         * lib/stdio-write.c: Likewise.
42312         * lib/write.c: Likewise.
42313         * lib/w32sock.h: Likewise.
42314         * lib/w32spawn.h: Likewise.
42315         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
42316         * lib/fsync.c: Likewise.
42317         * lib/isapipe.c: Likewise.
42318         * modules/dup2 (Depends-on): Add msvc-nothrow.
42319         * modules/accept4 (Depends-on): Likewise.
42320         * modules/error (Depends-on): Likewise.
42321         * modules/fcntl (Depends-on): Likewise.
42322         * modules/lseek (Depends-on): Likewise.
42323         * modules/nonblocking (Depends-on): Likewise.
42324         * modules/poll (Depends-on): Likewise.
42325         * modules/read (Depends-on): Likewise.
42326         * modules/select (Depends-on): Likewise.
42327         * modules/sockets (Depends-on): Likewise.
42328         * modules/sigpipe (Depends-on): Likewise.
42329         * modules/write (Depends-on): Likewise.
42330         * modules/accept (Depends-on): Likewise.
42331         * modules/bind (Depends-on): Likewise.
42332         * modules/connect (Depends-on): Likewise.
42333         * modules/gethostname (Depends-on): Likewise.
42334         * modules/getpeername (Depends-on): Likewise.
42335         * modules/getsockname (Depends-on): Likewise.
42336         * modules/getsockopt (Depends-on): Likewise.
42337         * modules/ioctl (Depends-on): Likewise.
42338         * modules/listen (Depends-on): Likewise.
42339         * modules/recv (Depends-on): Likewise.
42340         * modules/recvfrom (Depends-on): Likewise.
42341         * modules/send (Depends-on): Likewise.
42342         * modules/sendto (Depends-on): Likewise.
42343         * modules/setsockopt (Depends-on): Likewise.
42344         * modules/shutdown (Depends-on): Likewise.
42345         * modules/socket (Depends-on): Likewise.
42346         * modules/execute (Depends-on): Likewise.
42347         * modules/spawn-pipe (Depends-on): Likewise.
42348         * modules/flock (Depends-on): Likewise.
42349         * modules/fsync (Depends-on): Likewise.
42350         * modules/isapipe (Depends-on): Likewise.
42351         * tests/test-cloexec.c: Include msvc-nothrow.h.
42352         * tests/test-dup-safer.c: Likewise.
42353         * tests/test-dup2.c: Likewise.
42354         * tests/test-dup3.c: Likewise.
42355         * tests/test-fcntl.c: Likewise.
42356         * tests/test-pipe.c: Likewise.
42357         * tests/test-pipe2.c: Likewise.
42358         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
42359         * modules/unistd-safer-tests (Depends-on): Likewise.
42360         * modules/dup2-tests (Depends-on): Likewise.
42361         * modules/dup3-tests (Depends-on): Likewise.
42362         * modules/fcntl-tests (Depends-on): Likewise.
42363         * modules/pipe-posix-tests (Depends-on): Likewise.
42364         * modules/pipe2-tests (Depends-on): Likewise.
42366 2011-09-23  Bruno Haible  <bruno@clisp.org>
42368         dup2: Make code more maintainable.
42369         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
42370         (rpl_dup2): Use it.
42371         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
42372         * modules/dup2 (configure.ac): Invoke it.
42373         Reported by Paul Eggert.
42375 2011-09-23  Bruno Haible  <bruno@clisp.org>
42377         msvc-inval: Fix compilation error.
42378         * lib/msvc-inval.h: Include <excpt.h>.
42380 2011-09-23  Bruno Haible  <bruno@clisp.org>
42382         mkdir: Tweak for MSVC 9.
42383         * lib/sys_stat.in.h: Update comments.
42384         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
42386         Tests for module 'chdir'.
42387         * modules/chdir-tests: New file.
42388         * tests/test-chdir.c: New file.
42390         New module 'chdir'.
42391         * modules/chdir: New file.
42392         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
42393         (chdir): New declaration.
42394         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
42395         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
42396         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
42397         * tests/test-unistd-c++.cc: Check signature of chdir.
42398         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
42399         * modules/chdir-long (Depends-on): Add chdir.
42400         * modules/fchdir (Depends-on): Likewise.
42401         * modules/rename (Depends-on): Likewise.
42402         * modules/savewd (Depends-on): Likewise.
42404         rmdir: Support for mingw, MSVC 9.
42405         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
42406         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
42408         getcwd: Tweak for MSVC 9.
42409         * lib/unistd.in.h: Update comments.
42410         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
42412 2011-09-22  Bruno Haible  <bruno@clisp.org>
42414         strerror_r-posix: Avoid a link error on MSVC.
42415         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
42416         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
42418 2011-09-22  Bruno Haible  <bruno@clisp.org>
42420         select: Avoid link errors on MSVC.
42421         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
42422         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
42423         * modules/pselect (Link): Likewise.
42424         * NEWS: Mention the change.
42425         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
42426         test-select-stdin against $(LIB_SELECT).
42427         * modules/pselect-tests (Makefile.am): Link test-pselect against
42428         $(LIB_SELECT).
42430 2011-09-22  Bruno Haible  <bruno@clisp.org>
42432         select: Avoid compilation error on MSVC.
42433         * lib/select.c: Don't include <stdbool.h>.
42435 2011-09-21  Bruno Haible  <bruno@clisp.org>
42437         Consolidate all uses of PATH_MAX in *.m4 files.
42438         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
42439         macros.
42440         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
42441         and gl_PATHMAX_SNIPPET.
42442         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
42443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42444         * modules/chdir-long (Files): Add m4/pathmax.m4.
42445         * modules/getcwd (Files): Likewise.
42447 2011-09-21  Bruno Haible  <bruno@clisp.org>
42449         ftruncate: Un-deprecate, concentrate on Win32 support.
42450         * modules/ftruncate (Status, Notice): Remove sections.
42451         (Depends-on): Add largefile.
42452         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
42453         non-mingw platforms.
42454         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
42455         include <io.h>.
42456         * modules/perror-tests (Depends-on): Add ftruncate.
42457         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
42458         'ftruncate' module.
42460 2011-09-21  Bruno Haible  <bruno@clisp.org>
42462         Add dependencies to new dirent related modules.
42463         * modules/opendir (Depends-on): Add closedir.
42464         * modules/getcwd (Depends-on): Add opendir, closedir.
42465         * modules/dirent-safer-tests (Depends-on): Likewise.
42466         * modules/fdopendir-tests (Depends-on): Likewise.
42467         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
42468         * modules/renameat-tests (Depends-on): Likewise.
42470 2011-09-21  Bruno Haible  <bruno@clisp.org>
42472         opendir: Avoid compilation error on mingw.
42473         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
42474         * modules/opendir (Depends-on): Add unistd.
42476 2011-09-21  Bruno Haible  <bruno@clisp.org>
42478         ftruncate tests: Avoid a test failure on mingw.
42479         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
42481 2011-09-21  Bruno Haible  <bruno@clisp.org>
42483         select tests: Avoid test failures on OSF/1 5.1 and mingw.
42484         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
42485         native Windows.
42487 2011-09-21  Bruno Haible  <bruno@clisp.org>
42489         New module 'fdopen'.
42490         * lib/stdio.in.h (fdopen): New declaration.
42491         * lib/fdopen.c: New file.
42492         * m4/fdopen.m4: New file.
42493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
42494         REPLACE_FDOPEN.
42495         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
42496         REPLACE_FDOPEN.
42497         * modules/fdopen: New file.
42498         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
42499         * tests/test-stdio-c++.cc: Check signature of fdopen.
42500         * doc/posix-functions/fdopen.texi: Mention the new module.
42502 2011-09-21  Bruno Haible  <bruno@clisp.org>
42504         unlockpt tests: Avoid test failure on NetBSD 5.1.
42505         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
42506         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
42508 2011-09-21  Bruno Haible  <bruno@clisp.org>
42510         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
42511         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
42512         * tests/test-getlogin_r.c (main): Likewise.
42514 2011-09-20  Bruno Haible  <bruno@clisp.org>
42516         time tests: Don't require pid_t.
42517         * doc/posix-headers/time.texi: Revert last change.
42518         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
42519         * tests/test-time.c: Comment out the check for pid_t.
42521 2011-09-20  Bruno Haible  <bruno@clisp.org>
42523         fsync tests: Avoid a test failure on mingw.
42524         * tests/test-fsync.c (main): Allow a failure with EIO.
42526 2011-09-20  Bruno Haible  <bruno@clisp.org>
42528         euidaccess: Update comments.
42529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
42531 2011-09-20  Bruno Haible  <bruno@clisp.org>
42533         Ensure EBADF returns for socket functions on mingw.
42534         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
42535         descriptor is invalid.
42536         * lib/bind.c (rpl_bind): Likewise.
42537         * lib/connect.c (rpl_connect): Likewise.
42538         * lib/getpeername.c (rpl_getpeername): Likewise.
42539         * lib/getsockname.c (rpl_getsockname): Likewise.
42540         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42541         * lib/listen.c (rpl_listen): Likewise.
42542         * lib/recv.c (rpl_recv): Likewise.
42543         * lib/recvfrom.c (rpl_recvfrom): Likewise.
42544         * lib/send.c (rpl_send): Likewise.
42545         * lib/sendto.c (rpl_sendto): Likewise.
42546         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42547         * lib/shutdown.c (rpl_shutdown): Likewise.
42549 2011-09-20  Bruno Haible  <bruno@clisp.org>
42551         select tests: EBADF tests.
42552         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
42553         test_bad_fd): New functions.
42554         (test_function): Invoke also test_bad_fd.
42556 2011-09-20  Bruno Haible  <bruno@clisp.org>
42558         Tests for module 'posix_spawn_file_actions_addopen.
42559         * modules/posix_spawn_file_actions_addopen-tests: New file.
42560         * tests/test-posix_spawn_file_actions_addopen.c: New file.
42562         Tests for module 'posix_spawn_file_actions_adddup2'.
42563         * modules/posix_spawn_file_actions_adddup2-tests: New file.
42564         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
42566         Tests for module 'posix_spawn_file_actions_addclose'.
42567         * modules/posix_spawn_file_actions_addclose-tests: New file.
42568         * tests/test-posix_spawn_file_actions_addclose.c: New file.
42570 2011-09-20  Bruno Haible  <bruno@clisp.org>
42572         Tests for module 'unlockpt'.
42573         * modules/unlockpt-tests: New file.
42574         * tests/test-unlockpt.c: New file.
42575         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
42577         Tests for module 'grantpt'.
42578         * modules/grantpt-tests: New file.
42579         * tests/test-grantpt.c: New file.
42580         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
42582 2011-09-20  Bruno Haible  <bruno@clisp.org>
42584         freopen tests: EBADF tests.
42585         * tests/test-freopen.c: Include errno.h, unistd.h.
42586         (main): Add tests for EBADF, commented out for the moment.
42588         fclose tests: EBADF tests.
42589         * tests/test-fclose.c (main): Add tests for EBADF.
42591         fflush tests: EBADF tests.
42592         * tests/test-fflush.c: Include errno.h, macros.h.
42593         (main): Add tests for EBADF.
42595         ftello tests: EBADF tests.
42596         * tests/test-ftello4.sh: New file.
42597         * tests/test-ftello4.c: New file.
42598         * modules/ftello-tests (Files): Add them.
42599         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
42601         fseeko tests: EBADF tests.
42602         * tests/test-fseeko4.sh: New file.
42603         * tests/test-fseeko4.c: New file.
42604         * modules/fseeko-tests (Files): Add them.
42605         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
42607         Tests for function fputc().
42608         * modules/fputc-tests: New file.
42609         * tests/test-fputc.c: New file.
42610         * modules/stdio-tests (Depends-on): Add fputc-tests.
42612         Tests for function fgetc().
42613         * modules/fgetc-tests: New file.
42614         * tests/test-fgetc.c: New file.
42615         * modules/stdio-tests (Depends-on): Add fgetc-tests.
42617         Tests for function fdopen().
42618         * modules/fdopen-tests: New file.
42619         * tests/test-fdopen.c: New file.
42620         * modules/stdio-tests (Depends-on): Add fdopen-tests.
42622         Tests for module 'vdprintf'.
42623         * modules/vdprintf-tests: New file.
42624         * tests/test-vdprintf.c: New file.
42626         Tests for module 'dprintf'.
42627         * modules/dprintf-tests: New file.
42628         * tests/test-dprintf.c: New file.
42630 2011-09-20  Bruno Haible  <bruno@clisp.org>
42632         Tests for module 'ioctl'.
42633         * modules/ioctl-tests: New file.
42634         * tests/test-ioctl.c: New file.
42636 2011-09-20  Bruno Haible  <bruno@clisp.org>
42638         fcntl tests: EBADF tests.
42639         * tests/test-fcntl.c (main): Add more tests for EBADF.
42641 2011-09-20  Bruno Haible  <bruno@clisp.org>
42643         utimensat tests: EBADF tests.
42644         * tests/test-utimensat.c (main): Add tests for EBADF.
42646         renameat tests: EBADF tests.
42647         * tests/test-renameat.c (main): Add tests for EBADF.
42649         mkfifoat tests: EBADF tests.
42650         * tests/test-mkfifoat.c (main): Add tests for EBADF.
42652         readlinkat tests: EBADF tests.
42653         * tests/test-readlinkat.c (main): Add tests for EBADF.
42655         symlinkat tests: EBADF tests.
42656         * tests/test-symlinkat.c (main): Add tests for EBADF.
42658         linkat tests: EBADF tests.
42659         * tests/test-linkat.c (main): Add tests for EBADF.
42661         Tests for module 'faccessat'.
42662         * modules/faccessat-tests: New file.
42663         * tests/test-faccessat.c: New file.
42665         fdopendir tests: EBADF tests.
42666         * tests/test-fdopendir.c (main): Add more tests for EBADF.
42668         openat tests: EBADF tests.
42669         * tests/test-fchownat.c (main): Add tests for EBADF.
42670         * tests/test-fstatat.c (main): Likewise.
42671         * tests/test-mkdirat.c (main): Likewise.
42672         * tests/test-openat.c (main): Likewise.
42673         * tests/test-unlinkat.c (main): Likewise.
42674         * tests/test-fchmodat.c: New file.
42675         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
42676         (Makefile.am): Also run 'test-fchmodat'.
42678 2011-09-20  Bruno Haible  <bruno@clisp.org>
42680         utimens, futimens, fdutimensat tests: EBADF tests.
42681         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
42683         Tests for function fstat().
42684         * modules/fstat-tests: New file.
42685         * tests/test-fstat.c: New file.
42686         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
42688 2011-09-20  Bruno Haible  <bruno@clisp.org>
42690         test-ttyname_r tests: EBADF tests.
42691         * tests/test-ttyname_r.c (main): Add tests for EBADF.
42693         Tests for module 'isatty'.
42694         * modules/isatty-tests: New file.
42695         * tests/test-isatty.c: New file.
42697         Tests for module 'write'.
42698         * modules/write-tests: New file.
42699         * tests/test-write.c: New file.
42701         Tests for module 'read'.
42702         * modules/read-tests: New file.
42703         * tests/test-read.c: New file.
42705         pwrite tests: EBADF tests.
42706         * tests/test-pwrite.c (main): Add tests for EBADF.
42708         pread tests: EBADF tests.
42709         * tests/test-pread.c (main): Add tests for EBADF.
42711         lseek tests: EBADF tests.
42712         * tests/test-lseek.c (main): Add more tests for EBADF.
42714         Tests for module 'ftruncate'.
42715         * modules/ftruncate-tests: New file.
42716         * tests/test-ftruncate.sh: New file.
42717         * tests/test-ftruncate.c: New file.
42719         fsync tests: EBADF tests.
42720         * tests/test-fsync.c (main): Add more tests for EBADF.
42722         fdatasync tests: EBADF tests.
42723         * tests/test-fdatasync.c (main): Add more tests for EBADF.
42725         Tests for module 'fchown'.
42726         * modules/fchown-tests: New file.
42727         * tests/test-fchown.c: New file.
42729         Tests for module 'fchmod'.
42730         * modules/fchmod-tests: New file.
42731         * tests/test-fchmod.c: New file.
42733         fchdir tests: EBADF tests.
42734         * tests/test-fchdir.c (main): Add more tests for EBADF.
42736         dup2 tests: EBADF tests.
42737         * tests/test-dup2.c (main): Add more tests for EBADF.
42739         Tests for module 'dup'.
42740         * modules/dup-tests: New file.
42741         * tests/test-dup.c: New file.
42743         Tests for module 'close'.
42744         * modules/close-tests: New file.
42745         * tests/test-close.c: New file.
42747 2011-09-20  Bruno Haible  <bruno@clisp.org>
42749         Tests for module 'shutdown'.
42750         * modules/shutdown-tests: New file.
42751         * tests/test-shutdown.c: New file.
42753         Tests for module 'setsockopt'.
42754         * modules/setsockopt-tests: New file.
42755         * tests/test-setsockopt.c: New file.
42757         Tests for module 'sendto'.
42758         * modules/sendto-tests: New file.
42759         * tests/test-sendto.c: New file.
42761         Tests for module 'send'.
42762         * modules/send-tests: New file.
42763         * tests/test-send.c: New file.
42765         Tests for module 'recvfrom'.
42766         * modules/recvfrom-tests: New file.
42767         * tests/test-recvfrom.c: New file.
42769         Tests for module 'recv'.
42770         * modules/recv-tests: New file.
42771         * tests/test-recv.c: New file.
42773         Tests for module 'listen'.
42774         * modules/listen-tests: New file.
42775         * tests/test-listen.c: New file.
42777         Tests for module 'getsockopt'.
42778         * modules/getsockopt-tests: New file.
42779         * tests/test-getsockopt.c: New file.
42781         Tests for module 'getsockname'.
42782         * modules/getsockname-tests: New file.
42783         * tests/test-getsockname.c: New file.
42785         Tests for module 'getpeername'.
42786         * modules/getpeername-tests: New file.
42787         * tests/test-getpeername.c: New file.
42789         Tests for module 'connect'.
42790         * modules/connect-tests: New file.
42791         * tests/test-connect.c: New file.
42793         Tests for module 'bind'.
42794         * modules/bind-tests: New file.
42795         * tests/test-bind.c: New file.
42797         accept4 tests: Fix for native Windows.
42798         * tests/test-accept4.c: Include sockets.h.
42799         (main): Invoke gl_sockets_startup.
42800         * modules/accept4-tests (Depends-on): Add sockets.
42802         accept tests: Fix for native Windows.
42803         * tests/test-accept.c: Include sockets.h.
42804         (main): Invoke gl_sockets_startup.
42805         * modules/accept-tests (Depends-on): Add sockets.
42807 2011-09-19  Bruno Haible  <bruno@clisp.org>
42809         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
42810         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
42811         do...while(0).
42812         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
42813         Suggested by Paul Eggert.
42815 2011-09-19  Bruno Haible  <bruno@clisp.org>
42817         sched: Ensure pid_t is defined.
42818         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
42819         not define pid_t.
42820         * lib/sched.in.h: Include <sys/types.h>.
42821         * doc/posix-headers/sched.texi: Mention the pid_t problem.
42822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42824 2011-09-19  Bruno Haible  <bruno@clisp.org>
42826         msvc-inval: Ensure the entire expansion is a single statement.
42827         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
42828         of braces.
42830 2011-09-19  Jim Meyering  <meyering@redhat.com>
42832         tests: use printf, not echo in init.sh's warn_ function
42833         * tests/init.sh (warn_): Use printf, not echo.  The latter would
42834         misbehave when given strings containing a backslash or starting
42835         with e.g., -n.  James Youngman suggested setting IFS.
42837 2011-09-19  Eric Blake  <eblake@redhat.com>
42839         futimens: enhance test
42840         * tests/test-futimens.h (test_futimens): Also check for EBADF on
42841         closed non-negative fd.
42843         date: accept 'hence' as opposite of 'ago'
42844         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
42845         * tests/test-parse-datetime.c (main): Enhance test.
42846         Suggested by Jesse Wilson.
42848 2011-09-19  Jim Meyering  <meyering@redhat.com>
42850         getcwd: don't fail in a deep directory on a system without openat
42851         Before this change, getcwd would fail when called from a directory
42852         of depth PATH_MAX / 3 or greater.  That was due to the fact that
42853         the non-openat implementation used "..", "../..", "../../..", etc.
42854         to access ancestor directories.  With too many, that string would
42855         be longer than PATH_MAX.
42856         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
42857         using gnulib's openat replacement.
42858         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
42859         we're using the replacement function.
42861 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
42863         maint.mk: avoid warnings from perl about missing files
42864         * top/maint.mk (def_sym_regex): Ignore files listed in
42865         $(gl_other_headers_) that do not exist, say because a project
42866         does not use a corresponding module.
42868 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42870         stat: use pathmax.h only if needed
42871         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
42872         This is better for Emacs, which does not have a mingw port and
42873         therefore can avoid the pathmax module.
42875         utimens: remove dependency on dup2
42876         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
42877         to work around the Linux kernel bug.
42878         * modules/utimens (Depends-on): Remove dup2.
42880 2011-09-18  Bruno Haible  <bruno@clisp.org>
42882         inet_ntop, inet_pton: Look for it also in libresolv.
42883         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
42884         libnsl, search for it in libresolv.
42885         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42886         Needed on Solaris 7.
42888 2011-09-18  Bruno Haible  <bruno@clisp.org>
42890         accept, accept4 tests: Avoid link error on Solaris.
42891         * modules/accept-tests (Makefile.am): Link test-accept against
42892         $(LIBSOCKET).
42893         * modules/accept4-tests (Makefile.am): Link test-accept4 against
42894         $(LIBSOCKET).
42896         accept4: Avoid link error on Solaris.
42897         * modules/accept4 (Link): New section.
42899         socket functions: Avoid link errors on Solaris.
42900         * modules/accept (Depends-on): Add socketlib.
42901         (Link): New section.
42902         * modules/bind (Depends-on): Add socketlib.
42903         (Link): New section.
42904         * modules/connect (Depends-on): Add socketlib.
42905         (Link): New section.
42906         * modules/getpeername (Depends-on): Add socketlib.
42907         (Link): New section.
42908         * modules/getsockname (Depends-on): Add socketlib.
42909         (Link): New section.
42910         * modules/getsockopt (Depends-on): Add socketlib.
42911         (Link): New section.
42912         * modules/listen (Depends-on): Add socketlib.
42913         (Link): New section.
42914         * modules/recv (Depends-on): Add socketlib.
42915         (Link): New section.
42916         * modules/recvfrom (Depends-on): Add socketlib.
42917         (Link): New section.
42918         * modules/send (Depends-on): Add socketlib.
42919         (Link): New section.
42920         * modules/sendto (Depends-on): Add socketlib.
42921         (Link): New section.
42922         * modules/setsockopt (Depends-on): Add socketlib.
42923         (Link): New section.
42924         * modules/shutdown (Depends-on): Add socketlib.
42925         (Link): New section.
42926         * modules/socket (Depends-on): Add socketlib.
42927         (Link): New section.
42929 2011-09-18  Bruno Haible  <bruno@clisp.org>
42931         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
42932         * tests/test-ptsname.c (main): Terminate the test if it takes longer
42933         than 5 seconds.
42934         * modules/ptsname-tests (configure.ac): Test for alarm.
42936 2011-09-18  Bruno Haible  <bruno@clisp.org>
42938         posix_spawn_file_actions_add*: Fix module dependencies.
42939         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
42940         posix_spawn_file_actions_init.
42941         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
42942         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
42944 2011-09-18  Bruno Haible  <bruno@clisp.org>
42946         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
42947         * tests/test-rename.h (test_rename): Allow error code EEXIST.
42948         * tests/test-renameat.c (main): Likewise.
42950 2011-09-18  Bruno Haible  <bruno@clisp.org>
42952         Tests for module 'accept4'.
42953         * modules/accept4-tests: New file.
42954         * tests/test-accept4.c: New file.
42956 2011-09-18  Bruno Haible  <bruno@clisp.org>
42958         Tests for module 'accept'.
42959         * modules/accept-tests: New file.
42960         * tests/test-accept.c: New file.
42962 2011-09-18  Bruno Haible  <bruno@clisp.org>
42964         dup2: Support for MSVC.
42965         * lib/dup2.c: Include msvc-inval.h.
42966         (rpl_dup2): Handle invalid parameter notifications during dup2 and
42967         _get_osfhandle calls.
42968         * modules/dup2 (Depends-on): Add msvc-inval.
42969         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
42971         New module 'msvc-inval'.
42972         * lib/msvc-inval.h: New file.
42973         * lib/msvc-inval.c: New file.
42974         * m4/msvc-inval.m4: New file.
42975         * modules/msvc-inval: New file.
42977 2011-09-17  Bruno Haible  <bruno@clisp.org>
42979         Tests for module 'pclose'.
42980         * modules/pclose-tests: New file.
42982         New module 'pclose'.
42983         * lib/stdio.in.h (pclose): New declaration.
42984         * lib/pclose.c: New file.
42985         * m4/pclose.m4: New file.
42986         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
42987         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
42988         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
42989         * modules/pclose: New file.
42990         * modules/popen-tests (Depends-on): Add pclose.
42991         * modules/popen-safer-tests (Depends-on): Likewise.
42992         * doc/posix-functions/pclose.texi: Mention the new module.
42994 2011-09-17  Bruno Haible  <bruno@clisp.org>
42996         popen: Support for MSVC.
42997         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
42998         * lib/popen.c (popen): Provide alternate definition for native Windows.
42999         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
43000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
43001         * modules/popen (Depends-on, configure.ac): Update condition.
43002         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
43003         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
43004         fixed.
43006 2011-09-17  Bruno Haible  <bruno@clisp.org>
43008         isnanl, isnand, isnanf: Work around MSVC bug.
43009         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
43011 2011-09-17  Bruno Haible  <bruno@clisp.org>
43013         sys_socket tests: Fix recent mistake.
43014         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
43016 2011-09-17  Bruno Haible  <bruno@clisp.org>
43018         putenv: Support for MSVC.
43019         * modules/putenv (Depends-on): Add environ.
43020         * lib/putenv.c (environ): Disable declaration.
43021         * lib/unistd.in.h: Update comment.
43023 2011-09-17  Bruno Haible  <bruno@clisp.org>
43025         math: Avoid macro redefinition warnings on MSVC.
43026         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
43027         Undefine before redefining.
43029 2011-09-17  Bruno Haible  <bruno@clisp.org>
43031         doc: Mention functions which are declared as macros.
43032         * doc/posix-functions/*[fl].texi: Mention that some functions are
43033         defined as macros with arguments only.
43035 2011-09-17  Bruno Haible  <bruno@clisp.org>
43037         Add dependencies to new dirent related modules.
43038         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
43039         * modules/fts (Depends-on): Likewise.
43040         * modules/glob (Depends-on): Likewise.
43041         * modules/savedir (Depends-on): Likewise.
43042         * modules/scandir (Depends-on): Likewise.
43043         * modules/dirent-safer (Depends-on): Add opendir, closedir.
43044         * modules/fdopendir (Depends-on): Add opendir.
43046 2011-09-17  Bruno Haible  <bruno@clisp.org>
43048         inet_pton: Support for MSVC on Windows Vista or newer.
43049         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
43050         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
43051         HAVE_DECL_INET_PTON is defined.
43052         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
43053         On platforms with <winsock2.h>, test whether inet_pton is declared in
43054         <ws2tcpip.h>. If so, arrange to replace it.
43055         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
43056         REPLACE_INET_PTON.
43057         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
43058         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
43059         (Depends-on, configure.ac): Update condition.
43060         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
43062 2011-09-17  Bruno Haible  <bruno@clisp.org>
43064         inet_ntop: Support for MSVC on Windows Vista or newer.
43065         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
43066         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
43067         HAVE_DECL_INET_NTOP is defined.
43068         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
43069         On platforms with <winsock2.h>, test whether inet_ntop is declared in
43070         <ws2tcpip.h>. If so, arrange to replace it.
43071         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
43072         REPLACE_INET_NTOP.
43073         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
43074         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
43075         (Depends-on, configure.ac): Update condition.
43076         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
43078 2011-09-16  Eric Blake  <eblake@redhat.com>
43080         test-fsync: yet another enhancement
43081         * tests/test-fsync.c (main): Also test behavior on read-only text
43082         file.
43084 2011-09-16  Bruno Haible  <bruno@clisp.org>
43086         Enhance fsync, fdatasync tests.
43087         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
43088         * tests/test-fdatasync.c (main): Likewise.
43090 2011-09-16  Bruno Haible  <bruno@clisp.org>
43092         Support for MSVC compiler: Ensure mode_t gets defined.
43093         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
43094         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43095         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43096         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
43097         * tests/test-fcntl-h.c: Check that mode_t is defined.
43098         * tests/test-sys_stat.c: Likewise.
43099         * tests/test-sys_types.c: Likewise.
43100         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
43101         * doc/posix-headers/sys_stat.texi: Likewise.
43102         * doc/posix-headers/sys_types.texi: Likewise.
43104 2011-09-16  Bruno Haible  <bruno@clisp.org>
43106         sys_stat: Support for MSVC.
43107         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
43108         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
43109         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
43110         MSVC.
43112 2011-09-16  Bruno Haible  <bruno@clisp.org>
43114         Support for MSVC compiler: Ensure off_t gets defined.
43115         * lib/unistd.in.h: Include <sys/types.h>.
43116         * tests/test-fcntl-h.c: Check that off_t is defined.
43117         * tests/test-sys_stat.c: Likewise.
43118         * tests/test-sys_types.c: Likewise.
43120 2011-09-16  Eric Blake  <eblake@redhat.com>
43122         fdatasync: port to Solaris
43123         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
43124         * modules/fdatasync (Link): Document it.
43125         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
43127         fdatasync: port to MacOS X 10.7
43128         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
43129         declared.
43130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
43131         * modules/unistd (Makefile.am): Substitute it.
43132         * lib/unistd.in.h (fdatasync): Declare on MacOS.
43133         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
43135         fdatasync: minor improvements
43136         * modules/fdatasync (Depends-on): Add condition for fsync.
43137         * lib/fdatasync.c (fdatasync): Add comment.
43138         * tests/test-unistd-c++.cc: Test fdatasync.
43140         unistd: update refs to newer POSIX
43141         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
43142         Suggested by Bruno Haible.
43144         fdatasync: new module
43145         * modules/fsync (Description): Document difference to fdatasync.
43146         * modules/fdatasync: New module.
43147         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
43148         * lib/fdatasync.c (fdatasync): Likewise.
43149         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
43150         defaults.
43151         * modules/unistd (Makefile.am): Set witnesses.
43152         * lib/unistd.in.h (fdatasync): Declare.
43153         * MODULES.html.sh: Document it.
43154         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
43155         * modules/fdatasync-tests: New test.
43156         * tests/test-fdatasync.c: Likewise.
43158 2011-09-16  Eric Blake  <eblake@redhat.com>
43160         test-fsync: enhance tests
43161         * modules/fsync-tests (Depends-on): Add errno, for mingw.
43162         * tests/test-fsync.c (main): Enhance test.
43164 2011-09-15  Bruno Haible  <bruno@clisp.org>
43166         Support for MSVC compiler: Ensure ssize_t gets defined.
43167         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
43168         * doc/posix-headers/stdio.texi: Likewise.
43169         * modules/stdio (Depends-on): Add ssize_t.
43170         * modules/sys_socket (Depends-on): Likewise.
43171         * modules/sys_types (Depends-on): Likewise.
43172         * modules/sys_uio (Depends-on): Likewise.
43173         * modules/unistd (Depends-on): Likewise.
43174         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
43175         * tests/test-sys_types.c: Check that ssize_t is defined.
43177 2011-09-14  Bruno Haible  <bruno@clisp.org>
43179         Avoid using #, the m4 comment starter character, near brackets.
43180         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
43181         delimiter character in sed expressions.
43182         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
43183         Suggested by Eric Blake.
43185         Properly quote AC_CHECK_DECLS' 4th argument.
43186         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
43187         argument.
43188         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43189         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
43190         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43191         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
43192         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43193         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
43194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
43195         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
43196         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
43197         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43198         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
43199         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43200         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43201         * m4/isinf.m4 (gl_ISINF): Likewise.
43202         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
43203         * m4/readutmp.m4 (gl_READUTMP): Likewise.
43204         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43205         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43207         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
43208         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
43209         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
43210         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
43211         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
43212         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
43213         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
43215         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43217         Reported by Eric Blake.
43219         Properly quote AC_CHECK_DECL's 4th argument.
43220         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
43221         argument.
43222         * m4/argp.m4 (gl_ARGP): Likewise.
43223         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
43224         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
43225         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
43226         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
43227         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
43228         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
43229         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
43230         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
43231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43232         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
43233         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
43234         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
43235         Reported by Eric Blake.
43237 2011-09-14  Eric Blake  <eblake@redhat.com>
43239         opendir: avoid compile warning
43240         * lib/opendir.c (includes): Always include errno.h.
43241         Reported by Tatsuro MATSUOKA.
43243 2011-09-14  Jim Meyering  <meyering@redhat.com>
43245         maint.mk: sc_tight_scope: propagate failure from sub-make
43246         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
43247         Reported by Martin von Gagern.
43249 2011-09-13  Bruno Haible  <bruno@clisp.org>
43251         tempname: Support for MSVC.
43252         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
43253         MSVC.
43254         * modules/tempname (Depends-on): Add fcntl-h.
43256 2011-09-13  Bruno Haible  <bruno@clisp.org>
43258         sys_time: Support for MSVC.
43259         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
43260         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
43261         include <winsock2.h>.
43262         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
43263         function declarations that collide with POSIX.
43264         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
43265         (Makefile.am): Substitute HAVE_WINSOCK2_H.
43267 2011-09-13  Bruno Haible  <bruno@clisp.org>
43269         stat: Support for MSVC.
43270         * lib/stat.c: Include pathmax.h.
43271         * modules/stat (Depends-on): Add pathmax.
43273         pathmax: Support for native Windows.
43274         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
43276 2011-09-12  Bruno Haible  <bruno@clisp.org>
43278         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
43279         * lib/dirent.in.h (struct dirent): New type.
43280         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
43281         DT_WHT): New macros.
43282         (DIR): New type.
43283         (opendir, closedir): Declare only if the module 'opendir' is enabled.
43284         (readdir, rewinddir): New declarations.
43285         * lib/dirent-private.h: New file.
43286         * lib/opendir.c: New file.
43287         * lib/readdir.c: New file.
43288         * lib/rewinddir.c: New file.
43289         * lib/closedir.c: New file.
43290         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
43291         * m4/opendir.m4: New file.
43292         * m4/readdir.m4: New file.
43293         * m4/rewinddir.m4: New file.
43294         * m4/closedir.m4: New file.
43295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
43296         REPLACE_CLOSEDIR here.
43297         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
43298         readdir, rewinddir are declared.
43299         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
43300         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
43301         HAVE_REWINDDIR, HAVE_CLOSEDIR.
43302         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
43303         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
43304         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
43305         * modules/opendir: New file.
43306         * modules/readdir: New file.
43307         * modules/rewinddir: New file.
43308         * modules/closedir: New file.
43309         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
43310         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
43311         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
43312         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
43313         * NEWS: Mention the 'fchdir' change.
43315 2011-09-11  Bruno Haible  <bruno@clisp.org>
43317         asm-underscore.m4: Support for MSVC.
43318         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
43319         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
43321 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
43323         Doc about crypt functions.
43324         * doc/posix-functions/crypt.texi: Expand range of glibc versions
43325         needing for _GNU_SOURCE to get crypt.
43326         * doc/posix-functions/encrypt.texi: Likewise.
43327         * doc/posix-functions/setkey.texi: Likewise.
43329 2011-09-11  Bruno Haible  <bruno@clisp.org>
43331         doc: Update regarding MSVC 9.
43332         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
43333         tested".
43334         * doc/posix-functions/*.texi: Update with info about MSVC 9.
43335         * doc/posix-headers/*.texi: Likewise.
43336         * doc/pastposix-functions/*.texi: Likewise.
43337         * doc/glibc-functions/*.texi: Likewise.
43338         * doc/glibc-headers/*.texi: Likewise.
43340 2011-09-11  Bruno Haible  <bruno@clisp.org>
43342         unistd et al.: Don't assume <unistd.h> exists.
43343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
43344         does not exist.
43345         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
43346         exist. But include <stdlib.h>.
43347         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
43348         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
43349         symlink() does not exist.
43350         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
43351         include <io.h> instead.
43352         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
43353         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
43354         include <direct.h> instead.
43355         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
43356         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43357         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
43358         <io.h> instead.
43359         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
43360         correctly if the system does not have hard links.
43361         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
43362         <direct.h> instead.
43363         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
43364         it when looking for function declarations.
43365         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
43366         <direct.h> and <io.h> instead.
43367         * doc/posix-headers/unistd.texi: More details about MSVC problem.
43369 2011-09-11  Bruno Haible  <bruno@clisp.org>
43371         strcase: Support for MSVC.
43372         * modules/strcase (Status, Notice): Remove obsoletion mark.
43373         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
43374         * doc/posix-functions/strncasecmp.texi: Likewise.
43376         strings: Don't assume <strings.h> exists.
43377         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
43378         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
43379         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
43380         * doc/posix-headers/strings.texi: Mention the MSVC problem.
43382 2011-09-11  Bruno Haible  <bruno@clisp.org>
43384         dirent: Don't assume <dirent.h> exists.
43385         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
43386         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
43387         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
43388         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
43390 2011-09-11  Bruno Haible  <bruno@clisp.org>
43392         Fix wint_t on MSVC.
43393         * lib/wchar.in.h (wint_t): On MSVC, override it.
43394         * lib/wctype.in.h (wint_t): Likewise.
43395         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
43396         MSVC.
43397         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
43398         * doc/posix-headers/wctype.texi: Likewise.
43400 2011-09-11  Bruno Haible  <bruno@clisp.org>
43402         sys_types: Fix typo.
43403         * lib/sys_types.in.h: Fix typo in comment.
43404         Reported by Paul Eggert.
43406         Support for MSVC compiler: Ensure size_t gets defined.
43407         * modules/strings (Depends-on): Add 'sys_types'.
43408         * modules/sys_uio (Depends-on): Likewise.
43409         * lib/sys_uio.in.h: Update comment.
43411         C++ tests for module 'sys_types'.
43412         * modules/sys_types-c++-tests: New file.
43413         * tests/test-sys_types-c++.cc: New file.
43415         Tests for module 'sys_types'.
43416         * modules/sys_types-tests: New file.
43417         * tests/test-sys_types.c: New file.
43419         New module 'sys_types'.
43420         * lib/sys_types.in.h: New file.
43421         * m4/sys_types_h.m4: New file.
43422         * modules/sys_types: New file.
43423         * doc/posix-headers/sys_types.texi: Mention the new module and the
43424         size_t problem on MSVC 9.
43426 2011-09-11  Bruno Haible  <bruno@clisp.org>
43428         Support for MSVC compiler: Avoid division by a literal 0.
43429         * lib/math.in.h (NAN): Define through a function call also on MSVC.
43430         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
43431         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
43432         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
43433         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
43434         * tests/infinity.h: New file.
43435         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
43436         on MSVC.
43437         * tests/test-ceilf1.c: Include infinity.h.
43438         (main): Use Infinityf.
43439         * tests/test-ceil1.c: Include infinity.h.
43440         (main): Use Infinityd.
43441         * tests/test-ceill.c: Include infinity.h.
43442         (main): Use Infinityl.
43443         * tests/test-dprintf-posix.c: Include infinity.h.
43444         (test_function): Use Infinityd.
43445         * tests/test-floorf1.c: Include infinity.h.
43446         (main): Use Infinityf.
43447         * tests/test-floor1.c: Include infinity.h.
43448         (main): Use Infinityd.
43449         * tests/test-floorl.c: Include infinity.h.
43450         (main): Use Infinityl.
43451         * tests/test-fprintf-posix.c: Include infinity.h.
43452         (test_function): Use Infinityd.
43453         * tests/test-frexp.c: Include infinity.h.
43454         (main): Use Infinityd.
43455         * tests/test-frexpl.c: Include infinity.h.
43456         (main): Use Infinityl.
43457         * tests/test-isfinite.c: Include infinity.h.
43458         (test_isfinitef): Use Infinityf.
43459         (test_isfinited): Use Infinityd.
43460         (test_isfinitel): Use Infinityl.
43461         * tests/test-isinf.c: Include infinity.h.
43462         (test_isinff): Use Infinityf.
43463         (test_isinfd): Use Infinityd.
43464         (test_isinfl): Use Infinityl.
43465         * tests/test-isnan.c: Include infinity.h.
43466         (test_float): Use Infinityf.
43467         (test_double): Use Infinityd.
43468         (test_long_double): Use Infinityl.
43469         * tests/test-isnanf.h: Include infinity.h.
43470         (main): Use Infinityf.
43471         * tests/test-isnand.h: Include infinity.h.
43472         (main): Use Infinityd.
43473         * tests/test-isnanl.h: Include infinity.h.
43474         (main): Use Infinityl.
43475         * tests/test-ldexpl.c: Include infinity.h.
43476         (main): Use Infinityl.
43477         * tests/test-printf-posix.h: Include infinity.h.
43478         (test_function): Use Infinityd.
43479         * tests/test-roundf1.c: Include infinity.h.
43480         (main): Use Infinityf.
43481         * tests/test-round1.c: Include infinity.h.
43482         (main): Use Infinityd.
43483         * tests/test-roundl.c: Include infinity.h.
43484         (main): Use Infinityl.
43485         * tests/test-signbit.c: Include infinity.h.
43486         (test_signbitf): Use Infinityf.
43487         (test_signbitd): Use Infinityd.
43488         (test_signbitl): Use Infinityl.
43489         * tests/test-snprintf-posix.h: Include infinity.h.
43490         (test_function): Use Infinityd, Infinityl.
43491         * tests/test-sprintf-posix.h: Include infinity.h.
43492         (test_function): Use Infinityd, Infinityl.
43493         * tests/test-truncf1.c: Include infinity.h.
43494         (main): Use Infinityf.
43495         * tests/test-trunc1.c: Include infinity.h.
43496         (main): Use Infinityd.
43497         * tests/test-truncl.c: Include infinity.h.
43498         (main): Use Infinityl.
43499         * tests/test-vasnprintf-posix.c: Include infinity.h.
43500         (test_function): Use Infinityd, Infinityl.
43501         * tests/test-vasprintf-posix.c: Include infinity.h.
43502         (test_function): Use Infinityd, Infinityl.
43503         * modules/ceilf-tests (Files): Add tests/infinity.h.
43504         * modules/ceil-tests (Files): Likewise.
43505         * modules/ceill-tests (Files): Likewise.
43506         * modules/dprintf-posix-tests (Files): Likewise.
43507         * modules/floorf-tests (Files): Likewise.
43508         * modules/floor-tests (Files): Likewise.
43509         * modules/floorl-tests (Files): Likewise.
43510         * modules/fprintf-posix-tests (Files): Likewise.
43511         * modules/frexp-tests (Files): Likewise.
43512         * modules/frexp-nolibm-tests (Files): Likewise.
43513         * modules/frexpl-tests (Files): Likewise.
43514         * modules/frexpl-nolibm-tests (Files): Likewise.
43515         * modules/isfinite-tests (Files): Likewise.
43516         * modules/isinf-tests (Files): Likewise.
43517         * modules/isnan-tests (Files): Likewise.
43518         * modules/isnanf-tests (Files): Likewise.
43519         * modules/isnanf-nolibm-tests (Files): Likewise.
43520         * modules/isnand-tests (Files): Likewise.
43521         * modules/isnand-nolibm-tests (Files): Likewise.
43522         * modules/isnanl-tests (Files): Likewise.
43523         * modules/isnanl-nolibm-tests (Files): Likewise.
43524         * modules/ldexpl-tests (Files): Likewise.
43525         * modules/printf-posix-tests (Files): Likewise.
43526         * modules/roundf-tests (Files): Likewise.
43527         * modules/round-tests (Files): Likewise.
43528         * modules/roundl-tests (Files): Likewise.
43529         * modules/signbit-tests (Files): Likewise.
43530         * modules/snprintf-posix-tests (Files): Likewise.
43531         * modules/sprintf-posix-tests (Files): Likewise.
43532         * modules/truncf-tests (Files): Likewise.
43533         * modules/trunc-tests (Files): Likewise.
43534         * modules/truncl-tests (Files): Likewise.
43535         * modules/vasnprintf-posix-tests (Files): Likewise.
43536         * modules/vasprintf-posix-tests (Files): Likewise.
43537         * modules/vdprintf-posix-tests (Files): Likewise.
43538         * modules/vfprintf-posix-tests (Files): Likewise.
43539         * modules/vprintf-posix-tests (Files): Likewise.
43540         * modules/vsnprintf-posix-tests (Files): Likewise.
43541         * modules/vsprintf-posix-tests (Files): Likewise.
43542         * modules/xprintf-posix-tests (Files): Likewise.
43544 2011-09-11  Bruno Haible  <bruno@clisp.org>
43546         Ensure pid_t gets defined.
43547         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
43548         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
43549         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43550         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43551         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
43552         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
43553         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43554         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43555         * tests/test-fcntl-h.c: Check that pid_t is defined.
43556         * tests/test-sched.c: Likewise.
43557         * tests/test-termios.c: Likewise.
43558         * tests/test-time.c: Likewise.
43559         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
43560         * doc/posix-headers/signal.texi: Likewise.
43561         * doc/posix-headers/sys_types.texi: Likewise.
43562         * doc/posix-headers/time.texi: Likewise.
43564 2011-09-11  Bruno Haible  <bruno@clisp.org>
43566         acl: Fix compilation on Solaris 10 (older version).
43567         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
43568         of ACE_EVERYONE.
43569         * lib/set-mode-acl.c (qset_acl): Likewise.
43570         Reported by Christian Jullien <eligis@orange.fr>.
43572 2011-09-10  Bruno Haible  <bruno@clisp.org>
43574         iconv, unsetenv: Add support for MSVC compiler.
43575         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
43576         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
43578 2011-09-10  Bruno Haible  <bruno@clisp.org>
43580         *printf: Add support for MSVC compiler.
43581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
43582         handles the exception caused by the %n directive. When cross-compiling,
43583         guess no on native Windows.
43584         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
43585         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
43586         emulate it through vsnprintf.
43587         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
43588         * doc/posix-functions/dprintf.texi: Update documentation regarding
43589         MSVC 9.
43590         * doc/posix-functions/fprintf.texi: Likewise.
43591         * doc/posix-functions/printf.texi: Likewise.
43592         * doc/posix-functions/snprintf.texi: Likewise.
43593         * doc/posix-functions/sprintf.texi: Likewise.
43594         * doc/posix-functions/swprintf.texi: Likewise.
43595         * doc/posix-functions/vdprintf.texi: Likewise.
43596         * doc/posix-functions/vfprintf.texi: Likewise.
43597         * doc/posix-functions/vprintf.texi: Likewise.
43598         * doc/posix-functions/vsnprintf.texi: Likewise.
43599         * doc/posix-functions/vsprintf.texi: Likewise.
43600         * doc/glibc-functions/asprintf.texi: Likewise.
43601         * doc/glibc-functions/obstack_printf.texi: Likewise.
43602         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43603         * doc/glibc-functions/vasprintf.texi: Likewise.
43605 2011-09-10  Bruno Haible  <bruno@clisp.org>
43607         nocrash: Add support for native Windows.
43608         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
43610 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
43611             Bruno Haible  <bruno@clisp.org>
43613         absolute-header, include-next: Add support for MSVC compiler.
43614         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
43615         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
43616         directory separator in #line directives.
43617         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
43618         recognize also backslash as directory separator in #line directives.
43620 2011-09-08  Jim Meyering  <meyering@redhat.com>
43622         maint.mk: mark the post-release commit log with "maint: " prefix
43623         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
43624         one-line commit-log summary.
43626 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
43627             Bruno Haible  <bruno@clisp.org>
43629         Doc about crypt functions.
43630         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
43631         systems.
43632         * doc/posix-functions/encrypt.texi: Likewise.
43633         * doc/posix-functions/setkey.texi: Likewise.
43635 2011-09-08  Simon Josefsson  <simon@josefsson.org>
43637         * lib/gc.h: Fix copyright header.
43639 2011-09-07  Bruno Haible  <bruno@clisp.org>
43641         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
43642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
43643         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
43645 2011-09-07  Bruno Haible  <bruno@clisp.org>
43647         openat: Work around compilation error with OSF/1 5.1 DTK cc.
43648         * lib/fopen.c: Use different syntax for include of <stdio.h>.
43649         * lib/freopen.c: Likewise.
43650         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
43651         * lib/lstat.c: Likewise.
43652         * lib/stat.c: Likewise.
43653         * lib/open.c: Use different syntax for include of <fcntl.h>.
43654         * lib/openat.c: Include fcntl.h again, explicitly.
43656 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
43658         parse-datetime: document the newly accepted format
43659         * doc/parse-datetime.texi (Combined date and time of day items):
43660         New section.
43662 2011-09-06  Bruno Haible  <bruno@clisp.org>
43664         acl: Fix a test failure on newer Solaris 10 with ZFS.
43665         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
43666         ENOSYS as no ACL.
43667         Reported by Jim Meyering.
43669 2011-09-06  Bruno Haible  <bruno@clisp.org>
43671         acl: Update for AIX >= 5.3 with NFS.
43672         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
43673         ENOSYS as no ACL.
43675         acl: Fix a test failure on AIX >= 5.3 with NFS.
43676         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
43677         as no ACL.
43679 2011-09-06  Bruno Haible  <bruno@clisp.org>
43681         acl: Fix a test failure on IRIX 6.5 with NFS.
43682         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
43683         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
43684         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
43685         * lib/copy-acl.c (qcopy_acl): Likewise.
43687 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
43689         openat: port to AIX 7.1 with large files
43690         AIX 7.1 does a "#define openat open64at" if large files are in use,
43691         so we can't simply #undef openat.  Use the orig_openat trick (similar
43692         to orig_open in lib/open.c) to work around the problem.  Problem
43693         reported by Kevin Brott for GNU tar, in the thread containing
43694         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
43695         * lib/openat.c (__need_system_fcntl_h): Define first.
43696         Include <fcntl.h> and <sys/types.h> before undefining.
43697         (orig_openat) [HAVE_OPENAT]: New inline function.
43698         (openat) [HAVE_OPENAT]: Do not undef.
43699         (rpl_openat): Use orig_openat, not openat.
43701 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
43702             Bruno Haible  <bruno@clisp.org>
43704         acl: Avoid errors on NonStop Kernel.
43705         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
43706         ENOTSUP errors.
43708 2011-09-05  Bruno Haible  <bruno@clisp.org>
43710         acl: Clean up Solaris code.
43711         * lib/acl-internal.h: Remove no-op #if.
43712         * lib/file-has-acl.c: Likewise.
43713         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
43714         * lib/copy-acl.c (qcopy_acl): Likewise.
43716 2011-09-05  Bruno Haible  <bruno@clisp.org>
43718         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
43719         binaries built on the original Solaris 10.
43720         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
43721         trivial.
43723 2011-09-05  Bruno Haible  <bruno@clisp.org>
43725         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
43726         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
43727         10.
43728         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
43729         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
43730         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
43731         instead of acl_get, facl_get, acl_set, facl_set.
43733 2011-09-05  Bruno Haible  <bruno@clisp.org>
43735         copy-file: Try unit tests on more file systems.
43736         * tests/test-copy-file-1.sh: New file.
43737         * tests/test-copy-file-2.sh: New file.
43738         * modules/copy-file-tests (Files): Add them.
43739         (Makefile.am): Add them to TESTS.
43741         acl: Try unit tests on more file systems.
43742         * tests/test-file-has-acl-1.sh: New file.
43743         * tests/test-file-has-acl-2.sh: New file.
43744         * tests/test-set-mode-acl-1.sh: New file.
43745         * tests/test-set-mode-acl-2.sh: New file.
43746         * tests/test-copy-acl-1.sh: New file.
43747         * tests/test-copy-acl-2.sh: New file.
43748         * modules/acl-tests (Files): Add them.
43749         (Makefile.am): Add them to TESTS.
43751 2011-09-04  Bruno Haible  <bruno@clisp.org>
43753         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
43754         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
43755         10.
43756         (OLD_ALLOW, OLD_DENY): New macros.
43757         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
43758         ACE_ACCESS_ALLOWED_ACE_TYPE.
43759         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
43760         ACE_ACCESS_DENIED_ACE_TYPE.
43761         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
43762         (NEW_ACE_EXECUTE): Fix value.
43763         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
43764         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
43765         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
43766         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
43767         NEW_ACE_SYNCHRONIZE): New macros.
43768         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
43769         instead of acl_fromtext, acl_set, facl_set.
43770         Fixes a coreutils/tests/cp/perm failure.
43772 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
43774         openat: test for fstatat (..., 0) bug
43775         Further testing with tar suggests that fstatat (..., 0)
43776         does not work in general, on AIX 7.1; see
43777         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
43778         So, give up entirely on AIX 7.1's fstatat, and fall back on our
43779         replacement fstatat (which is what older AIX releases were using
43780         anyway).
43781         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
43782         use is now changed to orig_fstatat.  This was probably the right
43783         thing to do anyway.
43784         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
43785         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
43786         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
43787         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
43788         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
43789         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
43790         if the bug is found.
43792         openat: test for fstatat (AT_FDCWD, ..., 0) bug
43793         This tests for another fstatat bug on AIX 7.1:
43794         fstatat (AT_FDCWD, ..., 0) does not work.  See
43795         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
43796         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
43797         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
43798         (rpl_fstatat): Adjust so that it works around either (or both)
43799         bugs if present.
43800         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
43802 2011-09-03  Karl Berry  <karl@gnu.org>
43804         * doc/regex.texi (Character Class Operators): Avoid literal ":"
43805         in index entries.
43807 2011-09-02  Bruno Haible  <bruno@clisp.org>
43809         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
43810         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
43811         values of AR, ARFLAGS, RANLIB.
43812         Reported by John W. Eaton <jwe@gnu.org> for Octave.
43814 2011-09-02  Bruno Haible  <bruno@clisp.org>
43816         Find 'ar' program that fits with --host argument.
43817         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
43819 2011-09-02  Bruno Haible  <bruno@clisp.org>
43821         tests: init.sh: Support any non-GNU diff.
43822         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
43823         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
43824         Solaris 8.
43826 2011-09-02  Bruno Haible  <bruno@clisp.org>
43828         tests: init.sh: work also with any non-GNU diff that supports -u
43829         * tests/init.sh: Relax check for diff -u support.
43830         Rather than checking for GNU diff via --version, simply check
43831         for support for -u itself.  Useful at least on OpenBSD 4.9,
43832         AIX 7.1, IRIX 6.5, and Solaris 10.
43834 2011-09-01  Bruno Haible  <bruno@clisp.org>
43836         strtoimax, strtoumax: Document problem on HP-UX 11.
43837         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
43838         * doc/posix-functions/strtoumax.texi: Likewise.
43840 2011-09-01  Bruno Haible  <bruno@clisp.org>
43842         strtoumax: Avoid link error on OSF/1 with DTK cc.
43843         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
43844         defined as a function.
43845         * modules/strtoumax (Depends-on, configure.ac): Test only whether
43846         strtoumax is defined, not whether it is declared.
43848 2011-09-01  Bruno Haible  <bruno@clisp.org>
43850         strtoimax: Avoid link error on OSF/1 with DTK cc.
43851         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
43852         defined as a function.
43853         * modules/strtoimax (Depends-on, configure.ac): Test only whether
43854         strtoimax is defined, not whether it is declared.
43856 2011-09-01  Bruno Haible  <bruno@clisp.org>
43858         imaxdiv: Avoid link error on OSF/1 with DTK cc.
43859         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
43860         as a function.
43861         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
43862         whether it is declared.
43864 2011-09-01  Bruno Haible  <bruno@clisp.org>
43866         imaxabs: Avoid link error on OSF/1 with DTK cc.
43867         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
43868         as a function.
43869         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
43870         whether it is declared.
43872 2011-09-01  Bruno Haible  <bruno@clisp.org>
43874         Tests for module 'strtoumax'.
43875         * modules/strtoumax-tests: New file.
43876         * tests/test-strtoumax.c: New file.
43878         Tests for module 'strtoimax'.
43879         * modules/strtoimax-tests: New file.
43880         * tests/test-strtoimax.c: New file.
43882         Tests for module 'imaxdiv'.
43883         * modules/imaxdiv-tests: New file.
43884         * tests/test-imaxdiv.c: New file.
43886         Tests for module 'imaxabs'.
43887         * modules/imaxabs-tests: New file.
43888         * tests/test-imaxabs.c: New file.
43890 2011-09-01  Bruno Haible  <bruno@clisp.org>
43892         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
43893         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
43894         pthread_create.
43896 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43898         openat: work around AIX 7.1 fstatat issue
43899         This should fix the problem that was not properly fixed
43900         in the previous change, dated 2011-08-30.
43901         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
43902         __need_system_stat_h defined.
43903         (orig_fstatat) [HAVE_FSTATAT]: New function.
43904         (rpl_fstatat): Go back to the old way of doing things,
43905         except call orig_fstatat instead of fstatat.
43906         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
43907         Remove unnecessary check whether fstatat fills in st_size etc.
43909 2011-09-01  Bruno Haible  <bruno@clisp.org>
43911         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
43912         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
43913         just include the system's header.
43915 2011-08-31  Jim Meyering  <meyering@redhat.com>
43917         tests: avoid spurious assertion failure in test-float.c on ppc64
43918         * tests/test-float.c (test_long_double): Comment out an assertion,
43919         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
43920         with gcc-4.4.4.
43922         maint: indent with spaces, not TABs
43923         I need to get in the habit of running gnulib's "make check".
43924         Both of these would have been caught.
43925         * m4/largefile.m4: Indent with spaces, not TABs.
43926         * lib/parse-datetime.y (iso_8601_time): Likewise.
43927         Spotted by Pádraig Brady.
43929         test-parse-datetime.c: accommodate a relatively strict gcc warning
43930         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
43931         to avoid a warning from gcc's -Werror=missing-declarations.
43932         Insert a few spaces-before-funcall-parenthesis.
43934 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
43936         parse-datetime: accept ISO 8601 date and time rep with "T" separator
43937         The parser now accepts ISO 8601 date-time strings with "T" as the
43938         separator.  It has long parsed dates like "2004-02-29 16:21:42"
43939         with a space between the date and time strings.  Now it also parses
43940         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
43941         variants like "2004-02-29T16:21:42.333-07:00"
43942         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
43943         of day representation using the 'T' separator character.
43944         * doc/parse-datetime.texi (General date syntax): replace use of
43945         deprecated --iso-8601 option with --rfc-3339 in example of date
43946         command output formats that can be parsed.
43947         * tests/test-parse-datetime.c (tm_diff): New function, taken from
43948         lib/parse-datetime.y.
43949         (gmt_offset): New function.
43950         (main): Add additional test cases to validate ISO8601 extended
43951         date and time of day parsing.
43953 2011-08-31  Bruno Haible  <bruno@clisp.org>
43955         freopen: Documentation.
43956         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
43957         name.
43958         Reported by Claudio Bley <claudio.bley@gmail.com>.
43960 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
43962         freopen: Don't crash if the filename argument is NULL.
43963         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
43964         NULL.
43966 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43968         openat: work around AIX 7.1 fstatat bug
43969         Problem reported by Kevin Brott for GNU tar, in the thread containing
43970         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
43971         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
43972         FSTATAT_ST_SIZE_ETC_BROKEN.
43973         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
43974         rpl_fstatat.
43975         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
43976         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
43977         AC_CHECK_FUNCS_ONCE for fstatat.
43978         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
43979         fchmodat, mkdirat, openat and unlinkat.
43981 2011-08-30  Bruno Haible  <bruno@clisp.org>
43983         Avoid endless recursions if config.h includes some header files.
43984         * lib/fopen.c (__need_FILE): Define already before including config.h.
43985         * lib/freopen.c (__need_FILE): Likewise.
43986         * lib/open.c (__need_system_fcntl_h): Likewise.
43987         * lib/stat.c (__need_system_sys_stat_h): Likewise.
43988         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
43989         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43991 2011-08-25  Karl Berry  <karl@gnu.org>
43993         * config/srclist.txt (ylwrap): new try.
43994         * build-aux/ylwrap: new file.
43996 2011-08-23  Bruno Haible  <bruno@clisp.org>
43998         tmpdir: Use a good default directory on native Windows.
43999         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
44000         (P_tmpdir): Default to _P_tmpdir on native Windows.
44001         (path_search): On native Windows, try the value returned by GetTempPath
44002         before trying P_tmpdir.
44003         * modules/tmpdir (Depends-on): Add pathmax.
44004         Suggested by John Darrington <john@darrington.wattle.id.au>.
44006 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
44008         doc: fix typo in README-release
44009         * top/README-release: Capitalize first word of a sentence.
44011 2011-08-19  Jim Meyering  <meyering@redhat.com>
44013         fts: do not exhaust memory when processing million-entry directories
44014         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
44015         directory would require about 256*N bytes of memory.  Thus, it was
44016         easy to construct a directory too large to be processed by any of
44017         those tools.  With this change, fts' maximum memory utilization is
44018         now limited to around 30MB.
44019         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
44020         (fts_read): When we've processed the final entry (i.e., when
44021         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
44022         using the parent entry to read any remaining entries.  Dispatch
44023         depending on what fts_build returns:
44024         - NULL+stop, aka failure: stop
44025         - NULL otherwise: move up in the dir hierarchy
44026         - non-NULL: handle this new entry
44027         (fts_build): Declare and use new local, continue_readdir.
44028         Prepare to be called from fts_read, when the entries
44029         from a partially-read directory have just been exhausted.
44030         In that case, we'll skip the opendir and instead use the parent's
44031         fts_dirp and derive dir_fd from that.
44032         Finally, in the readdir loop, if we read max_entries entries,
44033         exit the loop ensuring *not* to call closedir.  This is required
44034         so that fts_dirp can be reused on a subsequent call.
44035         Prompted by Ben England's report of memory exhaustion in find
44036         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
44038         maint: fts: move decl of `dp' down into while loop; split a long line
44039         * lib/fts.c (fts_build): No semantic change.
44041         fts: add/use new struct member, fts_dirp
44042         We are about to use this to manage any directory with
44043         too many entries to read all of them into memory at once.
44044         To do that, we'll need to save the DIR* pointer in each
44045         affected FTSENT struct.
44046         * lib/fts_.h: Include <dirent.h>.
44047         (struct FTSENT) [fts_dirp]: New member.
44048         * lib/fts.c (closedir_and_clear): Define.
44049         Use it in place of closedir so that we are sure to
44050         clear the new fts_dirp member when done with it.
44051         (fts_alloc): Initialize the new member.
44052         (fts_lfree): Free, if needed.
44054         maint: fts: give __opendir2 a new parameter and rename
44055         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
44056         than surreptitiously using sole caller's "dir_fd".
44057         (fts_opendir): Rename from __opendir2.
44059         maint: fts.c: remove __opendir2's now-unused parameter, oflag
44060         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
44062         maint: fts.c: correct off-by-one indentation
44063         * lib/fts.c (fts_build): Correct indentation, change style
44064         of a couple of block comments, and bracing style.
44066         maint: fts.c: move __opendir2 #define "up" out of function body
44067         * lib/fts.c (__opendir2): Move "up".  No semantic change.
44069         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
44070         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
44071         out for a long time and besides was useful only on BSD systems.
44073 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44075         regex: port to Stratus OpenVOS
44076         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
44077         define to empty, rather than attempting nonportable optimizations.
44078         Problem reported by Paul Green in:
44079         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
44080         and fix suggested by Eric Blake in:
44081         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
44083 2011-08-17  Eric Blake  <eblake@redhat.com>
44085         getcwd: fix test failures on mingw
44086         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
44087         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
44088         test if long directory cannot be created, and allow mingw errno.
44090         getcwd-lgpl: fix m4 to match relaxed test for BSD
44091         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
44092         (gl_FUNC_GETCWD_SIGNATURE): New macro.
44093         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
44094         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
44095         signature problem.
44097         getcwd: fix compilation on mingw64
44098         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
44099         getcwd.
44100         Reported by Marc-André Lureau.
44102         pipe2: silence compiler warning
44103         * lib/pipe2.c (pipe2): Hide label if it is not used.
44105 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
44107         relocatable-prog: fix link error
44108         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
44109         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
44110         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
44111         into modules/relocatable-lib without noticing that
44112         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
44113         also needs to build relocatable.c.
44115 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44117         getaddrinfo: fix sh typo in gai_strerrorA decl checking
44118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
44119         shell code: it contained a 'break' that was not in a loop.
44120         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
44121         via a shell-language loop; this may have been true in old Autoconf
44122         versions, but it's not true in Autoconf 2.68.  I found this bug
44123         when testing coreutils git on Solaris 8, whose shell complains
44124         about the syntax error.
44126 2011-08-12  Simon Josefsson  <simon@josefsson.org>
44128         * lib/base64.c: Fix comment to reference RFC 4648.
44129         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
44130         <gvtulder@gmail.com>.
44132 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44134         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
44136         po/Makefile.in.in: fix make -q problem
44137         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
44138         rule, since there's no file named 'check-macro-version' and its
44139         use as a file breaks make -q.
44140         (all): Don't depend on check-macro-version.
44141         (CHECK_MACRO_VERSION): New macro.
44142         (stamp-po): Use it.
44144         configmake: fix make -q problem
44145         * modules/configmake (configmake.h): Update configmake.h's time stamp
44146         even if the file does not change.  Otherwise, 'make -q' fails.
44147         Problem reported by Simon Josefsson in
44148         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
44150 2011-08-11  Jim Meyering  <meyering@redhat.com>
44152         git-version-gen: correct the advice in a comment
44153         * build-aux/git-version-gen: Correct comment.
44154         Don't recommend to list .tarball-version in .gitignore.
44156 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44158         base64: fix off-by-one buffer size bug
44159         Problem and (trivial) fix reported by Gijs van Tulder in
44160         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
44161         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
44162         * tests/test-base64.c (main): Catch the bug.
44164 2011-08-10  Eric Blake  <eblake@redhat.com>
44166         closein: correct comments
44167         * lib/closein.c (close_stdin): Improve comments.
44169 2011-08-09  Bruno Haible  <bruno@clisp.org>
44171         More tests for 'fseeko'.
44172         * tests/test-fseeko3.c: New file, from Eric Blake.
44173         * tests/test-fseeko3.sh: New file.
44174         * modules/fseeko-tests (Files): Add them.
44175         (TESTS): Add test-fseeko3.sh.
44176         (check_PROGRAMS): Add test-fseeko3.
44178 2011-08-09  Eric Blake  <eblake@redhat.com>
44180         fseeko: remove unneeded hack
44181         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
44183         fseeko: fix bug on glibc
44184         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
44185         Reported by John W. Eaton.
44187 2011-08-08  Bruno Haible  <bruno@clisp.org>
44189         unictype/base: Fix interoperability with preinstalled libunistring.
44190         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
44191         Reported by Simon Josefsson.
44193 2011-08-08  Bruno Haible  <bruno@clisp.org>
44195         iswblank: Detect declaration correctly.
44196         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
44197         AC_CHECK_DECLS invocation.
44199 2011-08-08  Bruno Haible  <bruno@clisp.org>
44201         tcgetsid: Detect declaration correctly.
44202         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
44203         AC_CHECK_DECLS invocation.
44204         Reported by Simon Josefsson.
44206 2011-08-08  Eric Blake  <eblake@redhat.com>
44208         largefile: fix typo that regressed large file support
44209         * modules/largefile (configure.ac-early): Fix section name.
44211 2011-08-06  Karl Berry  <karl@gnu.org>
44213         * MODULES.html.sh (func_all_files): _Noreturn is no longer
44214         a separate module.
44216 2011-08-05  Simon Josefsson  <simon@josefsson.org>
44218         openat: Fix warnings and commens when building unlinkat.c on Hurd.
44219         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
44220         get prototype for free.
44222 2011-08-04  Bruno Haible  <bruno@clisp.org>
44224         Tests for module 'pathmax'.
44225         * modules/pathmax-tests: New file.
44226         * tests/test-pathmax.c: New file.
44228         canonicalize-lgpl: Support larger filenames on the Hurd.
44229         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
44230         Reported by Paul Eggert.
44232         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
44233         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
44234         * lib/chdir-long.h: Include pathmax.h.
44235         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
44236         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
44237         (PATH_MAX): Remove code that is done by pathmax.h.
44238         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
44239         * lib/tmpfile.c: Add a comment.
44240         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
44241         * modules/chdir-long (Depends-on): Add pathmax.
44242         * modules/getcwd (Depends-on): Add pathmax.
44243         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
44244         is not defined.
44245         * doc/posix-headers/limits.texi: Mention the pathmax module.
44246         * NEWS: Mention the change.
44248 2011-08-02  Bruno Haible  <bruno@clisp.org>
44250         pthread_sigmask: Actually use results of gl_THREADLIB.
44251         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
44252         gl_THREADLIB, not gl_[]THREADLIB.
44253         Reported by Eric Blake.
44255 2011-08-02  Jim Meyering  <meyering@redhat.com>
44257         maint.mk: relax the default _gl_TS_function_match regexp
44258         * top/maint.mk (_gl_TS_function_match): Don't require at least one
44259         space between function name and "(" in an "extern" declaration.
44260         That would fail to match a decl with no space there: extern void foo();
44262 2011-07-31  Iain Nicol  <iain@thenicols.net>
44264         git-version-gen: document that EXTRA_DIST must include .version
44265         * build-aux/git-version-gen: In the how-to-use comment, document
44266         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
44267         will fail when run from an unpacked distribution tarball.
44269 2011-08-01  Bruno Haible  <bruno@clisp.org>
44271         wctype-h: Fix last change.
44272         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
44273         REPLACE_TOWLOWER to 0.
44274         Reported by Sam Steingold <sds@gnu.org>.
44276 2011-07-31  Bruno Haible  <bruno@clisp.org>
44278         frexpl: Update autoconf test.
44279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
44280         according to changes of 2011-06-20.
44282 2011-07-31  Bruno Haible  <bruno@clisp.org>
44284         sys_utsname: Add support for Minix.
44285         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
44286         <sys/utsname.h>.
44287         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44288         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
44290 2011-07-31  Bruno Haible  <bruno@clisp.org>
44292         strings: Add support for Minix.
44293         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
44294         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
44295         * doc/posix-headers/strings.texi: Document the Minix problem.
44297 2011-07-31  Bruno Haible  <bruno@clisp.org>
44299         wctype-h: Add support for Minix.
44300         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
44301         REPLACE_TOWLOWER.
44302         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
44303         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
44304         REPLACE_ISWCNTRL.
44306 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
44308         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
44309         This is a performance improvement for 64-bit hosts: it causes the
44310         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
44312 2011-07-31  Bruno Haible  <bruno@clisp.org>
44314         stdioext: Add support for Minix.
44315         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
44316         * lib/fpurge.c (fpurge): Likewise.
44317         * lib/freadahead.c (freadahead): Likewise.
44318         * lib/freadable.c (freadable): Likewise.
44319         * lib/freading.c (freading): Likewise.
44320         * lib/freadptr.c (freadptr): Likewise.
44321         * lib/freadseek.c (freadptrinc): Likewise.
44322         * lib/fseeko.c (rpl_fseeko): Likewise.
44323         * lib/fseterr.c (fseterr): Likewise.
44324         * lib/fwritable.c (fwritable): Likewise.
44325         * lib/fwriting.c (fwriting): Likewise.
44326         * lib/fflush.c (clear_ungetc_buffer): Update comment.
44327         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
44329 2011-07-31  Bruno Haible  <bruno@clisp.org>
44331         errno: Port to Minix.
44332         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
44333         ECONNABORTED are defined.
44334         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
44335         GNULIB_defined_ECONNABORTED): New macros.
44336         * lib/strerror-override.h (strerror_override): Test also
44337         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
44338         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
44339         ECONNABORTED.
44340         * doc/posix-headers/errno.texi: Mention the Minix problem.
44342 2011-07-31  Bruno Haible  <bruno@clisp.org>
44344         Work around declaration collisions on Minix.
44345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
44346         defined, set REPLACE_MBSINIT.
44347         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
44348         defined, set REPLACE_MBRTOWC.
44349         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
44350         set REPLACE_MBRLEN.
44351         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
44352         defined, set REPLACE_MBSRTOWCS.
44353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
44354         defined, set REPLACE_WCRTOMB.
44355         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
44356         defined, set REPLACE_WCSRTOMBS.
44358 2011-07-31  Bruno Haible  <bruno@clisp.org>
44360         Add support for Minix with ACK compiler.
44361         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
44362         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
44363         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
44365 2011-07-31  Bruno Haible  <bruno@clisp.org>
44367         Documentation about Minix.
44368         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
44369         * doc/glibc-headers/*.texi: Likewise.
44370         * doc/posix-functions/*.texi: Likewise.
44371         * doc/glibc-functions/*.texi: Likewise.
44373 2011-07-31  Bruno Haible  <bruno@clisp.org>
44375         snippet/warn-on-use: Fix indentation.
44376         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
44378 2011-07-25  Jim Meyering  <meyering@redhat.com>
44380         tests: test-update-copyright.sh: remove unnecessary "rm" commands
44381         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
44382         commands.
44384 2011-07-27  Jim Meyering  <meyering@redhat.com>
44386         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
44387         * top/maint.mk (gl_extract_significant_defines_): Now that
44388         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
44389         gnulib/lib/signal.in.h, and now that we recommend to
44390         define-if-undefined those two symbols in application code,
44391         we must filter them out of the "significant" list.
44392         This avoids a "make syntax-check" failure in coreutils.
44394 2011-07-26  Eric Blake  <eblake@redhat.com>
44396         warnings: add comments about previous patch
44397         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
44398         * m4/include_next.m4: Likewise.
44399         * m4/warn-on-use.m4: Likewise.
44400         * m4/warnings.m4: Likewise, and simplify use.
44401         Suggested by Stefano Lattarini.
44403         include-next, warnings: support older autoconf
44404         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
44405         AS_VAR_PUSHDEF in a way that works with older autoconf.
44406         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
44407         Reported by Daniel P. Berrange.
44409 2011-07-25  Bruno Haible  <bruno@clisp.org>
44411         fseek, ftell: Fix doc.
44412         * doc/posix-functions/fseek.texi: Reword statement about
44413         AC_SYS_LARGEFILE.
44414         * doc/posix-functions/ftell.texi: Likewise.
44416 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
44417             Bruno Haible  <bruno@clisp.org>
44419         Add dependencies to the 'largefile' module.
44420         * modules/fopen (Depends-on): Add 'largefile'.
44421         * modules/freopen (Depends-on): Likewise.
44422         * modules/fseeko (Depends-on): Likewise.
44423         * modules/ftello (Depends-on): Likewise.
44424         * modules/glob (Depends-on): Likewise.
44425         * modules/lseek (Depends-on): Likewise.
44426         * modules/lstat (Depends-on): Likewise.
44427         * modules/mkostemp (Depends-on): Likewise.
44428         * modules/mkostemps (Depends-on): Likewise.
44429         * modules/mkstemp (Depends-on): Likewise.
44430         * modules/mkstemps (Depends-on): Likewise.
44431         * modules/open (Depends-on): Likewise.
44432         * modules/openat (Depends-on): Likewise.
44433         * modules/pread (Depends-on): Likewise.
44434         * modules/pwrite (Depends-on): Likewise.
44435         * modules/scandir (Depends-on): Likewise.
44436         * modules/stat (Depends-on): Likewise.
44437         * modules/tmpfile (Depends-on): Likewise.
44438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
44439         since the containing module now depends on the largefile module.
44440         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
44441         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
44442         off_t is fixed by gnulib.
44443         * doc/posix-functions/freopen.texi: Likewise.
44444         * doc/posix-functions/fseeko.texi: Likewise.
44445         * doc/posix-functions/fstatat.texi: Likewise.
44446         * doc/posix-functions/ftello.texi: Likewise.
44447         * doc/posix-functions/glob.texi: Likewise.
44448         * doc/posix-functions/lseek.texi: Likewise.
44449         * doc/posix-functions/lstat.texi: Likewise.
44450         * doc/posix-functions/mkstemp.texi: Likewise.
44451         * doc/posix-functions/open.texi: Likewise.
44452         * doc/posix-functions/openat.texi: Likewise.
44453         * doc/posix-functions/pread.texi: Likewise.
44454         * doc/posix-functions/pwrite.texi: Likewise.
44455         * doc/posix-functions/scandir.texi: Likewise.
44456         * doc/posix-functions/stat.texi: Likewise.
44457         * doc/posix-functions/tmpfile.texi: Likewise.
44458         * doc/glibc-functions/mkostemp.texi: Likewise.
44459         * doc/glibc-functions/mkostemps.texi: Likewise.
44460         * doc/glibc-functions/mkstemps.texi: Likewise.
44462 2011-07-25  Bruno Haible  <bruno@clisp.org>
44464         fcntl: Move AC_LIBOBJ invocation to module description.
44465         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
44466         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
44468         fcntl: Remove call-in from fchdir.m4.
44469         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
44470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
44472         dup3: Remove potential call-in from fchdir.m4.
44473         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
44474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
44476         dup2: Move AC_LIBOBJ invocation to module description.
44477         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
44478         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
44479         Don't invoke AC_LIBOBJ.
44480         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
44482         dup2: Remove call-in from fchdir.m4.
44483         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
44484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
44486         fclose: Move AC_LIBOBJ invocation to module description.
44487         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
44488         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
44489         to 1.
44490         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
44492         fclose: Remove call-in from close.m4.
44493         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
44494         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
44496         close: Move AC_LIBOBJ invocation to module description.
44497         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
44498         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
44499         1.
44500         * modules/close (configure.ac): Invoke AC_LIBOBJ.
44502         close: Remove call-in from fchdir.m4.
44503         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
44504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
44506         open: Move AC_LIBOBJ invocation to module description.
44507         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
44508         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
44509         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
44511         open: Remove call-in from fchdir.m4.
44512         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
44513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
44515         fchdir: Start to remove gl_REPLACE_* idiom.
44516         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
44517         (gl_FUNC_FCHDIR): Invoke it.
44519 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
44521         * lib/ftell.c (ftell): Comment out cast.
44523         close: use gl_REPLACE_FCLOSE only if defined
44524         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
44525         is defined.  The close module doesn't depend on the fclose module
44526         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
44527         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
44528         I reproduced the problem with "./gnulib-tool --test close sys_socket".
44530 2011-07-24  Jim Meyering  <meyering@redhat.com>
44532         test-select.h: avoid warning when using gcc's -Wmissing-declarations
44533         * tests/test-select.h (test_function): Declare as "static".
44535 2011-07-24  Bruno Haible  <bruno@clisp.org>
44537         doc: Mention the effects of AC_SYS_LARGEFILE.
44538         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
44539         on this function.
44540         * doc/posix-functions/aio_error.texi: Likewise.
44541         * doc/posix-functions/aio_fsync.texi: Likewise.
44542         * doc/posix-functions/aio_read.texi: Likewise.
44543         * doc/posix-functions/aio_return.texi: Likewise.
44544         * doc/posix-functions/aio_suspend.texi: Likewise.
44545         * doc/posix-functions/aio_write.texi: Likewise.
44546         * doc/posix-functions/fgetpos.texi: Likewise.
44547         * doc/posix-functions/fopen.texi: Likewise.
44548         * doc/posix-functions/freopen.texi: Likewise.
44549         * doc/posix-functions/fsetpos.texi: Likewise.
44550         * doc/posix-functions/fstatvfs.texi: Likewise.
44551         * doc/posix-functions/ftruncate.texi: Likewise.
44552         * doc/posix-functions/ftw.texi: Likewise.
44553         * doc/posix-functions/getrlimit.texi: Likewise.
44554         * doc/posix-functions/glob.texi: Likewise.
44555         * doc/posix-functions/lio_listio.texi: Likewise.
44556         * doc/posix-functions/lockf.texi: Likewise.
44557         * doc/posix-functions/mkstemp.texi: Likewise.
44558         * doc/posix-functions/mmap.texi: Likewise.
44559         * doc/posix-functions/nftw.texi: Likewise.
44560         * doc/posix-functions/openat.texi: Likewise.
44561         * doc/posix-functions/opendir.texi: Likewise.
44562         * doc/posix-functions/posix_fadvise.texi: Likewise.
44563         * doc/posix-functions/posix_fallocate.texi: Likewise.
44564         * doc/posix-functions/pread.texi: Likewise.
44565         * doc/posix-functions/pwrite.texi: Likewise.
44566         * doc/posix-functions/readdir.texi: Likewise.
44567         * doc/posix-functions/readdir_r.texi: Likewise.
44568         * doc/posix-functions/rewinddir.texi: Likewise.
44569         * doc/posix-functions/scandir.texi: Likewise.
44570         * doc/posix-functions/seekdir.texi: Likewise.
44571         * doc/posix-functions/setrlimit.texi: Likewise.
44572         * doc/posix-functions/statvfs.texi: Likewise.
44573         * doc/posix-functions/telldir.texi: Likewise.
44574         * doc/posix-functions/tmpfile.texi: Likewise.
44575         * doc/posix-functions/truncate.texi: Likewise.
44576         * doc/glibc-functions/fallocate.texi: Likewise.
44577         * doc/glibc-functions/fstatfs.texi: Likewise.
44578         * doc/glibc-functions/fts_children.texi: Likewise.
44579         * doc/glibc-functions/fts_read.texi: Likewise.
44580         * doc/glibc-functions/getdirentries.texi: Likewise.
44581         * doc/glibc-functions/mkostemp.texi: Likewise.
44582         * doc/glibc-functions/mkostemps.texi: Likewise.
44583         * doc/glibc-functions/mkstemps.texi: Likewise.
44584         * doc/glibc-functions/preadv.texi: Likewise.
44585         * doc/glibc-functions/pwritev.texi: Likewise.
44586         * doc/glibc-functions/sendfile.texi: Likewise.
44587         * doc/glibc-functions/statfs.texi: Likewise.
44589 2011-07-24  Bruno Haible  <bruno@clisp.org>
44591         doc: Fix typo.
44592         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
44594 2011-07-24  Bruno Haible  <bruno@clisp.org>
44596         doc: Mention fsusage.
44597         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
44599 2011-07-24  Bruno Haible  <bruno@clisp.org>
44601         doc: Mention new glibc headers and functions.
44602         * doc/glibc-headers/gshadow.texi: New file.
44603         * doc/glibc-functions/endsgent.texi: New file.
44604         * doc/glibc-functions/fgetsgent.texi: New file.
44605         * doc/glibc-functions/fgetsgent_r.texi: New file.
44606         * doc/glibc-functions/getsgent.texi: New file.
44607         * doc/glibc-functions/getsgent_r.texi: New file.
44608         * doc/glibc-functions/getsgnam.texi: New file.
44609         * doc/glibc-functions/getsgnam_r.texi: New file.
44610         * doc/glibc-functions/putsgent.texi: New file.
44611         * doc/glibc-functions/setsgent.texi: New file.
44612         * doc/glibc-functions/sgetsgent.texi: New file.
44613         * doc/glibc-functions/sgetsgent_r.texi: New file.
44614         * doc/glibc-functions/malloc_info.texi: New file.
44615         * doc/glibc-functions/preadv.texi: New file.
44616         * doc/glibc-functions/pwritev.texi: New file.
44617         * doc/glibc-functions/register_printf_modifier.texi: New file.
44618         * doc/glibc-functions/register_printf_specifier.texi: New file.
44619         * doc/glibc-functions/register_printf_type.texi: New file.
44620         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
44621         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
44622         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
44623         * doc/glibc-functions/pthread_getname_np.texi: New file.
44624         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
44625         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
44626         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
44627         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
44628         * doc/glibc-functions/pthread_setname_np.texi: New file.
44629         * doc/glibc-functions/pthread_sigqueue.texi: New file.
44630         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
44631         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
44632         * doc/glibc-functions/qsort_r.texi: New file.
44633         * doc/glibc-functions/quick_exit.texi: New file.
44634         * doc/glibc-functions/syncfs.texi: New file.
44635         * doc/gnulib.texi: Include them.
44636         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
44637         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
44638         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
44639         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
44640         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
44641         * doc/glibc-functions/execvpe.texi: Likewise.
44643 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44645         ftell: don't include <unistd.h>
44646         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
44647         guaranteed to define off_t, and the ftell module depends on the
44648         stdio module.
44650         ftell: do not assume wraparound signed arithmetic
44651         * lib/ftell.c: Include <limits.h>.
44652         (ftell): Don't assume wraparound signed arithmetic.
44654 2011-07-24  Bruno Haible  <bruno@clisp.org>
44656         close: No longer depend on module 'fclose'.
44657         * modules/close (Depends-on): Remove fclose.
44658         * NEWS: Mention the change.
44659         Suggested by Sam Steingold <sds@gnu.org>.
44661 2011-07-24  Bruno Haible  <bruno@clisp.org>
44663         fsusage: Enable large volume support on AIX >= 5.2.
44664         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
44665         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
44666         instead of STAT_STATVFS.
44667         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
44669         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
44670         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
44671         f_blocks field only on MacOS X.
44673         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
44674         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
44675         * modules/fsusage (Depends-on): Add largefile.
44677 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44679         * README: Modernize discussion of signed integers.
44680         Assuming overflow wraparound is no longer safe.
44681         Mention ones' complement and signed magnitude.
44683 2011-07-22  Bruno Haible  <bruno@clisp.org>
44685         select tests, pselect tests: Refactor.
44686         * tests/test-select.h: New file, extracted from tests/test-select.c.
44687         (select_fn): New type.
44688         (test, do_select, do_select_nowait, do_select_wait, test_tty,
44689         test_connect_first, test_accept_first, test_pair, test_socket_pair,
44690         test_pipe): Add my_select argument.
44691         (test_function): Renamed from main. Add my_select argument.
44692         * tests/test-select.c: Move most code to tests/test-select.h. Include
44693         test-select.h.
44694         * modules/select-tests (Files): Add tests/test-select.h.
44695         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
44696         (my_select, main): New functions.
44697         * modules/pselect-tests (Files): Add tests/test-select.h,
44698         tests/macros.h, tests/signature.h.
44699         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
44700         (configure.ac): Check for <sys/wait.h>.
44702 2011-07-22  Bruno Haible  <bruno@clisp.org>
44704         sys_select tests: Check the signature of FD_*.
44705         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
44706         signature tests from here...
44707         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
44708         here.
44709         * modules/sys_select-tests (Files): Add tests/signature.h.
44711 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44713         largefile: new module, replacing large-inode
44714         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
44715         * MODULES.html.sh: Add largefile, remove large-inode.
44716         * modules/largefile, m4/largefile.m4: New files.
44717         * modules/large-inode, m4/large-inode.m4: Remove.
44719         fsusage: port to MacOS X 10.7 with 4 TiB file systems
44720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
44721         implementations that use only 32 bits to count blocks.
44722         On typical hosts with 1024-byte blocks, this fails with file
44723         systems as small as 4 TiB.  Problem reported by Herb Wartens
44724         <http://debbugs.gnu.org/9140> and this should also fix a similar
44725         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
44727         large-inode: New module
44728         * MODULES.html.sh: Add it.
44729         * modules/large-inode, m4/large-inode.m4: New files.
44731         extensions: Enable extensions on MacOS X 10.5 and later.
44732         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
44734 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
44736         file-has-acl: use acl_extended_file_nofollow if available
44737         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
44738         (acl_extended_file): New macro.
44739         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
44740         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
44742 2011-07-21  Bruno Haible  <bruno@clisp.org>
44744         Declare system functions in a way that works with C++.
44745         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
44746         declare fdopendir as extern "C".
44747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
44748         declare frexpl as extern "C".
44749         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
44750         declare gai_strerror as extern "C".
44751         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
44752         programs, declare gai_strerror as extern "C".
44753         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
44754         declare getlogin_r as extern "C".
44755         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
44756         as extern "C".
44757         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
44758         declare ldexpl as extern "C".
44759         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
44760         as extern "C".
44761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
44762         program, declare getmntinfo as extern "C".
44763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
44764         stpncpy as extern "C".
44765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
44766         program, declare __xpg_strerror_r as extern "C".
44767         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
44768         strndup as extern "C".
44769         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
44770         declare memset and bzero as extern "C".
44771         Reported by Sam Steingold <sds@gnu.org>.
44773 2011-07-12  Jim Meyering  <meyering@redhat.com>
44775         maint.mk: prohibit inclusion of "verify.h" without use
44776         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
44778 2011-07-19  Pádraig Brady  <P@draigBrady.com>
44780         timer-time: A new module to check for timer_settime()
44781         * m4/timer_time.m4: Check for the posix function.
44782         * modules/timer-time: Add the new module.
44783         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
44784         Mention it.
44786 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
44787             Bruno Haible  <bruno@clisp.org>
44789         pthread_sigmask: assume POSIX threads if --avoid=threadlib
44790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
44791         not defined, assume POSIX threads and look for pthread_sigmask in
44792         $LIBS, without changing $CPPFLAGS.
44794 2011-07-19  Bruno Haible  <bruno@clisp.org>
44796         strstr: Update cross-compilation guess.
44797         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
44798         CPUs, guess no, in view of glibc
44799         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
44800         Suggested by Eric Blake. Reported by Reuben Thomas.
44802 2011-07-19  Pádraig Brady  <P@draigBrady.com>
44804         getopt-gnu: suppress core dumps from detection code
44805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
44806         to suppress core dumps that may well occur on glibc systems.
44807         * modules/getopt-gnu: Depend on nocrash.
44809 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44811         pthread_sigmask: ensure usleep is declared
44812         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
44813         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
44815 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
44817         doc: Document NonStop portability issues.
44818         * doc/posix-functions/sigaction.texi (sigaction):
44819         * doc/posix-headers/signal.texi (signal.h):
44820         Document NonStop.  See Joachim Schmitz in
44821         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
44823 2011-07-15  Bruno Haible  <bruno@clisp.org>
44825         ffsl, ffsll: Avoid unportable behaviour.
44826         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
44828 2011-07-15  Bruno Haible  <bruno@clisp.org>
44830         ffs: More tests.
44831         * tests/test-ffs.c (NBITS): New macro.
44832         (main): Add more tests.
44833         * tests/test-ffsl.c (NBITS): New macro.
44834         (main): Add more tests.
44835         * tests/test-ffsll.c (NBITS): New macro.
44836         (main): Add more tests.
44838 2011-07-15  Eric Blake  <eblake@redhat.com>
44840         ffsl, ffsll: new modules
44841         * modules/ffsl: New file.
44842         * modules/ffsll: Likewise.
44843         * m4/ffsl.m4: Likewise.
44844         * m4/ffsll.m4: Likewise.
44845         * lib/ffsl.c: Likewise.
44846         * lib/ffsl.h: Likewise.
44847         * lib/ffsll.c: Likewise.
44848         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
44849         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
44850         * modules/string (Makefile.am): Substitute witnesses.
44851         * lib/strings.in.h (ffsl, ffsll): Declare.
44852         * modules/ffsl-tests: New test file.
44853         * modules/ffsll-tests: Likewise.
44854         * tests/test-ffsl.c: Likewise.
44855         * tests/test-ffsll.c: Likewise.
44856         * MODULES.html.sh (Integer arithmetic functions): Mention it.
44857         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
44858         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
44860         ffs: fix m4 prerequisite
44861         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
44863         ffs: avoid undefined behavior
44864         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
44865         * tests/test-ffs.c (naive, main): Avoid signed shifts.
44866         Reported by Bruno Haible.
44868 2011-07-12  Bruno Haible  <bruno@clisp.org>
44870         pthread_sigmask: Rely on module 'threadlib'.
44871         * modules/pthread_sigmask (Depends-on): Add threadlib.
44872         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
44873         is defined.
44875 2011-07-12  Bruno Haible  <bruno@clisp.org>
44877         regex: Depend on module 'strcase'.
44878         * modules/regex (Depends-on): Add strcase, for strcasecmp().
44880 2011-07-12  Jim Meyering  <meyering@redhat.com>
44882         warn-on-use: fix typo in file name
44883         * modules/snippet/warn-on-use (Files): Correct file name:
44884         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
44886 2011-07-12  Bruno Haible  <bruno@clisp.org>
44888         strings: Document module.
44889         * doc/posix-headers/strings.texi: Mention module 'strings'.
44891 2011-07-12  Bruno Haible  <bruno@clisp.org>
44893         Rename module '_Noreturn' to 'snippet/_Noreturn'.
44894         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
44895         (Files, Makefile.am): Update.
44896         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
44897         * modules/stdlib (Depends-on): Update.
44899 2011-07-12  Bruno Haible  <bruno@clisp.org>
44901         * NEWS: Mention the changes.
44903         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
44904         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
44905         (Files, Makefile.am): Update.
44906         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
44907         * modules/arpa_inet (Depends-on): Update.
44908         * modules/ctype (Depends-on): Update.
44909         * modules/dirent (Depends-on): Update.
44910         * modules/fcntl-h (Depends-on): Update.
44911         * modules/glob (Depends-on): Update.
44912         * modules/iconv-h (Depends-on): Update.
44913         * modules/inttypes-incomplete (Depends-on): Update.
44914         * modules/langinfo (Depends-on): Update.
44915         * modules/locale (Depends-on): Update.
44916         * modules/math (Depends-on): Update.
44917         * modules/netdb (Depends-on): Update.
44918         * modules/poll-h (Depends-on): Update.
44919         * modules/pty (Depends-on): Update.
44920         * modules/search (Depends-on): Update.
44921         * modules/signal (Depends-on): Update.
44922         * modules/spawn (Depends-on): Update.
44923         * modules/stdio (Depends-on): Update.
44924         * modules/stdlib (Depends-on): Update.
44925         * modules/string (Depends-on): Update.
44926         * modules/strings (Depends-on): Update.
44927         * modules/sys_file (Depends-on): Update.
44928         * modules/sys_ioctl (Depends-on): Update.
44929         * modules/sys_select (Depends-on): Update.
44930         * modules/sys_socket (Depends-on): Update.
44931         * modules/sys_stat (Depends-on): Update.
44932         * modules/sys_time (Depends-on): Update.
44933         * modules/sys_times (Depends-on): Update.
44934         * modules/sys_utsname (Depends-on): Update.
44935         * modules/sys_wait (Depends-on): Update.
44936         * modules/termios (Depends-on): Update.
44937         * modules/time (Depends-on): Update.
44938         * modules/unistd (Depends-on): Update.
44939         * modules/wchar (Depends-on): Update.
44940         * modules/wctype-h (Depends-on): Update.
44941         * MODULES.html.sh (Support for building libraries and executables):
44942         Update.
44944         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
44945         * modules/snippet/unused-parameter: Renamed from
44946         modules/unused-parameter.
44947         (Files, Makefile.am): Update.
44948         * build-aux/snippet/unused-parameter.h: Renamed from
44949         build-aux/unused-parameter.h.
44950         * modules/selinux-h (Depends-on): Update.
44951         * modules/unistr/base (Depends-on): Update.
44952         * MODULES.html.sh (Core language properties): Update.
44954         Rename module 'link-warning' to 'snippet/link-warning'.
44955         * modules/snippet/link-warning: Renamed from modules/link-warning.
44956         (Files, Makefile.am): Update.
44957         * build-aux/snippet/link-warning.h: Renamed from
44958         build-aux/link-warning.h.
44959         * MODULES.html.sh (Support for building libraries and executables):
44960         Update.
44962         Rename module 'c++defs' to 'snippet/c++defs'.
44963         * modules/snippet/c++defs: Renamed from modules/c++defs.
44964         (Files, Makefile.am): Update.
44965         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
44966         * modules/arpa_inet (Depends-on): Update.
44967         * modules/ctype (Depends-on): Update.
44968         * modules/dirent (Depends-on): Update.
44969         * modules/fcntl-h (Depends-on): Update.
44970         * modules/glob (Depends-on): Update.
44971         * modules/iconv-h (Depends-on): Update.
44972         * modules/langinfo (Depends-on): Update.
44973         * modules/locale (Depends-on): Update.
44974         * modules/math (Depends-on): Update.
44975         * modules/netdb (Depends-on): Update.
44976         * modules/poll-h (Depends-on): Update.
44977         * modules/pty (Depends-on): Update.
44978         * modules/search (Depends-on): Update.
44979         * modules/signal (Depends-on): Update.
44980         * modules/spawn (Depends-on): Update.
44981         * modules/stdio (Depends-on): Update.
44982         * modules/stdlib (Depends-on): Update.
44983         * modules/string (Depends-on): Update.
44984         * modules/strings (Depends-on): Update.
44985         * modules/sys_ioctl (Depends-on): Update.
44986         * modules/sys_select (Depends-on): Update.
44987         * modules/sys_socket (Depends-on): Update.
44988         * modules/sys_stat (Depends-on): Update.
44989         * modules/sys_time (Depends-on): Update.
44990         * modules/sys_wait (Depends-on): Update.
44991         * modules/termios (Depends-on): Update.
44992         * modules/time (Depends-on): Update.
44993         * modules/unistd (Depends-on): Update.
44994         * modules/wchar (Depends-on): Update.
44995         * modules/wctype-h (Depends-on): Update.
44997         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
44998         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
44999         (Files, Makefile.am): Update.
45000         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
45001         * modules/argv-iter (Depends-on): Update.
45002         * modules/arpa_inet (Depends-on): Update.
45003         * modules/dirent (Depends-on): Update.
45004         * modules/fcntl-h (Depends-on): Update.
45005         * modules/fnmatch (Depends-on): Update.
45006         * modules/getopt-posix (Depends-on): Update.
45007         * modules/glob (Depends-on): Update.
45008         * modules/iconv-h (Depends-on): Update.
45009         * modules/inttypes-incomplete (Depends-on): Update.
45010         * modules/locale (Depends-on): Update.
45011         * modules/math (Depends-on): Update.
45012         * modules/netdb (Depends-on): Update.
45013         * modules/search (Depends-on): Update.
45014         * modules/signal (Depends-on): Update.
45015         * modules/spawn (Depends-on): Update.
45016         * modules/stdio (Depends-on): Update.
45017         * modules/stdlib (Depends-on): Update.
45018         * modules/string (Depends-on): Update.
45019         * modules/strings (Depends-on): Update.
45020         * modules/sys_socket (Depends-on): Update.
45021         * modules/sys_stat (Depends-on): Update.
45022         * modules/sys_time (Depends-on): Update.
45023         * modules/sys_times (Depends-on): Update.
45024         * modules/sys_utsname (Depends-on): Update.
45025         * modules/time (Depends-on): Update.
45026         * modules/unistd (Depends-on): Update.
45027         * modules/wchar (Depends-on): Update.
45028         * MODULES.html.sh (Support for building libraries and executables):
45029         Update.
45031 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
45033         Improvements on _Noreturn and related modules.
45035         modules/_Exit-tests: test _Noreturn too
45036         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
45037         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
45038         (main): Use them.
45040         stdnoreturn, stdnoreturn-tests: remove modules
45041         They're not needed here and a bit premature for use elsewhere.  See
45042         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
45043         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
45044         * tests/test-stdnoreturn.c: Remove files.
45045         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
45046         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
45047         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
45048         and using noreturn.
45049         * modules/openat, modules/sigpipe-die, modules/xalloc:
45050         * modules/xmemdup0, modules/xstrtol:
45051         Remove dependency on stdnoreturn.
45053         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
45054         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
45055         Reparenthesize to avoid GCC warning.
45056         Support Microsoft's syntax.
45057         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
45059         _Noreturn-tests: remove module
45060         * modules/_Noreturn-tests: Remove.
45061         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
45062         * tests/test-_Noreturn.c: Remove.
45063         * tests/test-stdnoreturn.c: Merge from the old
45064         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
45066 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
45068         _Noreturn, stdnoreturn, and related modules.
45070         * top/maint.mk: Adjust to new noreturn support.
45071         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
45072         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
45074         xalloc: use stdnoreturn.h
45075         * lib/xalloc.h: Include <stdnoreturn.h>.
45076         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
45077         * modules/xalloc (Depends-on): Add stdnoreturn.
45079         xstrtol: use stdnoreturn.h
45080         * lib/xstrtol.h: Include <stdnoreturn.h>.
45081         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
45082         * modules/xstrtol (Depends-on): Add stdnoreturn.
45084         xmemdup0: use stdnoreturn.h
45085         * lib/xmemdup0.h: Include <stdnoreturn.h>.
45086         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
45087         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
45089         sigpipe-die: use stdnoreturn.h
45090         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
45091         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
45092         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
45094         openat: use stdnoreturn.h
45095         * lib/openat.h: Include <stdnoreturn.h>.
45096         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
45097         * modules/openat (Depends-on): Add stdnoreturn.
45099         * lib/openat-die.c (openat_save_fail): Modernize comment.
45101         * lib/xalloc-die.c (xalloc_die): Modernize comment.
45103         * lib/glthread/thread.h: Modernize comment.
45105         obstack: use _Noreturn
45106         * lib/obstack.c (__attribute__): Remove macro.
45107         (print_and_abort): Use _Noreturn.
45109         c-stack: use _Noreturn
45110         * lib/c-stack.c (die, overflow_handler, segv_handler):
45111         Use _Noreturn rather than __attribute__((noreturn)).
45113         argmatch-tests, exclude_tests: use _Noreturn
45114         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
45115         Remove.
45116         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
45118         stdlib: use _Noreturn
45119         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
45120         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
45121         * modules/stdlib (Depends-on): Add _Noreturn.
45122         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
45124         stdnoreturn-tests: new module
45125         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
45127         stdnoreturn: new module
45128         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
45129         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
45131         _Noreturn-tests: new module
45132         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
45134         _Noreturn: new module
45135         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
45136         New section, mentioning it.
45137         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
45139         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
45141 2011-07-11  Eric Blake  <eblake@redhat.com>
45143         ffs: new module
45144         * modules/ffs: New file.
45145         * m4/ffs.m4: Likewise.
45146         * lib/ffs.c: Likewise.
45147         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
45148         * modules/strings (Makefile.am): Substitute witness.
45149         (Depends-on): Add c++defs.
45150         * lib/strings.in.h (ffs): Declare.
45151         * modules/ffs-tests: New test file.
45152         * tests/test-ffs.c: Test new module.
45153         * MODULES.html.sh (Integer arithmetic functions): Mention it.
45154         * doc/posix-functions/ffs.texi (ffs): Likewise.
45156         regex: avoid compiler warning
45157         * lib/regex.c (includes): Include <strings.h>, for use of
45158         strcasecmp in regcomp.c.
45159         Reported by Joachim Schmitz.
45161 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45163         stdint: respect system's intmax_t if INTMAX_MAX
45164         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
45165         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
45166         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
45167         long but int64_t is long long, and where we will clash with the
45168         system intmax_t if we override it.  See
45169         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
45170         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
45171         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
45172         similarly for UINTMAX_C.
45174 2011-07-08  Bruno Haible  <bruno@clisp.org>
45176         pthread_sigmask tests: Avoid a compiler warning.
45177         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
45178         non-zero.
45180         sigprocmask tests: A better way to avoid a compiler warning.
45181         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
45182         (main): Complain if system() returns non-zero.
45183         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
45185 2011-07-08  Bruno Haible  <bruno@clisp.org>
45187         pthread_sigmask: Work around IRIX bug.
45188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
45189         bug.
45190         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
45191         there may be unblocked pending signals.
45192         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
45194 2011-07-08  Bruno Haible  <bruno@clisp.org>
45196         pthread_sigmask: Work around Cygwin bug.
45197         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
45198         bug.
45199         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
45200         the system's pthread_sigmask function.
45201         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
45203 2011-07-08  Bruno Haible  <bruno@clisp.org>
45205         pthread_sigmask: Work around bug in single-threaded implementation.
45206         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
45207         FreeBSD, HP-UX, Solaris bug.
45208         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
45209         * lib/pthread_sigmask.c: Include <stddef.h>.
45210         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
45211         the system's pthread_sigmask function.
45212         * modules/pthread_sigmask (configure.ac): Invoke
45213         gl_PREREQ_PTHREAD_SIGMASK.
45214         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
45215         HP-UX, Solaris.
45217 2011-07-08  Eric Blake  <eblake@redhat.com>
45219         test-sigprocmask: avoid compiler warning
45220         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
45221         * tests/test-sigprocmask.c (main): Use it to silence warning.
45222         Reported by Jim Meyering.
45224         test-snprintf: avoid compiler warning
45225         * tests/test-snprintf.c (main): Avoid shadowed declaration.
45226         * tests/test-vsnprintf.c (main): Likewise.
45227         Reported by Jim Meyering.
45229 2011-07-08  Bruno Haible  <bruno@clisp.org>
45231         Tests for module 'pthread_sigmask'.
45232         * modules/pthread_sigmask-tests: New file.
45233         * tests/test-pthread_sigmask1.c: New file, based on
45234         tests/test-sigprocmask.c.
45235         * tests/test-pthread_sigmask2.c: New file.
45237 2011-07-08  Jim Meyering  <meyering@redhat.com>
45239         test-getopt.h: avoid warning about an unused variable
45240         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
45242 2011-07-07  Jim Meyering  <meyering@redhat.com>
45244         maint: reduce list of files exempt from sc_prohibit_leading_TABs
45245         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
45246         now that it no longer contains leading TABs.
45247         Remove unused "url=FIXME" statement.
45249 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45251         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
45252         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
45253         When gl_THREADLIB is not in use, assume that the POSIX sematics
45254         are desired.  This is better for Emacs, which uses POSIX semantics
45255         on GNUish and/or POSIXish platforms, and does not use threads at
45256         all otherwise.
45258         pthread_sigmask: fix typo when testing for libraries
45259         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
45260         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
45262 2011-07-08  Eric Blake  <eblake@redhat.com>
45264         fts: introduce FTS_NOATIME
45265         * lib/fts_.h (FTS_NOATIME): New bit flag.
45266         (FTS_OPTIONMASK): Adjust.
45267         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
45268         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
45270 2011-07-08  Bruno Haible  <bruno@clisp.org>
45272         Tests for module 'thread'.
45273         * modules/thread-tests: New file.
45274         * tests/test-thread_self.c: New file.
45275         * tests/test-thread_create.cc: New file.
45277 2011-07-08  Bruno Haible  <bruno@clisp.org>
45279         thread: Avoid gcc warnings when using gl_thread_self().
45280         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
45281         'void *'.
45282         (gl_thread_self_pointer): Update.
45284 2011-07-07  Bruno Haible  <bruno@clisp.org>
45286         signal-c++-tests: Check declaration of pthread_sigmask.
45287         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
45288         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
45289         $(LIB_PTHREAD_SIGMASK).
45291 2011-07-07  Bruno Haible  <bruno@clisp.org>
45293         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
45294         * lib/signal.in.h (pthread_sigmask): Override if
45295         REPLACE_PTHREAD_SIGMASK is 1.
45296         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45297         REPLACE_PTHREAD_SIGMASK.
45298         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
45299         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
45300         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
45301         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
45302         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
45304 2011-07-07  Bruno Haible  <bruno@clisp.org>
45306         pthread_sigmask: Ensure declaration in <signal.h>.
45307         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
45308         include <pthread.h>.
45309         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
45310         problem.
45312 2011-07-07  Bruno Haible  <bruno@clisp.org>
45314         pthread_sigmask: Document the module.
45315         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
45317 2011-07-07  Bruno Haible  <bruno@clisp.org>
45319         pthread_sigmask: Follow gnulib conventions.
45320         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
45321         gl_PTHREAD_SIGMASK.
45322         * modules/pthread_sigmask (configure.ac): Update.
45324 2011-07-07  Bruno Haible  <bruno@clisp.org>
45326         pthread_sigmask: Make declaration C++ safe.
45327         * lib/signal.in.h: In two special conditions, just do an #include_next.
45328         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
45329         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
45330         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45331         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
45332         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
45333         not REPLACE_PTHREAD_MASK.
45334         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
45335         not REPLACE_PTHREAD_MASK.
45336         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
45338 2011-07-07  Bruno Haible  <bruno@clisp.org>
45340         pthread_sigmask: Fix return value.
45341         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
45342         * lib/pthread_sigmask.c: New file.
45343         * modules/pthread_sigmask (Files): Add it.
45344         (configure.ac): Invoke AC_LIBOBJ.
45346 2011-07-07  Eric Blake  <eblake@redhat.com>
45348         getopt: more portable argv creation
45349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
45350         const, use char arrays rather than strings.
45351         Suggested by Paul Eggert.
45353 2011-07-07  Bruno Haible  <bruno@clisp.org>
45355         Tests for module 'sigprocmask'.
45356         * modules/sigprocmask-tests: New file.
45357         * tests/test-sigprocmask.c: New file.
45359 2011-07-07  Bruno Haible  <bruno@clisp.org>
45361         float tests: Tweak.
45362         * tests/test-float.c (main): Tweak skip message.
45364 2011-07-07  Eric Blake  <eblake@redhat.com>
45366         getopt: avoid compiler warning during configure
45367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
45368         assigning string literals to non-const pointer.
45370         getopt-gnu: avoid crash in glibc getopt
45371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
45372         * tests/test-getopt.h (test_getopt): Enhance test.
45373         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45374         * doc/posix-functions/getopt.texi (getopt): Document it.
45375         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
45376         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
45377         Likewise.
45379 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
45381         getopt: handle W; without long options in getopt [BZ #12922]
45382         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
45383         but no long options are defined, just return 'W'.
45385 2011-07-07  Bruno Haible  <bruno@clisp.org>
45387         Avoid literal tabs.
45388         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
45389         variable containing a tab instead of a literal tab.
45390         Reported by Jim Meyering.
45392 2011-07-07  Bruno Haible  <bruno@clisp.org>
45394         Comments.
45395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
45397 2011-07-06  Bruno Haible  <bruno@clisp.org>
45399         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
45400         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
45401         <winsock2.h>.
45402         (rpl_fd_isset, FD_ISSET): New definitions, copied from
45403         lib/sys_socket.in.h.
45404         (close, gethostname): Hide declarations from <winsock2.h>.
45405         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45406         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
45407         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
45408         (select): Don't override if gnulib's <sys/select.h> was already
45409         included.
45410         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
45411         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
45412         setsockopt, shutdown, select): Tweak indentation.
45414 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45416         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
45417         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
45418         in an application that does not use the sys_select module.
45420 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
45422         poll: do not return 0 on timeout=-1
45423         * lib/poll.c: Loop with yield if no events occurred.
45425 2011-07-06  Eric Blake  <eblake@redhat.com>
45427         pthread_sigmask: always replace when not using pthread
45428         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
45429         replacement when using some threading other than pthread.  Fix
45430         logic bug.
45432 2011-07-06  Bruno Haible  <bruno@clisp.org>
45434         Comments.
45435         * m4/printf.m4: Update comments about mingw.
45437 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45439         sys_select: define sigset_t more portably
45440         * lib/sys_select.in.h: Always include <sys/types.h>, since
45441         we now need sigset_t and mingw defines it there.
45442         Include <signal.h> before split inclusion guard, to avoid
45443         mishaps on Solaris, whose <signal.h> eventually includes us.
45444         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
45445         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
45446         which come from ...
45447         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45448         gl_CHECK_TYPE_SIGSET_T.
45449         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
45450         does the real work.
45451         * modules/sys_select (Depends-on): Add 'signal'.
45453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
45454         Suggested by Bruno Haible.
45456         pselect: Use pthread_sigmask, not sigprocmask.
45457         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
45458         multithreaded apps better than sigprocmask does.
45459         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
45460         sigprocmask directly.
45462 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45464         * lib/pselect.c (pselect): Use plain name, without "rpl_".
45465         Don't #undef,  since we don't need any underlying pselect.
45466         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
45467         (Depends-on): Add select.
45468         (Link): Add $(LIBSOCKET).
45469         These changes suggested by Bruno Haible.
45471         pselect: document better
45472         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
45473         * doc/posix-functions/pselect.texi (pselect): Document new module.
45475         pthread_sigmask: new module
45476         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
45477         * doc/posix-functions/pthread_sigmask.texi: Document new module.
45478         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
45479         This is done only as a macro; I don't know how well that'll
45480         work for C++.  Move <sys/types.h> include before the include_next,
45481         to avoid mishap on Solaris.
45482         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
45483         * modules/signal (Makefile.am): Substitute the check's results.
45484         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
45486         test-pselect: new module
45487         * modules/pselect-tests, tests/test-pselect.c: New files.
45488         * tests/test-select.c, tests/test-sys_select-c++.cc:
45489         If TEST_PSELECT is defined, test pselect instead of testing select.
45491         * tests/test-sys_select.c (sigset_t): Test for it, too.
45492         Suggested by Bruno Haible.
45494 2011-07-05  Eric Blake  <eblake@redhat.com>
45496         snprintf: guarantee %1$d, for libintl
45497         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
45498         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45499         * doc/posix-functions/snprintf.texi (snprintf): Update.
45500         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45501         * tests/test-snprintf.c (main): Enhance test.
45502         * tests/test-vsnprintf.c (main): Likewise.
45504 2011-07-05  Jim Meyering  <meyering@redhat.com>
45506         maint: exempt stdio-read.c and stdio-write.c from the cppi check
45507         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
45508         per Bruno's request, to accommodate this idiom (no space after "#")
45509         even when the function is inside an #if block:
45510         char *
45511         gets (char *s)
45512         #undef gets
45513         {
45514           ...
45515         }
45517 2011-07-04  Jim Meyering  <meyering@redhat.com>
45519         maint: indent with spaces, not TABs, and add a rule to check this
45520         * tests/test-userspec.c: Indent with spaces, not TABs.
45521         * tests/test-argp.c: Likewise.
45522         * tests/test-c-stack2.sh: Likewise.
45523         * tests/test-parse-duration.sh: Likewise
45524         * m4/strtod.m4: Likewise.
45525         * m4/alloca.m4: Likewise.
45526         * m4/pselect.m4: Likewise.
45527         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
45529 2011-07-03  Jim Meyering  <meyering@redhat.com>
45531         maint.mk: correct omissions in prohibit_argmatch_without_use check
45532         This rule would mistakenly report that argmatch.h is included without
45533         use even when both the argmatch and invalid_arg macro were used.
45534         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
45535         of argmatch and invalid_arg.
45537 2011-07-03  Bruno Haible  <bruno@clisp.org>
45539         Comments about EINTR.
45540         * lib/safe-read.h: Explain the purpose of this module.
45541         * lib/safe-write.h: Likewise.
45542         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
45543         module.
45544         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
45545         module.
45546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45548 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45550         xnanosleep: Rewrite to use new dtotimespec module.
45551         It has the conversion code that used to be in xnanosleep.
45552         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
45553         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
45554         (TIME_T_MAX): Remove.
45555         (xnanosleep): Rewrite in terms of dtotimespec.
45556         * modules/xnanosleep (Depends-on): Add dtotimespec.
45557         Remove intprops, stdbool.
45559         timespec-add, timespec-sub: new modules
45560         * lib/timespec.h (timespec_add, timespec_sub): New decls.
45561         * lib/timespec-add.c, lib/timespec-sub.c:
45562         * modules/timespec-add, modules/timespec-sub: New files.
45564         dtotimespec: new module
45565         * lib/timespec.h (dtotimespec): New decl.
45566         * lib/dtotimespec.c, modules/dtotimespec: New files.
45568         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
45570         pselect: new module
45571         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
45572         (pselect): New decls.
45573         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
45574         since the standard pselect decl uses 'restrict'.
45575         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
45576         HAVE_PSELECT, REPLACE_PSELECT.
45577         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
45578         HAVE_PSELECT, REPLACE_PSELECT.
45579         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
45581         sys_select: don't depend on sys_socket
45582         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
45583         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
45584         This fix works on GNU and GNU-like platforms, but has not been tested
45585         on native Windows.
45586         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
45587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
45588         gl_HEADER_SYS_SOCKET.
45589         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
45590         gl_PREREQ_SYS_H_WINSOCK2.
45592 2011-06-29  Eric Blake  <eblake@redhat.com>
45594         pipe2: fix C89 compile problem
45595         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
45596         Reported by Bruno Haible.
45598         pipe, pipe2: don't corrupt fd on error
45599         * lib/pipe.c (pipe): Leave fd unchanged on error.
45600         * lib/pipe2.c (pipe2): Likewise.
45601         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
45602         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
45604 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
45606         mmap-anon: do not use regular expressions inadvertently
45607         * m4/mmap-anon.m4: Remove trailing period from strings sought
45608         in the output.
45610 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
45612         nanosleep: fix integer overflow problem
45613         * lib/nanosleep.c (my_usleep): Don't assume signed integer
45614         arithmetic wraps around on overflow.
45616         nanosleep: simplify carrying
45617         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
45618         first call to the underyling nanosleep, not for the last one.
45619         This doesn't fix any bugs, but it simplifies the computation of
45620         the remaining delay.  Found while auditing integer overflow issues.
45622         dup2: remove test for existence of fcntl
45623         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
45624         "#if HAVE_FCNTL", in the configure-time test program.
45625         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
45626         and therefore speeds up "configure" a bit.  Found while
45627         adding the dup2 module to Emacs.
45629 2011-06-24  Eric Blake  <eblake@redhat.com>
45631         maint.mk: enhance useless header checks
45632         * top/maint.mk (_sc_header_without_use): Check both include
45633         styles.
45634         (sc_prohibit_assert_without_use)
45635         (sc_prohibit_close_stream_without_use)
45636         (sc_prohibit_getopt_without_use)
45637         (sc_prohibit_quotearg_without_use)
45638         (sc_prohibit_quote_without_use)
45639         (sc_prohibit_long_options_without_use)
45640         (sc_prohibit_inttostr_without_use)
45641         (sc_prohibit_ignore_value_without_use)
45642         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
45643         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
45644         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
45645         (sc_prohibit_hash_pjw_without_use)
45646         (sc_prohibit_safe_read_without_use)
45647         (sc_prohibit_argmatch_without_use)
45648         (sc_prohibit_canonicalize_without_use)
45649         (sc_prohibit_root_dev_ino_without_use)
45650         (sc_prohibit_openat_without_use)
45651         (sc_prohibit_c_ctype_without_use)
45652         (sc_prohibit_signal_without_use)
45653         (sc_prohibit_stdio--_without_use)
45654         (sc_prohibit_stdio-safer_without_use)
45655         (sc_prohibit_strings_without_use)
45656         (sc_prohibit_intprops_without_use)
45657         (sc_prohibit_stddef_without_use)
45658         (sc_prohibit_xfreopen_without_use): Update clients.
45660 2011-06-24  Jim Meyering  <meyering@redhat.com>
45662         syntax-check: keep one maint.mk rule in sync with its header
45663         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
45664         of the bug Eric has just fixed, with today's commit 25e4c2ec.
45665         I prefer to avoid temporary files here, so use <(...), but that
45666         is not supported by /bin/sh, so...
45667         (SHELL): Define to /bin/bash.
45669 2011-06-24  Eric Blake  <eblake@redhat.com>
45671         maint.mk: update sc_prohibit_intprops_without_use
45672         * top/maint.mk (_intprops_names): Match recent changes.
45674 2011-06-24  Bruno Haible  <bruno@clisp.org>
45676         strerror-override: No-op tweak.
45677         * lib/strerror-override.h (strerror_override): Reorder conditions,
45678         for consistency with lib/strerror-override.c.
45680 2011-06-23  Eric Blake  <eblake@redhat.com>
45682         maint.mk: test further PATH_MAX issues
45683         * top/maint.mk (sc_prohibit_path_max_array): Rename...
45684         (sc_prohibit_path_max_allocation): ...and also test alloca.
45685         Suggested by Jim Meyering.
45687 2011-06-22  Eric Blake  <eblake@redhat.com>
45689         maint.mk: add syntax-check to avoid char[PATH_MAX]
45690         * top/maint.mk (sc_prohibit_path_max_array): New rule.
45692         stat: be robust to PATH_MAX definition
45693         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
45694         * modules/stat (Depends-on): Add verify.
45696         link: work around IRIX bug
45697         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
45698         * lib/link.c (rpl_link): Work around it.
45699         * tests/test-link.h (test_link): Enhance test.
45700         * doc/posix-functions/link.texi (link): Document the bug.
45702         getopt: silence clang warning
45703         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
45704         dereference.
45705         Reported by Gustavo Martin Domato.
45707 2011-06-22  Jim Meyering  <meyering@redhat.com>
45709         bootstrap: do not insert a blank line into each .gitignore file
45710         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
45712 2011-06-21  Eric Blake  <eblake@redhat.com>
45714         perror: test for output mismatch
45715         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
45716         perror on IRIX.
45718         strerror_r: fix OpenBSD behavior on out-of-range
45719         * lib/strerror_r.c (strerror_r): Always use maximal string.
45720         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
45722         strerror_r: fix OpenBSD behavior on 0
45723         * lib/strerror-override.c (strerror_override): Also override 0
45724         when needed.
45725         * lib/strerror-override.h (strerror_override): Likewise.
45726         * lib/strerror.c (strerror): Simplify, now that 0 override is done
45727         earlier.
45728         * lib/strerror_r.c (strerror_r): Likewise.
45729         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
45730         behavior...
45731         (gl_FUNC_STRERROR_0): ...into new macro.
45732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
45733         is overridden.
45734         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
45735         * modules/strerror-override (Files): Add strerror.m4.
45736         (configure.ac): Also provide override for 0 when needed.
45737         * doc/posix-functions/strerror.texi (strerror): Document this.
45738         * doc/posix-functions/perror.texi (perror): Likewise.
45740         perror: adjust array size
45741         * modules/perror (Depends-on): Add strerror-override.
45742         * lib/perror.c (perror): Use it to avoid magic number.
45744         strerror-override: reduce size
45745         * lib/strerror-override.c (strerror_override): Use fewer lines.
45747 2011-06-20  Bruno Haible  <bruno@clisp.org>
45749         pathmax: Ensure correct value for PATH_MAX on HP-UX.
45750         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
45752 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45754         alloca: port to compilers that can optimize like GCC 4.6.0
45755         * lib/alloca.c (find_stack_direction): New signature, taken from
45756         Autoconf git.  This works with GCC 4.6.0.  This code should never
45757         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
45758         be used with other compilers that optimize as well as GCC 4.6.0 does.
45759         (alloca): Adjust to new signature.
45760         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
45761         New macro, which patches Autoconf in a similar way.
45763         c-stack: stop worrying about stack direction
45764         * lib/c-stack.c (find_stack_direction): Remove.
45765         (segv_handler): Don't worry about stack direction growth, as it's
45766         too much of a pain to configure this correctly, given how compilers
45767         are optimizing-away our stack-growth detection code.  Instead, assume
45768         that any access to just before or just after the stack is OK.
45769         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45770         Don't require AC_FUNC_ALLOCA; no longer needed.
45772 2011-06-20  Eric Blake  <eblake@redhat.com>
45774         test-stat: don't allocate PATH_MAX bytes
45775         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
45776         PATH_MAX-sized buffer.
45777         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
45778         * modules/stat-tests (Depends-on): Likewise.
45779         * tests/test-fstatat.c (includes): Drop pathmax.h.
45780         * tests/test-stat.c (includes): Likewise.
45781         Reported by Bruno Haible.
45783 2011-06-20  Bruno Haible  <bruno@clisp.org>
45785         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
45786         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
45787         * lib/float.c: New file.
45788         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
45789         REPLACE_FLOAT_LDBL.
45790         * modules/float (Files): Add lib/float.c.
45791         (configure.ac): Invoke AC_LIBOBJ.
45792         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
45794 2011-06-20  Bruno Haible  <bruno@clisp.org>
45796         Tests for module 'float'.
45797         * modules/float-tests: New file.
45798         * tests/test-float.c: New file.
45800 2011-06-19  Bruno Haible  <bruno@clisp.org>
45802         isinf: Coding style.
45803         * lib/isinf.c: Use GNU coding style.
45805 2011-06-19  Bruno Haible  <bruno@clisp.org>
45807         linkat test: Avoid test failure on AIX 7.1.
45808         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
45809         * tests/test-link.h (test_link): Likewise.
45811 2011-06-19  Bruno Haible  <bruno@clisp.org>
45813         pread test: Avoid test failure on OpenBSD 4.9.
45814         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
45816 2011-06-19  Bruno Haible  <bruno@clisp.org>
45818         sprintf-posix: Fix test failure on AIX 7.1.
45819         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
45820         * doc/posix-functions/dprintf.texi: Mention limited precision problem
45821         on AIX.
45822         * doc/posix-functions/fprintf.texi: Likewise.
45823         * doc/posix-functions/printf.texi: Likewise.
45824         * doc/posix-functions/snprintf.texi: Likewise.
45825         * doc/posix-functions/sprintf.texi: Likewise.
45826         * doc/posix-functions/vdprintf.texi: Likewise.
45827         * doc/posix-functions/vfprintf.texi: Likewise.
45828         * doc/posix-functions/vprintf.texi: Likewise.
45829         * doc/posix-functions/vsnprintf.texi: Likewise.
45830         * doc/posix-functions/vsprintf.texi: Likewise.
45832 2011-06-19  Bruno Haible  <bruno@clisp.org>
45834         roundl-ieee: Fix test failure on AIX 7.1.
45835         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
45836         * doc/posix-functions/roundl.texi: Mention problem with negative
45837         arguments.
45839 2011-06-19  Bruno Haible  <bruno@clisp.org>
45841         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
45842         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
45843         * doc/posix-functions/round.texi: Mention problem with negative
45844         arguments.
45845         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
45847 2011-06-19  Bruno Haible  <bruno@clisp.org>
45849         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
45850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
45851         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
45852         * doc/posix-functions/roundf.texi: Mention problem with negative
45853         arguments.
45854         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
45856 2011-06-19  Bruno Haible  <bruno@clisp.org>
45858         ceilf-ieee: Work around bug on MacOS X 10.5.
45859         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
45861         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
45862         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
45863         IEEE compliant, avoid compiler optimizations.
45864         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
45865         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45866         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
45867         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45868         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45869         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45870         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45871         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45872         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45873         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45875 2011-06-19  Bruno Haible  <bruno@clisp.org>
45877         ceilf-ieee: Work around bug on AIX 7.1.
45878         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
45879         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
45881 2011-06-19  Bruno Haible  <bruno@clisp.org>
45883         ceil-ieee: Work around bug on AIX 7.1.
45884         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
45885         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
45887 2011-06-18  Bruno Haible  <bruno@clisp.org>
45889         fsync test: Avoid test failure on MacOS X and AIX.
45890         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
45891         EINVAL.
45893 2011-06-18  Bruno Haible  <bruno@clisp.org>
45895         openat, fdopendir tests: Fix link errors.
45896         * modules/openat-tests (Depends-on): Add progname.
45897         * modules/fdopendir-tests (Depends-on): Likewise.
45898         * tests/test-fchownat.c: Include progname.h.
45899         (main): Call set_program_name.
45900         * tests/test-fstatat.c: Include progname.h.
45901         (main): Call set_program_name.
45902         * tests/test-mkdirat.c: Include progname.h.
45903         (main): Call set_program_name.
45904         * tests/test-openat.c: Include progname.h.
45905         (main): Call set_program_name.
45906         * tests/test-unlinkat.c: Include progname.h.
45907         (main): Call set_program_name.
45908         * tests/test-fdopendir.c: Include progname.h.
45909         (main): Call set_program_name.
45911 2011-06-18  Bruno Haible  <bruno@clisp.org>
45913         Doc update.
45914         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
45915         HP-UX.
45916         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
45918 2011-06-18  Bruno Haible  <bruno@clisp.org>
45920         getcwd tests: Avoid compilation error on HP-UX 11.31.
45921         * modules/getcwd-tests (Depends-on): Add pathmax.
45922         * tests/test-getcwd.c: Include pathmax.h.
45924 2011-06-18  Bruno Haible  <bruno@clisp.org>
45926         isfinite, isinf: Fix link error on AIX 6 and 7.
45927         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
45928         needed, also test the macro with a 'float' argument.
45929         * m4/isinf.m4 (gl_ISINF): Likewise.
45931 2011-06-18  Bruno Haible  <bruno@clisp.org>
45933         getloadavg: Don't clobber LIBS. Regression from previous commit.
45934         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
45935         AC_CHECK_LIB from here...
45936         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
45937         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
45938         gl_func_getloadavg_done.
45939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45941 2011-06-18  Bruno Haible  <bruno@clisp.org>
45943         clean-temp: Improve documentation.
45944         * lib/clean-temp.h: Explain better how to use this module.
45945         Reported by John Darrington <john@darrington.wattle.id.au>.
45947 2011-06-17  Bruno Haible  <bruno@clisp.org>
45949         pread, pwrite: Avoid cc warning on AIX.
45950         * lib/unistd.in.h (pread): Undefine before defining as a macro.
45951         (pwrite): Likewise.
45953 2011-06-17  Bruno Haible  <bruno@clisp.org>
45955         spawn-pipe tests: Fix link error.
45956         * tests/test-spawn-pipe-child.c: Undefine fprintf.
45957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45959 2011-06-17  Bruno Haible  <bruno@clisp.org>
45961         Tests: Remove unnecessary dependency.
45962         * modules/canonicalize-tests (Depends-on): Remove progname.
45963         * modules/chown-tests (Depends-on): Likewise.
45964         * modules/dirname-tests (Depends-on): Likewise.
45965         * modules/fdopendir-tests (Depends-on): Likewise.
45966         * modules/fdutimensat-tests (Depends-on): Likewise.
45967         * modules/hash-tests (Depends-on): Likewise.
45968         * modules/lchown-tests (Depends-on): Likewise.
45969         * modules/linkat-tests (Depends-on): Likewise.
45970         * modules/renameat-tests (Depends-on): Likewise.
45971         * modules/spawn-pipe-tests (Depends-on): Likewise.
45972         * modules/utimensat-tests (Depends-on): Likewise.
45974 2011-06-17  Bruno Haible  <bruno@clisp.org>
45976         spawn-pipe tests: Fix link error.
45977         * tests/test-spawn-pipe-child.c: Undefine fflush.
45979 2011-06-17  Bruno Haible  <bruno@clisp.org>
45981         Fix tests link errors.
45982         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
45983         * modules/chown-tests (Makefile.am): Don't link test-chown with
45984         LIBINTL.
45985         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
45986         LIBINTL.
45987         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
45988         LIBINTL.
45989         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
45990         LIBINTL.
45992 2011-06-16  Bruno Haible  <bruno@clisp.org>
45994         crypto/gc-sha1: Fix recent regression.
45995         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
45996         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
45998         crypto/gc-md5: Fix recent regression.
45999         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
46001         crypto/gc-md4: Fix recent regression.
46002         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
46003         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
46005         crypto/gc-arctwo: Fix recent regression.
46006         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
46007         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
46009         crypto/gc-rijndael: Fix recent regression.
46010         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
46011         (configure.ac): Invoke AC_LIBOBJ here.
46012         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
46013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46015         crypto/gc-hmac-sha1: Fix recent regression.
46016         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
46017         (configure.ac): Invoke AC_LIBOBJ here.
46018         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
46019         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46021         crypto/gc-hmac-md5: Fix recent regression.
46022         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
46023         (configure.ac): Invoke AC_LIBOBJ here.
46024         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
46025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46027         crypto/gc-des: Fix recent regression.
46028         * modules/crypto/gc-des (Files): Remove m4/des.m4.
46029         (configure.ac): Invoke AC_LIBOBJ here.
46030         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
46031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46033         crypto/gc-arcfour: Fix recent regression.
46034         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
46035         (configure.ac): Invoke AC_LIBOBJ here.
46036         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
46037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46039 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
46041         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
46042         After the 2011-05-21 change, this macro requires
46043         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
46044         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46046 2011-06-16  Bruno Haible  <bruno@clisp.org>
46048         fprintftime: Move AC_LIBOBJ invocations to module description.
46049         * m4/fprintftime.m4: Remove file.
46050         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
46051         (configure.ac): Remove gl_FPRINTFTIME call.
46052         (Makefile.am): Augment lib_SOURCES.
46053         Reported by Jim Meyering.
46055 2011-06-16  Bruno Haible  <bruno@clisp.org>
46057         tmpfile-safer: Finish 2011-05-23 commit.
46058         * m4/stdio-safer.m4: Really remove file.
46059         Reported by Jim Meyering.
46061 2011-06-16  Bruno Haible  <bruno@clisp.org>
46063         syntax-check: Fix typo.
46064         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
46065         printf-posix.m4.
46066         Reported by Jim Meyering.
46068 2011-06-13  Jim Meyering  <meyering@redhat.com>
46070         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
46071         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
46073 2011-05-23  Bruno Haible  <bruno@clisp.org>
46075         yesno: Move AC_LIBOBJ invocations to module description.
46076         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
46077         * modules/yesno (Makefile.am): Augment lib_SOURCES.
46079 2011-05-23  Bruno Haible  <bruno@clisp.org>
46081         xstrtol: Move AC_LIBOBJ invocations to module description.
46082         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
46083         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
46085 2011-05-23  Bruno Haible  <bruno@clisp.org>
46087         xstrtold: Move AC_LIBOBJ invocations to module description.
46088         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
46089         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
46091 2011-05-23  Bruno Haible  <bruno@clisp.org>
46093         xstrtod: Move AC_LIBOBJ invocations to module description.
46094         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
46095         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
46097 2011-05-23  Bruno Haible  <bruno@clisp.org>
46099         xnanosleep: Move AC_LIBOBJ invocations to module description.
46100         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
46101         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
46103 2011-05-23  Bruno Haible  <bruno@clisp.org>
46105         xgetcwd: Move AC_LIBOBJ invocations to module description.
46106         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
46107         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
46109 2011-05-23  Bruno Haible  <bruno@clisp.org>
46111         xalloc: Move AC_LIBOBJ invocations to module description.
46112         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
46113         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
46115 2011-05-23  Bruno Haible  <bruno@clisp.org>
46117         write-any-file: Move AC_LIBOBJ invocations to module description.
46118         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
46119         invocation.
46120         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
46122 2011-05-23  Bruno Haible  <bruno@clisp.org>
46124         utimens: Move AC_LIBOBJ invocations to module description.
46125         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
46126         * modules/utimens (Makefile.am): Augment lib_SOURCES.
46128 2011-05-23  Bruno Haible  <bruno@clisp.org>
46130         utimecmp: Move AC_LIBOBJ invocations to module description.
46131         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
46132         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
46134 2011-05-23  Bruno Haible  <bruno@clisp.org>
46136         userspec: Move AC_LIBOBJ invocations to module description.
46137         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
46138         * modules/userspec (Makefile.am): Augment lib_SOURCES.
46140 2011-05-23  Bruno Haible  <bruno@clisp.org>
46142         unlinkdir: Move AC_LIBOBJ invocations to module description.
46143         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
46144         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
46146 2011-05-23  Bruno Haible  <bruno@clisp.org>
46148         unistd-safer: Move AC_LIBOBJ invocations to module description.
46149         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
46150         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
46152 2011-05-23  Bruno Haible  <bruno@clisp.org>
46154         tempname: Move AC_LIBOBJ invocations to module description.
46155         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
46156         * modules/tempname (Makefile.am): Augment lib_SOURCES.
46158 2011-05-23  Bruno Haible  <bruno@clisp.org>
46160         strftime: Move AC_LIBOBJ invocations to module description.
46161         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
46162         * modules/strftime (Makefile.am): Augment lib_SOURCES.
46164 2011-05-23  Bruno Haible  <bruno@clisp.org>
46166         stdlib-safer: Move AC_LIBOBJ invocations to module description.
46167         * m4/stdlib-safer.m4: Remove file.
46168         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
46169         (configure.ac): Remove gl_STDLIB_SAFER call.
46170         (Makefile.am): Augment lib_SOURCES.
46172 2011-05-23  Bruno Haible  <bruno@clisp.org>
46174         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
46175         * m4/stdio-safer.m4: Remove file.
46176         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
46177         (configure.ac): Remove gl_TMPFILE_SAFER call.
46178         (Makefile.am): Augment lib_SOURCES.
46180 2011-05-23  Bruno Haible  <bruno@clisp.org>
46182         popen-safer: Move AC_LIBOBJ invocations to module description.
46183         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
46184         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
46185         (configure.ac): Remove gl_POPEN_SAFER call.
46186         (Makefile.am): Augment lib_SOURCES.
46188 2011-05-23  Bruno Haible  <bruno@clisp.org>
46190         freopen-safer: Move AC_LIBOBJ invocations to module description.
46191         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
46192         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
46193         (configure.ac): Remove gl_FREOPEN_SAFER call.
46194         (Makefile.am): Augment lib_SOURCES.
46196 2011-05-23  Bruno Haible  <bruno@clisp.org>
46198         fopen-safer: Move AC_LIBOBJ invocations to module description.
46199         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
46200         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
46201         (configure.ac): Remove gl_FOPEN_SAFER call.
46202         (Makefile.am): Augment lib_SOURCES.
46204 2011-05-23  Bruno Haible  <bruno@clisp.org>
46206         crypto/sha512: Move AC_LIBOBJ invocations to module description.
46207         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
46208         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
46210 2011-05-23  Bruno Haible  <bruno@clisp.org>
46212         crypto/sha256: Move AC_LIBOBJ invocations to module description.
46213         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
46214         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
46216 2011-05-23  Bruno Haible  <bruno@clisp.org>
46218         crypto/sha1: Move AC_LIBOBJ invocations to module description.
46219         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
46220         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
46222 2011-05-23  Bruno Haible  <bruno@clisp.org>
46224         settime: Move AC_LIBOBJ invocations to module description.
46225         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
46226         * modules/settime (Makefile.am): Augment lib_SOURCES.
46228 2011-05-23  Bruno Haible  <bruno@clisp.org>
46230         savedir: Move AC_LIBOBJ invocations to module description.
46231         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
46232         * modules/savedir (Makefile.am): Augment lib_SOURCES.
46234 2011-05-23  Bruno Haible  <bruno@clisp.org>
46236         save-cwd: Move AC_LIBOBJ invocations to module description.
46237         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
46238         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
46240 2011-05-23  Bruno Haible  <bruno@clisp.org>
46242         same: Move AC_LIBOBJ invocations to module description.
46243         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
46244         * modules/same (Makefile.am): Augment lib_SOURCES.
46246 2011-05-23  Bruno Haible  <bruno@clisp.org>
46248         safe-write: Move AC_LIBOBJ invocations to module description.
46249         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
46250         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
46251         instead of gl_SAFE_WRITE.
46252         (Makefile.am): Augment lib_SOURCES.
46254 2011-05-23  Bruno Haible  <bruno@clisp.org>
46256         safe-read: Move AC_LIBOBJ invocations to module description.
46257         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
46258         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
46259         of gl_SAFE_READ.
46260         (Makefile.am): Augment lib_SOURCES.
46262 2011-05-23  Bruno Haible  <bruno@clisp.org>
46264         safe-alloc: Move AC_LIBOBJ invocations to module description.
46265         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
46266         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
46268 2011-05-23  Bruno Haible  <bruno@clisp.org>
46270         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
46271         * m4/rijndael.m4: Remove file.
46272         * modules/crypto/rijndael (Files): Remove it.
46273         (configure.ac): Remove gl_RIJNDAEL call.
46274         (Makefile.am): Augment lib_SOURCES.
46276 2011-05-23  Bruno Haible  <bruno@clisp.org>
46278         readtokens: Move AC_LIBOBJ invocations to module description.
46279         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
46280         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
46282 2011-05-23  Bruno Haible  <bruno@clisp.org>
46284         read-file: Move AC_LIBOBJ invocations to module description.
46285         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
46286         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
46287         of gl_FUNC_READ_FILE.
46288         (Makefile.am): Augment lib_SOURCES.
46290 2011-05-23  Bruno Haible  <bruno@clisp.org>
46292         quotearg: Move AC_LIBOBJ invocations to module description.
46293         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
46294         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
46296 2011-05-23  Bruno Haible  <bruno@clisp.org>
46298         quote: Move AC_LIBOBJ invocations to module description.
46299         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
46300         * modules/quote (Makefile.am): Augment lib_SOURCES.
46302 2011-05-23  Bruno Haible  <bruno@clisp.org>
46304         posixver: Move AC_LIBOBJ invocations to module description.
46305         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
46306         * modules/posixver (Makefile.am): Augment lib_SOURCES.
46308 2011-05-23  Bruno Haible  <bruno@clisp.org>
46310         posixtm: Move AC_LIBOBJ invocations to module description.
46311         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
46312         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
46314 2011-05-23  Bruno Haible  <bruno@clisp.org>
46316         physmem: Move AC_LIBOBJ invocations to module description.
46317         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
46318         * modules/physmem (Makefile.am): Augment lib_SOURCES.
46320 2011-05-23  Bruno Haible  <bruno@clisp.org>
46322         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
46323         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
46324         invocation.
46325         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
46327 2011-05-23  Bruno Haible  <bruno@clisp.org>
46329         mpsort: Move AC_LIBOBJ invocations to module description.
46330         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
46331         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
46333 2011-05-23  Bruno Haible  <bruno@clisp.org>
46335         modechange: Move AC_LIBOBJ invocations to module description.
46336         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
46337         * modules/modechange (Makefile.am): Augment lib_SOURCES.
46339 2011-05-23  Bruno Haible  <bruno@clisp.org>
46341         mkdir-p: Move AC_LIBOBJ invocations to module description.
46342         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
46343         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
46345 2011-05-23  Bruno Haible  <bruno@clisp.org>
46347         mkancesdirs: Move AC_LIBOBJ invocations to module description.
46348         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
46349         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
46351 2011-05-23  Bruno Haible  <bruno@clisp.org>
46353         mgetgroups: Move AC_LIBOBJ invocations to module description.
46354         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
46355         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
46357 2011-05-23  Bruno Haible  <bruno@clisp.org>
46359         memxor: Move AC_LIBOBJ invocations to module description.
46360         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
46361         * modules/memxor (Makefile.am): Augment lib_SOURCES.
46363 2011-05-23  Bruno Haible  <bruno@clisp.org>
46365         memcoll: Move AC_LIBOBJ invocations to module description.
46366         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
46367         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
46369 2011-05-23  Bruno Haible  <bruno@clisp.org>
46371         memcasecmp: Move AC_LIBOBJ invocations to module description.
46372         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
46373         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
46375 2011-05-23  Bruno Haible  <bruno@clisp.org>
46377         crypto/md5: Move AC_LIBOBJ invocations to module description.
46378         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
46379         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
46381 2011-05-23  Bruno Haible  <bruno@clisp.org>
46383         crypto/md4: Move AC_LIBOBJ invocations to module description.
46384         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
46385         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
46387 2011-05-23  Bruno Haible  <bruno@clisp.org>
46389         crypto/md2: Move AC_LIBOBJ invocations to module description.
46390         * m4/md2.m4: Remove file.
46391         * modules/crypto/md2 (Files): Remove it.
46392         (configure.ac): Remove gl_MD2 call.
46393         (Makefile.am): Augment lib_SOURCES.
46395 2011-05-23  Bruno Haible  <bruno@clisp.org>
46397         long-options: Move AC_LIBOBJ invocations to module description.
46398         * m4/long-options.m4: Remove file.
46399         * modules/long-options (Files): Remove it.
46400         (configure.ac): Remove gl_LONG_OPTIONS call.
46401         (Makefile.am): Augment lib_SOURCES.
46403 2011-05-23  Bruno Haible  <bruno@clisp.org>
46405         i-ring: Move AC_LIBOBJ invocations to module description.
46406         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
46407         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
46409 2011-05-23  Bruno Haible  <bruno@clisp.org>
46411         idcache: Move AC_LIBOBJ invocations to module description.
46412         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
46413         * modules/idcache (Makefile.am): Augment lib_SOURCES.
46415 2011-05-23  Bruno Haible  <bruno@clisp.org>
46417         human: Move AC_LIBOBJ invocations to module description.
46418         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
46419         * modules/human (Makefile.am): Augment lib_SOURCES.
46421 2011-05-23  Bruno Haible  <bruno@clisp.org>
46423         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
46424         * m4/hmac-sha1.m4: Remove file.
46425         * modules/crypto/hmac-sha1 (Files): Remove it.
46426         (configure.ac): Remove gl_HMAC_SHA1 call.
46427         (Makefile.am): Augment lib_SOURCES.
46429 2011-05-23  Bruno Haible  <bruno@clisp.org>
46431         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
46432         * m4/hmac-md5.m4: Remove file.
46433         * modules/crypto/hmac-md5 (Files): Remove it.
46434         (configure.ac): Remove gl_HMAC_MD5 call.
46435         (Makefile.am): Augment lib_SOURCES.
46437 2011-05-23  Bruno Haible  <bruno@clisp.org>
46439         hash: Move AC_LIBOBJ invocations to module description.
46440         * m4/hash.m4: Remove file.
46441         * modules/hash (Files): Remove it.
46442         (configure.ac): Remove gl_HASH call.
46443         (Makefile.am): Augment lib_SOURCES.
46445 2011-05-23  Bruno Haible  <bruno@clisp.org>
46447         hard-locale: Move AC_LIBOBJ invocations to module description.
46448         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
46449         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
46451 2011-05-23  Bruno Haible  <bruno@clisp.org>
46453         getugroups: Move AC_LIBOBJ invocations to module description.
46454         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
46455         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
46457 2011-05-23  Bruno Haible  <bruno@clisp.org>
46459         gettime: Move AC_LIBOBJ invocations to module description.
46460         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
46461         * modules/gettime (Makefile.am): Augment lib_SOURCES.
46463 2011-05-23  Bruno Haible  <bruno@clisp.org>
46465         getndelim2: Move AC_LIBOBJ invocations to module description.
46466         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
46467         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
46469 2011-05-23  Bruno Haible  <bruno@clisp.org>
46471         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
46472         * m4/gc-pbkdf2-sha1.m4: Remove file.
46473         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
46474         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
46475         (Makefile.am): Augment lib_SOURCES.
46477 2011-05-23  Bruno Haible  <bruno@clisp.org>
46479         fts: Move AC_LIBOBJ invocations to module description.
46480         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
46481         * modules/fts (configure.ac): ... to here.
46483 2011-05-23  Bruno Haible  <bruno@clisp.org>
46485         file-type: Move AC_LIBOBJ invocations to module description.
46486         * m4/file-type.m4: Remove file.
46487         * modules/file-type (Files): Remove it.
46488         (configure.ac): Remove gl_FILE_TYPE call.
46489         (Makefile.am): Augment lib_SOURCES.
46491 2011-05-23  Bruno Haible  <bruno@clisp.org>
46493         filenamecat*: Respect rules for use of AC_LIBOBJ.
46494         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
46495         Remove AC_LIBOBJ invocation.
46496         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
46497         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
46499 2011-05-23  Bruno Haible  <bruno@clisp.org>
46501         filemode: Move AC_LIBOBJ invocations to module description.
46502         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
46503         * modules/filemode (Makefile.am): Augment lib_SOURCES.
46505 2011-05-23  Bruno Haible  <bruno@clisp.org>
46507         openat-safer: Move AC_LIBOBJ invocations to module description.
46508         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
46509         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
46511 2011-05-23  Bruno Haible  <bruno@clisp.org>
46513         fcntl-safer: Move AC_LIBOBJ invocations to module description.
46514         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
46515         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
46517 2011-05-23  Bruno Haible  <bruno@clisp.org>
46519         exclude: Move AC_LIBOBJ invocations to module description.
46520         * m4/exclude.m4: Remove file.
46521         * modules/exclude (Files): Remove it.
46522         (configure.ac): Remove gl_EXCLUDE call.
46523         (Makefile.am): Augment lib_SOURCES.
46525 2011-05-23  Bruno Haible  <bruno@clisp.org>
46527         dirname*: Respect rules for use of AC_LIBOBJ.
46528         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
46529         invocations.
46530         * modules/dirname (Makefile.am): Augment lib_SOURCES.
46531         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
46533 2011-05-23  Bruno Haible  <bruno@clisp.org>
46535         dirent-safer: Move AC_LIBOBJ invocations to module description.
46536         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
46537         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
46539 2011-05-23  Bruno Haible  <bruno@clisp.org>
46541         crypto/des: Move AC_LIBOBJ invocations to module description.
46542         * m4/des.m4: Remove file.
46543         * modules/crypto/des (Files): Remove it.
46544         (configure.ac): Remove gl_DES call.
46545         (Makefile.am): Augment lib_SOURCES.
46547 2011-05-23  Bruno Haible  <bruno@clisp.org>
46549         cycle-check: Move AC_LIBOBJ invocations to module description.
46550         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
46551         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
46553 2011-05-23  Bruno Haible  <bruno@clisp.org>
46555         c-strtold: Move AC_LIBOBJ invocations to module description.
46556         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
46557         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
46559 2011-05-23  Bruno Haible  <bruno@clisp.org>
46561         c-strtod: Move AC_LIBOBJ invocations to module description.
46562         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
46563         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
46565 2011-05-23  Bruno Haible  <bruno@clisp.org>
46567         crc: Move AC_LIBOBJ invocations to module description.
46568         * m4/crc.m4: Remove file.
46569         * modules/crc (Files): Remove it.
46570         (configure.ac): Remove gl_CRC call.
46571         (Makefile.am): Augment lib_SOURCES.
46573 2011-05-23  Bruno Haible  <bruno@clisp.org>
46575         close-stream: Move AC_LIBOBJ invocations to module description.
46576         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
46577         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
46579 2011-05-23  Bruno Haible  <bruno@clisp.org>
46581         closeout: Move AC_LIBOBJ invocations to module description.
46582         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
46583         * modules/closeout (Makefile.am): Augment lib_SOURCES.
46585 2011-05-23  Bruno Haible  <bruno@clisp.org>
46587         closein: Move AC_LIBOBJ invocations to module description.
46588         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
46589         * modules/closein (Makefile.am): Augment lib_SOURCES.
46591 2011-05-23  Bruno Haible  <bruno@clisp.org>
46593         cloexec: Move AC_LIBOBJ invocations to module description.
46594         * m4/cloexec.m4: Remove file.
46595         * modules/cloexec (Files): Remove it.
46596         (configure.ac): Remove gl_CLOEXEC call.
46597         (Makefile.am): Augment lib_SOURCES.
46599 2011-05-23  Bruno Haible  <bruno@clisp.org>
46601         check-version: Move AC_LIBOBJ invocations to module description.
46602         * m4/check-version.m4: Remove file.
46603         * modules/check-version (Files): Remove it.
46604         (configure.ac): Remove gl_CHECK_VERSION call.
46605         (Makefile.am): Augment lib_SOURCES.
46607 2011-05-23  Bruno Haible  <bruno@clisp.org>
46609         chdir-safer: Move AC_LIBOBJ invocations to module description.
46610         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
46611         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
46613 2011-05-23  Bruno Haible  <bruno@clisp.org>
46615         canonicalize: Move AC_LIBOBJ invocations to module description.
46616         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
46617         AC_LIBOBJ invocation.
46618         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
46620 2011-05-23  Bruno Haible  <bruno@clisp.org>
46622         canon-host: Move AC_LIBOBJ invocations to module description.
46623         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
46624         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
46625         instead of gl_CANON_HOST.
46626         (Makefile.am): Augment lib_SOURCES.
46628 2011-05-23  Bruno Haible  <bruno@clisp.org>
46630         backupfile: Move AC_LIBOBJ invocations to module description.
46631         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
46632         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
46634 2011-05-23  Bruno Haible  <bruno@clisp.org>
46636         argmatch: Move AC_LIBOBJ invocations to module description.
46637         * m4/argmatch.m4: Remove file.
46638         * modules/argmatch (Files): Remove it.
46639         (configure.ac): Remove gl_ARGMATCH call.
46640         (Makefile.am): Augment lib_SOURCES.
46642 2011-05-23  Bruno Haible  <bruno@clisp.org>
46644         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
46645         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
46646         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
46648 2011-05-23  Bruno Haible  <bruno@clisp.org>
46650         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
46651         * m4/arcfour.m4: Remove file.
46652         * modules/crypto/arcfour (Files): Remove it.
46653         (configure.ac): Remove gl_ARCFOUR call.
46654         (Makefile.am): Augment lib_SOURCES.
46656 2011-05-22  Bruno Haible  <bruno@clisp.org>
46658         write: Move AC_LIBOBJ invocations to module description.
46659         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
46660         * modules/write (configure.ac): ... to here.
46662 2011-05-22  Bruno Haible  <bruno@clisp.org>
46664         wmemset: Move AC_LIBOBJ invocations to module description.
46665         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
46666         here...
46667         * modules/wmemset (configure.ac): ... to here.
46669 2011-05-22  Bruno Haible  <bruno@clisp.org>
46671         wmemmove: Move AC_LIBOBJ invocations to module description.
46672         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
46673         here...
46674         * modules/wmemmove (configure.ac): ... to here.
46676 2011-05-22  Bruno Haible  <bruno@clisp.org>
46678         wmemcpy: Move AC_LIBOBJ invocations to module description.
46679         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
46680         here...
46681         * modules/wmemcpy (configure.ac): ... to here.
46683 2011-05-22  Bruno Haible  <bruno@clisp.org>
46685         wmemcmp: Move AC_LIBOBJ invocations to module description.
46686         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
46687         here...
46688         * modules/wmemcmp (configure.ac): ... to here.
46690 2011-05-22  Bruno Haible  <bruno@clisp.org>
46692         wmemchr: Move AC_LIBOBJ invocations to module description.
46693         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
46694         here...
46695         * modules/wmemchr (configure.ac): ... to here.
46697 2011-05-22  Bruno Haible  <bruno@clisp.org>
46699         wcswidth: Move AC_LIBOBJ invocations to module description.
46700         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
46701         here...
46702         * modules/wcswidth (configure.ac): ... to here.
46704 2011-05-22  Bruno Haible  <bruno@clisp.org>
46706         wcwidth: Respect rules for use of AC_LIBOBJ.
46707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
46708         invocation from here...
46709         * modules/wcwidth (configure.ac): ... to here.
46710         (Depends-on): Update conditions.
46712 2011-05-22  Bruno Haible  <bruno@clisp.org>
46714         wctype: Move AC_LIBOBJ invocations to module description.
46715         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
46716         invocation from here...
46717         * modules/wctype (configure.ac): ... to here.
46718         (Depends-on): Update conditions.
46720 2011-05-22  Bruno Haible  <bruno@clisp.org>
46722         wctrans: Move AC_LIBOBJ invocations to module description.
46723         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
46724         invocation from here...
46725         * modules/wctrans (configure.ac): ... to here.
46727 2011-05-22  Bruno Haible  <bruno@clisp.org>
46729         wctomb: Move AC_LIBOBJ invocations to module description.
46730         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
46731         invocations from here...
46732         * modules/wctomb (configure.ac): ... to here.
46734 2011-05-22  Bruno Haible  <bruno@clisp.org>
46736         wctob: Move AC_LIBOBJ invocations to module description.
46737         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
46738         gl_PREREQ_WCTOB invocations from here...
46739         * modules/wctob (configure.ac): ... to here.
46740         (Depends-on): Update conditions.
46742 2011-05-22  Bruno Haible  <bruno@clisp.org>
46744         wcsxfrm: Move AC_LIBOBJ invocations to module description.
46745         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
46746         here...
46747         * modules/wcsxfrm (configure.ac): ... to here.
46749 2011-05-22  Bruno Haible  <bruno@clisp.org>
46751         wcstok: Move AC_LIBOBJ invocations to module description.
46752         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
46753         * modules/wcstok (configure.ac): ... to here.
46755 2011-05-22  Bruno Haible  <bruno@clisp.org>
46757         wcsstr: Move AC_LIBOBJ invocations to module description.
46758         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
46759         * modules/wcsstr (configure.ac): ... to here.
46761 2011-05-22  Bruno Haible  <bruno@clisp.org>
46763         wcsspn: Move AC_LIBOBJ invocations to module description.
46764         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
46765         * modules/wcsspn (configure.ac): ... to here.
46767 2011-05-22  Bruno Haible  <bruno@clisp.org>
46769         wcsrtombs: Move AC_LIBOBJ invocations to module description.
46770         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
46771         gl_PREREQ_WCSRTOMBS invocations from here...
46772         * modules/wcsrtombs (configure.ac): ... to here.
46774 2011-05-22  Bruno Haible  <bruno@clisp.org>
46776         wcsrchr: Move AC_LIBOBJ invocations to module description.
46777         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
46778         here...
46779         * modules/wcsrchr (configure.ac): ... to here.
46781 2011-05-22  Bruno Haible  <bruno@clisp.org>
46783         wcspbrk: Move AC_LIBOBJ invocations to module description.
46784         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
46785         here...
46786         * modules/wcspbrk (configure.ac): ... to here.
46788 2011-05-22  Bruno Haible  <bruno@clisp.org>
46790         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
46791         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
46792         gl_PREREQ_WCSNRTOMBS invocations from here...
46793         * modules/wcsnrtombs (configure.ac): ... to here.
46795 2011-05-22  Bruno Haible  <bruno@clisp.org>
46797         wcsnlen: Move AC_LIBOBJ invocations to module description.
46798         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
46799         here...
46800         * modules/wcsnlen (configure.ac): ... to here.
46802 2011-05-22  Bruno Haible  <bruno@clisp.org>
46804         wcsncpy: Move AC_LIBOBJ invocations to module description.
46805         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
46806         here...
46807         * modules/wcsncpy (configure.ac): ... to here.
46809 2011-05-22  Bruno Haible  <bruno@clisp.org>
46811         wcsncmp: Move AC_LIBOBJ invocations to module description.
46812         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
46813         here...
46814         * modules/wcsncmp (configure.ac): ... to here.
46816 2011-05-22  Bruno Haible  <bruno@clisp.org>
46818         wcsncat: Move AC_LIBOBJ invocations to module description.
46819         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
46820         here...
46821         * modules/wcsncat (configure.ac): ... to here.
46823 2011-05-22  Bruno Haible  <bruno@clisp.org>
46825         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
46826         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
46827         from here...
46828         * modules/wcsncasecmp (configure.ac): ... to here.
46830 2011-05-22  Bruno Haible  <bruno@clisp.org>
46832         wcslen: Move AC_LIBOBJ invocations to module description.
46833         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
46834         * modules/wcslen (configure.ac): ... to here.
46836 2011-05-22  Bruno Haible  <bruno@clisp.org>
46838         wcsdup: Move AC_LIBOBJ invocations to module description.
46839         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
46840         * modules/wcsdup (configure.ac): ... to here.
46842 2011-05-22  Bruno Haible  <bruno@clisp.org>
46844         wcscspn: Move AC_LIBOBJ invocations to module description.
46845         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
46846         here...
46847         * modules/wcscspn (configure.ac): ... to here.
46849 2011-05-22  Bruno Haible  <bruno@clisp.org>
46851         wcscpy: Move AC_LIBOBJ invocations to module description.
46852         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
46853         * modules/wcscpy (configure.ac): ... to here.
46855 2011-05-22  Bruno Haible  <bruno@clisp.org>
46857         wcscoll: Move AC_LIBOBJ invocations to module description.
46858         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
46859         here...
46860         * modules/wcscoll (configure.ac): ... to here.
46862 2011-05-22  Bruno Haible  <bruno@clisp.org>
46864         wcscmp: Move AC_LIBOBJ invocations to module description.
46865         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
46866         * modules/wcscmp (configure.ac): ... to here.
46868 2011-05-22  Bruno Haible  <bruno@clisp.org>
46870         wcschr: Move AC_LIBOBJ invocations to module description.
46871         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
46872         * modules/wcschr (configure.ac): ... to here.
46874 2011-05-22  Bruno Haible  <bruno@clisp.org>
46876         wcscat: Move AC_LIBOBJ invocations to module description.
46877         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
46878         * modules/wcscat (configure.ac): ... to here.
46880 2011-05-22  Bruno Haible  <bruno@clisp.org>
46882         wcscasecmp: Move AC_LIBOBJ invocations to module description.
46883         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
46884         here...
46885         * modules/wcscasecmp (configure.ac): ... to here.
46887 2011-05-22  Bruno Haible  <bruno@clisp.org>
46889         wcrtomb: Move AC_LIBOBJ invocations to module description.
46890         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
46891         invocations from here...
46892         * modules/wcrtomb (configure.ac): ... to here.
46894 2011-05-22  Bruno Haible  <bruno@clisp.org>
46896         wcpncpy: Move AC_LIBOBJ invocations to module description.
46897         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
46898         here...
46899         * modules/wcpncpy (configure.ac): ... to here.
46901 2011-05-22  Bruno Haible  <bruno@clisp.org>
46903         wcpcpy: Move AC_LIBOBJ invocations to module description.
46904         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
46905         * modules/wcpcpy (configure.ac): ... to here.
46907 2011-05-22  Bruno Haible  <bruno@clisp.org>
46909         waitpid: Move AC_LIBOBJ invocations to module description.
46910         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
46911         invocation from here...
46912         * modules/waitpid (configure.ac): ... to here.
46914 2011-05-22  Bruno Haible  <bruno@clisp.org>
46916         utimensat: Move AC_LIBOBJ invocations to module description.
46917         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
46918         here...
46919         * modules/utimensat (configure.ac): ... to here.
46921 2011-05-22  Bruno Haible  <bruno@clisp.org>
46923         usleep: Move AC_LIBOBJ invocations to module description.
46924         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
46925         here...
46926         * modules/usleep (configure.ac): ... to here.
46928 2011-05-22  Bruno Haible  <bruno@clisp.org>
46930         unlockpt: Move AC_LIBOBJ invocations to module description.
46931         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
46932         gl_PREREQ_UNLOCKPT invocations from here...
46933         * modules/unlockpt (configure.ac): ... to here.
46935 2011-05-22  Bruno Haible  <bruno@clisp.org>
46937         unlink: Respect rules for use of AC_LIBOBJ.
46938         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
46939         * modules/unlink (configure.ac): ... to here.
46941 2011-05-22  Bruno Haible  <bruno@clisp.org>
46943         uname: Move AC_LIBOBJ invocations to module description.
46944         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
46945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
46946         here...
46947         * modules/uname (configure.ac): ... to here.
46949 2011-05-22  Bruno Haible  <bruno@clisp.org>
46951         ttyname_r: Move AC_LIBOBJ invocations to module description.
46952         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
46953         gl_PREREQ_TTYNAME_R invocations from here...
46954         * modules/ttyname_r (configure.ac): ... to here.
46956 2011-05-22  Bruno Haible  <bruno@clisp.org>
46958         tsearch: Move AC_LIBOBJ invocations to module description.
46959         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
46960         invocations from here...
46961         * modules/tsearch (configure.ac): ... to here.
46963 2011-05-22  Bruno Haible  <bruno@clisp.org>
46965         towctrans: Move AC_LIBOBJ invocations to module description.
46966         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
46967         AC_LIBOBJ invocation from here...
46968         * modules/towctrans (configure.ac): ... to here.
46970 2011-05-22  Bruno Haible  <bruno@clisp.org>
46972         tmpfile: Move AC_LIBOBJ invocations to module description.
46973         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
46974         invocations from here...
46975         * modules/tmpfile (configure.ac): ... to here.
46977 2011-05-22  Bruno Haible  <bruno@clisp.org>
46979         times: Move AC_LIBOBJ invocations to module description.
46980         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
46981         * modules/times (configure.ac): ... to here.
46983 2011-05-22  Bruno Haible  <bruno@clisp.org>
46985         time_r: Move AC_LIBOBJ invocations to module description.
46986         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
46987         invocations from here...
46988         * modules/time_r (configure.ac): ... to here.
46990 2011-05-22  Bruno Haible  <bruno@clisp.org>
46992         timegm: Move AC_LIBOBJ invocations to module description.
46993         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
46994         invocations from here...
46995         * modules/timegm (configure.ac): ... to here.
46997 2011-05-22  Bruno Haible  <bruno@clisp.org>
46999         tcgetsid: Move AC_LIBOBJ invocations to module description.
47000         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
47001         and gl_PREREQ_TCGETSID invocations from here...
47002         * modules/tcgetsid (configure.ac): ... to here.
47003         (Depends-on): Update conditions.
47005 2011-05-22  Bruno Haible  <bruno@clisp.org>
47007         symlinkat: Move AC_LIBOBJ invocations to module description.
47008         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
47009         here...
47010         * modules/symlinkat (configure.ac): ... to here.
47012 2011-05-22  Bruno Haible  <bruno@clisp.org>
47014         symlink: Move AC_LIBOBJ invocations to module description.
47015         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
47016         here...
47017         * modules/symlink (configure.ac): ... to here.
47019 2011-05-22  Bruno Haible  <bruno@clisp.org>
47021         strverscmp: Move AC_LIBOBJ invocations to module description.
47022         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
47023         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
47024         from here...
47025         * modules/strverscmp (configure.ac): ... to here.
47027 2011-05-22  Bruno Haible  <bruno@clisp.org>
47029         strtok_r: Move AC_LIBOBJ invocations to module description.
47030         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
47031         and gl_PREREQ_STRTOK_R invocations from here...
47032         * modules/strtok_r (configure.ac): ... to here.
47033         (Depends-on): Update conditions.
47035 2011-05-22  Bruno Haible  <bruno@clisp.org>
47037         strtoumax: Move AC_LIBOBJ invocations to module description.
47038         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
47039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
47040         from here...
47041         * modules/strtoumax (configure.ac): ... to here.
47043 2011-05-22  Bruno Haible  <bruno@clisp.org>
47045         strtoimax: Move AC_LIBOBJ invocations to module description.
47046         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
47047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
47048         from here...
47049         * modules/strtoimax (configure.ac): ... to here.
47051 2011-05-22  Bruno Haible  <bruno@clisp.org>
47053         strtoull: Move AC_LIBOBJ invocations to module description.
47054         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
47055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
47056         from here...
47057         * modules/strtoull (configure.ac): ... to here.
47059 2011-05-22  Bruno Haible  <bruno@clisp.org>
47061         strtoll: Move AC_LIBOBJ invocations to module description.
47062         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
47063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
47064         here...
47065         * modules/strtoll (configure.ac): ... to here.
47067 2011-05-22  Bruno Haible  <bruno@clisp.org>
47069         strtoul: Move AC_LIBOBJ invocations to module description.
47070         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
47071         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
47072         * modules/strtoul (configure.ac): ... to here.
47074 2011-05-22  Bruno Haible  <bruno@clisp.org>
47076         strtol: Move AC_LIBOBJ invocations to module description.
47077         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
47078         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
47079         * modules/strtol (configure.ac): ... to here.
47081 2011-05-22  Bruno Haible  <bruno@clisp.org>
47083         strtod: Move AC_LIBOBJ invocations to module description.
47084         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
47085         invocations from here...
47086         * modules/strtod (configure.ac): ... to here.
47088 2011-05-22  Bruno Haible  <bruno@clisp.org>
47090         strstr*: Move AC_LIBOBJ invocations to module description.
47091         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
47092         invocations from here...
47093         * modules/strstr-simple (configure.ac): ... to here.
47094         * modules/strstr (configure.ac): ... and here.
47096 2011-05-22  Bruno Haible  <bruno@clisp.org>
47098         strsignal: Move AC_LIBOBJ invocations to module description.
47099         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
47100         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
47101         * modules/strsignal (configure.ac): ... to here.
47102         (Depends-on): Update conditions.
47104 2011-05-22  Bruno Haible  <bruno@clisp.org>
47106         strsep: Move AC_LIBOBJ invocations to module description.
47107         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
47108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
47109         here...
47110         * modules/strsep (configure.ac): ... to here.
47112 2011-05-22  Bruno Haible  <bruno@clisp.org>
47114         strptime: Move AC_LIBOBJ invocations to module description.
47115         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
47116         gl_PREREQ_STRPTIME invocations from here...
47117         * modules/strptime (configure.ac): ... to here.
47119 2011-05-22  Bruno Haible  <bruno@clisp.org>
47121         strpbrk: Move AC_LIBOBJ invocations to module description.
47122         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
47123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
47124         here...
47125         * modules/strpbrk (configure.ac): ... to here.
47127 2011-05-22  Bruno Haible  <bruno@clisp.org>
47129         strnlen: Move AC_LIBOBJ invocations to module description.
47130         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
47131         invocations from here...
47132         * modules/strnlen (configure.ac): ... to here.
47134 2011-05-22  Bruno Haible  <bruno@clisp.org>
47136         strndup: Move AC_LIBOBJ invocations to module description.
47137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
47138         invocations from here...
47139         * modules/strndup (configure.ac): ... to here.
47140         (Depends-on): Update conditions.
47142 2011-05-22  Bruno Haible  <bruno@clisp.org>
47144         strncat: Move AC_LIBOBJ invocations to module description.
47145         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
47146         invocations from here...
47147         * modules/strncat (configure.ac): ... to here.
47149 2011-05-22  Bruno Haible  <bruno@clisp.org>
47151         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
47152         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
47153         invocations from here...
47154         * modules/strdup (configure.ac): ... to here.
47155         * modules/strdup-posix (configure.ac): ... and here.
47157 2011-05-22  Bruno Haible  <bruno@clisp.org>
47159         strcspn: Move AC_LIBOBJ invocations to module description.
47160         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
47161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
47162         here...
47163         * modules/strcspn (configure.ac): ... to here.
47165 2011-05-22  Bruno Haible  <bruno@clisp.org>
47167         strchrnul: Move AC_LIBOBJ invocations to module description.
47168         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
47169         gl_PREREQ_STRCHRNUL invocations from here...
47170         * modules/strchrnul (configure.ac): ... to here.
47172 2011-05-22  Bruno Haible  <bruno@clisp.org>
47174         strcasestr*: Move AC_LIBOBJ invocations to module description.
47175         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47176         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
47177         * modules/strcasestr-simple (configure.ac): ... to here.
47178         * modules/strcasestr (configure.ac): ... and here.
47180 2011-05-22  Bruno Haible  <bruno@clisp.org>
47182         strcase: Move AC_LIBOBJ invocations to module description.
47183         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
47184         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
47185         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
47186         gl_PREREQ_STRNCASECMP invocations from here...
47187         * modules/strcase (configure.ac): ... to here.
47189 2011-05-22  Bruno Haible  <bruno@clisp.org>
47191         stpncpy: Move AC_LIBOBJ invocations to module description.
47192         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
47193         here...
47194         * modules/stpncpy (configure.ac): ... to here.
47196 2011-05-22  Bruno Haible  <bruno@clisp.org>
47198         stpcpy: Move AC_LIBOBJ invocations to module description.
47199         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
47200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
47201         here...
47202         * modules/stpcpy (configure.ac): ... to here.
47204 2011-05-21  Bruno Haible  <bruno@clisp.org>
47206         stat: Move AC_LIBOBJ invocations to module description.
47207         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
47208         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
47209         here...
47210         * modules/stat (configure.ac): ... to here.
47212 2011-05-21  Bruno Haible  <bruno@clisp.org>
47214         sleep: Move AC_LIBOBJ invocations to module description.
47215         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
47216         * modules/sleep (configure.ac): ... to here.
47218 2011-05-21  Bruno Haible  <bruno@clisp.org>
47220         signbit: Move AC_LIBOBJ invocations to module description.
47221         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
47222         * modules/signbit (configure.ac): ... to here.
47224 2011-05-21  Bruno Haible  <bruno@clisp.org>
47226         sigprocmask: Move AC_LIBOBJ invocations to module description.
47227         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
47228         gl_PREREQ_SIGPROMASK invocations from here...
47229         * modules/sigprocmask (configure.ac): ... to here.
47231 2011-05-21  Bruno Haible  <bruno@clisp.org>
47233         sigaction: Move AC_LIBOBJ invocations to module description.
47234         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
47235         gl_PREREQ_SIGACTION invocations from here...
47236         * modules/sigaction (configure.ac): ... to here.
47238 2011-05-21  Bruno Haible  <bruno@clisp.org>
47240         sig2str: Move AC_LIBOBJ invocations to module description.
47241         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
47242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
47243         here...
47244         * modules/sig2str (configure.ac): ... to here.
47246 2011-05-21  Bruno Haible  <bruno@clisp.org>
47248         setlocale: Move AC_LIBOBJ invocations to module description.
47249         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
47250         gl_PREREQ_SETLOCALE invocations from here...
47251         * modules/setlocale (configure.ac): ... to here.
47253 2011-05-21  Bruno Haible  <bruno@clisp.org>
47255         unsetenv: Move AC_LIBOBJ invocations to module description.
47256         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
47257         and gl_PREREQ_UNSETENV invocations from here...
47258         * modules/unsetenv (configure.ac): ... to here.
47259         (Depends-on): Update.
47261 2011-05-21  Bruno Haible  <bruno@clisp.org>
47263         setenv: Move AC_LIBOBJ invocations to module description.
47264         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
47265         here...
47266         * modules/setenv (configure.ac): ... to here.
47268 2011-05-21  Bruno Haible  <bruno@clisp.org>
47270         selinux-h: Move AC_LIBOBJ invocations to module description.
47271         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
47272         AC_LIBOBJ invocation from here...
47273         * modules/selinux-h (configure.ac): ... to here.
47275 2011-05-21  Bruno Haible  <bruno@clisp.org>
47277         select: Respect rules for use of AC_LIBOBJ.
47278         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
47279         here...
47280         * modules/select (configure.ac): ... to here.
47282 2011-05-21  Bruno Haible  <bruno@clisp.org>
47284         scandir: Move AC_LIBOBJ invocations to module description.
47285         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
47286         invocations from here...
47287         * modules/scandir (configure.ac): ... to here.
47289 2011-05-21  Bruno Haible  <bruno@clisp.org>
47291         rpmatch: Move AC_LIBOBJ invocations to module description.
47292         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
47293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
47294         here...
47295         * modules/rpmatch (configure.ac): ... to here.
47297 2011-05-21  Bruno Haible  <bruno@clisp.org>
47299         rmdir: Respect rules for use of AC_LIBOBJ.
47300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
47301         * modules/rmdir (configure.ac): ... to here.
47303 2011-05-21  Bruno Haible  <bruno@clisp.org>
47305         renameat: Move AC_LIBOBJ invocations to module description.
47306         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
47307         here...
47308         * modules/renameat (configure.ac): ... to here.
47310 2011-05-21  Bruno Haible  <bruno@clisp.org>
47312         rename: Respect rules for use of AC_LIBOBJ.
47313         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
47314         here...
47315         * modules/rename (configure.ac): ... to here.
47317 2011-05-21  Bruno Haible  <bruno@clisp.org>
47319         remove: Move AC_LIBOBJ invocations to module description.
47320         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
47321         here...
47322         * modules/remove (configure.ac): ... to here.
47324 2011-05-21  Bruno Haible  <bruno@clisp.org>
47326         relocatable-lib: Move AC_LIBOBJ invocations to module description.
47327         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
47328         macro.
47329         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
47330         * modules/relocatable-lib (configure.ac): ... to here.
47331         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47332         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
47334 2011-05-21  Bruno Haible  <bruno@clisp.org>
47336         relocatable-prog: Move AC_LIBOBJ invocations to module description.
47337         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
47338         here...
47339         * modules/relocatable-prog (configure.ac): ... to here.
47341 2011-05-21  Bruno Haible  <bruno@clisp.org>
47343         regex: Move AC_LIBOBJ invocations to module description.
47344         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
47345         invocations from here...
47346         * modules/regex (configure.ac): ... to here.
47348 2011-05-21  Bruno Haible  <bruno@clisp.org>
47350         realloc-*: Move AC_LIBOBJ invocations to module description.
47351         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
47352         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
47353         AC_LIBOBJ invocations from here...
47354         * modules/realloc-gnu (configure.ac): ... to here.
47355         * modules/realloc-posix (configure.ac): ... and here.
47357 2011-05-21  Bruno Haible  <bruno@clisp.org>
47359         readutmp: Move AC_LIBOBJ invocations to module description.
47360         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
47361         * modules/readutmp (configure.ac): ... to here.
47363 2011-05-21  Bruno Haible  <bruno@clisp.org>
47365         readlinkat: Move AC_LIBOBJ invocations to module description.
47366         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
47367         here...
47368         * modules/readlinkat (configure.ac): ... to here.
47370 2011-05-21  Bruno Haible  <bruno@clisp.org>
47372         readlink: Move AC_LIBOBJ invocations to module description.
47373         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
47374         gl_PREREQ_READLINK invocations from here...
47375         * modules/readlink (configure.ac): ... to here.
47377 2011-05-21  Bruno Haible  <bruno@clisp.org>
47379         readline: Move AC_LIBOBJ invocations to module description.
47380         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
47381         gl_PREREQ_READLINE invocations from here...
47382         * modules/readline (configure.ac): ... to here.
47384 2011-05-21  Bruno Haible  <bruno@clisp.org>
47386         read: Move AC_LIBOBJ invocations to module description.
47387         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
47388         * modules/read (configure.ac): ... to here.
47390 2011-05-21  Bruno Haible  <bruno@clisp.org>
47392         rawmemchr: Move AC_LIBOBJ invocations to module description.
47393         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
47394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
47395         from here...
47396         * modules/rawmemchr (configure.ac): ... to here.
47398 2011-05-21  Bruno Haible  <bruno@clisp.org>
47400         random_r: Move AC_LIBOBJ invocations to module description.
47401         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
47402         gl_PREREQ_RANDOM_R invocations from here...
47403         * modules/random_r (configure.ac): ... to here.
47405 2011-05-21  Bruno Haible  <bruno@clisp.org>
47407         pwrite: Move AC_LIBOBJ invocations to module description.
47408         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
47409         * modules/pwrite (configure.ac): ... to here.
47411 2011-05-21  Bruno Haible  <bruno@clisp.org>
47413         putenv: Move AC_LIBOBJ invocations to module description.
47414         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
47415         * modules/putenv (configure.ac): ... to here.
47417 2011-05-21  Bruno Haible  <bruno@clisp.org>
47419         login_tty: Move AC_LIBOBJ invocations to module description.
47420         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
47421         * modules/login_tty (configure.ac): ... to here.
47423 2011-05-21  Bruno Haible  <bruno@clisp.org>
47425         openpty: Move AC_LIBOBJ invocations to module description.
47426         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
47427         * modules/openpty (configure.ac): ... to here.
47429 2011-05-21  Bruno Haible  <bruno@clisp.org>
47431         forkpty: Move AC_LIBOBJ invocations to module description.
47432         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
47433         * modules/forkpty (configure.ac): ... to here.
47435 2011-05-21  Bruno Haible  <bruno@clisp.org>
47437         ptsname: Move AC_LIBOBJ invocations to module description.
47438         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
47439         invocations from here...
47440         * modules/ptsname (configure.ac): ... to here.
47442 2011-05-21  Bruno Haible  <bruno@clisp.org>
47444         pread: Move AC_LIBOBJ invocations to module description.
47445         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
47446         * modules/pread (configure.ac): ... to here.
47448 2011-05-21  Bruno Haible  <bruno@clisp.org>
47450         posix_spawn*: Move AC_LIBOBJ invocations to module description.
47451         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
47452         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
47453         * modules/posix_spawn (configure.ac): ... to here.
47454         * modules/posix_spawnp (configure.ac): ... and here.
47456 2011-05-21  Bruno Haible  <bruno@clisp.org>
47458         popen: Move AC_LIBOBJ invocations to module description.
47459         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
47460         invocations from here...
47461         * modules/popen (configure.ac): ... to here.
47463 2011-05-21  Bruno Haible  <bruno@clisp.org>
47465         poll: Move AC_LIBOBJ invocations to module description.
47466         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
47467         invocations from here...
47468         * modules/poll (configure.ac): ... to here.
47470 2011-05-21  Bruno Haible  <bruno@clisp.org>
47472         pipe-posix: Move AC_LIBOBJ invocations to module description.
47473         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
47474         * modules/pipe-posix (configure.ac): ... to here.
47476 2011-05-21  Bruno Haible  <bruno@clisp.org>
47478         openat: Respect rules for use of AC_LIBOBJ.
47479         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
47480         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
47481         * modules/openat (configure.ac): ... to here.
47483 2011-05-21  Bruno Haible  <bruno@clisp.org>
47485         obstack-printf*: Move AC_LIBOBJ invocations to module description.
47486         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
47487         invocation from here...
47488         * modules/obstack-printf (configure.ac): ... to here.
47489         * modules/obstack-printf-posix (configure.ac): ... and here.
47491 2011-05-21  Bruno Haible  <bruno@clisp.org>
47493         nl_langinfo: Move AC_LIBOBJ invocations to module description.
47494         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
47495         from here...
47496         * modules/nl_langinfo (configure.ac): ... to here.
47498 2011-05-21  Bruno Haible  <bruno@clisp.org>
47500         nanosleep: Move AC_LIBOBJ invocations to module description.
47501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
47502         gl_PREREQ_NANOSLEEP invocations from here...
47503         * modules/nanosleep (configure.ac): ... to here.
47505 2011-05-21  Bruno Haible  <bruno@clisp.org>
47507         mountlist: Move AC_LIBOBJ invocations to module description.
47508         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
47509         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
47510         * modules/mountlist (configure.ac): ... to here.
47512 2011-05-21  Bruno Haible  <bruno@clisp.org>
47514         mktime: Respect rules for use of AC_LIBOBJ.
47515         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
47516         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
47517         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
47518         (gl_FUNC_MKTIME_INTERNAL): ... and here...
47519         * modules/mktime (configure.ac): ... to here.
47520         * modules/mktime-internal (configure.ac): ... and here.
47521         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
47523 2011-05-21  Bruno Haible  <bruno@clisp.org>
47525         mkstemps: Move AC_LIBOBJ invocations to module description.
47526         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
47527         here...
47528         * modules/mkstemps (configure.ac): ... to here.
47530 2011-05-21  Bruno Haible  <bruno@clisp.org>
47532         mkstemp: Move AC_LIBOBJ invocations to module description.
47533         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
47534         gl_PREREQ_MKSTEMP invocations from here...
47535         * modules/mkstemp (configure.ac): ... to here.
47537 2011-05-21  Bruno Haible  <bruno@clisp.org>
47539         mkostemps: Move AC_LIBOBJ invocations to module description.
47540         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
47541         here...
47542         * modules/mkostemps (configure.ac): ... to here.
47544 2011-05-21  Bruno Haible  <bruno@clisp.org>
47546         mkostemp: Move AC_LIBOBJ invocations to module description.
47547         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
47548         gl_PREREQ_MKOSTEMP invocations from here...
47549         * modules/mkostemp (configure.ac): ... to here.
47551 2011-05-21  Bruno Haible  <bruno@clisp.org>
47553         mknod: Move AC_LIBOBJ invocations to module description.
47554         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
47555         * modules/mknod (configure.ac): ... to here.
47557 2011-05-21  Bruno Haible  <bruno@clisp.org>
47559         mkfifoat: Move AC_LIBOBJ invocations to module description.
47560         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
47561         here...
47562         * modules/mkfifoat (configure.ac): ... to here.
47564 2011-05-21  Bruno Haible  <bruno@clisp.org>
47566         mkfifo: Respect rules for use of AC_LIBOBJ.
47567         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
47568         here...
47569         * modules/mkfifo (configure.ac): ... to here.
47571 2011-05-21  Bruno Haible  <bruno@clisp.org>
47573         mkdtemp: Move AC_LIBOBJ invocations to module description.
47574         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
47575         invocations from here...
47576         * modules/mkdtemp (configure.ac): ... to here.
47578 2011-05-21  Bruno Haible  <bruno@clisp.org>
47580         mkdir: Move AC_LIBOBJ invocations to module description.
47581         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
47582         * modules/mkdir (configure.ac): ... to here.
47584 2011-05-21  Bruno Haible  <bruno@clisp.org>
47586         memset: Move AC_LIBOBJ invocations to module description.
47587         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
47588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
47589         here...
47590         * modules/memset (configure.ac): ... to here.
47592 2011-05-21  Bruno Haible  <bruno@clisp.org>
47594         memrchr: Move AC_LIBOBJ invocations to module description.
47595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
47596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
47597         here...
47598         * modules/memrchr (configure.ac): ... to here.
47600 2011-05-21  Bruno Haible  <bruno@clisp.org>
47602         mempcpy: Move AC_LIBOBJ invocations to module description.
47603         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
47604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
47605         here...
47606         * modules/mempcpy (configure.ac): ... to here.
47608 2011-05-21  Bruno Haible  <bruno@clisp.org>
47610         memmove: Move AC_LIBOBJ invocations to module description.
47611         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
47612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
47613         here...
47614         * modules/memmove (configure.ac): ... to here.
47616 2011-05-21  Bruno Haible  <bruno@clisp.org>
47618         memmem*: Move AC_LIBOBJ invocations to module description.
47619         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
47620         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
47621         here...
47622         (gl_FUNC_MEMMEM): ... and here...
47623         * modules/memmem-simple (configure.ac): ... to here.
47624         * modules/memmem (configure.ac): ... and here.
47626 2011-05-21  Bruno Haible  <bruno@clisp.org>
47628         memcpy: Move AC_LIBOBJ invocations to module description.
47629         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
47630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
47631         here...
47632         * modules/memcpy (configure.ac): ... to here.
47634 2011-05-21  Bruno Haible  <bruno@clisp.org>
47636         memcmp: Simplify autoconf macro.
47637         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
47638         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
47639         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
47641 2011-05-21  Bruno Haible  <bruno@clisp.org>
47643         memcmp: Move AC_LIBOBJ invocations to module description.
47644         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
47645         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
47646         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
47647         * modules/memcmp (configure.ac): ... to here.
47648         (Depends-on): Update conditions.
47650 2011-05-21  Bruno Haible  <bruno@clisp.org>
47652         memchr: Respect rules for use of AC_LIBOBJ.
47653         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
47654         invocations from here...
47655         * modules/memchr (configure.ac): ... to here.
47657 2011-05-21  Bruno Haible  <bruno@clisp.org>
47659         mbtowc: Move AC_LIBOBJ invocations to module description.
47660         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
47661         invocations from here...
47662         * modules/mbtowc (configure.ac): ... to here.
47664 2011-05-21  Bruno Haible  <bruno@clisp.org>
47666         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
47667         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
47668         gl_PREREQ_MBSRTOWCS invocations from here...
47669         * modules/mbsrtowcs (configure.ac): ... to here.
47671 2011-05-21  Bruno Haible  <bruno@clisp.org>
47673         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
47674         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
47675         gl_PREREQ_MBSNRTOWCS invocations from here...
47676         * modules/mbsnrtowcs (configure.ac): ... to here.
47678 2011-05-21  Bruno Haible  <bruno@clisp.org>
47680         mbsinit: Move AC_LIBOBJ invocations to module description.
47681         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
47682         invocations from here...
47683         * modules/mbsinit (configure.ac): ... to here.
47685 2011-05-21  Bruno Haible  <bruno@clisp.org>
47687         mbrlen: Move AC_LIBOBJ invocations to module description.
47688         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
47689         invocations from here...
47690         * modules/mbrlen (configure.ac): ... to here.
47692 2011-05-21  Bruno Haible  <bruno@clisp.org>
47694         mbrtowc: Respect rules for use of AC_LIBOBJ.
47695         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
47696         invocations from here...
47697         * modules/mbrtowc (configure.ac): ... to here.
47699 2011-05-21  Bruno Haible  <bruno@clisp.org>
47701         malloc-*: Move AC_LIBOBJ invocations to module description.
47702         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
47703         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
47704         AC_LIBOBJ invocations from here...
47705         * modules/malloc-gnu (configure.ac): ... to here.
47706         * modules/malloc-posix (configure.ac): ... and here.
47708 2011-05-21  Bruno Haible  <bruno@clisp.org>
47710         lstat, openat: Respect rules for use of AC_LIBOBJ.
47711         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
47712         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
47713         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
47714         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
47715         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
47716         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
47717         here.
47718         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
47720 2011-05-21  Bruno Haible  <bruno@clisp.org>
47722         lseek: Move AC_LIBOBJ invocations to module description.
47723         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
47724         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
47725         * modules/lseek (configure.ac): ... to here.
47727 2011-05-21  Bruno Haible  <bruno@clisp.org>
47729         linkat: Move AC_LIBOBJ invocations to module description.
47730         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
47731         here...
47732         * modules/linkat (configure.ac): ... to here.
47734 2011-05-21  Bruno Haible  <bruno@clisp.org>
47736         link: Respect rules for use of AC_LIBOBJ.
47737         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
47738         * modules/link (configure.ac): ... to here.
47740 2011-05-21  Bruno Haible  <bruno@clisp.org>
47742         lchown: Move AC_LIBOBJ invocations to module description.
47743         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
47744         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
47745         * modules/lchown (configure.ac): ... to here.
47747 2011-05-21  Bruno Haible  <bruno@clisp.org>
47749         iswctype: Move AC_LIBOBJ invocations to module description.
47750         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
47751         here...
47752         * modules/iswctype (configure.ac): ... to here.
47754 2011-05-21  Bruno Haible  <bruno@clisp.org>
47756         iswblank: Move AC_LIBOBJ invocations to module description.
47757         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
47758         here...
47759         * modules/iswblank (configure.ac): ... to here.
47761 2011-05-21  Bruno Haible  <bruno@clisp.org>
47763         atanl: Move AC_LIBOBJ invocations to module description.
47764         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
47765         * modules/atanl (configure.ac): ... to here.
47767 2011-05-21  Bruno Haible  <bruno@clisp.org>
47769         acosl: Move AC_LIBOBJ invocations to module description.
47770         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
47771         * modules/acosl (configure.ac): ... to here.
47773 2011-05-21  Bruno Haible  <bruno@clisp.org>
47775         asinl: Respect rules for use of AC_LIBOBJ.
47776         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
47777         * modules/asinl (configure.ac): ... to here.
47779 2011-05-21  Bruno Haible  <bruno@clisp.org>
47781         tanl: Move AC_LIBOBJ invocations to module description.
47782         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
47783         * modules/tanl (configure.ac): ... to here.
47785 2011-05-21  Bruno Haible  <bruno@clisp.org>
47787         cosl: Move AC_LIBOBJ invocations to module description.
47788         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
47789         * modules/cosl (configure.ac): ... to here.
47791 2011-05-21  Bruno Haible  <bruno@clisp.org>
47793         sinl: Move AC_LIBOBJ invocations to module description.
47794         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
47795         * modules/sinl (configure.ac): ... to here.
47797 2011-05-21  Bruno Haible  <bruno@clisp.org>
47799         logl: Move AC_LIBOBJ invocations to module description.
47800         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
47801         * modules/logl (configure.ac): ... to here.
47803 2011-05-21  Bruno Haible  <bruno@clisp.org>
47805         expl: Move AC_LIBOBJ invocations to module description.
47806         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
47807         * modules/expl (configure.ac): ... to here.
47809 2011-05-21  Bruno Haible  <bruno@clisp.org>
47811         roundl: Move AC_LIBOBJ invocations to module description.
47812         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
47813         * modules/roundl (configure.ac): ... to here.
47815 2011-05-21  Bruno Haible  <bruno@clisp.org>
47817         round: Move AC_LIBOBJ invocations to module description.
47818         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
47819         * modules/round (configure.ac): ... to here.
47821 2011-05-21  Bruno Haible  <bruno@clisp.org>
47823         roundf: Move AC_LIBOBJ invocations to module description.
47824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
47825         * modules/roundf (configure.ac): ... to here.
47827 2011-05-21  Bruno Haible  <bruno@clisp.org>
47829         truncl: Move AC_LIBOBJ invocations to module description.
47830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
47831         * modules/truncl (configure.ac): ... to here.
47833 2011-05-21  Bruno Haible  <bruno@clisp.org>
47835         trunc: Move AC_LIBOBJ invocations to module description.
47836         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
47837         * modules/trunc (configure.ac): ... to here.
47839 2011-05-21  Bruno Haible  <bruno@clisp.org>
47841         truncf: Move AC_LIBOBJ invocations to module description.
47842         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
47843         * modules/truncf (configure.ac): ... to here.
47845 2011-05-21  Bruno Haible  <bruno@clisp.org>
47847         ceill: Move AC_LIBOBJ invocations to module description.
47848         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
47849         * modules/ceill (configure.ac): ... to here.
47851 2011-05-21  Bruno Haible  <bruno@clisp.org>
47853         ceil: Move AC_LIBOBJ invocations to module description.
47854         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
47855         * modules/ceil (configure.ac): ... to here.
47857 2011-05-21  Bruno Haible  <bruno@clisp.org>
47859         ceilf: Move AC_LIBOBJ invocations to module description.
47860         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
47861         * modules/ceilf (configure.ac): ... to here.
47863 2011-05-21  Bruno Haible  <bruno@clisp.org>
47865         floorl: Respect rules for use of AC_LIBOBJ.
47866         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
47867         * modules/floorl (configure.ac): ... to here.
47869 2011-05-21  Bruno Haible  <bruno@clisp.org>
47871         floor: Respect rules for use of AC_LIBOBJ.
47872         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
47873         * modules/floor (configure.ac): ... to here.
47875 2011-05-21  Bruno Haible  <bruno@clisp.org>
47877         floorf: Move AC_LIBOBJ invocations to module description.
47878         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
47879         * modules/floorf (configure.ac): ... to here.
47881 2011-05-20  Bruno Haible  <bruno@clisp.org>
47883         sqrtl: Respect rules for use of AC_LIBOBJ.
47884         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
47885         * modules/sqrtl (configure.ac): ... to here.
47887 2011-05-20  Bruno Haible  <bruno@clisp.org>
47889         ldexpl: Respect rules for use of AC_LIBOBJ.
47890         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
47891         * modules/ldexpl (configure.ac): ... to here.
47893 2011-05-20  Bruno Haible  <bruno@clisp.org>
47895         frexpl*: Respect rules for use of AC_LIBOBJ.
47896         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
47897         invocation from here...
47898         * modules/frexpl (configure.ac): ... to here.
47899         * modules/frexpl-nolibm (configure.ac): ... and here.
47901 2011-05-20  Bruno Haible  <bruno@clisp.org>
47903         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
47904         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
47905         invocation from here...
47906         * modules/frexp (configure.ac): ... to here.
47907         * modules/frexp-nolibm (configure.ac): ... and here.
47909 2011-05-20  Bruno Haible  <bruno@clisp.org>
47911         isnan: Respect rules for use of AC_LIBOBJ.
47912         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
47913         invocations here.
47914         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
47915         REPLACE_ISNAN.
47916         * modules/isnand (configure.ac): Likewise.
47917         * modules/isnanl (configure.ac): Likewise.
47919 2011-05-20  Bruno Haible  <bruno@clisp.org>
47921         isnanl*: Respect rules for use of AC_LIBOBJ.
47922         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
47923         invocation from here...
47924         * modules/isnanl (configure.ac): ... to here.
47925         * modules/isnanl-nolibm (configure.ac): ... and here.
47927 2011-05-20  Bruno Haible  <bruno@clisp.org>
47929         isnand*: Move AC_LIBOBJ invocations to module description.
47930         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
47931         invocation from here...
47932         * modules/isnand (configure.ac): ... to here.
47933         * modules/isnand-nolibm (configure.ac): ... and here.
47935 2011-05-20  Bruno Haible  <bruno@clisp.org>
47937         isnanf*: Move AC_LIBOBJ invocations to module description.
47938         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
47939         invocation from here...
47940         * modules/isnanf (configure.ac): ... to here.
47941         * modules/isnanf-nolibm (configure.ac): ... and here.
47943 2011-05-20  Bruno Haible  <bruno@clisp.org>
47945         isnan*: Separate the AC_LIBOBJ invocations.
47946         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
47947         AC_LIBOBJ invocation.
47948         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
47949         here.
47950         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
47951         AC_LIBOBJ invocation.
47952         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
47953         here.
47954         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
47955         AC_LIBOBJ invocation.
47956         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
47957         here.
47958         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
47960 2011-05-08  Bruno Haible  <bruno@clisp.org>
47962         isinf: Move AC_LIBOBJ invocations to module description.
47963         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
47964         * modules/isinf (configure.ac): ... to here.
47966 2011-05-08  Bruno Haible  <bruno@clisp.org>
47968         isfinite: Move AC_LIBOBJ invocations to module description.
47969         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
47970         * modules/isfinite (configure.ac): ... to here.
47972 2011-05-08  Bruno Haible  <bruno@clisp.org>
47974         isblank: Move AC_LIBOBJ invocations to module description.
47975         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
47976         here...
47977         * modules/isblank (configure.ac): ... to here.
47979 2011-05-08  Bruno Haible  <bruno@clisp.org>
47981         isapipe: Move AC_LIBOBJ invocations to module description.
47982         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
47983         gl_PREREQ_ISAPIPE invocations from here...
47984         * modules/isapipe (configure.ac): ... to here.
47985         (Depends-on): Update condition.
47987 2011-05-08  Bruno Haible  <bruno@clisp.org>
47989         ioctl: Move AC_LIBOBJ invocations to module description.
47990         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
47991         invocations from here...
47992         * modules/ioctl (configure.ac): ... to here.
47993         (Depends-on): Update condition.
47995 2011-05-08  Bruno Haible  <bruno@clisp.org>
47997         imaxdiv: Move AC_LIBOBJ invocations to module description.
47998         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
47999         invocations from here...
48000         * modules/imaxdiv (configure.ac): ... to here.
48002 2011-05-08  Bruno Haible  <bruno@clisp.org>
48004         imaxabs: Move AC_LIBOBJ invocations to module description.
48005         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
48006         invocations from here...
48007         * modules/imaxabs (configure.ac): ... to here.
48009 2011-05-08  Bruno Haible  <bruno@clisp.org>
48011         getaddrinfo: Move AC_LIBOBJ invocations to module description.
48012         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
48013         AC_LIBOBJ invocations from here...
48014         * modules/getaddrinfo (configure.ac): ... to here.
48015         (Depends-on): Add conditions.
48017 2011-05-08  Bruno Haible  <bruno@clisp.org>
48019         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
48020         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
48021         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
48022         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
48023         (gl_PREREQ_INET_PTON): ... from here.
48024         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
48025         gl_PREREQ_INET_PTON here.
48026         (Depends-on): Update condition.
48028 2011-05-08  Bruno Haible  <bruno@clisp.org>
48030         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
48031         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
48032         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
48033         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
48034         (gl_PREREQ_INET_NTOP): ... from here.
48035         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
48036         gl_PREREQ_INET_NTOP here.
48037         (Depends-on): Update condition.
48039 2011-05-08  Bruno Haible  <bruno@clisp.org>
48041         iconv_open: Move AC_LIBOBJ invocations to module description.
48042         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
48043         AC_LIBOBJ invocations from here...
48044         * modules/iconv_open (configure.ac): ... to here.
48046 2011-05-08  Bruno Haible  <bruno@clisp.org>
48048         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
48049         If module 'iconv_open' is among the main modules and module
48050         'iconv_open-utf' is among the tests dependencies, then
48051         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
48052         return the special iconv_t values. Therefore iconv() and iconv_close()
48053         must support these special iconv_t values, already in lib, not only in
48054         tests.
48055         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
48056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
48057         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
48058         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
48059         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
48060         (Depends-on): Add the dependencies of iconv_open-utf.
48061         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
48062         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
48063         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
48065 2011-05-08  Bruno Haible  <bruno@clisp.org>
48067         group-member: Move AC_LIBOBJ invocations to module description.
48068         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
48069         gl_PREREQ_GROUP_MEMBER invocations from here...
48070         * modules/group-member (configure.ac): ... to here.
48072 2011-05-08  Bruno Haible  <bruno@clisp.org>
48074         grantpt: Move AC_LIBOBJ invocations to module description.
48075         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
48076         invocations from here...
48077         * modules/grantpt (configure.ac): ... to here.
48079 2011-05-08  Bruno Haible  <bruno@clisp.org>
48081         glob: Move AC_LIBOBJ invocations to module description.
48082         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
48083         from here...
48084         * modules/glob (configure.ac): ... to here.
48086 2011-05-08  Bruno Haible  <bruno@clisp.org>
48088         getusershell: Move AC_LIBOBJ invocations to module description.
48089         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
48090         Move AC_LIBOBJ invocation from here...
48091         * modules/getusershell (configure.ac): ... to here.
48092         (Depends-on): Update condition.
48094 2011-05-08  Bruno Haible  <bruno@clisp.org>
48096         gettimeofday: Move AC_LIBOBJ invocations to module description.
48097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
48098         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
48099         gl_PREREQ_GETTIMEOFDAY invocations from here...
48100         * modules/gettimeofday (configure.ac): ... to here.
48102 2011-05-08  Bruno Haible  <bruno@clisp.org>
48104         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
48105         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
48106         just gl_FUNC_TZSET.
48107         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
48108         (gl_FUNC_TZSET_CLOBBER): Remove actions.
48109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
48110         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
48112 2011-05-08  Bruno Haible  <bruno@clisp.org>
48114         getsubopt: Move AC_LIBOBJ invocations to module description.
48115         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
48116         gl_PREREQ_GETSUBOPT invocations from here...
48117         * modules/getsubopt (configure.ac): ... to here.
48119 2011-05-08  Bruno Haible  <bruno@clisp.org>
48121         getpass-gnu: Move AC_LIBOBJ invocations to module description.
48122         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
48123         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
48124         * modules/getpass-gnu (configure.ac): ... to here.
48126 2011-05-08  Bruno Haible  <bruno@clisp.org>
48128         getpass: Move AC_LIBOBJ invocations to module description.
48129         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
48130         gl_PREREQ_GETPASS invocations from here...
48131         * modules/getpass (configure.ac): ... to here.
48133 2011-05-08  Bruno Haible  <bruno@clisp.org>
48135         getpagesize: Move AC_LIBOBJ invocations to module description.
48136         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
48137         from here...
48138         * modules/getpagesize (configure.ac): ... to here.
48140 2011-05-08  Bruno Haible  <bruno@clisp.org>
48142         getopt: Move AC_LIBOBJ invocations to module description.
48143         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
48144         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
48145         invocations from here...
48146         * modules/getopt-gnu (configure.ac): ... to here.
48147         * modules/getopt-posix (configure.ac): ... and here.
48148         (Depends-on): Update condition.
48150 2011-05-08  Bruno Haible  <bruno@clisp.org>
48152         getopt, argp: Respect rules for use of AC_LIBOBJ.
48153         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
48154         (gl_REPLACE_GETOPT_ALWAYS): New macro.
48155         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
48156         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
48158 2011-05-08  Bruno Haible  <bruno@clisp.org>
48160         getlogin_r: Move AC_LIBOBJ invocations to module description.
48161         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
48162         gl_PREREQ_GETLOGIN_R invocations from here...
48163         * modules/getlogin_r (configure.ac): ... to here.
48165 2011-05-08  Bruno Haible  <bruno@clisp.org>
48167         getlogin: Move AC_LIBOBJ invocations to module description.
48168         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
48169         here...
48170         * modules/getlogin (configure.ac): ... to here.
48172 2011-05-08  Bruno Haible  <bruno@clisp.org>
48174         getloadavg: Move AC_LIBOBJ invocations to module description.
48175         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
48176         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
48177         * modules/getloadavg (configure.ac): ... to here.
48179 2011-05-08  Bruno Haible  <bruno@clisp.org>
48181         gethrxtime: Move AC_LIBOBJ invocations to module description.
48182         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
48183         LIB_GETHRXTIME from here...
48184         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
48185         invocations from here...
48186         * modules/gethrxtime (configure.ac): ... to here.
48188 2011-05-08  Bruno Haible  <bruno@clisp.org>
48190         gethostname: Move AC_LIBOBJ invocations to module description.
48191         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
48192         gl_PREREQ_GETHOSTNAME invocations from here...
48193         * modules/gethostname (configure.ac): ... to here.
48195 2011-05-08  Bruno Haible  <bruno@clisp.org>
48197         getgroups: Move AC_LIBOBJ invocations to module description.
48198         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
48199         here...
48200         * modules/getgroups (configure.ac): ... to here.
48202 2011-05-08  Bruno Haible  <bruno@clisp.org>
48204         getdtablesize: Move AC_LIBOBJ invocations to module description.
48205         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
48206         invocation from here...
48207         * modules/getdtablesize (configure.ac): ... to here.
48209 2011-05-08  Bruno Haible  <bruno@clisp.org>
48211         getdomainname: Move AC_LIBOBJ invocations to module description.
48212         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
48213         gl_PREREQ_GETDOMAINNAME invocations from here...
48214         * modules/getdomainname (configure.ac): ... to here.
48216 2011-05-08  Bruno Haible  <bruno@clisp.org>
48218         getline: Move AC_LIBOBJ invocations to module description.
48219         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
48220         invocations from here...
48221         * modules/getline (configure.ac): ... to here.
48223 2011-05-08  Bruno Haible  <bruno@clisp.org>
48225         getline: Simplify.
48226         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
48227         It's already handled through the module dependency.
48229 2011-05-08  Bruno Haible  <bruno@clisp.org>
48231         getdelim: Move AC_LIBOBJ invocations to module description.
48232         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
48233         and gl_PREREQ_GETDELIM invocations from here...
48234         * modules/getdelim (configure.ac): ... to here.
48235         (Depends-on): Fix condition.
48237 2011-05-08  Bruno Haible  <bruno@clisp.org>
48239         getcwd: Move AC_LIBOBJ invocations to module description.
48240         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
48241         invocations from here...
48242         * modules/getcwd (configure.ac): ... to here.
48244 2011-05-08  Bruno Haible  <bruno@clisp.org>
48246         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
48247         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
48248         here...
48249         * modules/getcwd-lgpl (configure.ac): ... to here.
48251 2011-05-07  Bruno Haible  <bruno@clisp.org>
48253         crypto/gc: Move AC_LIBOBJ invocations to module description.
48254         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
48255         * modules/crypto/gc (configure.ac): ... to here.
48257 2011-05-07  Bruno Haible  <bruno@clisp.org>
48259         fwriting: Move AC_LIBOBJ invocations to module description.
48260         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
48261         here...
48262         * modules/fwriting (configure.ac): ... to here.
48264 2011-05-07  Bruno Haible  <bruno@clisp.org>
48266         fwritable: Move AC_LIBOBJ invocations to module description.
48267         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
48268         here...
48269         * modules/fwritable (configure.ac): ... to here.
48271 2011-05-07  Bruno Haible  <bruno@clisp.org>
48273         futimens: Move AC_LIBOBJ invocations to module description.
48274         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
48275         here...
48276         * modules/futimens (configure.ac): ... to here.
48278 2011-05-07  Bruno Haible  <bruno@clisp.org>
48280         ftruncate: Move AC_LIBOBJ invocations to module description.
48281         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
48282         gl_PREREQ_FTRUNCATE invocations from here...
48283         * modules/ftruncate (configure.ac): ... to here.
48285 2011-05-07  Bruno Haible  <bruno@clisp.org>
48287         fsync: Move AC_LIBOBJ invocations to module description.
48288         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
48289         invocations from here...
48290         * modules/fsync (configure.ac): ... to here.
48292 2011-05-07  Bruno Haible  <bruno@clisp.org>
48294         fsusage: Move AC_LIBOBJ invocations to module description.
48295         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
48296         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
48297         * modules/fsusage (configure.ac): ... to here.
48299 2011-05-07  Bruno Haible  <bruno@clisp.org>
48301         freopen: Move AC_LIBOBJ invocations to module description.
48302         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
48303         invocations from here...
48304         * modules/freopen (configure.ac): ... to here.
48306 2011-05-07  Bruno Haible  <bruno@clisp.org>
48308         free: Move AC_LIBOBJ invocations to module description.
48309         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
48310         invocations from here...
48311         * modules/free (configure.ac): ... to here.
48313 2011-05-07  Bruno Haible  <bruno@clisp.org>
48315         freadable: Move AC_LIBOBJ invocations to module description.
48316         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
48317         here...
48318         * modules/freadable (configure.ac): ... to here.
48320 2011-05-07  Bruno Haible  <bruno@clisp.org>
48322         fpurge: Move AC_LIBOBJ invocations to module description.
48323         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
48324         invocations from here...
48325         * modules/fpurge (configure.ac): ... to here.
48327 2011-05-07  Bruno Haible  <bruno@clisp.org>
48329         fpending: Move AC_LIBOBJ invocations to module description.
48330         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
48331         gl_FUNC_FPENDING.
48332         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
48333         invocations from here...
48334         * modules/fpending (configure.ac): ... to here.
48336 2011-05-07  Bruno Haible  <bruno@clisp.org>
48338         fopen: Move AC_LIBOBJ invocations to module description.
48339         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
48340         invocations from here...
48341         * modules/fopen (configure.ac): ... to here.
48343 2011-05-07  Bruno Haible  <bruno@clisp.org>
48345         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
48346         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
48347         gl_FUNC_FNMATCH_POSIX.
48348         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
48349         invocations from here...
48350         * modules/fnmatch (configure.ac): ... to here.
48351         * modules/fnmatch-gnu (configure.ac): ... and here.
48353 2011-05-07  Bruno Haible  <bruno@clisp.org>
48355         flock: Move AC_LIBOBJ invocations to module description.
48356         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
48357         invocations from here...
48358         * modules/flock (configure.ac): ... to here.
48360 2011-05-07  Bruno Haible  <bruno@clisp.org>
48362         fileblocks: Move AC_LIBOBJ invocations to module description.
48363         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
48364         gl_PREREQ_FILEBLOCKS invocations from here...
48365         * modules/fileblocks (configure.ac): ... to here.
48367 2011-05-06  Bruno Haible  <bruno@clisp.org>
48369         fflush: Move AC_LIBOBJ invocations to module description.
48370         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
48371         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
48372         invocations from here...
48373         * modules/fflush (configure.ac): ... to here.
48375 2011-05-06  Bruno Haible  <bruno@clisp.org>
48377         fdopendir: Move AC_LIBOBJ invocations to module description.
48378         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
48379         here...
48380         * modules/fdopendir (configure.ac): ... to here.
48381         (Depends-on): Improve conditions.
48383 2011-05-06  Bruno Haible  <bruno@clisp.org>
48385         _Exit: Move AC_LIBOBJ invocations to module description.
48386         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
48387         invocations from here...
48388         * modules/_Exit (configure.ac): ... to here.
48390 2011-05-21  Bruno Haible  <bruno@clisp.org>
48392         euidaccess: Respect rules for use of AC_LIBOBJ.
48393         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
48394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
48395         from here...
48396         * modules/euidaccess (configure.ac): ... to here.
48398 2011-05-06  Bruno Haible  <bruno@clisp.org>
48400         error: Move AC_LIBOBJ invocations to module description.
48401         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
48402         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
48403         invocations from here...
48404         * modules/error (configure.ac): ... to here.
48406 2011-05-06  Bruno Haible  <bruno@clisp.org>
48408         duplocale: Move AC_LIBOBJ invocations to module description.
48409         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
48410         gl_PREREQ_DUPLOCALE invocations from here...
48411         * modules/duplocale (configure.ac): ... to here.
48413 2011-05-05  Bruno Haible  <bruno@clisp.org>
48415         dirfd: Move AC_LIBOBJ invocations to module description.
48416         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
48417         gl_FUNC_DIRFD.
48418         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
48419         here...
48420         * modules/dirfd (configure.ac): ... to here.
48421         (Depends-on): Fix condition.
48423 2011-05-05  Bruno Haible  <bruno@clisp.org>
48425         chown: Respect rules for use of AC_LIBOBJ.
48426         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
48427         * modules/chown (configure.ac): ... to here.
48429 2011-05-05  Bruno Haible  <bruno@clisp.org>
48431         chdir-long: Move AC_LIBOBJ invocations to module description.
48432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
48433         gl_PREREQ_CHDIR_LONG invocations from here...
48434         * modules/chdir-long (configure.ac): ... to here.
48436 2011-05-05  Bruno Haible  <bruno@clisp.org>
48438         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
48439         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
48440         from here...
48441         * modules/canonicalize-lgpl (configure.ac): ... to here.
48443 2011-05-05  Bruno Haible  <bruno@clisp.org>
48445         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
48446         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
48447         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
48448         REPLACE_CALLOC.
48449         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
48450         * modules/calloc-gnu (configure.ac): Likewise.
48452 2011-05-05  Bruno Haible  <bruno@clisp.org>
48454         btowc: Move AC_LIBOBJ invocations to module description.
48455         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
48456         invocations from here...
48457         * modules/btowc (configure.ac): ... to here.
48459 2011-05-21  Bruno Haible  <bruno@clisp.org>
48461         atexit: Move AC_LIBOBJ invocations to module description.
48462         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
48463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
48464         here...
48465         * modules/atexit (configure.ac): ... to here.
48467 2011-05-05  Bruno Haible  <bruno@clisp.org>
48469         atoll: Move AC_LIBOBJ invocations to module description.
48470         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
48471         invocations from here...
48472         * modules/atoll (configure.ac): ... to here.
48474 2011-05-05  Bruno Haible  <bruno@clisp.org>
48476         argz: Move AC_LIBOBJ invocations to module description.
48477         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
48478         * modules/argz (configure.ac): ... to here.
48480 2011-05-05  Bruno Haible  <bruno@clisp.org>
48482         alphasort: Move AC_LIBOBJ invocations to module description.
48483         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
48484         gl_PREREQ_ALPHASORT invocations from here...
48485         * modules/alphasort (configure.ac): ... to here.
48487 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48489         verify: new macro verify_expr; verify_true deprecated
48490         * NEWS: Mention this.
48491         * doc/verify.texi (Compile-time Assertions): Document this.
48492         * lib/verify.h (verify_true): Deprecate.
48493         (verify_expr): New macro.
48494         * tests/test-verify.c (function): Test verify_expr.
48496 2011-06-14  Jim Meyering  <meyering@redhat.com>
48498         init.sh: give more portable redirection-related advice in a comment
48499         * tests/init.sh (stderr_fileno_): Update the advice in comments.
48500         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
48501         for lots of discussion.  Stefano Lattarini suggested the solution
48502         of putting "9>&2" after the command.  Reported by Bruno Haible.
48504 2011-06-13  Bruno Haible  <bruno@clisp.org>
48506         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
48507         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
48508         'none'.
48510 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
48512         ftoastr: use strtof only if HAVE_STRTOF
48513         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
48514         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
48515         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
48516         * modules/ftoastr (configure.ac): Check for strtof.
48518 2011-06-13  Bruno Haible  <bruno@clisp.org>
48520         gnulib-tool: Addendum to 2011-06-08 commit.
48521         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
48522         and --witness-c-macro have been given, augment AM_CPPFLAGS.
48524 2011-06-13  Bruno Haible  <bruno@clisp.org>
48526         fseeko: Provide a non-inline replacement of fseek().
48527         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
48528         * modules/fseeko (Depends-on): Add fseek.
48529         * modules/fseek (License): Change to LGPLv2+.
48531 2011-06-13  Bruno Haible  <bruno@clisp.org>
48533         ftello: Provide a non-inline replacement of ftell().
48534         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
48535         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
48536         not have ftello() (such as on mingw).
48537         * modules/ftello (Depends-on): Add ftell.
48538         * modules/ftell (License): Change to LGPLv2+.
48540 2011-05-07  Bruno Haible  <bruno@clisp.org>
48542         ftell: Move AC_LIBOBJ invocations to module description.
48543         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
48544         * modules/ftell (configure.ac): ... to here.
48546 2011-05-07  Bruno Haible  <bruno@clisp.org>
48548         ftello: Respect rules for use of AC_LIBOBJ.
48549         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
48550         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
48551         here...
48552         * modules/ftello (configure.ac): ... to here.
48554 2011-05-07  Bruno Haible  <bruno@clisp.org>
48556         fseeko: Simplify.
48557         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
48558         (gl_FUNC_FSEEKO): Inline it here.
48560 2011-05-07  Bruno Haible  <bruno@clisp.org>
48562         fseek: Move AC_LIBOBJ invocations to module description.
48563         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
48564         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
48565         * modules/fseek (configure.ac): ... to here.
48567 2011-05-07  Bruno Haible  <bruno@clisp.org>
48569         fseek: Respect rules for use of AC_LIBOBJ.
48570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
48571         here...
48572         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
48574 2011-05-07  Bruno Haible  <bruno@clisp.org>
48576         fseeko: Respect rules for use of AC_LIBOBJ.
48577         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
48578         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
48579         here...
48580         * modules/fseeko (configure.ac): ... to here.
48582 2011-06-13  Bruno Haible  <bruno@clisp.org>
48584         gnulib-tool: Allow comments in the 'Depends-on' section.
48585         * doc/gnulib.texi (Module description): Mention comment syntax in the
48586         Depends-on section.
48587         * gnulib-tool (func_get_dependencies): Filter out comment lines.
48589 2011-06-13  Bruno Haible  <bruno@clisp.org>
48591         file-set.h: guard __attibute__ use, now that it's not always defined
48592         * lib/file-set.h (record_file): Use __attribute__ only with compiler
48593         versions that support it.  This fixes a coreutils build failure with
48594         the vendor cc on HP-UX 11.31.
48596 2011-06-12  Bruno Haible  <bruno@clisp.org>
48598         acl: Add support for HP-UX >= 11.11 JFS ACLs.
48599         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
48600         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
48601         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
48602         (acl, aclsort): New declarations.
48603         (aclv_nontrivial): New declaration.
48604         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
48605         (file_has_acl): Read also the second kind of HP-UX ACLs.
48606         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
48607         kind of HP-UX ACLs if the first kind fails.
48608         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
48609         second kind of HP-UX ACLs.
48610         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
48611         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
48612         agree.
48613         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
48614         hpuxjfs.
48615         Handle hpuxjfs.
48616         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
48617         hpuxjfs.
48618         Handle hpuxjfs.
48619         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
48620         (func_test_same_acls): Use both lsacl and getacl.
48621         Handle hpuxjfs.
48622         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
48623         (func_test_same_acls): Use both lsacl and getacl.
48624         Handle hpuxjfs.
48626 2011-06-12  Bruno Haible  <bruno@clisp.org>
48628         acl: Complete the 2010-08-10 fix.
48629         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
48630         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
48631         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
48632         explicitly.
48633         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
48634         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
48636 2011-06-12  Bruno Haible  <bruno@clisp.org>
48638         spawn-pipe tests: Comments.
48639         * tests/test-spawn-pipe-child.c (main): Update comment.
48640         Reported by James Youngman <jay@gnu.org>.
48642 2011-06-11  James Youngman  <jay@gnu.org>
48644         New module 'stat-size'.
48645         * modules/stat-size: New module.  Provides macros for accessing
48646         file size information in instances of struct stat.  Depends on the
48647         fileblocks module because it calls st_blocks.
48648         * lib/stat-size.h: New file, adapted from coreutils' system.h.
48649         * doc/gnulib.texi: Include stat-size.texi.
48650         * doc/stat-size.texi: Documentation for this module.
48651         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
48652         * m4/fileblocks.m4: Mention that stat-size depends on the call to
48653         AC_STRUCT_ST_BLOCKS.
48655 2011-06-09  Bruno Haible  <bruno@clisp.org>
48657         thread: Support pthreads-win32.
48658         * lib/glthread/thread.h (gl_thread_self): Define differently on
48659         pthreads-win32.
48660         (gl_null_thread): New declaration.
48661         (gl_thread_self_pointer): New macro.
48662         * lib/glthread/thread.c (gl_null_thread): New constant.
48663         * tests/test-lock.c: Use gl_thread_self_pointer instead of
48664         gl_thread_self.
48665         * tests/test-tls.c: Likewise.
48666         Suggested by Paul Eggert. Reported by Eric Blake.
48668 2011-06-09  Bruno Haible  <bruno@clisp.org>
48670         thread: Fix confusion between NULL and 0.
48671         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
48672         Reported by Paul Eggert.
48674 2011-06-09  Bruno Haible  <bruno@clisp.org>
48676         spawn-pipe tests: Avoid test failure on HP-UX 11.
48677         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
48678         is closed.
48680 2011-06-09  Bruno Haible  <bruno@clisp.org>
48682         acl tests: Fix compilation error on HP-UX 11.
48683         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
48685 2011-06-09  Bruno Haible  <bruno@clisp.org>
48687         rmdir: Avoid test failure on HP-UX 10.20.
48688         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
48689         EEXIST.
48691 2011-06-08  Eric Blake  <eblake@redhat.com>
48693         perror: fix test on mingw
48694         * modules/perror-tests (Depends-on): Add dup2.
48696         strerror_r-posix: fix on MacOS
48697         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
48698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
48699         logic bug.
48700         * lib/strerror_r.c (strerror_r): Fix the bug.
48701         * lib/strerror.c (strerror): Likewise.
48702         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
48703         problem.
48704         * doc/posix-functions/strerror.texi (strerror): Likewise.
48705         * doc/posix-functions/perror.texi (perror): Likewise.
48706         * tests/test-strerror.c (main): Enhance test.
48707         * tests/test-strerror_r.c (main): Likewise.
48709 2011-06-08  Bruno Haible  <bruno@clisp.org>
48711         gnulib-tool: Better isolation between different gnulib-tool invocations.
48712         * gnulib-tool: New option --witness-c-macro.
48713         (witness_c_macro): New variable.
48714         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
48715         AM_CPPFLAGS define it as a C macro.
48716         (func_emit_tests_Makefile_am): Likewise.
48717         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
48718         read it from there.
48719         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
48720         m4_define, not AC_DEFUN.
48721         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
48722         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
48723         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
48724         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
48725         s|...|...|, to substitute the values of the GNULIB_* module indicator
48726         variables.
48727         * modules/dirent (Makefile.am): Likewise.
48728         * modules/fcntl-h (Makefile.am): Likewise.
48729         * modules/iconv-h (Makefile.am): Likewise.
48730         * modules/langinfo (Makefile.am): Likewise.
48731         * modules/locale (Makefile.am): Likewise.
48732         * modules/math (Makefile.am): Likewise.
48733         * modules/netdb (Makefile.am): Likewise.
48734         * modules/poll-h (Makefile.am): Likewise.
48735         * modules/pty (Makefile.am): Likewise.
48736         * modules/search (Makefile.am): Likewise.
48737         * modules/signal (Makefile.am): Likewise.
48738         * modules/spawn (Makefile.am): Likewise.
48739         * modules/stdio (Makefile.am): Likewise.
48740         * modules/stdlib (Makefile.am): Likewise.
48741         * modules/string (Makefile.am): Likewise.
48742         * modules/sys_ioctl (Makefile.am): Likewise.
48743         * modules/sys_select (Makefile.am): Likewise.
48744         * modules/sys_socket (Makefile.am): Likewise.
48745         * modules/sys_stat (Makefile.am): Likewise.
48746         * modules/sys_times (Makefile.am): Likewise.
48747         * modules/sys_utsname (Makefile.am): Likewise.
48748         * modules/sys_wait (Makefile.am): Likewise.
48749         * modules/termios (Makefile.am): Likewise.
48750         * modules/time (Makefile.am): Likewise.
48751         * modules/unistd (Makefile.am): Likewise.
48752         * modules/wchar (Makefile.am): Likewise.
48754 2011-06-08  Eric Blake  <eblake@redhat.com>
48756         strerror: simplify replacement
48757         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
48758         * modules/strerror (configure.ac): No prereqs needed here...
48759         * modules/strerror-override (configure.ac): ...but this needs it.
48760         (Files): Add file for needed prereq macro.
48762 2011-06-08  Bruno Haible  <bruno@clisp.org>
48764         strerror_r-posix: Tweaks.
48765         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
48766         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
48767         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
48768         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
48769         (gl_FUNC_STRERROR_R): ... to here.
48770         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
48772 2011-06-07  Eric Blake  <eblake@redhat.com>
48774         perror: document fixed bugs
48775         * doc/posix-functions/perror.texi (perror): Document recent
48776         patches.
48778 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
48780         stat-time: get_stat_birthtime failure is better-defined
48781         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
48782         return a timestamp whose tv_sec and tv_nsec values are both -1.
48783         Previously, the spec said only that the tv_nsec value was negative.
48784         This upward-compatible change simplifies GNU tar a bit.
48786 2011-06-07  Eric Blake  <eblake@redhat.com>
48788         strerror_r-posix: work around cygwin 1.7.9
48789         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
48790         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
48791         bug without replacing strerror_r.
48792         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
48793         strerror_r is buggy, but without requiring strerror_r compilation.
48794         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
48796         test-perror: relax test to ignore cygwin bug
48797         * tests/test-perror2.c (main): Relax test on requiring detection
48798         of stream errors, and use unbuffered stream.
48799         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
48800         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
48801         * doc/posix-functions/fputc.texi (fputc): Likewise.
48802         * doc/posix-functions/fputs.texi (fputs): Likewise.
48803         * doc/posix-functions/fputws.texi (fputws): Likewise.
48804         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
48805         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
48806         * doc/posix-functions/getopt.texi (getopt): Likewise.
48807         * doc/posix-functions/perror.texi (perror): Likewise.
48808         * doc/posix-functions/printf.texi (printf): Likewise.
48809         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
48810         * doc/posix-functions/psignal.texi (psignal): Likewise.
48811         * doc/posix-functions/putc.texi (putc): Likewise.
48812         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
48813         Likewise.
48814         * doc/posix-functions/putchar.texi (putchar): Likewise.
48815         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
48816         Likewise.
48817         * doc/posix-functions/puts.texi (puts): Likewise.
48818         * doc/posix-functions/putwc.texi (putwc): Likewise.
48819         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48820         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48821         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48822         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
48823         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48824         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48825         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
48826         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
48828 2011-05-22  Bruno Haible  <bruno@clisp.org>
48830         strerror: Move AC_LIBOBJ invocations to module description.
48831         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
48832         gl_PREREQ_STRERROR invocations from here...
48833         * modules/strerror (configure.ac): ... to here.
48835 2011-05-21  Bruno Haible  <bruno@clisp.org>
48837         perror: Use common idiom.
48838         * modules/perror (configure.ac): Reorder statements.
48840 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
48842         tests: fix usage message in 'mktempd_'
48843         * tests/init.sh (mktempd_): In the usage message, use literal
48844         'mktempd_', not '$ME' (which is even undefined), as the name of
48845         the subroutine.
48847 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
48849         tests init: new function 'fatal_', for hard errors
48850         Before this patch, the only way offered by tests/init.sh to
48851         properly signal a hard error was the `framework_failure_'
48852         function.  But the error message issued by that function,
48853         as its name would suggest, refers to a set-up failure in the
48854         testsuite, while hard errors can obviously also be due to
48855         other reasons.  The best way to fix this inconsistency is to
48856         introduce a new function with a more general error message.
48857         * tests/init.sh (fatal_): New function.
48859 2011-06-06  Eric Blake  <eblake@redhat.com>
48861         canonicalize-lgpl: use common idiom
48862         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
48863         over newer POSIX -Rf.
48864         Reported by Bruno Haible.
48866         canonicalize-lgpl: work around AIX realpath bug
48867         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
48868         * doc/posix-functions/realpath.texi (realpath): Document it.
48869         Reported by Bruno Haible.
48871         strerror: work around FreeBSD bug
48872         * lib/strerror.c (strerror): Special case 0.
48873         Reported by Bruno Haible.
48875         strerror-override: avoid bloating errno module
48876         * modules/errno (Files, configure.ac): Move replacement strings...
48877         * modules/strerror-override: ...to new module.
48878         * modules/strerror (Depends-on): Add strerror-override.
48879         * modules/strerror_r-posix (Depends-on): Likewise.
48880         * MODULES.html.sh: Document new module.
48881         Reported by Bruno Haible.
48883 2011-06-06  Bruno Haible  <bruno@clisp.org>
48885         spawn-pipe tests: Rename program.
48886         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
48887         * tests/test-spawn-pipe-child.c: Update comment.
48888         * tests/test-spawn-pipe.sh: Update.
48889         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
48891         spawn-pipe tests: Link the child program only against libc.
48892         * tests/test-spawn-pipe-child.c: New file, extracted from
48893         tests/test-spawn-pipe.c.
48894         (main): Expect only one argument.
48895         (is_open): New function, copied from tests/test-pipe.c.
48896         * tests/test-spawn-pipe.c: Don't include <errno.h>.
48897         (child_main): Remove function.
48898         (test_pipe): Pass only one argument to the child program.
48899         (main): Remove child process code. Expect the child program's name as
48900         first argument.
48901         * tests/test-spawn-pipe.sh: Pass the child program's name as first
48902         argument.
48903         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
48904         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
48905         test-spawn-pipe-child against no libraries.
48907 2011-06-06  Bruno Haible  <bruno@clisp.org>
48909         careadlinkat: Avoid mismatch between ssize_t and int.
48910         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
48911         * lib/careadlinkat.c (careadlinkatcwd): Define always.
48913 2011-06-06  Jim Meyering  <meyering@redhat.com>
48915         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
48916         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
48917         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
48919 2011-06-05  Bruno Haible  <bruno@clisp.org>
48921         ansi-c++-opt: Interoperability with libtool.
48922         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
48923         set the variable to "no", not to ":".
48924         * NEWS: Mention the change.
48926 2011-06-05  Bruno Haible  <bruno@clisp.org>
48928         acl: Fix test failure on AIX 7.
48929         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
48930         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
48932 2011-06-05  Bruno Haible  <bruno@clisp.org>
48934         pipe-filter-ii: Fix test failure on AIX and IRIX.
48935         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
48936         with EAGAIN, retry with a smaller buffer size.
48938 2011-06-05  Bruno Haible  <bruno@clisp.org>
48940         localename: Fix link dependencies.
48941         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
48942         * modules/localename-tests (Makefile.am): Link test-localename with
48943         $(LIBTHREAD).
48945 2011-06-05  Bruno Haible  <bruno@clisp.org>
48947         error: Avoid gcc warning.
48948         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
48950 2011-06-05  Bruno Haible  <bruno@clisp.org>
48952         unsetenv: Avoid gcc warning.
48953         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
48955 2011-06-05  Bruno Haible  <bruno@clisp.org>
48957         setenv: Avoid gcc warning.
48958         * lib/setenv.c (setenv): Provide declaration if system lacks it.
48960 2011-06-05  Bruno Haible  <bruno@clisp.org>
48962         sys_select: Ensure memset is declared also on AIX 7.
48963         * lib/sys_select.in.h: Include <string.h> also on AIX.
48964         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
48965         self-contained also on AIX 7.1.
48967 2011-06-04  Jim Meyering  <meyering@redhat.com>
48969         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
48970         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
48971         function name, "error".
48972         (_gl_translatable_diag_func_re): New configurable variable.
48974 2011-06-04  Bruno Haible  <bruno@clisp.org>
48976         getopt: Avoid gcc warning.
48977         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
48979 2011-06-04  Bruno Haible  <bruno@clisp.org>
48981         strerror_r: Fix comments.
48982         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
48983         commit.
48985 2011-06-04  Bruno Haible  <bruno@clisp.org>
48987         perror: Fix compilation error.
48988         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
48989         Undefine fprintf, not sprintf.
48990         * modules/perror (Depends-on): Remove intprops, verify.
48992 2011-06-04  Bruno Haible  <bruno@clisp.org>
48994         setlocale: Enable replacement on Cygwin 1.5.
48995         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
48996         Cygwin 1.5.x.
48997         * doc/posix-functions/setlocale.texi: Mention that the problem with the
48998         LC_CTYPE category also exists on Cygwin 1.5.x.
49000 2011-06-04  Bruno Haible  <bruno@clisp.org>
49002         strerror-override: Don't disable symbol renamings.
49003         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
49004         * lib/strerror-override.c: Include config.h.
49005         (strerror_override): Don't undefine.
49007 2011-06-03  Bruno Haible  <bruno@clisp.org>
49009         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
49010         * lib/localename.h: Update copyright header.
49011         * lib/localename.c: Likewise.
49012         * lib/relocatable.h: Likewise.
49013         * lib/relocatable.c: Likewise.
49015 2011-06-02  Bruno Haible  <bruno@clisp.org>
49017         doc: Fix a module name.
49018         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
49020 2011-06-02  Bruno Haible  <bruno@clisp.org>
49022         pipe2: Remove dependency on 'nonblocking' module.
49023         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
49024         O_NONBLOCK is defined by gnulib.
49025         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
49026         is zero.
49027         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
49028         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
49029         defined by gnulib.
49030         (get_nonblocking_flag): New function.
49031         (main): Test O_NONBLOCK flag only if it is nonzero.
49032         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
49034 2011-06-03  Jim Meyering  <meyering@redhat.com>
49036         maint: three new prohibit-header-without-use rules
49037         Prohibit use of cloexec.h, posixver.h, same.h without use.
49038         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
49039         (sc_prohibit_posixver_without_use): Likewise.
49040         (sc_prohibit_same_without_use): Likewise.
49042 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49044         allocator: 'die' routine is now given requested size
49045         * lib/allocator.h (struct allocator.die): New size arg.
49046         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
49047         If the actual problem is an ssize_t limitation, not a size_t or
49048         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
49050 2011-06-01  Eric Blake  <eblake@redhat.com>
49052         strerror: drop strerror_r dependency
49053         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
49054         * lib/strerror-override.c (strerror_override): ...to new file.
49055         * lib/strerror-override.h: Add prototype.
49056         * lib/strerror-impl.h: Delete.
49057         * lib/strerror.c (strerror): New implementation.
49058         * modules/errno (Files): Add new files.
49059         (configure.ac): Compile new file as appropriate.
49060         * modules/strerror (Files): Drop unused file.
49061         (Depends-on): Drop strerror_r-posix.
49062         * MODULES.html.sh: Document strerror_r-posix.
49063         Requested by Sam Steingold.
49065         perror: call strerror_r directly
49066         * modules/perror (Files): Drop strerror-impl.h.
49067         * lib/perror.c (perror): Use our own stack buffer, rather than
49068         calling a wrapper that uses static storage.
49069         * doc/posix-functions/perror.texi (perror): Document a limitation
49070         of our replacement.
49072         strerror_r: fix includes for FreeBSD
49073         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
49074         since we use abort on some platforms.
49075         Reported by Matthias Bolte.
49077 2011-05-31  Bruno Haible  <bruno@clisp.org>
49079         Fix link errors in tests: openat-die uses gettext-h.
49080         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
49081         against $(LIBINTL).
49082         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
49083         against $(LIBINTL).
49084         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
49085         $(LIBINTL).
49086         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
49087         against $(LIBINTL).
49088         * modules/linkat-tests (Makefile.am): Link test-linkat against
49089         $(LIBINTL).
49090         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
49091         $(LIBINTL).
49092         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
49093         against $(LIBINTL).
49094         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
49095         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
49096         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
49097         $(LIBINTL).
49098         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
49099         $(LIBINTL).
49100         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
49101         $(LIBINTL).
49102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49104 2011-05-31  Bruno Haible  <bruno@clisp.org>
49106         Fix link errors in tests: wait-process uses gettext-h.
49107         * modules/nonblocking-pipe-tests (Makefile.am): Set
49108         test_nonblocking_pipe_main_LDADD.
49109         * modules/nonblocking-socket-tests (Makefile.am): Link
49110         test-nonblocking-socket-main against $(LIBINTL).
49111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49113 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
49115         assert-h: work around 'verify' incompatibility
49116         * lib/verify.h: Use @...@ directives, not ifdef.
49117         * modules/assert-h (assert.h): Implement the directives.
49118         (assert.h): Substitute the symbol-prefix more consistently.
49120 2011-05-29  Jim Meyering  <meyering@redhat.com>
49122         trim: remove three superfluous assignments
49123         * lib/trim.c (trim2): Remove three superfluous assignments
49124         and correct brace positioning.
49126 2011-05-29  Bruno Haible  <bruno@clisp.org>
49128         wctype-h: Avoid namespace pollution on Solaris 2.6.
49129         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
49130         identifiers.
49131         * doc/posix-headers/wctype.texi: Mention the problem.
49132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49134 2011-05-28  Jim Meyering  <meyering@redhat.com>
49136         parse-datetime.y: accommodate -Wstrict-overflow
49137         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
49138         placate -Wstrict-overflow.
49140         trim: avoid a warning from -O2 -Wstrict-overflow
49141         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
49143 2011-05-29  Bruno Haible  <bruno@clisp.org>
49145         gnulib-tool: Fix bug in yesterday's commit.
49146         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
49147         twice.
49149 2011-05-29  Bruno Haible  <bruno@clisp.org>
49151         Allow multiple gnulib generated include files to be combined.
49152         * gnulib-tool (func_compute_include_guard_prefix): New function.
49153         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
49154         ${gl_include_guard_prefix} references.
49155         (func_import, func_create_testdir): Invoke
49156         func_compute_include_guard_prefix.
49157         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
49158         * lib/ctype.in.h: Likewise.
49159         * lib/dirent.in.h: Likewise.
49160         * lib/errno.in.h: Likewise.
49161         * lib/fcntl.in.h: Likewise.
49162         * lib/float.in.h: Likewise.
49163         * lib/getopt.in.h: Likewise.
49164         * lib/iconv.in.h: Likewise.
49165         * lib/langinfo.in.h: Likewise.
49166         * lib/locale.in.h: Likewise.
49167         * lib/math.in.h: Likewise.
49168         * lib/netdb.in.h: Likewise.
49169         * lib/netinet_in.in.h: Likewise.
49170         * lib/poll.in.h: Likewise.
49171         * lib/pthread.in.h: Likewise.
49172         * lib/pty.in.h: Likewise.
49173         * lib/sched.in.h: Likewise.
49174         * lib/se-selinux.in.h: Likewise.
49175         * lib/search.in.h: Likewise.
49176         * lib/signal.in.h: Likewise.
49177         * lib/spawn.in.h: Likewise.
49178         * lib/stdarg.in.h: Likewise.
49179         * lib/stddef.in.h: Likewise.
49180         * lib/stdint.in.h: Likewise.
49181         * lib/stdio.in.h: Likewise.
49182         * lib/stdlib.in.h: Likewise.
49183         * lib/string.in.h: Likewise.
49184         * lib/strings.in.h: Likewise.
49185         * lib/sys_file.in.h: Likewise.
49186         * lib/sys_ioctl.in.h: Likewise.
49187         * lib/sys_select.in.h: Likewise.
49188         * lib/sys_socket.in.h: Likewise.
49189         * lib/sys_stat.in.h: Likewise.
49190         * lib/sys_time.in.h: Likewise.
49191         * lib/sys_times.in.h: Likewise.
49192         * lib/sys_uio.in.h: Likewise.
49193         * lib/sys_utsname.in.h: Likewise.
49194         * lib/sys_wait.in.h: Likewise.
49195         * lib/sysexits.in.h: Likewise.
49196         * lib/termios.in.h: Likewise.
49197         * lib/time.in.h: Likewise.
49198         * lib/unistd.in.h: Likewise.
49199         * lib/wchar.in.h: Likewise.
49200         * lib/wctype.in.h: Likewise.
49201         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
49202         * modules/ctype (Makefile.am): Likewise.
49203         * modules/dirent (Makefile.am): Likewise.
49204         * modules/errno (Makefile.am): Likewise.
49205         * modules/fcntl-h (Makefile.am): Likewise.
49206         * modules/float (Makefile.am): Likewise.
49207         * modules/getopt-posix (Makefile.am): Likewise.
49208         * modules/iconv-h (Makefile.am): Likewise.
49209         * modules/langinfo (Makefile.am): Likewise.
49210         * modules/locale (Makefile.am): Likewise.
49211         * modules/math (Makefile.am): Likewise.
49212         * modules/netdb (Makefile.am): Likewise.
49213         * modules/netinet_in (Makefile.am): Likewise.
49214         * modules/poll-h (Makefile.am): Likewise.
49215         * modules/pthread (Makefile.am): Likewise.
49216         * modules/pty (Makefile.am): Likewise.
49217         * modules/sched (Makefile.am): Likewise.
49218         * modules/search (Makefile.am): Likewise.
49219         * modules/selinux-h (Makefile.am): Likewise.
49220         * modules/signal (Makefile.am): Likewise.
49221         * modules/spawn (Makefile.am): Likewise.
49222         * modules/stdarg (Makefile.am): Likewise.
49223         * modules/stddef (Makefile.am): Likewise.
49224         * modules/stdint (Makefile.am): Likewise.
49225         * modules/stdio (Makefile.am): Likewise.
49226         * modules/stdlib (Makefile.am): Likewise.
49227         * modules/string (Makefile.am): Likewise.
49228         * modules/strings (Makefile.am): Likewise.
49229         * modules/sys_file (Makefile.am): Likewise.
49230         * modules/sys_ioctl (Makefile.am): Likewise.
49231         * modules/sys_select (Makefile.am): Likewise.
49232         * modules/sys_socket (Makefile.am): Likewise.
49233         * modules/sys_stat (Makefile.am): Likewise.
49234         * modules/sys_time (Makefile.am): Likewise.
49235         * modules/sys_times (Makefile.am): Likewise.
49236         * modules/sys_uio (Makefile.am): Likewise.
49237         * modules/sys_utsname (Makefile.am): Likewise.
49238         * modules/sys_wait (Makefile.am): Likewise.
49239         * modules/sysexits (Makefile.am): Likewise.
49240         * modules/termios (Makefile.am): Likewise.
49241         * modules/time (Makefile.am): Likewise.
49242         * modules/unistd (Makefile.am): Likewise.
49243         * modules/wchar (Makefile.am): Likewise.
49244         * modules/wctype-h (Makefile.am): Likewise.
49245         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
49247 2011-05-29  Bruno Haible  <bruno@clisp.org>
49249         assert-h: Allow multiple gnulib generated replacements to coexist.
49250         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
49252 2011-05-29  Bruno Haible  <bruno@clisp.org>
49254         argp: Allow coexistence with strerror_r-posix module.
49255         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
49256         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
49257         by gnulib's <string.h> replacement), assume it has the POSIX signature,
49258         not the glibc signature.
49260 2011-05-28  Bruno Haible  <bruno@clisp.org>
49262         gnulib-tool: Alternative structure of testdirs, similar to --import.
49263         * gnulib-tool: New option --single-configure.
49264         (func_usage): Document it.
49265         (single_configure): New variable.
49266         (func_modules_transitive_closure_separately,
49267         func_modules_transitive_closure_separately,
49268         func_determine_use_libtests, func_modules_add_dummy_separately,
49269         func_modules_to_filelist_separately): New functions, extracted from
49270         func_import.
49271         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
49272         (func_import): Use the new functions.
49273         (func_create_testdir): Set final_modules. Handle $single_configure =
49274         true case.
49276 2011-05-28  Bruno Haible  <bruno@clisp.org>
49278         getloadavg: Remove an unreliable safety check.
49279         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
49280         getloadavg.c is in place.
49281         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
49282         Reported by Sam Steingold <sds@gnu.org>.
49284 2011-05-28  Bruno Haible  <bruno@clisp.org>
49286         doc: Cleanup yet another file produced by texinfo.tex.
49287         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
49289 2011-05-28  Bruno Haible  <bruno@clisp.org>
49291         Finish the conditional dependencies mechanism.
49292         * gnulib-tool: New option --no-conditional-dependencies.
49293         (func_usage): Document it. Don't mark --conditional-dependencies as
49294         experimental.
49295         (cond_dependencies): The possible values can now be true, false, empty.
49296         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
49297         (func_import): Store setting in gnulib-cache.m4 and read it from there.
49298         * doc/gnulib-tool.texi (Conditional dependencies): New section.
49300 2011-05-28  Bruno Haible  <bruno@clisp.org>
49302         doc: Use a recent texinfo.tex.
49303         * doc/Makefile (tex_opts): New variable.
49304         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
49306 2011-05-28  Jim Meyering  <meyering@redhat.com>
49308         intprops.h: adjust comment to match code change
49309         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
49310         only once, it *may* have side effects.  Also fix an unrelated typo.
49311         (_GL_INT_SIGNED): Likewise.
49313 2011-05-26  Simon Josefsson  <simon@josefsson.org>
49315         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
49317 2011-05-26  Bruno Haible  <bruno@clisp.org>
49319         mbsrchr: Avoid collision with system function on Interix.
49320         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
49321         Reported by Markus Duft <mduft@gentoo.org>.
49323 2011-05-15  James Youngman  <jay@gnu.org>
49325         getopt: for ambiguous options, enumerate the possibilities.
49326         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
49327         the ambiguous options when an ambiguous prefix is given. This was
49328         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
49329         glibc change was
49330         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
49332 2011-05-25  Eric Blake  <eblake@redhat.com>
49334         getcwd: work around mingw bug
49335         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
49336         * doc/posix-functions/getcwd.texi (getcwd): Document it.
49337         Reported by Matthias Bolte.
49339 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
49341         test-intprops: disable -Wtype-limits diagnostics
49342         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
49343         diagnostics.  Otherwise, the integer overflow macros generate many
49344         diagnostics.  Reported by Jim Meyering in
49345         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
49347         intprops: shorten, to pacify gcc -Woverlength-strings
49348         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
49349         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
49350         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
49351         likely to run afoul of C compiler limits for string constant lengths.
49352         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
49354 2011-05-24  Eric Blake  <eblake@redhat.com>
49356         docs: document recently fixed glibc printf bug
49357         * doc/posix-functions/fprintf.texi (fprintf): Document it.
49358         * doc/posix-functions/printf.texi (printf): Likewise.
49359         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49360         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49362         closein-tests: convert to init.sh
49363         * modules/closein-tests (Files): Add init.sh
49364         * tests/test-closein.sh Use it.
49366         yesno-tests: convert to init.sh
49367         * modules/yesno-tests (Files): Add init.sh.
49368         * tests/test-yesno.sh: Use it.
49370         atexit-tests: ensure reliable exit status
49371         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
49372         Reported by Bruno Haible.
49374 2011-05-24  Bruno Haible  <bruno@clisp.org>
49376         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
49377         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
49378         gl_PREREQ_STRERROR_R invocations from here...
49379         * modules/strerror_r-posix (configure.ac): ... to here.
49381 2011-05-24  Eric Blake  <eblake@redhat.com>
49383         strerror_r: fix missing header
49384         * lib/strerror_r.c: Avoid compiler warning about snprintf.
49386         strerror_r: fix AIX test failures
49387         * lib/strerror_r.c (strerror_r): Convert silent truncation to
49388         ERANGE failure.
49390         strerror_r: fix Solaris test failures
49391         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
49392         failures.
49393         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
49395         strerror_r: enforce POSIX recommendations
49396         * lib/strerror_r.c (safe_copy): New helper method.
49397         (strerror_r): Guarantee a non-empty string.
49398         * tests/test-strerror_r.c (main): Enhance tests to incorporate
49399         recent POSIX rulings and to match our strerror guarantees.
49400         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
49402 2011-05-24  Jim Meyering  <meyering@redhat.com>
49404         test-perror2.c: avoid warning about unused variable
49405         * tests/test-perror2.c (main): Remove declaration of unused "fp".
49407 2011-05-24  Eric Blake  <eblake@redhat.com>
49409         perror: avoid spurious test failure on HP-UX
49410         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
49412         tests: fix logic bug in init.sh
49413         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
49414         shell.
49416 2011-05-24  Jim Meyering  <meyering@redhat.com>
49418         utimensat: do not reference an out-of-scope buffer
49419         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
49420         declared in an inner scope, yet "times" would be dereferenced outside
49421         the scope in which "ts" was valid.
49422         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
49423         of ts[2] "out/up", so that the use of aliased "times" (via
49424         "times = ts;") does not end up referencing an out-of-scope "ts"
49426         opendir-safer.c: don't clobber errno; don't close negative FD
49427         * lib/opendir-safer.c (opendir_safer):
49428         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
49429         file descriptor, and more importantly, don't clobber the
49430         offending errno value with EINVAL.  Before, upon failure
49431         of dup_safer, we would pass the negative file descriptor to
49432         fdopendir, which would clobber errno.
49434 2011-05-23  Bruno Haible  <bruno@clisp.org>
49436         idcache: Fix module description.
49437         * modules/idcache (Include): Set to "idcache.h".
49439 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
49441         gnulib-tool: fix portability problem with MacOS sed
49442         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
49443         before the "}".  Problem reported by Leo in
49444         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
49445         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
49446         sed_extract_condition1, sed_extract_condition2.
49448 2011-05-23  Bruno Haible  <bruno@clisp.org>
49450         hash: Simplify autoconf macro.
49451         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
49453 2011-05-23  Bruno Haible  <bruno@clisp.org>
49455         getugroups: Fix module description.
49456         * modules/getugroups (Include): Set to "getugroups.h".
49458 2011-05-23  Bruno Haible  <bruno@clisp.org>
49460         linkat: Simplify autoconf macro.
49461         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
49463 2011-05-23  Bruno Haible  <bruno@clisp.org>
49464             Eric Blake  <eblake@redhat.com>
49466         linkat, renameat: Update dependencies.
49467         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
49468         * modules/linkat (Depends-on): Likewise. Remove also readlink,
49469         symlinkat.
49471 2011-05-23  Jim Meyering  <meyering@redhat.com>
49473         maint.mk: more tight_scope improvements
49474         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
49475         (_gl_TS_headers): Define only in if-0'd block.
49476         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
49477         sometimes we must *not* use it.  Adjust uses accordingly.
49478         (sc_tight_scope): Use much simpler grep-based test to determine
49479         whether we skip this rule.
49481         maint.mk: generalize/improve the tight-scope rule
49482         * top/maint.mk: Emit a warning when the test is skipped.
49483         (_gl_TS_dir): Add $(srcdir)/ prefix.
49484         (_gl_TS_function_match): Simplify, rather than trying
49485         to enumerate common types.  Otherwise, it would fail to match an
49486         "extern unsigned char const *" declaration in idutils.
49487         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
49488         a way to support use of that type of macro.
49489         (_gl_TS_var_match): Simplify regexp.
49490         (_gl_TS_obj_files): New configurable variable.
49491         (_gl_TS_headers): Likewise.
49493 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49495         verify: fix bug when gnulib <assert.h> is also included
49496         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
49497         is defined, not if _GL_STATIC_ASSERT_H is not defined.
49498         Perhaps there's a better way, but this fixes the immediate problem.
49499         Problem reported by Bruno Haible in
49500         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
49502 2011-05-22  Bruno Haible  <bruno@clisp.org>
49504         xgetcwd: Simplify autoconf macro.
49505         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
49507 2011-05-22  Bruno Haible  <bruno@clisp.org>
49509         New module 'mktime-internal'.
49510         * modules/mktime-internal: New file.
49511         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
49512         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
49513         mktime_internal as a C macro if libc has __mktime_internal.
49514         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
49515         conditions.
49516         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
49518 2011-05-22  Bruno Haible  <bruno@clisp.org>
49520         timegm: Correct mktime replacement statements.
49521         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
49522         defining mktime as a C macro. This completes a 2009-07-28 commit.
49524 2011-05-22  Bruno Haible  <bruno@clisp.org>
49526         timegm: Simplify autoconf macro.
49527         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
49529 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
49531         clock-time: change to LGPLv2+.
49532         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
49533         BSD-like but we have no mark for that; this is good enough for now.
49535 2011-05-21  Bruno Haible  <bruno@clisp.org>
49537         strerror_r: Fix comments.
49538         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
49540 2011-05-21  Bruno Haible  <bruno@clisp.org>
49542         relocatable-prog-wrapper: Fix possible link error.
49543         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
49544         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
49545         (gl_FUNC_SETENV): ... to here.
49546         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
49547         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
49549 2011-05-21  Bruno Haible  <bruno@clisp.org>
49551         relocatable-prog-wrapper: Assume strerror() exists.
49552         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
49553         m4/strerror.m4.
49554         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
49555         * lib/relocwrapper.c: Remove mention of strerror module.
49556         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
49557         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
49558         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
49559         C macro.
49561 2011-05-21  Bruno Haible  <bruno@clisp.org>
49563         select: Simplify replacement idiom.
49564         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
49565         Win32 platforms.
49566         * lib/sys_select.in.h (select): Simplify accordingly.
49567         * modules/select (Depends-on): Likewise.
49569 2011-05-21  Bruno Haible  <bruno@clisp.org>
49571         mkdir-p: Simplify autoconf macro.
49572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
49573         gl_FUNC_LCHOWN.
49575 2011-05-21  Eric Blake  <eblake@redhat.com>
49577         strerror_r: avoid clobbering strerror on cygwin
49578         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
49579         fall back instead to sys_errlist.
49580         * modules/strerror (configure.ac): Add witness.
49581         * tests/test-strerror_r.c (main): Enhance test.
49582         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
49583         * tests/test-perror2.c (main): Free memory before exit.
49585 2011-05-21  Bruno Haible  <bruno@clisp.org>
49587         mkdtemp: Use gnulib naming conventions.
49588         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
49589         * modules/mkdtemp (configure.ac): Update.
49591 2011-05-20  Eric Blake  <eblake@redhat.com>
49593         strerror_r: avoid corrupting errno on Solaris
49594         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
49595         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
49597         strerror_r: avoid compiler warning
49598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
49600         strerror_r: simplify AIX code
49601         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
49603         test-perror: avoid spurious failure on FreeBSD
49604         * modules/perror-tests (Depends-on): Add strerror, now that
49605         strerror_r no longer pulls it in.
49607 2011-05-20  Bruno Haible  <bruno@clisp.org>
49609         strerror_r-posix: Remove unused dependencies.
49610         * modules/strerror_r-posix (Depends-on): Remove strerror.
49611         Reported by Eric Blake.
49613 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49615         intprops: remove assumption about A|B representation
49616         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
49617         is a valid integer if both A and B are.  Although this is true for
49618         all known practical hosts, the C standard doesn't guarantee it,
49619         and the code need not assume it.  Also, this change may work around
49620         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
49621         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
49623 2011-05-20  Eric Blake  <eblake@redhat.com>
49625         perror: work around FreeBSD bug
49626         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
49627         is broken.  Move AC_LIBOBJ...
49628         * modules/perror (configure.ac): Here.
49629         * doc/posix-functions/perror.texi (perror): Document this.
49630         * tests/test-perror2.c (main): Enhance test.
49632         test-perror: check for strerror interactions
49633         * tests/macros.h (STREQ): Add macro.
49634         * modules/perror-tests (Files): Add second test.
49635         * tests/test-perror2.c (main): New file.
49636         * doc/posix-functions/perror.texi (perror): Document glibc bug.
49638         test-perror: rewrite to use init script
49639         * modules/perror-tests (Files): Add init.sh.
49640         * tests/test-perror.sh: Use temporary directory.
49642 2011-05-20  Jim Meyering  <meyering@redhat.com>
49644         maint: replace misused "a" with "an"
49645         * doc/intprops.texi: "a integer"
49646         * doc/regex.texi: "a explanation"
49647         * lib/alignof.h: "a object"
49648         * lib/argmatch.h: "a explanation"
49649         * lib/argp-help.c: "a option" and "a OPTION_DOC"
49650         * lib/stdint.in.h: "a integer"
49651         * lib/userspec.c: "a owner"
49652         * doc/gnulib.texi: Fix "a idea", and reword.
49654 2011-05-19  Jim Meyering  <meyering@redhat.com>
49656         maint: correct misuse of "a" and "an"
49657         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
49658         * lib/argp-help.c: "an docum...": s/an/a/
49659         * lib/argp-parse.c: "An vector": s/An/A/
49660         * lib/execute.c: "an native": s/an/a/
49661         * lib/spawn-pipe.c: Likewise.
49662         * lib/gc.h: "an Gc_rc": s/an/a/
49663         * lib/unigbrk.in.h: "an grapheme": s/an/a/
49664         * lib/fts.c: "an stat.st_dev": s/an/a/
49666 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49668         intprops-tests: work around HP-UX 11.23 cc bug with constants
49669         * tests/test-intprops.c (VERIFY): New macro.
49670         (main): Use it, instead of verify, to work around the compiler bug; see
49671         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
49673         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
49674         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
49675         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
49676         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
49677         (_GL_REMAINDER_OVERFLOW): Use it.
49679         intprops-tests: revert unsigned part of previous change
49680         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
49681         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
49682         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
49683         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
49685 2011-05-19  Bruno Haible  <bruno@clisp.org>
49687         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
49688         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
49689         strerror_r() returned without filling the buffer.
49690         Reported by Eric Blake.
49692 2011-05-19  Eric Blake  <eblake@redhat.com>
49694         strerror_r: guarantee unchanged errno
49695         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
49696         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
49697         failure.
49698         * tests/test-strerror_r.c (main): Enhance test.
49700 2011-05-19  Bruno Haible  <bruno@clisp.org>
49702         strerror_r: Reorder #if blocks.
49703         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
49704         for consistency with the previous commit.
49706 2011-05-19  Bruno Haible  <bruno@clisp.org>
49708         perror: Avoid clobbering the strerror buffer when possible.
49709         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
49710         * lib/strerror.c: Include it.
49711         * modules/strerror (Files): Add lib/strerror-impl.h.
49712         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
49713         (my_strerror): New function, defined through lib/strerror-impl.h.
49714         (perror): Use it instead of strerror.
49715         * modules/perror (Files): Add lib/strerror-impl.h.
49716         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
49718 2011-05-19  Eric Blake  <eblake@redhat.com>
49720         strerror_r: fix on newer cygwin
49721         * lib/strerror_r.c (strerror_r): Cygwin now has
49722         __xpg_strerror_r, use it.
49724 2011-05-19  Bruno Haible  <bruno@clisp.org>
49726         strerror_r: Avoid clobbering the strerror buffer when possible.
49727         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
49728         (sys_nerr, sys_errlist): New declarations.
49729         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
49730         HP-UX, native Win32, IRIX, and 32-bit Solaris.
49731         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
49733 2011-05-19  Bruno Haible  <bruno@clisp.org>
49735         strerror_r: Fix test failure on mingw.
49736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
49737         EXTEND_STRERROR_R.
49738         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
49739         macros from errno.in.h instead.
49741 2011-05-19  Eric Blake  <eblake@redhat.com>
49743         strerror: relax test for Solaris
49744         * tests/test-strerror.c (main): Permit Solaris behavior.
49745         * tests/test-strerror_r.c (main): Likewise.
49747         strerror: enforce POSIX ruling on strerror(0)
49748         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
49749         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
49750         * lib/strerror_r.c (rpl_strerror_r): Work around it.
49751         * doc/posix-functions/strerror.texi (strerror): Document it.
49752         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
49753         * tests/test-strerror.c (main): Strengthen test.
49754         * tests/test-strerror_r.c (main): Likewise.
49756 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49758         intprop-tests: port to older and more-pedantic compilers
49759         * modules/intprops-tests (Files): Add tests/macros.h.
49760         * tests/test-intprops.c: Include macros.h.
49761         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
49762         it's no longer documented to expand to an integer constant expression.
49763         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
49764         argument is floating point, as it's no longer documented to expand
49765         to an integer constant expression in that case.
49766         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
49767         compiler bugs reported by Bruno Haible.  See
49768         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
49769         (U0, U1): New constants, to work around the same bugs.  Also,
49770         in tests, use e.g., "(unsigned int) 39" rather than "39u".
49772         intprops: work around C compiler bugs
49773         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
49774         bug in Sun C 5.11 2010/08/13 and other compilers; see
49775         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
49777         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
49778         * doc/intprops.texi (Integer Type Determination): Fix
49779         documentation for TYPE_IS_INTEGER: it returns an constant
49780         expression, not an integer constant expression.  Fix doc for
49781         TYPE_SIGNED: it returns an integer constant expression only if its
49782         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
49783         hardly worth documented that way....)
49785 2011-05-18  Bruno Haible  <bruno@clisp.org>
49787         strerror_r: Avoid clobbering the strerror buffer when possible.
49788         * lib/strerror_r.c (strerror_r): Merge the three implementations.
49789         Handle gnulib defined errno values here. When strerror() returns NULL
49790         or an empty string, return EINVAL.
49791         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
49792         gnulib defined errno values here.
49793         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
49795 2011-05-18  Eric Blake  <eblake@redhat.com>
49797         fnmatch: avoid compiler warning
49798         * lib/fnmatch_loop.c (FCT): Use correct type.
49799         Reported by Matthias Bolte.
49801 2011-05-13  Jim Meyering  <meyering@redhat.com>
49803         maint.mk: three new prohibit_<HDR>_without_use rules
49804         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
49805         (sc_prohibit_stdio-safer_without_use): Likewise.
49806         (sc_prohibit_xfreopen_without_use): Likewise.
49808 2011-05-17  Jim Meyering  <meyering@redhat.com>
49810         announce-gen: fail if the NEWS delta is empty
49811         If there's nothing noteworthy in NEWS, then either you forgot
49812         or you shouldn't be releasing.
49813         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
49815 2011-05-17  Pádraig Brady  <P@draigBrady.com>
49817         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
49818         reserved symbols starting with double underscore from the check.
49820 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49822         intprops: add doc
49823         * doc/intprops.texi: New file, documenting intprops.
49824         * doc/gnulib.texi (Particular Modules): Include it.
49826         verify: add doc to gnulib manual and fix example
49827         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
49828         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
49829         (Compile-time Assertions): Fix example so it can't overflow.
49831 2011-05-17  Jim Meyering  <meyering@redhat.com>
49833         warnings.m4: don't usurp save_CPPFLAGS variable name
49834         * m4/warnings.m4: Prefix local temporary variable name with gl_.
49836         doc: fix typo
49837         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
49839 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49840             Bruno Haible  <bruno@clisp.org>
49842         doc: Tweak recent change.
49843         * README (Portability guidelines): Tweak new text.
49844         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
49845         Interix 6.1.
49847 2011-05-16  Eric Blake  <eblake@redhat.com>
49849         inttypes: avoid autoconf warning
49850         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
49851         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49853 2011-05-16  Sam Steingold  <sds@gnu.org>
49854         and Eric Blake  <eblake@redhat.com>
49856         vc-list-files: accept multiple directory operands
49857         * build-aux/vc-list-files: Iterate over all remaining operands.
49859 2011-05-16  Bruno Haible  <bruno@clisp.org>
49861         Fix confusion regarding deprecated modules.
49862         * modules/calloc (Status, Notice): Mark module as deprecated, not
49863         obsolete.
49864         * modules/fnmatch-posix (Status, Notice): Likewise.
49865         * modules/getdate (Status, Notice): Likewise.
49866         * modules/getopt (Status, Notice): Likewise.
49867         * modules/malloc (Status, Notice): Likewise.
49868         * modules/pipe (Status, Notice): Likewise.
49869         * modules/realloc (Status, Notice): Likewise.
49870         * modules/rename-dest-slash (Status, Notice): Likewise.
49871         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
49872         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
49873         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
49874         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
49875         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
49877 2011-05-16  Bruno Haible  <bruno@clisp.org>
49879         doc: List the target platforms.
49880         * doc/gnulib-intro.texi (Target Platforms): New section.
49881         * doc/gnulib.texi (Introduction): Update menu.
49882         * README (Portability guidelines): Refer to the new section. Update
49883         statement about oldest supported environment. Remove rationale why
49884         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
49885         unportable C89 function.
49886         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
49887         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
49889 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49891         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
49893 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49895         intprops-tests: new module
49896         * modules/intprops-tests, tests/test-intprops.c: New files.
49898         intprops: add safe, portable integer overflow checking
49899         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
49900         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
49901         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
49902         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
49903         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
49904         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
49905         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
49906         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
49907         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
49908         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
49909         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
49911 2011-05-12  James Youngman  <jay@gnu.org>
49913         Add a test for glibc's Bugzilla bug #12378.
49914         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
49915         doesn't allow the literal matching of a lone "[" (which is
49916         required by POSIX).
49917         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
49919 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
49921         Sync glibc change fixing Bugzilla bug #12378.
49922         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
49923         beginning and fall back to matching as normal character if the
49924         string ends before the matching ']' is found.  This is what POSIX
49925         requires.
49927 2011-05-13  Eric Blake  <eblake@redhat.com>
49929         getcwd-lgpl: relax test for FreeBSD
49930         * doc/posix-functions/getcwd.texi (getcwd): Document portability
49931         issue.
49932         * tests/test-getcwd-lgpl.c (main): Relax test.
49933         Reported by Matthias Bolte.
49935 2011-05-11  Eric Blake  <eblake@redhat.com>
49937         test-fflush: silence compiler warning
49938         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
49940 2011-05-11  Bruno Haible  <bruno@clisp.org>
49942         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
49943         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
49944         * modules/canonicalize (Depends-on): Add 'nocrash'.
49945         * modules/canonicalize-lgpl (Depends-on): Likewise.
49946         * doc/posix-functions/realpath.texi: Update platforms list.
49947         Reported by Ryan Schmidt <ryandesign@macports.org>.
49949 2011-05-11  Bruno Haible  <bruno@clisp.org>
49951         group-member: Declare function in <unistd.h>.
49952         * lib/unistd.in.h (group_member): New declaration.
49953         * lib/group-member.h: Remove file.
49954         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
49955         * tests/test-unistd-c++.cc: Check signature of group_member.
49956         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
49957         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
49958         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
49959         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
49960         HAVE_GROUP_MEMBER.
49961         * modules/group-member (Files): Remove lib/group-member.h.
49962         (Depends-on): Add unistd. Specify conditions.
49963         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49964         (Include): Change to <unistd.h>.
49965         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
49966         HAVE_GROUP_MEMBER.
49967         * NEWS: Mention the change.
49968         * lib/euidaccess.c: Don't include group-member.h.
49970 2011-05-11  Bruno Haible  <bruno@clisp.org>
49972         group-member: Document module.
49973         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
49974         module.
49976 2011-05-11  Bruno Haible  <bruno@clisp.org>
49978         fclose: Fix mistake earlier today.
49979         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
49981 2011-05-11  Eric Blake  <eblake@redhat.com>
49983         fclose: preserve fflush errors
49984         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
49985         Reported by Jim Meyering.
49987         bootstrap: support a prereq of 'rpcgen -' on RHEL5
49988         * build-aux/bootstrap (check_versions): When no specific version
49989         is required, merely check that the app produces an exit status
49990         that indicates its existence.
49992         maint.mk: drop redundant check
49993         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
49994         the same but better.
49996 2011-05-11  Bruno Haible  <bruno@clisp.org>
49998         fclose: Fix possible link error.
49999         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
50000         unregister_shadow_fd. Improve comments.
50001         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
50002         Eric Blake.
50004 2011-05-11  Jim Meyering  <meyering@redhat.com>
50006         maint.mk: improve "can not" detection and generalize rule name
50007         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
50008         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
50009         Use the same technique as in sc_prohibit_doubled_word, so that
50010         we recognize "can not" also when the words are separated by a newline.
50011         Suggested by Eric Blake.
50012         (perl_filename_lineno_text_): Define.  Factored out of...
50013         (prohibit_doubled_word_): ...here.  Use the new definition.
50014         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
50015         (prohibit_undesirable_word_seq_RE_): New overridable variable.
50016         (ignore_undesirable_word_sequence_RE_): New overridable variable.
50018 2011-05-10  Eric Blake  <eblake@redhat.com>
50020         fclose: avoid double close race when possible
50021         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
50022         all but WINDOWS_SOCKETS.
50024 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
50026         openat: correct new comment
50027         * lib/openat-proc.c (openat_proc_name): Correct the comment.
50029 2011-05-10  Jim Meyering  <meyering@redhat.com>
50031         openat: add comments
50032         * lib/openat-proc.c (openat_proc_name): Add comments,
50033         mostly from Eric Blake.
50035 2011-05-09  Eric Blake  <eblake@redhat.com>
50037         openat: reduce syscalls in first probe of /proc
50038         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
50039         be a directory.  Simplify the probe for .. bugs.
50040         * modules/openat (Depends-on): Drop same-inode.
50041         Reported by Bastien ROUCARIES.
50043 2011-05-09  Jim Meyering  <meyering@redhat.com>
50045         maint.mk: change semantics/name of tight_scope variables
50046         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
50047         Rename variables to align with semantics that make them more useful.
50049         maint.mk: tweak new rule's name not to impinge
50050         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
50051         (sc_tight_scope): Use new rule name rather than $@-0.
50053         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
50054         * top/maint.mk (sc_tight_scope): New rule.
50055         (sc_tight_scope-0): New rule, ifdef'd out.
50056         (_gl_TS_dir): Default.
50057         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
50058         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
50060 2011-05-09  Simon Josefsson  <simon@josefsson.org>
50062         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
50063         Haible <bruno@clisp.org>.
50065 2011-05-08  Bruno Haible  <bruno@clisp.org>
50067         Comments.
50068         * m4/isnanf.m4: Add comment.
50069         * m4/isnanl.m4: Likewise.
50071 2011-05-08  Bruno Haible  <bruno@clisp.org>
50073         glob: Remove obsolete macro.
50074         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
50076 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
50078         intprops: Sun C 5.11 supports __typeof__
50079         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
50080         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
50081         which is new.
50082         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
50084         intprops: switch to usual gnulib indenting and naming
50085         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
50086         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
50088         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
50090 2011-05-08  Jim Meyering  <meyering@redhat.com>
50092         maint.mk: suppress "Entering/Leaving directory" diag in announcement
50093         * top/maint.mk (release-prep): Use make's --no-print-directory
50094         option when generating the announcement.  This eliminates the
50095         pesky "make[2]: Entering/Leaving directory" diagnostics in the
50096         generated announcement template.
50098 2011-05-08  Bruno Haible  <bruno@clisp.org>
50100         tzset: Fix gettimeofday wrapper on Solaris 2.6.
50101         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
50102         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
50104 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
50106         ignore-value, verify: Omit include files from lib_SOURCES.
50107         * modules/ignore-value, modules/verify (Makefile.am):
50108         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
50109         that leads Automake to duplicate use of am__objects_... variables
50110         in Makefile.in.  See
50111         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
50113 2011-05-07  Bruno Haible  <bruno@clisp.org>
50115         fclose: Simplify autoconf macro.
50116         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
50117         defined.
50119 2011-05-07  Bruno Haible  <bruno@clisp.org>
50121         canonicalize-lgpl: Fix autoconf macro ordering bug.
50122         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
50123         gl_STDLIB_H_DEFAULTS.
50125 2011-05-06  Eric Blake  <eblake@redhat.com>
50127         maintainer-makefile: make sc_po_check easier to tune
50128         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
50129         to probe for strings, such as an alternate location for gnulib.
50131         fclose: guarantee behavior on seekable stdin
50132         * modules/fclose (Depends-on): Add fflush.
50133         * doc/posix-functions/fclose.texi (fclose): Document this.
50134         * tests/test-fclose.c (main): Make test for this unconditional.
50136 2011-05-06  Bruno Haible  <bruno@clisp.org>
50138         fflush, fpurge: Relicense under LGPLv2+.
50139         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
50140         * modules/fpurge (License): Likewise.
50141         With permission from Eric Blake and Jim Meyering.
50142         Suggested by Eric Blake.
50144 2011-05-06  Karl Berry  <karl@gnu.org>
50146         * MODULES.html.sh (func_all_modules): remove exit.
50148 2011-05-06  Jim Meyering  <meyering@redhat.com>
50150         maint.mk: use info-gnu@ as the default only for a stable release
50151         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
50152         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
50153         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
50154         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
50156 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50158         assert-h: new module, which supports C1X-style static_assert
50159         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
50160         * lib/verify.h: Revamp so that this can be copied into assert.h,
50161         while retaining the ability to use it standalone as before.
50162         Rename private identifiers so as not to encroach on the
50163         standard C namespace, since this is now used by assert.h.
50164         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
50165         the old verify_true.
50166         (_GL_VERIFY_TRUE): New macro, with much of the contents of
50167         the old verify_true.  Use _GL_VERIFY_TYPE.
50168         (_GL_VERIFY): New macro, with much of the contents of the old verify.
50169         (static_assert): New macro, if _GL_STATIC_ASSERT_H
50170         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
50171         defined when this file is copied into the replacement assert.h.
50172         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
50173         and _Static_assert is not built in.
50174         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
50175         defined, and use the new macros mentioned above.
50176         * doc/posix-headers/assert.texi: Document this.
50178 2011-05-05  Bruno Haible  <bruno@clisp.org>
50180         fclose, fflush: Respect rules for use of AC_LIBOBJ.
50181         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
50182         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
50183         gl_REPLACE_FCLOSE here.
50184         * modules/fflush (Depends-on): Remove fclose.
50185         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
50186         combination with module 'fclose'.
50188 2011-05-05  Bruno Haible  <bruno@clisp.org>
50190         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
50191         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
50192         gl_FUNC_FFLUSH.
50193         (gl_FUNC_FFLUSH): Use it.
50194         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
50195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
50196         gl_REPLACE_FSEEKO here.
50198 2011-05-05  Bruno Haible  <bruno@clisp.org>
50200         tzset: Relicense under LGPL.
50201         * modules/tzset (License): Change to LGPL.
50202         No agreement needed; it's a no-op.
50204         strtoimax, strtoumax: Relicense under LGPL.
50205         * modules/strtoimax (License): Change to LGPL.
50206         * modules/strtoumax (License): Likewise.
50207         With permission from Jim Meyering, Paul Eggert:
50208         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
50209         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
50211         getgroups: Relicense under LGPL.
50212         * modules/getgroups (License): Change to LGPL.
50213         With permission from Jim Meyering, Paul Eggert, Eric Blake:
50214         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
50215         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
50216         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
50218         nanosleep: Relicense under LGPL.
50219         * modules/nanosleep (License): Change to LGPL.
50220         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
50221         Haible:
50222         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
50223         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
50224         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
50225         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
50227         futimens: Relicense under LGPL.
50228         * modules/futimens (License): Change to LGPL.
50229         With permission from Eric Blake:
50230         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
50232         fflush: Relicense under LGPL.
50233         * modules/fflush (License): Change to LGPL.
50234         With permission from Eric Blake, Bruno Haible, Jim Meyering:
50235         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
50236         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
50237         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
50239         tmpfile: Relicense under LGPL.
50240         * modules/tmpfile (License): Change to LGPL.
50241         With permission from Ben Pfaff:
50242         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
50244         isfinite: Relicense under LGPL.
50245         * modules/isfinite (License): Change to LGPL.
50246         With permission from Ben Pfaff, Bruno Haible:
50247         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
50248         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
50250         acosl..tanl: Relicense under LGPL.
50251         * modules/acosl (License): Change to LGPL.
50252         * modules/asinl (License): Likewise.
50253         * modules/atanl (License): Likewise.
50254         * modules/cosl (License): Likewise.
50255         * modules/expl (License): Likewise.
50256         * modules/logl (License): Likewise.
50257         * modules/sinl (License): Likewise.
50258         * modules/sqrtl (License): Likewise.
50259         * modules/tanl (License): Likewise.
50260         Source code originally from glibc and Paolo Bonzini. Agreements:
50261         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
50262         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
50264 2011-05-05  Bruno Haible  <bruno@clisp.org>
50266         signal: Define sighandler_t.
50267         * lib/signal.in.h (sighandler_t): New type.
50268         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
50269         whether sighandler_t is defined.
50270         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
50271         * modules/signal (Depends-on): Add extensions.
50272         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
50273         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
50274         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
50276 2011-05-05  Eric Blake  <eblake@redhat.com>
50278         maint: remove useless REPLACE_*_H macros
50279         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
50280         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
50281         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
50282         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
50283         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
50284         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
50285         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
50286         * m4/btowc.m4: Update callers.
50287         * m4/dirfd.m4: Likewise.
50288         * m4/duplocale.m4: Likewise.
50289         * m4/fchdir.m4: Likewise.
50290         * m4/fdopendir.m4: Likewise.
50291         * m4/inet_ntop.m4: Likewise.
50292         * m4/inet_pton.m4: Likewise.
50293         * m4/ioctl.m4: Likewise.
50294         * m4/mbrlen.m4: Likewise.
50295         * m4/mbrtowc.m4: Likewise.
50296         * m4/mbsinit.m4: Likewise.
50297         * m4/mbsnrtowcs.m4: Likewise.
50298         * m4/mbsrtowcs.m4: Likewise.
50299         * m4/poll.m4: Likewise.
50300         * m4/setlocale.m4: Likewise.
50301         * m4/wcrtomb.m4: Likewise.
50302         * m4/wcsnrtombs.m4: Likewise.
50303         * m4/wcsrtombs.m4: Likewise.
50304         * m4/wctob.m4: Likewise.
50305         * m4/wcwidth.m4: Likewise.
50306         * modules/posix_spawn: Likewise.
50307         * modules/posix_spawn_file_actions_addclose: Likewise.
50308         * modules/posix_spawn_file_actions_adddup2: Likewise.
50309         * modules/posix_spawn_file_actions_addopen: Likewise.
50310         * modules/posix_spawn_file_actions_destroy: Likewise.
50311         * modules/posix_spawn_file_actions_init: Likewise.
50312         * modules/posix_spawnattr_destroy: Likewise.
50313         * modules/posix_spawnattr_getflags: Likewise.
50314         * modules/posix_spawnattr_getpgroup: Likewise.
50315         * modules/posix_spawnattr_getschedparam: Likewise.
50316         * modules/posix_spawnattr_getschedpolicy: Likewise.
50317         * modules/posix_spawnattr_getsigdefault: Likewise.
50318         * modules/posix_spawnattr_getsigmask: Likewise.
50319         * modules/posix_spawnattr_init: Likewise.
50320         * modules/posix_spawnattr_setflags: Likewise.
50321         * modules/posix_spawnattr_setpgroup: Likewise.
50322         * modules/posix_spawnattr_setschedparam: Likewise.
50323         * modules/posix_spawnattr_setschedpolicy: Likewise.
50324         * modules/posix_spawnattr_setsigdefault: Likewise.
50325         * modules/posix_spawnattr_setsigmask: Likewise.
50326         * modules/posix_spawnp: Likewise.
50328 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
50330         Add option to do-release-commit-and-tag to specify branch.
50331         * build-aux/do-release-commit-and-tag: Add --branch.
50333 2011-05-03  Bruno Haible  <bruno@clisp.org>
50335         Avoid unnecessary compilation units, through conditional dependencies.
50336         * modules/accept (Depends-on): Add conditions to the dependencies.
50337         * modules/acosl (Depends-on): Likewise.
50338         * modules/argz (Depends-on): Likewise.
50339         * modules/asinl (Depends-on): Likewise.
50340         * modules/atanl (Depends-on): Likewise.
50341         * modules/atoll (Depends-on): Likewise.
50342         * modules/bind (Depends-on): Likewise.
50343         * modules/btowc (Depends-on): Likewise.
50344         * modules/canonicalize-lgpl (Depends-on): Likewise.
50345         * modules/ceil (Depends-on): Likewise.
50346         * modules/ceilf (Depends-on): Likewise.
50347         * modules/ceill (Depends-on): Likewise.
50348         * modules/chdir-long (Depends-on): Likewise.
50349         * modules/chown (Depends-on): Likewise.
50350         * modules/close (Depends-on): Likewise.
50351         * modules/connect (Depends-on): Likewise.
50352         * modules/cosl (Depends-on): Likewise.
50353         * modules/dirfd (Depends-on): Likewise.
50354         * modules/dprintf (Depends-on): Likewise.
50355         * modules/dprintf-posix (Depends-on): Likewise.
50356         * modules/error (Depends-on): Likewise.
50357         * modules/euidaccess (Depends-on): Likewise.
50358         * modules/expl (Depends-on): Likewise.
50359         * modules/faccessat (Depends-on): Likewise.
50360         * modules/fchdir (Depends-on): Likewise.
50361         * modules/fclose (Depends-on): Likewise.
50362         * modules/fcntl (Depends-on): Likewise.
50363         * modules/fdopendir (Depends-on): Likewise.
50364         * modules/fflush (Depends-on): Likewise.
50365         * modules/floor (Depends-on): Likewise.
50366         * modules/floorf (Depends-on): Likewise.
50367         * modules/floorl (Depends-on): Likewise.
50368         * modules/fnmatch (Depends-on): Likewise.
50369         * modules/fopen (Depends-on): Likewise.
50370         * modules/fprintf-posix (Depends-on): Likewise.
50371         * modules/frexp (Depends-on): Likewise.
50372         * modules/frexp-nolibm (Depends-on): Likewise.
50373         * modules/frexpl (Depends-on): Likewise.
50374         * modules/frexpl-nolibm (Depends-on): Likewise.
50375         * modules/fseek (Depends-on): Likewise.
50376         * modules/fsusage (Depends-on): Likewise.
50377         * modules/ftell (Depends-on): Likewise.
50378         * modules/ftello (Depends-on): Likewise.
50379         * modules/futimens (Depends-on): Likewise.
50380         * modules/getcwd (Depends-on): Likewise.
50381         * modules/getcwd-lgpl (Depends-on): Likewise.
50382         * modules/getdelim (Depends-on): Likewise.
50383         * modules/getdomainname (Depends-on): Likewise.
50384         * modules/getgroups (Depends-on): Likewise.
50385         * modules/gethostname (Depends-on): Likewise.
50386         * modules/getline (Depends-on): Likewise.
50387         * modules/getlogin_r (Depends-on): Likewise.
50388         * modules/getopt-posix (Depends-on): Likewise.
50389         * modules/getpeername (Depends-on): Likewise.
50390         * modules/getsockname (Depends-on): Likewise.
50391         * modules/getsockopt (Depends-on): Likewise.
50392         * modules/getsubopt (Depends-on): Likewise.
50393         * modules/getusershell (Depends-on): Likewise.
50394         * modules/glob (Depends-on): Likewise.
50395         * modules/grantpt (Depends-on): Likewise.
50396         * modules/iconv_open (Depends-on): Likewise.
50397         * modules/iconv_open-utf (Depends-on): Likewise.
50398         * modules/inet_ntop (Depends-on): Likewise.
50399         * modules/inet_pton (Depends-on): Likewise.
50400         * modules/ioctl (Depends-on): Likewise.
50401         * modules/isapipe (Depends-on): Likewise.
50402         * modules/isfinite (Depends-on): Likewise.
50403         * modules/isinf (Depends-on): Likewise.
50404         * modules/lchown (Depends-on): Likewise.
50405         * modules/ldexpl (Depends-on): Likewise.
50406         * modules/link (Depends-on): Likewise.
50407         * modules/linkat (Depends-on): Likewise.
50408         * modules/listen (Depends-on): Likewise.
50409         * modules/logl (Depends-on): Likewise.
50410         * modules/lstat (Depends-on): Likewise.
50411         * modules/mbrlen (Depends-on): Likewise.
50412         * modules/mbrtowc (Depends-on): Likewise.
50413         * modules/mbsinit (Depends-on): Likewise.
50414         * modules/mbsnrtowcs (Depends-on): Likewise.
50415         * modules/mbsrtowcs (Depends-on): Likewise.
50416         * modules/mbtowc (Depends-on): Likewise.
50417         * modules/memcmp (Depends-on): Likewise.
50418         * modules/mkdir (Depends-on): Likewise.
50419         * modules/mkdtemp (Depends-on): Likewise.
50420         * modules/mkfifo (Depends-on): Likewise.
50421         * modules/mkfifoat (Depends-on): Likewise.
50422         * modules/mknod (Depends-on): Likewise.
50423         * modules/mkostemp (Depends-on): Likewise.
50424         * modules/mkostemps (Depends-on): Likewise.
50425         * modules/mkstemp (Depends-on): Likewise.
50426         * modules/mkstemps (Depends-on): Likewise.
50427         * modules/mktime (Depends-on): Likewise.
50428         * modules/nanosleep (Depends-on): Likewise.
50429         * modules/open (Depends-on): Likewise.
50430         * modules/openat (Depends-on): Likewise.
50431         * modules/perror (Depends-on): Likewise.
50432         * modules/poll (Depends-on): Likewise.
50433         * modules/popen (Depends-on): Likewise.
50434         * modules/posix_spawn (Depends-on): Likewise.
50435         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
50436         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50437         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50438         * modules/posix_spawnp (Depends-on): Likewise.
50439         * modules/pread (Depends-on): Likewise.
50440         * modules/printf-posix (Depends-on): Likewise.
50441         * modules/ptsname (Depends-on): Likewise.
50442         * modules/putenv (Depends-on): Likewise.
50443         * modules/pwrite (Depends-on): Likewise.
50444         * modules/readline (Depends-on): Likewise.
50445         * modules/readlink (Depends-on): Likewise.
50446         * modules/readlinkat (Depends-on): Likewise.
50447         * modules/recv (Depends-on): Likewise.
50448         * modules/recvfrom (Depends-on): Likewise.
50449         * modules/regex (Depends-on): Likewise.
50450         * modules/remove (Depends-on): Likewise.
50451         * modules/rename (Depends-on): Likewise.
50452         * modules/renameat (Depends-on): Likewise.
50453         * modules/rmdir (Depends-on): Likewise.
50454         * modules/round (Depends-on): Likewise.
50455         * modules/roundf (Depends-on): Likewise.
50456         * modules/roundl (Depends-on): Likewise.
50457         * modules/rpmatch (Depends-on): Likewise.
50458         * modules/select (Depends-on): Likewise.
50459         * modules/send (Depends-on): Likewise.
50460         * modules/sendto (Depends-on): Likewise.
50461         * modules/setenv (Depends-on): Likewise.
50462         * modules/setlocale (Depends-on): Likewise.
50463         * modules/setsockopt (Depends-on): Likewise.
50464         * modules/shutdown (Depends-on): Likewise.
50465         * modules/sigaction (Depends-on): Likewise.
50466         * modules/signbit (Depends-on): Likewise.
50467         * modules/sigprocmask (Depends-on): Likewise.
50468         * modules/sinl (Depends-on): Likewise.
50469         * modules/sleep (Depends-on): Likewise.
50470         * modules/snprintf (Depends-on): Likewise.
50471         * modules/snprintf-posix (Depends-on): Likewise.
50472         * modules/socket (Depends-on): Likewise.
50473         * modules/sprintf-posix (Depends-on): Likewise.
50474         * modules/sqrtl (Depends-on): Likewise.
50475         * modules/stat (Depends-on): Likewise.
50476         * modules/strchrnul (Depends-on): Likewise.
50477         * modules/strdup-posix (Depends-on): Likewise.
50478         * modules/strerror (Depends-on): Likewise.
50479         * modules/strerror_r-posix (Depends-on): Likewise.
50480         * modules/strndup (Depends-on): Likewise.
50481         * modules/strnlen (Depends-on): Likewise.
50482         * modules/strptime (Depends-on): Likewise.
50483         * modules/strsep (Depends-on): Likewise.
50484         * modules/strsignal (Depends-on): Likewise.
50485         * modules/strstr-simple (Depends-on): Likewise.
50486         * modules/strtod (Depends-on): Likewise.
50487         * modules/strtoimax (Depends-on): Likewise.
50488         * modules/strtok_r (Depends-on): Likewise.
50489         * modules/strtoumax (Depends-on): Likewise.
50490         * modules/symlink (Depends-on): Likewise.
50491         * modules/symlinkat (Depends-on): Likewise.
50492         * modules/tanl (Depends-on): Likewise.
50493         * modules/tcgetsid (Depends-on): Likewise.
50494         * modules/tmpfile (Depends-on): Likewise.
50495         * modules/trunc (Depends-on): Likewise.
50496         * modules/truncf (Depends-on): Likewise.
50497         * modules/truncl (Depends-on): Likewise.
50498         * modules/uname (Depends-on): Likewise.
50499         * modules/unlink (Depends-on): Likewise.
50500         * modules/unlockpt (Depends-on): Likewise.
50501         * modules/unsetenv (Depends-on): Likewise.
50502         * modules/usleep (Depends-on): Likewise.
50503         * modules/utimensat (Depends-on): Likewise.
50504         * modules/vasprintf (Depends-on): Likewise.
50505         * modules/vdprintf (Depends-on): Likewise.
50506         * modules/vdprintf-posix (Depends-on): Likewise.
50507         * modules/vfprintf-posix (Depends-on): Likewise.
50508         * modules/vprintf-posix (Depends-on): Likewise.
50509         * modules/vsnprintf (Depends-on): Likewise.
50510         * modules/vsnprintf-posix (Depends-on): Likewise.
50511         * modules/vsprintf-posix (Depends-on): Likewise.
50512         * modules/wcrtomb (Depends-on): Likewise.
50513         * modules/wcscasecmp (Depends-on): Likewise.
50514         * modules/wcscspn (Depends-on): Likewise.
50515         * modules/wcsdup (Depends-on): Likewise.
50516         * modules/wcsncasecmp (Depends-on): Likewise.
50517         * modules/wcsnrtombs (Depends-on): Likewise.
50518         * modules/wcspbrk (Depends-on): Likewise.
50519         * modules/wcsrtombs (Depends-on): Likewise.
50520         * modules/wcsspn (Depends-on): Likewise.
50521         * modules/wcsstr (Depends-on): Likewise.
50522         * modules/wcstok (Depends-on): Likewise.
50523         * modules/wcswidth (Depends-on): Likewise.
50524         * modules/wctob (Depends-on): Likewise.
50525         * modules/wctomb (Depends-on): Likewise.
50526         * modules/wctype (Depends-on): Likewise.
50527         * modules/wcwidth (Depends-on): Likewise.
50528         * modules/write (Depends-on): Likewise.
50530 2011-05-03  Bruno Haible  <bruno@clisp.org>
50532         Support for conditional dependencies.
50533         * doc/gnulib.texi (Module description): Document the syntax of
50534         conditional dependencies.
50535         * gnulib-tool: New option --conditional-dependencies.
50536         (func_usage): Document it.
50537         (cond_dependencies): New variable.
50538         (func_get_automake_snippet_conditional,
50539         func_get_automake_snippet_unconditional): New functions, extracted from
50540         func_get_automake_snippet.
50541         (func_get_automake_snippet): Use them.
50542         (sed_first_32_chars): New variable.
50543         (func_module_shellfunc_name): New function.
50544         (func_module_shellvar_name): New function.
50545         (func_module_conditional_name): New function.
50546         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
50547         func_cond_module_condition): New functions.
50548         (func_modules_transitive_closure): Add support for conditional
50549         dependencies.
50550         (func_emit_lib_Makefile_am): For a conditional module, enclose the
50551         conditional automake snippet in an automake conditional.
50552         (func_emit_autoconf_snippets): Emit shell functions that contain the
50553         code for conditional modules.
50554         (func_import, func_create_testdir): Update specification.
50556 2011-05-03  Eric Blake  <eblake@redhat.com>
50558         test-getaddrinfo: report error information
50559         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
50561 2011-05-03  Jim Meyering  <meyering@redhat.com>
50563         bootstrap: avoid build failure when $GZIP is set
50564         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
50565         program name.  If defined at all, it is supposed to list gzip options.
50566         Reported by Alan Curry in http://debbugs.gnu.org/8609
50568 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
50570         readme-release: new module with release instructions
50571         * modules/readme-release: New module.
50572         * top/README-release: New file, from coreutils, grep, diffutils.
50573         * MODULES.html.sh (Support for maintaining and releasing): Add it.
50575 2011-05-02  Eric Blake  <eblake@redhat.com>
50577         fflush: also replace fclose when fixing fflush
50578         * modules/fflush (Depends-on): Add fclose.
50579         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
50580         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
50581         memstreams with no backing fd.
50582         * doc/posix-functions/fclose.texi (fclose): Document the use of
50583         fflush module to fix the bug.
50584         * tests/test-fclose.c (main): Relax test when fclose is used in
50585         isolation.
50587         fclose: add some tests
50588         * modules/fclose-tests: New test module.
50589         * tests/test-fclose.c: New file.
50590         * doc/posix-functions/fclose.texi (fclose): Document the bug.
50592         fclose: reduced dependencies
50593         * modules/fclose (Depends-on): Switch from fflush/fseeko to
50594         simpler lseek.
50595         * lib/fclose.c (rpl_fclose): Likewise.
50596         Reported by Simon Josefsson.
50598         exit: drop remaining clients
50599         * modules/argmatch (Depends-on): Replace exit with stdlib.
50600         * modules/copy-file (Depends-on): Likewise.
50601         * modules/execute (Depends-on): Likewise.
50602         * modules/exitfail (Depends-on): Likewise.
50603         * modules/obstack (Depends-on): Likewise.
50604         * modules/pagealign_alloc (Depends-on): Likewise.
50605         * modules/pipe-filter-gi (Depends-on): Likewise.
50606         * modules/pipe-filter-ii (Depends-on): Likewise.
50607         * modules/savewd (Depends-on): Likewise.
50608         * modules/spawn-pipe (Depends-on): Likewise.
50609         * modules/wait-process (Depends-on): Likewise.
50610         * modules/xsetenv (Depends-on): Likewise.
50611         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
50612         * modules/git-merge-changelog (Depends-on): Likewise.
50613         * modules/long-options (Depends-on): Likewise.
50614         * modules/pt_chown (Depends-on): Likewise.
50615         * modules/sysexits (Depends-on): Likewise.
50617         freading: relax license from LGPLv3+ to LGPLv2+
50618         * modules/freading (License): Relax LGPL version.
50620 2011-05-02  Bruno Haible  <bruno@clisp.org>
50622         fchdir: Remove unused dependencies.
50623         * modules/fchdir (Depends-on): Remove include_next.
50625 2011-05-02  Bruno Haible  <bruno@clisp.org>
50627         gnulib-tool: Refactor.
50628         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
50629         from func_emit_autoconf_snippets.
50630         (func_emit_autoconf_snippets): Use it.
50632 2011-05-02  Simon Josefsson  <simon@josefsson.org>
50634         * NEWS: Document removal of 'exit'.
50635         * modules/exit: Remove file.
50637 2011-05-01  Bruno Haible  <bruno@clisp.org>
50639         Update DEPENDENCIES.
50640         * DEPENDENCIES (gettext): Recommend the newest release.
50641         Reported by Simon Josefsson.
50643 2011-05-01  Bruno Haible  <bruno@clisp.org>
50645         gnulib-tool: Reduce code duplication.
50646         * gnulib-tool (func_emit_autoconf_snippets): New function.
50647         (func_import, func_create_testdir): Use it.
50649 2011-04-30  Eric Blake  <eblake@redhat.com>
50651         fclose: don't fail on non-seekable input stream
50652         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
50653         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
50654         since fflush is allowed to fail in that case.
50656 2011-04-30  Bruno Haible  <bruno@clisp.org>
50658         dup3: cleanup
50659         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
50661 2011-04-30  Bruno Haible  <bruno@clisp.org>
50663         netdb: Make it work in C++ mode.
50664         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
50665         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
50666         module.
50667         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
50668         gl_MODULE_INDICATOR_FOR_TESTS.
50669         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
50670         * modules/netdb-c++-tests: New file.
50671         * tests/test-netdb-c++.cc: New file.
50673 2011-04-30  Bruno Haible  <bruno@clisp.org>
50675         New modules 'vfscanf', 'vscanf'.
50676         * modules/vfscanf: New file.
50677         * modules/vscanf: New file.
50678         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
50679         here.
50680         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
50681         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
50683 2011-04-30  Bruno Haible  <bruno@clisp.org>
50685         passfd: Add comments.
50686         * lib/passfd.c: Add comments about platforms.
50688 2011-04-30  Bruno Haible  <bruno@clisp.org>
50690         sys_uio: Make <sys/uio.h> self-contained.
50691         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
50692         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
50694 2011-04-30  Bruno Haible  <bruno@clisp.org>
50696         sys_socket: Ensure 'struct iovec' definition.
50697         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
50698         <sys/socket.h>.
50699         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
50701 2011-04-30  Bruno Haible  <bruno@clisp.org>
50703         sys_uio: Protect definition of 'struct iovec'.
50704         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
50705         it as a C struct.
50707 2011-04-30  Bruno Haible  <bruno@clisp.org>
50709         manywarnings: fix indentation
50710         * m4/manywarnings.m4: Indent by 2 spaces consistently.
50712 2011-04-30  Pádraig Brady  <P@draigBrady.com>
50714         manywarnings: add -Wno-missing-field-initializers if needed.
50715         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
50716         option if it's needed to allow initialization with { 0, }
50718 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
50720         announce-gen: cosmetic improvement
50721         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
50723 2011-04-29  Jim Meyering  <meyering@redhat.com>
50725         vc-list-files: indent with spaces, not TABs
50726         * build-aux/vc-list-files: Convert leading TABs to spaces,
50727         to match the style of most other files in gnulib.
50729         announce-gen: indent with spaces, not TABs
50730         * build-aux/announce-gen: Convert all TABs to spaces, to match
50731         the style of most other files in gnulib.
50733 2011-04-29  Eric Blake  <eblake@redhat.com>
50735         quotearg: avoid uninitialized variable use
50736         * lib/quotearg.c (quoting_options_from_style): Initialize
50737         remaining fields, and ensure that custom styles are only used via
50738         quoting_options rather than quoting_style.
50740 2011-04-29  Jim Meyering  <meyering@redhat.com>
50742         maint.mk: remove unused VC-tag variable
50743         * top/maint.mk (VC-tag): Remove unused variable.
50745 2011-04-29  Bruno Haible  <bruno@clisp.org>
50747         netdb: fix gai_strerror replacements
50748         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
50749         * modules/netdb: Substitute it.
50751 2011-04-29  Jim Meyering  <meyering@redhat.com>
50753         test-getcwd.c: avoid new set-but-not-used warning
50754         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
50755         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
50756         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
50757         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
50759         test-hash.c: avoid a new shadowing warning
50760         * tests/test-hash.c (main): Don't shadow "dup".
50762 2011-04-28  Eric Blake  <eblake@redhat.com>
50764         getaddrinfo: fix gai_strerror signature
50765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
50766         and work around mingw with UNICODE defined.
50767         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
50768         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
50769         * modules/netdb (Makefile.am): Substitute it.
50770         * lib/netdb.in.h (gai_strerror): Declare replacement.
50771         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
50772         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
50773         the fix.
50775         getsockopt: avoid compiler warning
50776         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
50777         Reported by Matthias Bolte.
50779         tests: drop unused link dependency
50780         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
50781         * modules/dirent-safer-tests (Makefile.am): Likewise.
50782         * modules/fdopendir-tests (Makefile.am): Likewise.
50783         * modules/mkfifoat-tests (Makefile.am): Likewise.
50784         * modules/openat-safer-tests (Makefile.am): Likewise.
50785         * modules/openat-tests (Makefile.am): Likewise.
50786         * modules/readlinkat-tests (Makefile.am): Likewise.
50787         * modules/symlinkat-tests (Makefile.am): Likewise.
50788         * modules/linkat-tests (Makefile.am): Likewise.
50789         (Depends-on): Switch to filenamecat-lgpl.
50790         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
50791         LIBINTL.
50792         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
50793         * tests/test-linkat.c (main): Don't require xalloc.
50795         hash, mgetgroups: drop xalloc dependency
50796         * lib/hash.c (includes): Adjust includes.
50797         * lib/mgetgroups.c (includes): Likewise.
50798         (xgetgroups): Move...
50799         * lib/xgetgroups.c: ...to new file.
50800         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
50801         * modules/xgetgroups: New file, split from...
50802         * modules/mgetgroups: ...here.
50803         (Depends-on): Add xalloc-oversized.
50804         * modules/hash (Depends-on): Likewise.
50805         * modules/hash-tests (Depends-on): Drop xalloc.
50806         (test_hash_LDADD): Drop unused library.
50807         * tests/test-hash.c (main): Break xalloc dependency.
50808         (includes): Drop unused include.
50810         xalloc-oversized: new module
50811         * modules/xalloc-oversized: New module.
50812         * modules/xalloc (Depends-on): Add it.
50813         * lib/xalloc.h (xalloc_oversized): Move...
50814         * lib/xalloc-oversized.h: ...into new file.
50816         utimecmp: drop dependency on xmalloc
50817         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
50818         due to memory pressure.
50819         * modules/utimecmp (Depends-on): Drop xalloc.
50821 2011-04-27  Eric Blake  <eblake@redhat.com>
50823         getcwd: fix mingw bugs
50824         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
50825         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
50826         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
50828 2011-04-27  Bruno Haible  <bruno@clisp.org>
50830         mkstemps: Ensure declaration on MacOS X 10.5.
50831         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
50832         * doc/glibc-functions/mkstemps.texi: Document header file problem on
50833         MacOS X.
50835 2011-04-27  Bruno Haible  <bruno@clisp.org>
50837         mkstemp: More documentation.
50838         * doc/posix-functions/mkstemp.texi: Document header file problem on
50839         MacOS X.
50841 2011-04-27  Bruno Haible  <bruno@clisp.org>
50843         mkstemp: Tweak configure message when cross-compiling.
50844         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
50845         result as a guess.
50847 2011-04-27  Bruno Haible  <bruno@clisp.org>
50849         clean-temp: Clarify what it does.
50850         * lib/clean-temp.h: Add more comments.
50851         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
50852         module.
50853         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
50854         * doc/glibc-functions/mkstemps.texi: Likewise.
50855         * doc/glibc-functions/mkostemps.texi: Likewise.
50857 2011-04-27  Eric Blake  <eblake@redhat.com>
50859         fchdir: avoid extra chdir and fix test
50860         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
50861         getcwd-lgpl.
50862         * lib/fchdir.c (get_name): Any absolute name will do; it does not
50863         have to be canonical.
50864         (canonicalize_file_name): Drop unused macro.
50865         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
50867         filenamecat-lgpl: fix licence
50868         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
50869         when it was first created.
50871         linkat, renameat: add missing dependency
50872         * modules/linkat (Depends-on): Require getcwd-lgpl.
50873         * modules/renameat (Depends-on): Likewise.
50875         tests: reduce dependencies
50876         * tests/test-linkat.c (main): Use lighter-weight getcwd.
50877         * tests/test-renameat.c (main): Likewise.
50878         * modules/linkat-tests (Depends-on): Relax dependency.
50879         * modules/renameat-tests (Depends-on): Likewise.
50880         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
50881         dependency explicit.
50883         save-cwd: reduce default dependency
50884         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
50885         * lib/save-cwd.c: Update comments.
50886         * NEWS: Document the semantic change.
50888         getcwd: enhance tests
50889         * tests/test-getcwd-lgpl.c: New file, taken from...
50890         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
50891         repeat long path stress tests from m4 probe.
50892         * modules/getcwd-lgpl-tests: New module.
50893         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
50894         * m4/getcwd-abort-bug.m4: Update comment.
50895         * m4/getcwd-path-max.m4: Likewise.
50897         getcwd-lgpl: new module
50898         * modules/getcwd-lgpl: New module.
50899         * lib/getcwd-lgpl.c: New file.
50900         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50901         * MODULES.html.sh (lacking POSIX:2008): Likewise.
50902         * modules/getcwd (configure.ac): Set C witness.
50903         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
50905         getcwd: tweak comments
50906         * m4/getcwd-abort-bug.m4: Fix comments.
50907         * m4/getcwd-path-max.m4: Likewise.
50908         * m4/getcwd.m4: Likewise.
50910 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
50911         and Eric Blake  <eblake@redhat.com>
50913         mkstemp: replace if system version uses wrong permissions
50914         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
50915         read/write mode bits set in file created by mkstemp.
50916         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
50918 2011-04-27  Eric Blake  <eblake@redhat.com>
50920         passfd: avoid compiler warning
50921         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
50922         Reported by Laine Stump.
50924 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
50926         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
50927         required by the NetBSD (and perhaps other 4.4BSD derived) join.
50929 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
50930         and Eric Blake  <eblake@redhat.com>
50932         mkstemp: mention clean-temp module
50933         * lib/mkstemp.c: Add comment.
50934         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
50936 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
50938         inttypes: also provide default values for 32-bit tests
50939         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
50940         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
50942 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50944         strtoumax: remove dependency on strtoimax
50945         This is like the strtoull change of yesterday.
50946         * modules/strtoumax (Files): Add lib/strtoimax.c.
50947         (Depends-on): Remove strtoimax and add verify.
50949         inttypes-incomplete: new module
50950         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
50951         all but the PRI* and SCN* parts of gl_INTTYPES_H.
50952         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
50953         of gl_INTTYPES_H.
50954         (gl_INTTYPES_H): Rewrite in terms of these new macros.
50955         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
50956         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
50957         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
50958         * modules/strtoumax, modules/xstrtol (Depends-on):
50959         Depend on inttypes-incomplete, not inttypes.
50960         * modules/inttypes-incomplete: New module, containing the contents
50961         of the old modules/inttypes module, except that the Files: section
50962         omits m4/inttypes-pri.m4, and the configure.ac section invokes
50963         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
50964         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
50965         (Depends-on): Depend only on inttypes-incomplete.
50966         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
50968         inttypes: omit now-redundant strtoimax and strtoumax work
50969         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
50970         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
50972         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
50973         This supports apps that need pointers to strtoimax and strtoumax,
50974         and ports to HP-UX 11.00 64.bit, which has macros that expand to
50975         nonexistent functions.  See
50976         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
50977         et seq.
50978         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
50979         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
50980         a macro.
50981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
50983 2011-04-25  Simon Josefsson  <simon@josefsson.org>
50985         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
50987 2011-04-25  Bruno Haible  <bruno@clisp.org>
50989         strtol, strtoul: Mark modules as obsolete.
50990         * modules/strtol (Status, Notice): New sections.
50991         * modules/strtoul (Status, Notice): New sections.
50993 2011-04-25  Bruno Haible  <bruno@clisp.org>
50995         strtod: Remove check for strtod, unless supporting old platforms.
50996         * modules/strtod-obsolete: New file.
50997         * m4/strtod-obsolete.m4: New file.
50998         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
50999         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
51000         * modules/strtod (Depends-on): Add strtod-obsolete.
51001         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
51003 2011-04-25  Bruno Haible  <bruno@clisp.org>
51005         strcase: Make module obsolete.
51006         * modules/strcase (Status, Notice): New sections.
51008 2011-04-25  Bruno Haible  <bruno@clisp.org>
51010         dup2: Remove check for dup2, unless supporting old obsolete platforms.
51011         * modules/dup2-obsolete: New file.
51012         * m4/dup2-obsolete.m4: New file.
51013         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
51014         gl_FUNC_DUP2_OBSOLETE is not also defined.
51015         * modules/dup2 (Depends-on): Add dup2-obsolete.
51016         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
51018 2011-04-25  Bruno Haible  <bruno@clisp.org>
51020         strnlen: Avoid memchr related link error on old obsolete platforms.
51021         * modules/memchr-obsolete: New file.
51022         * m4/memchr-obsolete.m4: New file.
51023         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
51024         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
51025         * modules/memchr (Depends-on): Add memchr-obsolete.
51026         * modules/strnlen (Depends-on): Likewise.
51027         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
51029 2011-04-25  Jim Meyering  <meyering@redhat.com>
51031         maint.mk: makefile_at_at_check extend and clean up
51032         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
51033         in addition to */Makefile.am.
51034         Exempt legitimate uses of @VAR@ notation, e.g.,
51035         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
51036         Remove obsolete coreutils-specific comment.
51037         Prompted by discussion here:
51038         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
51040 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51042         strtoul: remove dependency on strtol
51043         This is so that 'configure' need not check for strtol merely because
51044         the application needs strtoul.
51045         * modules/strtoul (Files): Add lib/strtol.c.
51046         (Depends-on): Remove strtol.
51048         strtoull: remove dependency on strtoul
51049         This is like the strtoll change.
51050         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
51051         (Depends-on): Remove strtoul.
51053         strtoll: remove dependency on strtol
51054         This is so that 'configure' need not check for strtol merely because
51055         the application needs strtoll.
51056         * modules/strtoll (Files): Add lib/strtol.c.
51057         (Depends-on): Remove strtol.
51059 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
51061         inttypes: Move some configure check to module 'imaxdiv'.
51062         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
51063         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
51064         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
51066 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
51068         inttypes: Move some configure check to module 'imaxabs'.
51069         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
51070         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
51071         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
51073 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
51075         inttypes: Remove configure tests that are not needed since 2009-12-31.
51076         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
51077         gl_cv_header_working_inttypes_h.
51079 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
51081         * modules/strnlen (Depends-on): Remove memchr.
51082         The strnlen implementation doesn't need the memchr module's fixes; see
51083         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
51085         strtol: remove dependency on wchar
51086         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
51087         * modules/strtol (Depends-on): Remove wchar.
51089 2011-04-21  Eric Blake  <eblake@redhat.com>
51091         passfd: fix test regression on Linux
51092         * modules/passfd-tests (configure.ac): Correct socketpair check.
51094         passfd: speed up configure and drop unused code
51095         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
51096         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
51097         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
51098         Instead of probing at configure for unix_scm_rights_bsd44_way,
51099         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
51100         check to a struct member probe.
51101         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
51102         (sendfd, recvfd): Update preprocessor checks.
51103         * modules/passfd (Files): Reflect rename, and drop unused file.
51104         (Depends-on): Drop unused dependency.
51106         passfd: allow compilation on mingw
51107         * modules/sys_socket (Depends-on): Add sys_uio.
51108         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
51109         iovec and a minimal struct msghdr.
51110         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
51111         * tests/test-sys_socket.c (main): Enhance test.
51112         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
51113         guaranteed to provide what we need.
51114         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
51115         * modules/passfd-tests (Depends-on): Add sys_wait.
51116         * tests/test-passfd.c (main): Skip test on mingw, for now.
51117         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
51118         partial 'struct msghdr' implementation.
51120         sys_uio: new module
51121         * modules/sys_uio: New module.
51122         * modules/sys_uio-tests: Likewise.
51123         * lib/sys_uio.in.h: New file.
51124         * m4/sys_uio_h.m4: Likewise.
51125         * tests/test-sys_uio.c: Likewise.
51126         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
51127         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
51129 2011-04-20  Jim Meyering  <meyering@redhat.com>
51131         useless-if-before-free: avoid false-positive
51132         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
51133         disjunct so that it too requires a terminating ";".  Without that,
51134         this script would identify as useless one statement from gcc that
51135         was not:
51136           if (aligned_ptr)
51137             free (((void **) aligned_ptr) [-1]);
51139 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
51141         doc: update users.txt.
51142         * users.txt: Add barcode.
51144 2011-04-19  Bruno Haible  <bruno@clisp.org>
51146         ioctl: Remove link dependency on native Windows.
51147         * lib/fd-hook.h: Renamed from lib/close-hook.h.
51148         (gl_close_fn, gl_ioctl_fn): New types.
51149         (struct fd_hook): Renamed from struct close_hook. Change type of
51150         private_close_fn field. Add private_ioctl_fn field.
51151         (close_hook_fn): Add parameter for primary close method.
51152         (execute_close_hooks, execute_all_close_hooks): Likewise.
51153         (ioctl_hook_fn): New type.
51154         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
51155         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
51156         argument.
51157         (unregister_fd_hook): Renamed from unregister_close_hook.
51158         * lib/fd-hook.c: Renamed from lib/close-hook.c.
51159         Don't include <unistd.h>.
51160         (close): Remove undef.
51161         (anchor): Update.
51162         (execute_close_hooks): Add argument for primary close method.
51163         (execute_all_close_hooks): Likewise.
51164         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
51165         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
51166         argument. Allow each argument to be NULL.
51167         (unregister_fd_hook): Renamed from unregister_close_hook.
51168         * lib/close.c (rpl_close): Pass 'close' function pointer to
51169         execute_all_close_hooks.
51170         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
51171         (primary_ioctl): New function.
51172         (ioctl): Don't call ioctlsocket here. Instead, call
51173         execute_all_ioctl_hooks.
51174         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
51175         close method.
51176         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
51177         (fd_sockets_hook): Renamed from close_sockets_hook.
51178         (gl_sockets_startup, gl_sockets_cleanup): Update.
51179         * modules/fd-hook: Renamed from modules/close-hook. Update.
51180         * modules/close (Depends-on): Add fd-hook, remove close-hook.
51181         * modules/sockets (Depends-on): Likewise.
51182         * modules/ioctl (Depends-on): Add fd-hook.
51183         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
51184         GNULIB_SOCKET.
51186 2011-04-19  Bruno Haible  <bruno@clisp.org>
51188         Move the support of O_NONBLOCK in open() to the 'open' module.
51189         * modules/nonblocking (Depends-on): Remove 'open'.
51190         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
51191         gl_cv_have_open_O_NONBLOCK.
51192         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
51193         O_NONBLOCK support.
51194         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
51196 2011-04-17  Bruno Haible  <bruno@clisp.org>
51198         pipe2: Simplify code.
51199         * lib/pipe2.c (pipe2): Reduce code duplication.
51201 2011-04-17  Bruno Haible  <bruno@clisp.org>
51203         nonblocking: Add comment.
51204         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
51206 2011-04-17  Bruno Haible  <bruno@clisp.org>
51208         nonblocking: Add tests for sockets.
51209         * tests/test-nonblocking-socket.sh: New file.
51210         * tests/test-nonblocking-socket-main.c: New file.
51211         * tests/test-nonblocking-socket-child.c: New file.
51212         * tests/test-nonblocking-socket.h: New file.
51213         * tests/socket-server.h: New file.
51214         * tests/socket-client.h: New file.
51215         * modules/nonblocking-socket-tests: New file.
51216         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
51218 2011-04-17  Bruno Haible  <bruno@clisp.org>
51220         nonblocking: Add tests for pipes.
51221         * tests/test-nonblocking-pipe.sh: New file.
51222         * tests/test-nonblocking-pipe-main.c: New file.
51223         * tests/test-nonblocking-pipe-child.c: New file.
51224         * tests/test-nonblocking-pipe.h: New file.
51225         * tests/test-nonblocking-writer.h: New file.
51226         * tests/test-nonblocking-reader.h: New file.
51227         * tests/test-nonblocking-misc.h: New file.
51228         * modules/nonblocking-pipe-tests: New file.
51229         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
51231 2011-04-16  Bruno Haible  <bruno@clisp.org>
51233         gettext: Clarify the needed programmer actions.
51234         * modules/gettext (Notice): New field.
51235         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51237 2011-04-16  Bruno Haible  <bruno@clisp.org>
51239         strchrnul: Tweak last commit.
51240         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
51241         bug.
51242         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
51243         as in _GL_FUNCDECL_SYS.
51244         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
51245         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
51247 2011-04-15  Eric Blake  <eblake@redhat.com>
51249         strchrnul: work around cygwin bug
51250         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
51251         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
51252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
51253         * modules/string (Makefile.am): Substitute it.
51254         * lib/string.in.h (strchrnul): Use it.
51256 2011-04-15  Bruno Haible  <bruno@clisp.org>
51258         Don't require lib/stdio-write.c when only module 'stdio' is used.
51259         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
51260         invocation.
51261         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
51263 2011-04-14  Bruno Haible  <bruno@clisp.org>
51265         Support non-blocking pipe I/O in read() on native Windows.
51266         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
51267         (read): New declaration.
51268         * lib/read.c: New file.
51269         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
51270         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
51271         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
51272         vscanf): New declarations.
51273         * lib/stdio-read.c: New file.
51274         * m4/read.m4: New file.
51275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
51276         REPLACE_READ.
51277         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
51278         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
51279         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
51280         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
51281         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
51282         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
51283         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
51284         * modules/read: New file.
51285         * modules/nonblocking (Files): Add lib/stdio-read.c.
51286         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
51287         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
51288         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
51289         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
51290         * modules/pread (Depends-on): Add read.
51291         * modules/safe-read (Depends-on): Likewise.
51292         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
51293         gets, scanf, vfscanf, vscanf): Verify signatures.
51294         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
51295         problem with non-blocking pipes.
51296         * doc/posix-functions/fgetc.texi: Likewise.
51297         * doc/posix-functions/fgets.texi: Likewise.
51298         * doc/posix-functions/fread.texi: Likewise.
51299         * doc/posix-functions/fscanf.texi: Likewise.
51300         * doc/posix-functions/getc.texi: Likewise.
51301         * doc/posix-functions/getchar.texi: Likewise.
51302         * doc/posix-functions/gets.texi: Likewise.
51303         * doc/posix-functions/scanf.texi: Likewise.
51304         * doc/posix-functions/vfscanf.texi: Likewise.
51305         * doc/posix-functions/vscanf.texi: Likewise.
51307 2011-04-14  Bruno Haible  <bruno@clisp.org>
51309         Support non-blocking pipe I/O in write() on native Windows.
51310         * lib/write.c (rpl_write): Split a write request that failed merely
51311         because the byte count was larger than the pipe buffer's size.
51312         * doc/posix-functions/write.texi: Mention the problem with large byte
51313         counts.
51315 2011-04-14  Bruno Haible  <bruno@clisp.org>
51317         wchar: Ensure that wchar_t gets defined on uClibc.
51318         * lib/wchar.in.h: On uClibc, include <stddef.h>.
51319         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
51321 2011-04-13  Bruno Haible  <bruno@clisp.org>
51323         safe-write, full-read: Avoid unnecessary compilation units.
51324         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
51325         (Depends-on): Remove safe-read. Add ssize_t.
51326         * modules/full-read (Files): Add lib/full-write.c.
51327         (Depends-on): Add full-write.
51329 2011-04-13  Bruno Haible  <bruno@clisp.org>
51331         Support non-blocking pipe I/O and SIGPIPE in pwrite().
51332         * modules/pwrite (Depends-on): Add 'write'.
51334 2011-04-13  Bruno Haible  <bruno@clisp.org>
51336         Support non-blocking pipe I/O in write() on native Windows.
51337         * lib/unistd.in.h (write): Enable replacement also if
51338         GNULIB_UNISTD_H_NONBLOCKING is 1.
51339         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
51340         (rpl_write): When failing to write on a non-blocking pipe, change
51341         errno from ENOSPC to EAGAIN.
51342         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
51343         putchar, puts, vfprintf, vprintf): Enable replacement also if
51344         GNULIB_STDIO_H_NONBLOCKING is 1.
51345         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
51346         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
51347         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
51348         CALL_WITH_SIGPIPE_EMULATION.
51349         (CALL_WITH_SIGPIPE_EMULATION): Use them.
51350         * m4/nonblocking.m4: New file.
51351         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
51352         for non-blocking I/O support.
51353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51354         GNULIB_UNISTD_H_NONBLOCKING.
51355         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
51356         required for non-blocking I/O support.
51357         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
51358         * modules/nonblocking (Files): Add m4/nonblocking.m4,
51359         lib/stdio-write.c, m4/asm-underscore.m4.
51360         (Depends-on): Add stdio, unistd.
51361         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
51362         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
51363         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
51364         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
51365         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
51366         problem with non-blocking pipes.
51367         * doc/posix-functions/fputc.texi: Likewise.
51368         * doc/posix-functions/fputs.texi: Likewise.
51369         * doc/posix-functions/fwrite.texi: Likewise.
51370         * doc/posix-functions/printf.texi: Likewise.
51371         * doc/posix-functions/putc.texi: Likewise.
51372         * doc/posix-functions/putchar.texi: Likewise.
51373         * doc/posix-functions/puts.texi: Likewise.
51374         * doc/posix-functions/vfprintf.texi: Likewise.
51375         * doc/posix-functions/vprintf.texi: Likewise.
51376         * doc/posix-functions/write.texi: Likewise.
51378 2011-04-10  Jim Meyering  <meyering@redhat.com>
51380         maint.mk: prohibit doubled words
51381         Detect them also when they're separated by a newline.
51382         There are 3 ways to customize it:
51383           - disable the test on a per file basis, as usual with rules using
51384             $(VC_LIST_EXCEPT)
51385           - replace the default doubled-word-selecting regexp (affects all files)
51386           - ignore a particular file-vs-doubled-word match
51387         I nearly used that last one to ignore the "is is" match in
51388         coreutils' NEWS file, since the text was "ls -is is ..."
51389         To do that, I would have added this line to cfg.mk:
51390           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
51391         but it would have ignored any "is is" match in NEWS.
51392         Low probability, but still...
51393         Instead, I changed the text, slightly:
51394           -  ls -is is now consistent with ls -lis in ignoring values returned
51395           +  "ls -is" is now consistent with ls -lis in ignoring values returned
51396         * top/maint.mk (prohibit_double_word_RE_): Provide default.
51397         (prohibit_doubled_word_): Define.
51398         (sc_prohibit_doubled_word): New rule.
51399         (sc_prohibit_the_the): Remove.  Subsumed by the above.
51401 2011-04-10  Jim Meyering  <meyering@redhat.com>
51403         maint: fix doubled-word typo in comment
51404         * m4/gethostname.m4: s/is is/it is/
51405         * m4/getdomainname.m4: Likewise.
51407 2011-04-10  Jim Meyering  <meyering@redhat.com>
51409         maint: remove doubled word: s/it it/it/
51410         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
51412 2011-04-10  Jim Meyering  <meyering@redhat.com>
51414         maint.mk: remove useless semicolon and backslash
51415         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
51416         semicolon and backslash.
51418 2011-04-10  Bruno Haible  <bruno@clisp.org>
51420         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
51421         * modules/stdint-tests (Depends-on): Add wchar.
51423 2011-04-10  Jim Meyering  <meyering@redhat.com>
51425         maint: remove doubled words in comments, e.g., s/a a/a/
51426         * lib/strptime.c (day_of_the_week): s/the the/the/
51427         * tests/test-chown.h (test_chown): s/a a/a/
51429         test-chown.h: correct a cast
51430         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
51431         when the destination is a stat.st_gid.
51433 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
51435         getaddrinfo: Fix test for sa_len member.
51436         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
51437         include <sys/types.h> before <sys/socket.h>.
51439 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51441         maint: change "can not" to "cannot"
51442         * doc/posix-functions/iconv.texi (iconv): This one crossed line
51443         boundaries.
51445 2011-04-09  Jim Meyering  <meyering@redhat.com>
51447         maint: change "a a" to "a"
51448         * tests/test-lchown.h (test_lchown): s/a a/a/
51450         maint.mk: prohibit \<the the\>
51451         * top/maint.mk (sc_prohibit_the_the): New rule.
51453         maint: fix "the the" in comment
51454         * lib/count-one-bits.h: s/the the/the/
51456         maint: change "can not" to "cannot"
51457         But do not change the occurrences in maintain.texi or in
51458         build-aux/po/Makefile.in.in, which I presume comes from gettext.
51459         * doc/gnulib-tool.texi: s/can not/cannot/
51460         * doc/posix-functions/accept.texi (accept): Likewise.
51461         * doc/posix-functions/socket.texi (socket): Likewise.
51462         * lib/mbrtowc.c: Likewise.
51464         maint.mk: prohibit use of "can not"
51465         * top/maint.mk (sc_prohibit_can_not): New rule.
51466         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
51468 2011-04-09  Bruno Haible  <bruno@clisp.org>
51470         careadlinkat: Guard against misuse of careadlinkatcwd.
51471         * lib/careadlinkat.c: Include <stdlib.h>.
51472         (careadlinkatcwd): Check that the fd argument is as expected.
51474 2011-04-09  Bruno Haible  <bruno@clisp.org>
51476         careadlinkat: Use common coding style.
51477         * lib/careadlinkat.c: Move gnulib includes after system includes.
51479 2011-04-09  Bruno Haible  <bruno@clisp.org>
51481         careadlinkat: Clarify specification.
51482         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
51483         (careadlinkatcwd): Add comment.
51484         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
51486 2011-04-09  Bruno Haible  <bruno@clisp.org>
51488         areadlinkat: Avoid link error on many platforms.
51489         * modules/areadlinkat (Depends-on): Add areadlink.
51491 2011-04-09  Bruno Haible  <bruno@clisp.org>
51493         allocator, careadlinkat: Fix double-inclusion guard.
51494         * lib/allocator.h: Fix double-inclusion guard.
51495         * lib/careadlinkat.h: Likewise.
51497 2011-04-09  Bruno Haible  <bruno@clisp.org>
51499         relocatable-prog-wrapper: Update after module 'areadlink' changed.
51500         * lib/relocwrapper.c: Update dependencies hierarchy.
51501         * build-aux/install-reloc: Update list of files to be compiled.
51502         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
51503         lib/allocator.[hc].
51505 2011-04-08  Eric Blake  <eblake@redhat.com>
51507         strftime: silence gnulib-tool warning
51508         * modules/strftime-tests (Depends-on): Drop automatic dependency.
51510 2011-04-08  Bruno Haible  <bruno@clisp.org>
51512         verify: Fix syntax error with GCC 4.6 in C++ mode.
51513         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
51514         (HAVE_STATIC_ASSERT): New macro.
51515         (verify_true, verify): Use 'static_assert' if it is supported and
51516         '_Static_assert' is not supported.
51518 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
51520         allocator: New module.
51521         * modules/allocator, lib/allocator.c: New files.
51522         * lib/allocator.h (stdlib_allocator): New decl.
51523         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
51524         Remove.  Do not include <stdlib.h>.
51525         (careadlinkat): Use stdlib_allocator instead of rolling our own.
51526         * modules/careadlinkat (Files): Remove lib/allocator.h.
51527         (Depends-on): Add allocator.
51529         stdlib: let modules use system malloc, realloc
51530         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
51531         if !_GL_USE_STDLIB_ALLOC.
51532         (malloc, realloc): Limit this change to a smaller scope.
51534         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
51535         (malloc, realloc): Don't #undef; no longer needed.
51536         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51537         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51538         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
51539         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51540         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51541         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51542         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51543         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
51545         careadlinkat: rename members to avoid problem
51546         * lib/allocator.h (struct allocator): Rename members from
51547         malloc/realloc to allocate/reallocate, to avoid problems if malloc
51548         and realloc are #define'd.  Reported by Eric Blake in
51549         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
51550         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
51552 2011-04-08  Eric Blake  <eblake@redhat.com>
51554         nonblocking: reduce dependency
51555         * tests/test-nonblocking.c: Only test sockets when in use.
51556         * modules/nonblocking-tests (Depends-on): Drop socket.
51557         (Makefile.am): Link even if sockets are not present.
51558         * modules/pipe2-tests (Makefile.am): Likewise.
51559         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
51561         pipe2: fix O_NONBLOCK support on mingw
51562         * modules/pipe2 (Depends-on): Add nonblocking.
51563         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
51564         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
51565         * tests/test-nonblocking.c (main): Likewise.
51566         * modules/pipe2-tests (Makefile.am): Avoid link failure.
51568         fcntl-h: fix O_ACCMODE on cygwin
51569         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
51570         * lib/fcntl.in.h (O_ACCMODE): Fix it.
51572         pipe-filter: drop O_NONBLOCK workarounds
51573         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
51574         * modules/pipe-filter-ii (Depends-on): Likewise.
51575         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
51577         nonblocking: provide O_NONBLOCK for mingw
51578         * modules/nonblocking (Depends-on): Add open.
51579         (configure.ac): Set new witness macro.
51580         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
51581         * modules/fcntl-h (Makefile.am): Substitute it.
51582         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
51583         nonblocking module is in use.
51584         * lib/nonblocking.c: Adjust portability test.
51585         * lib/open.c (open): Don't let native open see gnulib flag.
51586         * tests/test-fcntl-h.c (main): Enhance test.
51587         * tests/test-open.h (test_open): Likewise.
51588         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
51590         careadlinkat: fix compilation error on mingw
51591         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
51592         within struct allocator.
51594 2011-04-06  Eric Blake  <eblake@redhat.com>
51596         binary-io: relicense under LGPLv2+
51597         * modules/binary-io (License): Relax to LGPLv2+.
51598         Requested for libvirt, and required by pipe2.
51600 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
51602         verify: use _Static_assert if available
51603         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
51604         (verify_true, verify): Use it if available.  This generates better
51605         diagnostics with GCC 4.6.0 and later.
51607 2011-04-05  Bruno Haible  <bruno@clisp.org>
51609         Remove leftover generated .h files after config.status changed.
51611         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
51612         GL_GENERATE_ALLOCA_H.
51613         * modules/alloca-opt (Makefile.am): Remove alloca.h if
51614         GL_GENERATE_ALLOCA_H evaluates to false.
51616         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
51617         GL_GENERATE_ARGZ_H.
51618         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
51619         evaluates to false.
51621         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
51622         GL_GENERATE_BYTESWAP_H.
51623         * modules/byteswap (Makefile.am): Remove byteswap.h if
51624         GL_GENERATE_BYTESWAP_H evaluates to false.
51626         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
51627         GL_GENERATE_ERRNO_H.
51628         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
51629         evaluates to false.
51631         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
51632         GL_GENERATE_FLOAT_H.
51633         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
51634         evaluates to false.
51636         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
51637         GL_GENERATE_FNMATCH_H.
51638         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
51639         GL_GENERATE_FNMATCH_H evaluates to false.
51641         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
51642         GL_GENERATE_GLOB_H.
51643         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
51644         evaluates to false.
51646         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
51647         automake conditional GL_GENERATE_ICONV_H.
51648         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
51649         evaluates to false.
51651         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
51652         GL_GENERATE_NETINET_IN_H.
51653         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
51654         GL_GENERATE_NETINET_IN_H evaluates to false.
51656         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
51657         conditional GL_GENERATE_PTHREAD_H.
51658         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
51659         * modules/pthread (Makefile.am): Remove pthread.h if
51660         GL_GENERATE_PTHREAD_H evaluates to false.
51662         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
51663         GL_GENERATE_SCHED_H.
51664         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
51665         evaluates to false.
51667         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
51668         conditional GL_GENERATE_SELINUX_CONTEXT_H.
51669         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
51670         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
51672         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
51673         GL_GENERATE_STDARG_H.
51674         * modules/stdarg (Makefile.am): Remove stdarg.h if
51675         GL_GENERATE_STDARG_H evaluates to false.
51677         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
51678         GL_GENERATE_STDBOOL_H.
51679         * modules/stdbool (Makefile.am): Remove stdbool.h if
51680         GL_GENERATE_STDBOOL_H evaluates to false.
51682         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
51683         conditional GL_GENERATE_STDDEF_H.
51684         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
51685         * modules/stddef (Makefile.am): Remove stddef.h if
51686         GL_GENERATE_STDDEF_H evaluates to false.
51688         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
51689         GL_GENERATE_STDINT_H.
51690         * modules/stdint (Makefile.am): Remove stdint.h if
51691         GL_GENERATE_STDINT_H evaluates to false.
51693         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
51694         GL_GENERATE_SYSEXITS_H.
51695         * modules/sysexits (Makefile.am): Remove sysexits.h if
51696         GL_GENERATE_SYSEXITS_H evaluates to false.
51698         Reported by Karl Berry and Ralf Wildenhues.
51700 2011-04-05  Bruno Haible  <bruno@clisp.org>
51702         Ensure to rebuild generated .h files when config.status has changed.
51703         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
51704         config.status.
51705         * modules/ctype (Makefile.am): Likewise.
51706         * modules/dirent (Makefile.am): Likewise.
51707         * modules/errno (Makefile.am): Likewise.
51708         * modules/fcntl-h (Makefile.am): Likewise.
51709         * modules/float (Makefile.am): Likewise.
51710         * modules/getopt-posix (Makefile.am): Likewise.
51711         * modules/glob (Makefile.am): Likewise.
51712         * modules/iconv-h (Makefile.am): Likewise.
51713         * modules/inttypes (Makefile.am): Likewise.
51714         * modules/langinfo (Makefile.am): Likewise.
51715         * modules/locale (Makefile.am): Likewise.
51716         * modules/math (Makefile.am): Likewise.
51717         * modules/netdb (Makefile.am): Likewise.
51718         * modules/netinet_in (Makefile.am): Likewise.
51719         * modules/poll-h (Makefile.am): Likewise.
51720         * modules/pthread (Makefile.am): Likewise.
51721         * modules/pty (Makefile.am): Likewise.
51722         * modules/sched (Makefile.am): Likewise.
51723         * modules/search (Makefile.am): Likewise.
51724         * modules/selinux-h (Makefile.am): Likewise.
51725         * modules/signal (Makefile.am): Likewise.
51726         * modules/spawn (Makefile.am): Likewise.
51727         * modules/stdarg (Makefile.am): Likewise.
51728         * modules/stdbool (Makefile.am): Likewise.
51729         * modules/stddef (Makefile.am): Likewise.
51730         * modules/stdint (Makefile.am): Likewise.
51731         * modules/stdio (Makefile.am): Likewise.
51732         * modules/stdlib (Makefile.am): Likewise.
51733         * modules/string (Makefile.am): Likewise.
51734         * modules/strings (Makefile.am): Likewise.
51735         * modules/sys_file (Makefile.am): Likewise.
51736         * modules/sys_ioctl (Makefile.am): Likewise.
51737         * modules/sys_select (Makefile.am): Likewise.
51738         * modules/sys_socket (Makefile.am): Likewise.
51739         * modules/sys_stat (Makefile.am): Likewise.
51740         * modules/sys_time (Makefile.am): Likewise.
51741         * modules/sys_times (Makefile.am): Likewise.
51742         * modules/sys_utsname (Makefile.am): Likewise.
51743         * modules/sys_wait (Makefile.am): Likewise.
51744         * modules/sysexits (Makefile.am): Likewise.
51745         * modules/termios (Makefile.am): Likewise.
51746         * modules/time (Makefile.am): Likewise.
51747         * modules/unistd (Makefile.am): Likewise.
51748         * modules/wchar (Makefile.am): Likewise.
51749         * modules/wctype-h (Makefile.am): Likewise.
51750         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
51752 2011-04-05  Bruno Haible  <bruno@clisp.org>
51754         pipe2: Relicense under LGPLv2+.
51755         * modules/pipe2 (License): Change to LGPLv2+.
51756         Requested by Eric Blake, for libvirt.
51758 2011-04-05  Bruce Korb  <bkorb@gnu.org>
51760         bootstrap: compute gnulib_extra_files after updating build_aux
51761         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
51762         change build_aux or also supply gnulib_extra_files.  Handle correctly.
51764 2011-04-05  Eric Blake  <eblake@redhat.com>
51766         bootstrap: preserve git whitelist item sorting
51767         * build-aux/bootstrap (sort_patterns): New function.
51768         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
51770 2011-04-05  Simon Josefsson  <simon@josefsson.org>
51772         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
51773         sc_space_tab check.
51775 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
51777         areadlink, areadlinkat: rewrite in terms of careadlinkat
51778         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
51779         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
51780         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
51781         (malloc, realloc): Remove #undefs.
51782         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
51783         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
51784         readlink, ssize_t, stdint, unistd.
51785         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
51786         areadlink, stdint.
51788         careadlinkat: new module
51789         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
51790         * modules/careadlinkat: New files, written by me with
51791         a review and feedback from Ben Pfaff in
51792         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
51794 2011-04-01  Bruno Haible  <bruno@clisp.org>
51796         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
51797         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
51798         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
51799         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
51800         Reported by Bruce Korb <bruce.korb@gmail.com>.
51802 2011-04-01  Bruno Haible  <bruno@clisp.org>
51804         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
51805         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
51806         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
51807         * modules/wcpcpy (Depends-on): Add extensions.
51808         * modules/wcpncpy (Depends-on): Likewise.
51809         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
51810         systems.
51811         * doc/posix-functions/wcpncpy.texi: Likewise.
51812         * doc/posix-functions/wcwidth.texi: Likewise.
51814 2011-03-31  Eric Blake  <eblake@redhat.com>
51816         nonblocking: fix mingw test failures
51817         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
51818         non-blocking flag on regular file.
51819         (get_nonblocking_flag): Set errno on invalid fd.
51820         * tests/test-nonblocking.c (main): Avoid test failure on
51821         directories if fchdir is not active.
51822         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
51824 2011-03-31  Bruno Haible  <bruno@clisp.org>
51826         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
51827         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
51828         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
51829         Reported by Simon Josefsson <simon@josefsson.org>.
51831 2011-03-31  Bruno Haible  <bruno@clisp.org>
51832         and Eric Blake  <eblake@redhat.com>
51834         nonblocking: new module
51835         * modules/nonblocking: New module.
51836         * modules/nonblocking-tests: Likewise.
51837         * lib/nonblocking.h: New file.
51838         * lib/nonblocking.c: Likewise.
51839         * tests/test-nonblocking.c: New test.
51840         * lib/ioctl.c (ioctl) [mingw]: Update comment.
51842 2011-03-30  Bruno Haible  <bruno@clisp.org>
51844         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
51845         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
51846         instead of 'printf' format for GCC >= 4.4.
51847         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
51848         (fprintf, printf, vfprintf, vprintf): Declare with
51849         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
51850         the system's vfprintf() function.
51851         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
51853 2011-03-30  Eric Blake  <eblake@redhat.com>
51855         passfd: fix scoping bug
51856         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
51857         before sendmsg/recvmsg.
51859         passfd: standardize coding conventions
51860         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
51861         can be learned at compile time.
51862         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
51863         ifdefs.
51864         (sendfd, recvfd): Follow gnulib code conventions.
51866         passfd: fix incorrect sendmsg arguments
51867         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
51868         incorrect msg_controllen value.
51869         * modules/passfd-tests (Depends-on): Check for alarm.
51870         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
51871         Reported by Bastien ROUCARIES.
51873 2011-03-30  Bruno Haible  <bruno@clisp.org>
51875         c-strcasestr: Relicense under LGPLv2+.
51876         * modules/c-strcasestr (License): Change to LGPLv2+.
51877         Requested by Eric Blake, for libvirt.
51879 2011-03-30  Simon Josefsson  <simon@josefsson.org>
51881         * users.txt: Add libidn2.  Fix libtasn1 link.
51883 2011-03-30  Jim Meyering  <meyering@redhat.com>
51885         tests: readlink* ("",... fails with EINVAL on newer kernels
51886         readlink and readlinkat have typically failed with ENOENT for
51887         the invalid, empty file name,  "".  However, with the advent
51888         of linux-2.6.39, they fail with EINVAL.
51889         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
51890         when operating on the empty file name.
51891         * tests/test-readlink.h (test_readlink): Likewise.
51893 2011-03-29  Bruno Haible  <bruno@clisp.org>
51895         Relicense some modules under LGPLv2+, for libidn2.
51896         * modules/array-mergesort (License): Change to LGPLv2+.
51897         * modules/c-strcaseeq (License): Likewise.
51898         * modules/striconveh (License): Likewise.
51899         * modules/striconveha (License): Likewise.
51900         * modules/uniconv/base (License): Likewise.
51901         * modules/uniconv/u8-conv-from-enc (License): Likewise.
51902         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
51903         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
51904         * modules/unictype/base (License): Likewise.
51905         * modules/unictype/bidiclass-of (License): Likewise.
51906         * modules/unictype/category-M (License): Likewise.
51907         * modules/unictype/category-none (License): Likewise.
51908         * modules/unictype/category-of (License): Likewise.
51909         * modules/unictype/category-test (License): Likewise.
51910         * modules/unictype/category-test-withtable (License): Likewise.
51911         * modules/unictype/combining-class (License): Likewise.
51912         * modules/unictype/joiningtype-of (License): Likewise.
51913         * modules/unictype/scripts (License): Likewise.
51914         * modules/uninorm/base (License): Likewise.
51915         * modules/uninorm/canonical-decomposition (License): Likewise.
51916         * modules/uninorm/composition (License): Likewise.
51917         * modules/uninorm/decompose-internal (License): Likewise.
51918         * modules/uninorm/decomposition-table (License): Likewise.
51919         * modules/uninorm/nfc (License): Likewise.
51920         * modules/uninorm/nfd (License): Likewise.
51921         * modules/uninorm/u32-normalize (License): Likewise.
51922         * modules/unistr/base (License): Likewise.
51923         * modules/unistr/u32-cpy (License): Likewise.
51924         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
51925         * modules/unistr/u32-to-u8 (License): Likewise.
51926         * modules/unistr/u32-uctomb (License): Likewise.
51927         * modules/unistr/u8-check (License): Likewise.
51928         * modules/unistr/u8-mblen (License): Likewise.
51929         * modules/unistr/u8-mbtouc (License): Likewise.
51930         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
51931         * modules/unistr/u8-mbtoucr (License): Likewise.
51932         * modules/unistr/u8-prev (License): Likewise.
51933         * modules/unistr/u8-strlen (License): Likewise.
51934         * modules/unistr/u8-to-u32 (License): Likewise.
51935         * modules/unistr/u8-uctomb (License): Likewise.
51936         * modules/unitypes (License): Likewise.
51937         Requested by Simon Josefsson.
51939 2011-03-29  Simon Josefsson  <simon@josefsson.org>
51941         lib-symbol-visibility: Add a notice.
51942         * modules/lib-symbol-visibility (Notice): New field.
51944 2011-03-29  Bruno Haible  <bruno@clisp.org>
51946         getaddrinfo: Doc fix.
51947         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
51948         section "fixed in Gnulib".
51950 2011-03-28  Simon Josefsson  <simon@josefsson.org>
51952         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
51953         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
51955 2011-03-26  Bruno Haible  <bruno@clisp.org>
51957         unictype/property-byname: Reduce the number of load-time relocations.
51958         * lib/unictype/pr_byname.c: Include <stdlib.h>.
51959         (UC_PROPERTY_INDEX_*): New enumeration values.
51960         (uc_property_byname): Convert an index from the lookup table to an
51961         uc_property_t.
51962         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
51963         values.
51965 2011-03-26  Bruno Haible  <bruno@clisp.org>
51967         unictype/property-byname: Allow omitted word separators and aliases.
51968         * lib/unictype/pr_byname.gperf: Add property names without word
51969         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
51970         for 'space'.
51972 2011-03-26  Bruno Haible  <bruno@clisp.org>
51974         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
51975         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
51976         also hyphens to space.
51977         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
51978         without spaces.
51979         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
51981 2011-03-26  Bruno Haible  <bruno@clisp.org>
51983         unictype/joiningtype-byname: Recognize long names as well.
51984         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
51985         a long name.
51986         * lib/unictype/joiningtype_byname.c: Include <string.h>,
51987         unictype/joiningtype_byname.h.
51988         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
51989         * lib/unictype/joiningtype_byname.gperf: New file.
51990         * modules/unictype/joiningtype-byname (Files): Add
51991         lib/unictype/joiningtype_byname.gperf.
51992         (Depends-on): Add gperf.
51993         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
51994         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
51995         long names.
51997         Tests for module 'unictype/joiningtype-longname'.
51998         * modules/unictype/joiningtype-longname-tests: New file.
51999         * tests/unictype/test-joiningtype_longname.c: New file.
52001         New module 'unictype/joiningtype-longname'.
52002         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
52003         * lib/unictype/joiningtype_longname.c: New file.
52004         * modules/unictype/joiningtype-longname: New file.
52005         * modules/unictype/joiningtype-all (Depends-on): Add
52006         unictype/joiningtype-longname.
52008 2011-03-26  Bruno Haible  <bruno@clisp.org>
52010         unictype/bidiclass-byname: Recognize long names as well.
52011         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
52012         name.
52013         * lib/unictype/bidi_byname.c: Include <string.h>,
52014         unictype/bidi_byname.h.
52015         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
52016         * lib/unictype/bidi_byname.gperf: New file.
52017         * modules/unictype/bidiclass-byname (Files): Add
52018         lib/unictype/bidi_byname.gperf.
52019         (Depends-on): Add gperf.
52020         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
52021         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
52022         long names.
52024         Tests for module 'unictype/bidiclass-longname'.
52025         * modules/unictype/bidiclass-longname-tests: New file.
52026         * tests/unictype/test-bidi_longname.c: New file.
52028         New module 'unictype/bidiclass-longname'.
52029         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
52030         * lib/unictype/bidi_longname.c: New file.
52031         * modules/unictype/bidiclass-longname: New file.
52032         * modules/unictype/bidiclass-all (Depends-on): Add
52033         unictype/bidiclass-longname.
52035 2011-03-26  Bruno Haible  <bruno@clisp.org>
52037         unictype/bidi*: Rename modules.
52038         * modules/unictype/bidiclass-all: Renamed from
52039         modules/unictype/bidicategory-all.
52040         * modules/unictype/bidiclass-name: Renamed from
52041         modules/unictype/bidiclass-name.
52042         (Description): Update.
52043         * modules/unictype/bidiclass-name-tests: Renamed from
52044         modules/unictype/bidicategory-name-tests.
52045         * modules/unictype/bidiclass-byname: Renamed from
52046         modules/unictype/bidicategory-byname.
52047         (Description): Update.
52048         * modules/unictype/bidiclass-byname-tests: Renamed from
52049         modules/unictype/bidicategory-byname-tests.
52050         * modules/unictype/bidiclass-of: Renamed from
52051         modules/unictype/bidicategory-of.
52052         (Description): Update.
52053         * modules/unictype/bidiclass-of-tests: Renamed from
52054         modules/unictype/bidicategory-of-tests.
52055         * modules/unictype/bidiclass-test: Renamed from
52056         modules/unictype/bidicategory-test.
52057         (Description): Update.
52058         * modules/unictype/bidiclass-test-tests: Renamed from
52059         modules/unictype/bidicategory-test-tests.
52060         * modules/unictype/bidicategory-all: New file, a simple redirection.
52061         * modules/unictype/bidicategory-name: Likewise.
52062         * modules/unictype/bidicategory-byname: Likewise.
52063         * modules/unictype/bidicategory-of: Likewise.
52064         * modules/unictype/bidicategory-test: Likewise.
52065         * modules/unictype/property-bidi-* (Dependencies): Update.
52066         * lib/unictype/bidi_*.c: Update comment.
52068 2011-03-26  Bruno Haible  <bruno@clisp.org>
52070         unictype/bidi*: Rename functions, part 2.
52071         * modules/unictype/bidicategory-name (configure.ac): Update required
52072         libunistring version.
52073         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
52075 2011-03-25  Bruno Haible  <bruno@clisp.org>
52077         New module 'unictype/combining-class-all'.
52078         * modules/unictype/combining-class-all: New file.
52080         Tests for module 'unictype/combining-class-byname'.
52081         * modules/unictype/combining-class-byname-tests: New file.
52082         * tests/unictype/test-combiningclass_byname.c: New file.
52084         New module 'unictype/combining-class-byname'.
52085         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
52086         * lib/unictype/combiningclass_byname.c: New file.
52087         * lib/unictype/combiningclass_byname.gperf: New file.
52088         * modules/unictype/combining-class-byname: New file.
52090         Tests for module 'unictype/combining-class-longname'.
52091         * modules/unictype/combining-class-longname-tests: New file.
52092         * tests/unictype/test-combiningclass_longname.c: New file.
52094         New module 'unictype/combining-class-longname'.
52095         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
52096         * lib/unictype/combiningclass_longname.c: New file.
52097         * modules/unictype/combining-class-longname: New file.
52099         Tests for module 'unictype/combining-class-name'.
52100         * modules/unictype/combining-class-name-tests: New file.
52101         * tests/unictype/test-combiningclass_name.c: New file.
52103         New module 'unictype/combining-class-name'.
52104         * lib/unictype.in.h (uc_combining_class_name): New declaration.
52105         * lib/unictype/combiningclass_name.c: New file.
52106         * modules/unictype/combining-class-name: New file.
52108 2011-03-25  Bruno Haible  <bruno@clisp.org>
52110         unictype/combining-class: Rename source files.
52111         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
52112         of unictype/combining.h.
52113         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
52114         Update.
52115         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
52116         * modules/unictype/combining-class (Description): Fix.
52117         (Files, Makefile.am): Update.
52118         * tests/unictype/test-combiningclass.c: Renamed from
52119         tests/unictype/test-combining.c.
52120         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
52122 2011-03-25  Bruno Haible  <bruno@clisp.org>
52124         unictype: Update list of canonical combining classes.
52125         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
52127 2011-03-25  Bruno Haible  <bruno@clisp.org>
52129         unictype/category-byname: Recognize long names as well.
52130         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
52131         a long name.
52132         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
52133         unictype/categ_byname.h.
52134         (UC_CATEGORY_INDEX_*): New enumeration values.
52135         (uc_general_category_byname): Use uc_general_category_lookup and
52136         convert from index to value.
52137         * lib/unictype/categ_byname.gperf: New file.
52138         * modules/unictype/category-byname (Files): Add
52139         lib/unictype/categ_byname.gperf.
52140         (Depends-on): Add gperf.
52141         (Makefile.am): Add rule for generating unictype/categ_byname.h.
52142         * tests/unictype/test-categ_byname.c (main): Test the recognition of
52143         long names.
52145         Tests for module 'unictype/category-longname'.
52146         * modules/unictype/category-longname-tests: New file.
52147         * tests/unictype/test-categ_longname.c: New file.
52149         New module 'unictype/category-longname'.
52150         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
52151         * lib/unictype/categ_longname.c: New file.
52152         * modules/unictype/category-longname: New file.
52153         * modules/unictype/category-all (Depends-on): Add it.
52155 2011-03-25  Bruno Haible  <bruno@clisp.org>
52157         Tests for module 'unictype/category-LC'.
52158         * modules/unictype/category-LC-tests: New file.
52159         * tests/unictype/test-categ_LC.c: New file, automatically generated.
52161         New module 'unictype/category-LC'.
52162         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
52163         (UC_CATEGORY_LC): New declaration.
52164         (UC_CASED_LETTER): New macro.
52165         * lib/gen-uni-tables.c (is_category_LC): New function.
52166         (output_categories): Also handle category LC.
52167         (UC_CATEGORY_MASK_LC): New enumeration value.
52168         (general_category_byname): Also handle category LC.
52169         * lib/unictype/categ_LC.c: New file.
52170         * lib/unictype/categ_LC.h: New file, automatically generated.
52171         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
52172         category LC.
52173         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
52174         * modules/unictype/category-LC: New file.
52175         * modules/unictype/category-byname (Depends-on): Add
52176         unictype/category-LC.
52177         * modules/unictype/category-all (Depends-on): Likewise.
52179 2011-03-25  Eric Blake  <eblake@redhat.com>
52181         xmalloc: revert yesterday's regression
52182         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
52183         realloc's underlying behavior (allowing allocation of zero-size
52184         objects, especially if malloc-gnu is also in use).
52186 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
52188         maint.mk: add missing version to VC-tag
52189         * top/maint.mk: git tag was missing actual tag name; add it.
52191         valgrind: do leak checking, and exit with code 1 on error (not 0)
52192         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
52193         to VALGRIND.
52195 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
52197         posix-modules: say what it does.
52198         * posix-modules: Add a line to the --help output saying what it does.
52200 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
52202         xmalloc: Do not leak if underlying realloc is C99 compatible.
52203         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
52204         This avoids a leak on C99-based systems.  See
52205         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
52207 2011-03-24  Eric Blake  <eblake@redhat.com>
52209         realloc: document portability problem
52210         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
52211         passing 0 size to realloc.
52213 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
52215         doc: update users.txt
52216         * users.txt: Add cvsps, tmpwatch
52218 2011-03-23  Matt Rice  <ratmice@gmail.com>
52220         doc: update users.txt
52221         * users.txt: Add gdb.
52223 2011-03-23  Jim Meyering  <meyering@redhat.com>
52225         doc: update users.txt
52226         Looking through matches up to the following URL (there are still
52227         several more pages), I found several projects that use gnulib:
52228         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
52229         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
52230         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
52232 2011-03-22  Bruno Haible  <bruno@clisp.org>
52234         unictype/bidi*: Rename functions.
52235         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
52236         uc_bidi_class, uc_is_bidi_class): New declarations.
52237         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
52238         uc_bidi_category_byname.
52239         (uc_bidi_category_byname): New function.
52240         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
52241         u_bidi_category_name.
52242         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
52243         (uc_bidi_category_name): New function.
52244         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
52245         uc_bidi_category.
52246         (uc_bidi_category): New function.
52247         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
52248         uc_is_bidi_category. Invoke uc_bidi_class.
52249         (uc_is_bidi_category): New function.
52250         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
52251         instead of uc_bidi_category_byname.
52252         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
52253         instead of uc_bidi_category_name.
52254         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
52255         uc_bidi_category.
52256         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
52257         instead of uc_is_bidi_category.
52259 2011-03-21  Bruno Haible  <bruno@clisp.org>
52261         New module 'unictype/joininggroup-all'.
52262         * modules/unictype/joininggroup-all: New file.
52264         Tests for module 'unictype/joininggroup-of'.
52265         * modules/unictype/joininggroup-of-tests: New file.
52266         * tests/unictype/test-joininggroup_of.c: New file.
52267         * tests/unictype/test-joininggroup_of.h: New file, automatically
52268         generated by gen-uni-tables.
52270         New module 'unictype/joininggroup-of'.
52271         * modules/unictype/joininggroup-of: New file.
52272         * lib/unictype/joininggroup_of.c: New file.
52273         * lib/unictype/joininggroup_of.h: New file, automatically generated by
52274         gen-uni-tables.
52276         Tests for module 'unictype/joininggroup-byname'.
52277         * modules/unictype/joininggroup-byname-tests: New file.
52278         * tests/unictype/test-joininggroup_byname.c: New file.
52280         New module 'unictype/joininggroup-byname'.
52281         * modules/unictype/joininggroup-byname: New file.
52282         * lib/unictype/joininggroup_byname.c: New file.
52283         * lib/unictype/joininggroup_byname.gperf: New file.
52285         Tests for module 'unictype/joininggroup-name'.
52286         * modules/unictype/joininggroup-name-tests: New file.
52287         * tests/unictype/test-joininggroup_name.c: New file.
52289         New module 'unictype/joininggroup-name'.
52290         * modules/unictype/joininggroup-name: New file.
52291         * lib/unictype/joininggroup_name.c: New file.
52292         * lib/unictype/joininggroup_name.h: New file.
52294         New module 'unictype/joiningtype-all'.
52295         * modules/unictype/joiningtype-all: New file.
52297         Tests for module 'unictype/joiningtype-of'.
52298         * modules/unictype/joiningtype-of-tests: New file.
52299         * tests/unictype/test-joiningtype_of.c: New file.
52300         * tests/unictype/test-joiningtype_of.h: New file, automatically
52301         generated by gen-uni-tables.
52303         New module 'unictype/joiningtype-of'.
52304         * modules/unictype/joiningtype-of: New file.
52305         * lib/unictype/joiningtype_of.c: New file.
52306         * lib/unictype/joiningtype_of.h: New file, automatically generated by
52307         gen-uni-tables.
52309         Tests for module 'unictype/joiningtype-byname'.
52310         * modules/unictype/joiningtype-byname-tests: New file.
52311         * tests/unictype/test-joiningtype_byname.c: New file.
52313         New module 'unictype/joiningtype-byname'.
52314         * modules/unictype/joiningtype-byname: New file.
52315         * lib/unictype/joiningtype_byname.c: New file.
52317         Tests for module 'unictype/joiningtype-name'.
52318         * modules/unictype/joiningtype-name-tests: New file.
52319         * tests/unictype/test-joiningtype_name.c: New file.
52321         New module 'unictype/joiningtype-name'.
52322         * modules/unictype/joiningtype-name: New file.
52323         * lib/unictype/joiningtype_name.c: New file.
52325         unictype: Add support for Arabic shaping properties.
52326         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
52327         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
52328         declarations.
52329         (UC_JOINING_GROUP_*): New enumeration values.
52330         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
52331         declarations.
52332         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
52333         (unicode_joining_type): New variable.
52334         (UC_JOINING_GROUP_*): New enumeration values.
52335         (unicode_joining_group): New variable.
52336         (fill_arabicshaping, joining_type_as_c_identifier,
52337         output_joining_type_test, output_joining_type,
52338         joining_group_as_c_identifier, output_joining_group_test,
52339         output_joining_group): New functions.
52340         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
52341         fill_arabicshaping and output_joining_type_test, output_joining_type,
52342         output_joining_group_test, output_joining_group.
52343         Reported by Simon Josefsson.
52345 2011-03-21  Jim Meyering  <meyering@redhat.com>
52347         strftime: fix a bug in yesterday's change
52348         * lib/strftime.c (add): Accommodate width's initial value of -1.
52349         Otherwise, nstrftime would copy uninitialized data into
52350         the result buffer.
52352 2011-03-21  Jim Meyering  <meyering@redhat.com>
52354         tests: add strftime-tests module
52355         * tests/test-strftime.c: New file.
52356         * modules/strftime-tests: New module.
52358 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
52360         strftime: don't assume a byte count fits in 'int'
52361         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
52362         found this problem by static analysis, using gcc -Wstrict-overflow
52363         (GCC 4.5.2, x86-64).  This reported an optimization that depended
52364         on an integer overflow having undefined behavior, but it turns out
52365         that the argument is a size, which might not fit in 'int' anyway,
52367 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
52369         stdio: don't require ignore_value around fwrite
52371         This patch works around libc bug 11959
52372         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
52373         Without this patch, applications must often write
52374         ignore_value (fwrite (...)) even though the ignore_value is
52375         not helpful here.  It's common to write many objects, using
52376         fwrite/printf/etc., and then use ferror to detect output error.
52378         I considered making this patch optional, but decided against it,
52379         because libc is obviously being inconsistent here: there is no
52380         reason libc should insist that user code must inspect fwrite
52381         return's value without also insisting that it inspect printf's,
52382         putchar's, etc.  If user code wants to have a strict style where
52383         all these functions' values are checked (so that ferror need not
52384         be checked), we could add support for that style in a new gnulib
52385         module, but in the meantime it's better to be consistent and to
52386         support common usage.
52388         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
52389         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
52390         that we are compiling in checking mode, and if not C++, and
52391         if not already wrapping fwrite for some other reason.
52392         (fwrite): #define to rpl_fwrite if the latter is defined.
52394 2011-03-20  Bruno Haible  <bruno@clisp.org>
52396         verror: Fix compilation error introduced on 2011-02-13.
52397         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
52398         instead of __attribute__.
52399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52401 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
52402             Bruno Haible  <bruno@clisp.org>
52404         socklen: do not depend on sys_socket
52405         While trying to modify Emacs to use gnulib's socklen module,
52406         I discovered a circular dependency: socklen depends on sys_socket
52407         and vice versa.  Emacs can use socklen, but it does not need
52408         sys_socket because it has its own substitute for sys/socket.h.
52409         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
52410         gl_TYPE_SOCKLEN_T.
52411         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
52412         gl_PREREQ_SYS_H_SOCKET.
52413         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
52414         gl_PREREQ_SYS_H_SOCKET.
52415         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
52416         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
52417         * modules/socklen (Depends-on): Do not depend on sys_socket.
52418         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
52420 2011-03-20  Jim Meyering  <meyering@redhat.com>
52422         maint.mk: sort file names *after* new transformation
52423         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
52424         prefix would have led to an unwarranted failure in GNU parted.
52425         Sort after that transformation.
52427 2011-03-19  Jim Meyering  <meyering@redhat.com>
52429         maint.mk: fix po-file syntax-check rule
52430         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
52431         Patch by Bruno Haible.
52433 2011-03-19  Bruno Haible  <bruno@clisp.org>
52435         socklen: Update comment.
52436         * m4/socklen.m4: Update comment about platforms.
52438 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52439             Bruno Haible  <bruno@clisp.org>
52441         inet_ntop, inet_pton: Simplify.
52442         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
52443         documented to provide socklen_t and we already depend on sys_socket.
52444         * modules/inet_pton (Depends-on): Likewise.
52445         * lib/arpa_inet.in.h: Adjust comment.
52447 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52448             Bruno Haible  <bruno@clisp.org>
52450         netdb: Simplify.
52451         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
52452         documented to provide socklen_t and we already depend on sys_socket.
52453         * lib/netdb.in.h: Adjust comment.
52455 2011-03-19  Bruno Haible  <bruno@clisp.org>
52457         sys_socket, netdb: Document problem with socklen_t.
52458         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
52459         platforms.
52460         * doc/posix-headers/netdb.texi: Likewise.
52462 2011-03-18  Eric Blake  <eblake@redhat.com>
52464         maint.mk: let po check work in VPATH build
52465         * top/maint.mk (po_file): Allow cfg.mk override.
52466         (sc_po_check): Allow VPATH use.
52467         Reported by Jiri Denemark.
52469 2011-03-16  Jim Meyering  <meyering@redhat.com>
52471         maint.mk: allow fine-grained syntax-check exclusion via Make variables
52472         Before, you would have had to create one .x-sc_ file per rule in order
52473         to exempt offending files.  Now, you may instead use a Make variable --
52474         usually defined in cfg.mk -- whose name identifies the affected rule.
52475         * top/maint.mk (_sc_excl): Define.
52476         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
52477         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
52479 2011-03-13  Bruno Haible  <bruno@clisp.org>
52481         ignore-value tests: Avoid warnings.
52482         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
52483         empty for gcc < 3.4.
52485 2011-03-13  Bruno Haible  <bruno@clisp.org>
52487         passfd: Fix link error on Solaris.
52488         * modules/passfd (Description): Correct.
52489         (Depends-on): Add socketlib.
52490         (Link): New section.
52491         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
52493 2011-03-13  Bruno Haible  <bruno@clisp.org>
52495         passfd: Fix link error on AIX 5.2.
52496         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
52498 2011-03-13  Bruno Haible  <bruno@clisp.org>
52500         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
52501         * lib/sys_socket.in.h: Include <stddef.h>.
52502         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
52503         CMSG_FIRSTHDR. Remove unused variable.
52505 2011-03-13  Bruno Haible  <bruno@clisp.org>
52507         passfd: Fix compilation error on OpenBSD.
52508         * lib/passfd.c: Include <sys/uio.h>.
52510 2011-03-13  Bruno Haible  <bruno@clisp.org>
52512         passfd test: Fix warnings.
52513         * tests/test-passfd.c: Include <sys/wait.h>.
52514         (main): Fix typo.
52516 2011-03-13  Bruno Haible  <bruno@clisp.org>
52518         passfd module, part 4, tweaks.
52519         * tests/test-passfd.c: Reorder includes.
52520         (main): Fix perror and printf calls.
52522 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
52524         passfd module, part 4.
52525         * modules/passfd-tests: New file.
52526         * tests/test-passfd.c: New file.
52528 2011-03-13  Jim Meyering  <meyering@redhat.com>
52530         Makefile: rely on GNU make; derive syntax-check rule names
52531         Rather than requiring that each sc_ rule be listed as a dependent
52532         of "check", use features of GNU make to derive the list.
52533         * Makefile (syntax-check-rules): Define.
52534         (check): Depend on the new variable, not the hard-coded list.
52536 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
52537             Bruno Haible  <bruno@clisp.org>
52539         passfd module, part 3.
52540         * lib/passfd.h (recvfd): Add a flags argument.
52541         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
52542         (recvfd): Add a flags argument.
52543         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
52544         exists.
52545         * modules/passfd (Depends-on): Add cloexec.
52546         Suggested by Eric Blake.
52548 2011-03-13  Bruno Haible  <bruno@clisp.org>
52550         passfd module, part 2, tweaks.
52551         * modules/passfd (Files): Reorder.
52552         (Depends-on): Remove errno.
52553         (Include): Remove <sys/socket.h>, <sys/un.h>.
52554         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
52555         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
52556         specification header. Include <sys/socket.h> always. Don't include
52557         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
52558         (sendfd): Clarify that it sets errno when it fails.
52559         (recvfd): Fix specification.
52561 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
52563         passfd module, part 2.
52564         * modules/passfd: New file.
52565         * lib/passfd.h: New file.
52566         * lib/passfd.c: New file.
52568 2011-03-12  Bruno Haible  <bruno@clisp.org>
52570         wcswidth, mbswidth: Avoid integer overflow.
52571         * lib/wcswidth.c: Include <limits.h>.
52572         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
52573         * lib/mbswidth.c: Include <limits.h>.
52574         (mbsnwidth): Avoid 'int' overflow.
52575         Reported by Jim Meyering.
52577 2011-03-12  Bruno Haible  <bruno@clisp.org>
52579         futimens, utimensat: Avoid endless recursion on Solaris 10.
52580         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
52581         Solaris.
52582         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
52583         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
52585 2011-03-11  Jim Meyering  <meyering@redhat.com>
52587         maint.mk: relax a regexp to accommodate other formatting styles
52588         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
52589         between "ngettext" and the following "(".
52591 2011-03-11  Pádraig Brady  <P@draigBrady.com>
52593         maint.mk: suppress a false positive warning
52594         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
52595         diagnostics are marked with ngettext.
52597 2011-03-10  Eric Blake  <eblake@redhat.com>
52599         wchar: add explicit dependencies, for Tru64
52600         * modules/mbmemcasecoll (Depends-on): Add wchar.
52601         * modules/mbtowc (Depends-on): Likewise.
52602         * modules/vasnprintf (Depends-on): Likewise.
52603         * modules/unistdio/u-printf-args (Depends-on): Likewise.
52604         * modules/wctomb (Depends-on): Likewise.
52605         Reported by Peter O'Gorman.
52607 2011-03-08  Bruno Haible  <bruno@clisp.org>
52609         passfd module, part 1, tweaks.
52610         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
52611         Improve indentation. Improve AC_MSG_CHECKING messages.
52612         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
52613         gl_SOCKET_FAMILIES.
52615 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
52617         passfd module, part 1.
52618         * m4/afunix.m4: New file.
52619         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
52620         sockets.
52622 2011-03-08  Bruno Haible  <bruno@clisp.org>
52624         regex-quote: New API.
52625         * lib/regex-quote.h: Include <stdbool.h>.
52626         (struct regex_quote_spec): New type.
52627         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
52628         New declarations.
52629         (regex_quote_length, regex_quote_copy, regex_quote): Take a
52630         'const struct regex_quote_spec *' argument.
52631         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
52632         (pcre_special): New constant.
52633         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
52634         New functions.
52635         (regex_quote_length, regex_quote_copy, regex_quote): Take a
52636         'const struct regex_quote_spec *' argument.
52637         * modules/regex-quote (Depends-on): Add stdbool.
52638         * tests/test-regex-quote.c (check): Update for new API. Add test for
52639         anchored results.
52640         * NEWS: Mention the API change.
52641         Reported by Reuben Thomas and Eric Blake.
52643 2011-03-06  Bruno Haible  <bruno@clisp.org>
52645         regex-quote: Fix creation of POSIX extended regular expressions.
52646         * lib/regex-quote.c (ere_special): Add grouping and alternation
52647         operators.
52649 2011-03-05  Bruno Haible  <bruno@clisp.org>
52651         doc: Improve doc regarding autopoint vs. gnulib.
52652         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
52653         disable autopoint while running autoreconf.
52654         Suggested by Ralf Wildenhues.
52656 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52658         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
52659         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
52661 2011-03-03  Bruce Korb  <bkorb@gnu.org>
52663         parse-duration: remove xalloc.h dependency
52664         * lib/parse-duration.c (parse_period): handle NULL return from
52665         strdup instead of calling xstrdup().
52666         * modules/parse-duration: remove "xalloc" dependency
52668 2011-03-03  Matthew Booth  <mbooth@redhat.com>
52670         bootstrap: honor m4_base when running aclocal
52671         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
52673 2011-03-02  Jim Meyering  <meyering@redhat.com>
52675         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
52676         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
52677         on request from Matt Booth.
52679 2011-03-01  Eric Blake  <eblake@redhat.com>
52681         test-link: work on Hurd
52682         * tests/test-link.h (test_link): Hurd rejects linking directories
52683         with EISDIR instead of the POSIX-mandated EPERM.
52685 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
52687         stdio: simplify by moving files to printf-posix, sigpipe
52688         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
52689         since this symbol is needed only if printf is replaced.
52690         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
52691         Require gl_ASM_SYMBOL_PREFIX.
52692         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
52693         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
52694         (Depends-on): Add 'raise'.
52695         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
52696         * modules/stdio (Files): Remove lib/stdio-write.c,
52697         m4/asm-underscore.m4.
52698         (Depends-on): Remove 'raise'.
52700         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
52701         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
52702         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
52703         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
52705 2011-02-28  Bruno Haible  <bruno@clisp.org>
52707         localcharset: Assume ANSI C behaviour of free().
52708         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
52709         calling free().
52710         Suggested by Simon Josefsson <simon@josefsson.org>.
52712 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
52713             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
52714             Bruno Haible  <bruno@clisp.org>  (tiny change)
52716         On Cygwin, use /proc file system instead of win32 API.
52717         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
52718         Win32 file names.
52719         (DllMain): Simplify by removing Cygwin specific code.
52720         (find_shared_library_fullname): Use Linux specific implementation also
52721         for Cygwin.
52722         (get_shared_library_fullname): Update accordingly.
52723         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
52724         Win32 file names.
52725         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
52726         Cygwin specific code.
52728 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
52729             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
52731         Fix OpenMP flag detection for various Fortran compilers.
52732         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
52733         OpenMP-conditional compilation construct, to force compile
52734         failure with missing OpenMP flag.
52735         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
52737 2011-02-25  Eric Blake  <eblake@redhat.com>
52739         strstr: expand test coverage
52740         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
52741         compilation.
52742         * tests/test-memmem.c (main): Duplicate tests.
52743         * tests/test-strcasestr.c (main): Likewise.
52744         * tests/test-c-strcasestr.c (main): Likewise.
52746 2011-02-25  Jim Meyering  <meyering@redhat.com>
52748         maint.mk: detect missing-NL-at-EOF, too
52749         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
52750         it also detects when a file lacks a newline at EOF.
52751         (require_exactly_one_NL_at_EOF_): Renamed from
52752         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
52753         since people may well have .x-sc_... file names tied to the
52754         existing name.  Suggested by Eric Blake.
52756 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52758         dirname: move m4/dos.m4 functionality into lib/dosname.h
52760         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
52761         extracts symbols from it, puts them into config.h; but it's much
52762         easier to use the symbols directly.  filename.h already does this,
52763         but it disagrees with dos.m4 in some respects.  This patch
52764         introduces a different include file dosname.h that packages up
52765         dos.m4, and then later we can work on merging filename.h and
52766         dosname.h.  Applications that need only the easy-to-configure
52767         symbols should consider including dosname.h rather than dirname.h.
52768         * NEWS: Mention incompatible changes.
52769         * m4/dos.m4: Remove.
52770         * lib/dosname.h, modules/dosname: New files.
52771         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
52772         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
52773         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
52774         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
52775         Include dosname.h, not dirname.h.
52776         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
52777         Include dosname.h, for definitions of symbols like ISSLASH
52778         that used to be in config.h.
52779         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
52780         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
52781         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52782         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
52783         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
52784         * modules/rmdir (Files): Likewise.
52785         * modules/stat (Files): Likewise.
52786         * modules/unlink (Files): Likewise.
52787         * modules/dirname-lgpl (Depends-on): Add dosname.
52788         * modules/lstat (Depends-on): Likewise.
52789         * modules/openat (Depends-on): Likewise.
52790         * modules/rmdir (Depends-on): Likewise.
52791         * modules/savewd (Depends-on): Likewise.
52792         * modules/stat (Depends-on): Likewise.
52793         * modules/unlink (Depends-on): Likewise.
52794         * modules/openat (Depends-on): Remove dirname-lgpl.
52795         * modules/savewd (Depends-on): Likewise.
52796         * tests/test-dirname.c: Do not use removed symbols like
52797         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
52798         the remaining symbols, e.g., ISSLASH ('\\').
52800 2011-02-25  Eric Blake  <eblake@redhat.com>
52802         strstr: revert patches that introduced bug and pessimization
52803         * lib/str-two-way.h: Add another reference.
52804         (two_way_short_needle, two_way_long_needle): Revert changes from
52805         2011-02-24; they pessimize search speed.
52806         (critical_factorization): Partially revert changes from
52807         2010-06-22; they violate the requirement that the left half of the
52808         needle be smaller than the period of the needle.
52810 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52812         filenamecat: remove unnecessary dependency on dirname-lgpl
52813         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
52814         is no direct dependency, just an indirect one via filenamecat-lgpl.
52816         remove: remove unnecessary use of m4/dos.m4
52817         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
52818         * modules/remove (FILES): Remove m4/dos.m4.
52820         * lib/openat-proc.c: Don't include dirname.h; not needed.
52822         backupfile: remove unnecessary use of m4/dos.m4
52823         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
52824         of its symbols are used by the backupfile code.  backupfile.c does
52825         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
52826         for the rare case of programs that want all their backup file
52827         names to live within 8+3 limits, and dos.m4 doesn't address that.
52828         * modules/backupfile (Files): Remove m4/dos.m4.
52830 2011-02-24  Jim Meyering  <meyering@redhat.com>
52832         strstr: fix a bug whereby strstr would mistakenly return NULL
52833         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
52834         in period calculation.
52835         (two_way_long_needle): Likewise.
52836         The original problem was reported by Mike Stump in
52837         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
52838         Ralf Wildenhues provided the short needle and haystack.
52839         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
52840         Add a more involved test to trigger the bug in two_way_long_needle.
52842 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
52844         gnulib-tool: remove use of bold display in help screen
52845         * gnulib-tool (func_usage): Do not use bold display anymore in the
52846         help screen.  That was just meant to be a temporary emphasis for a
52847         backward-incompatible change.
52849 2011-02-23  Bruno Haible  <bruno@clisp.org>
52851         Fix misindentation of preprocessor directives.
52852         * lib/argp-namefrob.h: Reindent preprocessor directives.
52853         * lib/getopt_int.h (struct _getopt_data): Likewise.
52854         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
52855         * lib/vasnprintf.c (decode_long_double): Likewise.
52856         * tests/test-argmatch.c: Insert blank lines, for clarity.
52857         * tests/test-exclude.c: Likewise.
52859 2011-02-22  Bruno Haible  <bruno@clisp.org>
52861         ioctl: Fix for MacOS X in 64-bit mode.
52862         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
52863         value.
52864         Suggested by Eric Blake.
52865         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
52867 2011-02-22  Jim Meyering  <meyering@redhat.com>
52869         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
52870         * Makefile (sc_cpp_indent_check): Don't limit the check to files
52871         in lib/.
52873 2011-02-22  Eric Blake  <eblake@redhat.com>
52875         maint: avoid any CDPATH issue
52876         * Makefile (sc_cpp_indent_check): Anchor cd argument.
52878         maint: adjust cpp indentation for my modules, as well
52879         * Makefile (sc_cpp_indent_check): Add my name.
52880         * lib/fbufmode.c: Filter through cppi.
52881         * lib/fpurge.c: Likewise.
52882         * lib/freadable.c: Likewise.
52883         * lib/freading.c: Likewise.
52884         * lib/fwritable.c: Likewise.
52885         * lib/fwriting.c: Likewise.
52886         * lib/sigaction.c: Likewise.
52888 2011-02-22  Jim Meyering  <meyering@redhat.com>
52890         maint: adjust cpp indentation to reflect nesting depth
52891         I.e., in a block of code that begins with an unnested "#if",
52892         put one space between the "#" in column 1 and following token.
52893         For example,
52894         -#include <sys/vfs.h>
52895         +# include <sys/vfs.h>
52896         Do this only in .c files that are part of a module I maintain.
52897         * lib/linkat.c: Filter through cppi.
52898         * lib/nanosleep.c: Likewise.
52899         * lib/openat.c: Likewise.
52900         * lib/openat-die.c: Likewise.
52901         * lib/dup3.c: Likewise.
52902         * lib/fchownat.c: Likewise.
52903         * lib/flock.c: Likewise.
52904         * lib/fsync.c: Likewise.
52905         * lib/fts.c: Likewise.
52906         * lib/getpass.c: Likewise.
52907         * lib/gettimeofday.c: Likewise.
52908         * lib/userspec.c: Likewise.
52909         * Makefile (sc_cpp_indent_check): New rule, to check this.
52911 2011-02-22  Bruno Haible  <bruno@clisp.org>
52913         New module 'wctomb'.
52914         * lib/stdlib.in.h (wctomb): New declaration.
52915         * lib/wctomb.c: New file.
52916         * lib/wctomb-impl.h: New file.
52917         * m4/wctomb.m4: New file.
52918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
52919         REPLACE_WCTOMB.
52920         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
52921         REPLACE_WCTOMB.
52922         * modules/wctomb: New file.
52923         * tests/test-stdlib-c++.cc: Test signature of wctomb.
52924         * doc/posix-functions/wctomb.texi: Mention the new module.
52925         * modules/wctob (Depends-on): Add wctomb.
52927 2011-02-22  Bruno Haible  <bruno@clisp.org>
52929         New module 'mbtowc'.
52930         * lib/stdlib.in.h (mbtowc): New declaration.
52931         * lib/mbtowc.c: New file.
52932         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
52933         * m4/mbtowc.m4: New file.
52934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
52935         REPLACE_MBTOWC.
52936         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
52937         REPLACE_MBTOWC.
52938         * modules/mbtowc: New file.
52939         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
52940         * doc/posix-functions/mbtowc.texi: Mention the new module.
52941         * modules/btowc (Depends-on): Add mbtowc.
52943 2011-02-22  Bruno Haible  <bruno@clisp.org>
52945         wcrtomb: Add more tests for native Windows platforms.
52946         * tests/test-wcrtomb-w32-1.sh: New file.
52947         * tests/test-wcrtomb-w32-2.sh: New file.
52948         * tests/test-wcrtomb-w32-3.sh: New file.
52949         * tests/test-wcrtomb-w32-4.sh: New file.
52950         * tests/test-wcrtomb-w32-5.sh: New file.
52951         * tests/test-wcrtomb-w32.c: New file.
52952         * modules/wcrtomb-tests (Files): Add them.
52953         (Makefile.am): Arrange to run these tests.
52954         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
52955         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
52957 2011-02-20  Bruno Haible  <bruno@clisp.org>
52959         wcrtomb: Enhance test.
52960         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
52962 2011-02-20  Bruno Haible  <bruno@clisp.org>
52964         mbrtowc: Tiny optimization.
52965         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
52967 2011-02-20  Jim Meyering  <meyering@redhat.com>
52969         test-exclude.c: remove unmatched #endif
52970         * tests/test-exclude.c: Remove stray #endif, left over from
52971         the change of a week ago.
52973 2011-02-19  Jim Meyering  <meyering@redhat.com>
52975         git-version-gen: skip "-dirty" check when appropriate
52976         * build-aux/git-version-gen: Don't run any git commands when the
52977         version string comes from .tarball-version.  Prior to this, we
52978         would run git update-index --refresh even from a just-unpacked
52979         tarball directory, and that could affect a .git/ directory in a
52980         parent of the build directory.  Reported by Mike Frysinger.
52982 2011-02-19  Bruno Haible  <bruno@clisp.org>
52984         unictype/property-byname: Reduce the size of the 'data' segment.
52985         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
52987 2011-02-19  Bruno Haible  <bruno@clisp.org>
52989         unictype/scripts: Reduce the size of the 'data' segment.
52990         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
52991         '%pic'.
52992         * lib/unictype/scripts_byname.gperf: Regenerated.
52994 2011-02-19  Bruno Haible  <bruno@clisp.org>
52996         stdint: Update documentation.
52997         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
52999 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
53001         stdint: omit redundant check for wchar.h
53002         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
53003         always tests whether wchar.h exists, so remove the now-redundant test.
53005 2011-02-18  Bruno Haible  <bruno@clisp.org>
53007         stdint: Cut dependency to module 'wchar'.
53008         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
53009         include the necessary prerequisites.
53010         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
53011         * modules/stdint (Depends-on): Remove wchar.
53012         (Makefile.am): Substitute HAVE_WCHAR_H.
53013         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
53015 2011-02-18  Eric Blake  <eblake@redhat.com>
53017         longlong: skip, rather than fail, on cross-compilation
53018         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
53019         when cross-compiling; regression from 2011-02-16.
53021 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
53023         * NEWS: Mention 2011-02-08 change to stdlib.
53025 2011-02-17  Bruno Haible  <bruno@clisp.org>
53027         getloadavg: Add comments about platforms.
53028         * m4/getloadavg.m4: Add comment.
53029         * lib/getloadavg.c: Likewise.
53031 2011-02-17  Bruno Haible  <bruno@clisp.org>
53033         getloadavg: Fix link error on Solaris 2.6.
53034         * modules/getloadavg (Link): New section.
53035         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
53036         linking test-getloadavg.
53037         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
53038         getloadavg.
53040 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
53042         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
53043         It was 'int', but this doesn't match the IRIX 6.5 manual.
53044         Suggested by Bruno Haible in
53045         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
53047 2011-02-17  Bruno Haible  <bruno@clisp.org>
53049         havelib: Fix comments.
53050         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
53051         change.
53053 2011-02-17  Bruno Haible  <bruno@clisp.org>
53055         havelib: Update config.rpath.
53056         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
53058 2011-02-17  Bruno Haible  <bruno@clisp.org>
53060         getloadavg test: Add some plausibility checks.
53061         * tests/test-getloadavg.c (check_avg): Print a warning when the value
53062         is improbable.
53064 2011-02-16  Eric Blake  <eblake@redhat.com>
53066         maintainer-makefile: make syntax-check a no-op from tarballs
53067         * top/maint.mk (no-vc-detected): New rule.
53068         (local-checks-available): Use it to avoid hanging if someone tries
53069         'make syntax-check' from a tarball.  Also append to any non-syntax
53070         checks already defined in cfg.mk.
53072 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
53074         longlong: tune, particularly for common case of c99
53076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
53077         or running anything if c99, or if unsigned long long int does not
53078         work.  In either case, we know the answer without further tests.
53079         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
53080         it at most once, and use its results for both long long int and
53081         unsigned long long int.  This is more likely to be efficient in
53082         the common case where the program wants to check for both long
53083         long int and unsigned long long int.
53084         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
53085         since the answer is already known.
53087 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
53089         getloadavg: set errno
53090         * lib/getloadavg.c: Set errno when returning -1.  If no other
53091         error number looks appropriate, set it to ENOSYS if the getloadavg
53092         looks like it can't possibly ever work, ENOTSUP otherwise.
53093         Suggested by Bruno Haible in
53094         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
53096         getloadavg: trim unused parts and speed up 'configure'
53097         * NEWS: Document this.
53098         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
53099         always compiled if getloadavg is absent.
53100         Move test code to ...
53101         * tests/test-getloadavg.c: New file, containing previous
53102         contents of test from lib/getloadavg.c.  It also contains
53103         suggestions by Bruno Haible in
53104         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
53105         * modules/getloadavg-tests: New file.
53106         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
53107         Do tests in the same order as they're needed for getloadavg.c.
53108         Omit setgid-related tests that generate symbols KMEM_GROUP,
53109         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
53110         Do only the tests that are needed to see whether the system has
53111         getloadavg, moving the other tests into ...
53112         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
53113         NLIST_NAME_UNION; nobody should be using it.  Do not define
53114         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
53115         relevant, as the user of this module shouldn't care how getloadavg
53116         is implemented.
53118         getloadavg: omit unused var
53119         * lib/getloadavg.c (getloadavg): Omit unused local variable.
53121 2011-02-15  Jim Meyering  <meyering@redhat.com>
53123         doc: update users.txt
53124         * users.txt: Update iwhd's URL.
53126 2011-02-13  Bruno Haible  <bruno@clisp.org>
53128         Consistent macro naming for macros that use GCC __attribute__.
53129         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
53130         _ATTRIBUTE_NONNULL_.
53131         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
53132         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
53133         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
53134         ATTRIBUTE_DEPRECATED.
53135         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
53136         ATTRIBUTE_NORETURN.
53137         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
53138         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
53139         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
53140         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
53141         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
53142         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
53143         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
53144         ATTRIBUTE_SENTINEL.
53145         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
53146         ATTRIBUTE_RETURN_CHECK.
53147         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
53148         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
53149         ATTRIBUTE_NORETURN.
53150         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
53151         Reported by Paul Eggert.
53153 2011-02-13  Bruno Haible  <bruno@clisp.org>
53155         Don't interfere with a program's definition of __attribute__.
53156         * lib/argp.h (__attribute__): Remove definition.
53157         (_GL_ATTRIBUTE_FORMAT): New macro.
53158         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
53159         * lib/argp-fmtstream.h (__attribute__): Remove definition.
53160         (_GL_ATTRIBUTE_FORMAT): New macro.
53161         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
53162         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
53163         GCC 3 or newer.
53164         * lib/error.h (__attribute__): Remove definition.
53165         (_GL_ATTRIBUTE_FORMAT): New macro.
53166         (error, error_at_line): Use it.
53167         * lib/hash.h (__attribute__): Remove definition.
53168         (ATTRIBUTE_WUR): Update definition. Define always.
53169         * lib/openat.h (__attribute__): Remove definition.
53170         (ATTRIBUTE_NORETURN): Update definition. Define always.
53171         * lib/sigpipe-die.h (__attribute__): Remove definition.
53172         (ATTRIBUTE_NORETURN): Update definition. Define always.
53173         * lib/vasnprintf.h (__attribute__): Remove definition.
53174         (_GL_ATTRIBUTE_FORMAT): New macro.
53175         (asnprintf, vasnprintf): Use it.
53176         * lib/xalloc.h (__attribute__): Remove definition.
53177         (ATTRIBUTE_NORETURN): Update definition. Define always.
53178         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
53179         * lib/xmemdup0.h (__attribute__): Remove definition.
53180         (ATTRIBUTE_NORETURN): Update definition. Define always.
53181         * lib/xprintf.h (__attribute__): Remove definition.
53182         (_GL_ATTRIBUTE_FORMAT): New macro.
53183         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
53184         * lib/xstrtol.h (__attribute__): Remove definition.
53185         (ATTRIBUTE_NORETURN): Update definition. Define always.
53186         * lib/xvasprintf.h (__attribute__): Remove definition.
53187         (_GL_ATTRIBUTE_FORMAT): New macro.
53188         (xasprintf, xvasprintf): Use it.
53189         * tests/test-argmatch.c (__attribute__): Remove definition.
53190         (ATTRIBUTE_NORETURN): Update definition. Define always.
53191         * tests/test-exclude.c (__attribute__): Remove definition.
53192         (ATTRIBUTE_NORETURN): Update definition. Define always.
53193         Reported by Paul Eggert.
53195 2011-02-13  Bruno Haible  <bruno@clisp.org>
53197         mbrtowc: Add more tests for native Windows platforms.
53198         * tests/test-mbrtowc-w32-1.sh: New file.
53199         * tests/test-mbrtowc-w32-2.sh: New file.
53200         * tests/test-mbrtowc-w32-3.sh: New file.
53201         * tests/test-mbrtowc-w32-4.sh: New file.
53202         * tests/test-mbrtowc-w32-5.sh: New file.
53203         * tests/test-mbrtowc-w32.c: New file.
53204         * modules/mbrtowc-tests (Files): Add them.
53205         (Makefile.am): Arrange to run these tests.
53206         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
53207         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
53209 2011-02-13  Bruno Haible  <bruno@clisp.org>
53211         mbrtowc: Work around native Windows bug.
53212         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
53213         guess when no suitable locale for testing was found.
53214         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
53216 2011-02-13  Bruno Haible  <bruno@clisp.org>
53218         mbsinit: Work around mingw bug.
53219         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
53220         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
53221         Windows.
53222         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
53224 2011-02-13  Bruno Haible  <bruno@clisp.org>
53226         mbsinit: Don't crash for a NULL argument.
53227         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
53228         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
53230 2011-02-13  Bruno Haible  <bruno@clisp.org>
53232         Don't interfere with a program's definition of __attribute__.
53233         * lib/stdio.in.h (__attribute__): Remove definition.
53234         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
53235         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
53236         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
53237         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
53238         * lib/string.in.h (__attribute__): Remove definition.
53239         Reported by Paul Eggert.
53241 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53243         stdlib: don't get in the way of non-GCC __attribute__
53244         See thread starting at
53245         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
53246         Revert previous stdlib change, installing the following instead:
53247         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
53248         to get in the way of a non-GCC compiler that supports __attribute__.
53249         (_GL_ATTRIBUTE_RETURN): New macro.
53250         (_Exit): Use it instead of __attribute__.
53252 2011-02-12  Bruno Haible  <bruno@clisp.org>
53254         quotearg test: Avoid test failure on mingw.
53255         * tests/test-quotearg.sh: Convert the locale identifier from native
53256         Windows syntax to Unix syntax.
53258 2011-02-12  Bruno Haible  <bruno@clisp.org>
53260         setlocale: Prefer gnulib's override over libintl's override.
53261         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
53262         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
53263         GNULIB_defined_setlocale is set.
53265 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53267         stdlib: support non-GCC __attribute__
53269         Fix a serious and tricky problem encountered when attempting to
53270         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
53271         5.5, but it crashed due to memory corruption on Solaris 10 with
53272         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
53273         bits that are otherwise zero.  This tagging is optional inside
53274         Emacs but is preferred and is used when __attribute__ ((__aligned
53275         (8))) works, as it does with both recent-enough GCC and with Sun C
53276         5.11.  However, Sun C 5.11 is not GCC and does not #define
53277         __GNUC__ and __GNUC_MINOR__.
53279         When I added the getloadavg module to Emacs, it brought in
53280         stdlib.in.h, which contained this fragment:
53282            #ifndef __attribute__
53283            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
53284            #  define __attribute__(Spec)   /* empty */
53285            # endif
53286            #endif
53288         When files that include <stdlib.h> were compiled with Sun C 5.11,
53289         the above code disabled __attribute__ ((__aligned (8))), which
53290         caused variables to not be properly aligned, which eventually led
53291         to the pointer corruption mentioned above.  (This was a bit hard
53292         to diagnose, unfortunately.)
53294         Several "#define __attribute__(X) /* empty */" code snippets need
53295         to be eradicated from Gnulib to work with non-GCC compilers that
53296         support __attribute__.  The Autoconf way to do this is to test for
53297         each kind of attribute that we want support for, and selectively
53298         enable that in source code.
53300         Fix this problem just for stdlib.h, by adding a test for the
53301         __noreturn__ attribute, and change stdlib.in.h to use that test
53302         when needed.  This technique can be easily generalized to the
53303         other *.in.h files and attributes, and a similar technique can be
53304         used for *.h and *.c files.  This patch is enough to solve the
53305         problem for Emacs + getloadavg, and I thought I'd publish it for
53306         feedback before undertaking further, similar fixes in other
53307         modules.
53309         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
53310         because it's not needed for stdlib.h.  It merely substitutes the
53311         value directly into stdlib.h.  We may well need to #define it, or
53312         similar symbols, for other modules, but it's nice to also have an
53313         option to not #define it for applications like Emacs that do not
53314         need it.
53316         * lib/stdlib.in.h (__attribute__): Do not #define.
53317         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
53318         be defined only if the _Exit module is also used.
53319         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
53320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
53321         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
53322         platforms.
53323         * modules/_Exit (Files): Add m4/attribute.m4.
53324         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
53325         * m4/attribute.m4: New file.
53327 2011-02-12  Bruno Haible  <bruno@clisp.org>
53329         wcsrtombs: Work around bug on native Windows.
53330         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
53331         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
53332         instead of len.
53333         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
53335 2011-02-12  Bruno Haible  <bruno@clisp.org>
53337         mbsrtowcs: Work around bug on native Windows.
53338         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
53339         against mingw bug.
53340         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
53342 2011-02-12  Bruno Haible  <bruno@clisp.org>
53344         Avoid setlocale bugs in tests.
53345         * modules/btowc (Dependencies): Add setlocale.
53346         * modules/c-strcase (Dependencies): Likewise.
53347         * modules/mbmemcasecmp (Dependencies): Likewise.
53348         * modules/mbmemcasecoll (Dependencies): Likewise.
53349         * modules/mbrtowc (Dependencies): Likewise.
53350         * modules/mbscasecmp (Dependencies): Likewise.
53351         * modules/mbscasestr (Dependencies): Likewise.
53352         * modules/mbschr (Dependencies): Likewise.
53353         * modules/mbscspn (Dependencies): Likewise.
53354         * modules/mbsinit (Dependencies): Likewise.
53355         * modules/mbsncasecmp (Dependencies): Likewise.
53356         * modules/mbsnrtowcs (Dependencies): Likewise.
53357         * modules/mbspbrk (Dependencies): Likewise.
53358         * modules/mbspcasecmp (Dependencies): Likewise.
53359         * modules/mbsrchr (Dependencies): Likewise.
53360         * modules/mbsrtowcs (Dependencies): Likewise.
53361         * modules/mbsspn (Dependencies): Likewise.
53362         * modules/mbsstr (Dependencies): Likewise.
53363         * modules/nl_langinfo (Dependencies): Likewise.
53364         * modules/quotearg (Dependencies): Likewise.
53365         * modules/unicase/locale-language (Dependencies): Likewise.
53366         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
53367         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
53368         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
53369         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
53370         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
53371         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
53372         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
53373         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
53374         * modules/vasnprintf-posix (Dependencies): Likewise.
53375         * modules/wcrtomb (Dependencies): Likewise.
53376         * modules/wcsnrtombs (Dependencies): Likewise.
53377         * modules/wcsrtombs (Dependencies): Likewise.
53379 2011-02-12  Bruno Haible  <bruno@clisp.org>
53381         setlocale: Workaround native Windows bug.
53382         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
53383         succeeds but sets LC_CTYPE to "C", report a failure.
53384         * tests/test-setlocale2.sh: New file.
53385         * tests/test-setlocale2.c: New file.
53386         * modules/setlocale-tests (Files): Add the new files.
53387         (Makefile.am): Enable test-setlocale2.sh test.
53388         * doc/posix-functions/setlocale.texi: Mention workaround.
53390 2011-02-11  Bruno Haible  <bruno@clisp.org>
53392         Tests for module 'setlocale'.
53393         * modules/setlocale-tests: New file.
53394         * tests/test-setlocale1.sh: New file.
53395         * tests/test-setlocale1.c: New file.
53397         New module 'setlocale'.
53398         * lib/locale.in.h (setlocale): New declaration.
53399         * lib/setlocale.c: New file, based on
53400         gettext/gettext-runtime/intl/setlocale.c.
53401         * m4/setlocale.m4: New file.
53402         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
53403         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
53404         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
53405         REPLACE_SETLOCALE.
53406         * modules/setlocale: New file.
53407         * tests/test-locale-c++.cc: Test the declaration of setlocale.
53408         * doc/posix-functions/setlocale.texi: Mention the new module.
53410 2011-02-11  Bruno Haible  <bruno@clisp.org>
53412         Prepare for locale dependent tests on mingw.
53413         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
53414         because it has the wrong locale encoding.
53415         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
53416         French_France.1252 instead of "fr".
53417         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
53418         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
53419         because it has the wrong locale encoding.
53420         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
53421         native Windows, try Turkish_Turkey.65001.
53422         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
53423         Chinese_China.54936.
53425         Prepare for locale dependent tests on mingw.
53426         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
53427         differently.
53428         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
53429         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
53430         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53431         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53433 2011-02-11  Eric Blake  <eblake@redhat.com>
53435         strptime: avoid compiler warnings
53436         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
53437         compiler warnings about dead code.
53438         Reported by Daniel P. Berrange.
53440 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
53442         doc: update users.txt
53443         * users.txt: Add rcs.
53445 2011-02-10  John W. Eaton  <jwe@gnu.org>
53447         doc: update users.txt
53448         * users.txt: Add octave.
53450 2011-02-10  Jim Meyering  <meyering@redhat.com>
53452         doc: update users.txt
53453         * users.txt: Add iwhd.
53455 2011-02-09  Bruno Haible  <bruno@clisp.org>
53457         gnulib-tool: Make copyright notice adjustment more robust.
53458         * gnulib-tool (func_import): In sed_transform_main_lib_file,
53459         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
53460         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
53461         License".
53462         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
53464 2011-02-06  Bruno Haible  <bruno@clisp.org>
53466         New module 'towctrans'.
53467         * modules/towctrans: New file.
53468         * lib/wctype.in.h (towctrans): New declaration.
53469         * lib/towctrans.c: New file.
53470         * lib/towctrans-impl.h: New file.
53471         * m4/towctrans.m4: New file.
53472         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
53473         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
53474         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
53475         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
53476         * doc/posix-functions/towctrans.texi: Mention the new module.
53478 2011-02-06  Bruno Haible  <bruno@clisp.org>
53480         New module 'wctrans'.
53481         * modules/wctrans: New file.
53482         * lib/wctype.in.h (wctrans): New declaration.
53483         * lib/wctrans.c: New file.
53484         * lib/wctrans-impl.h: New file.
53485         * m4/wctrans.m4: New file.
53486         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
53487         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
53488         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
53489         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
53490         * doc/posix-functions/wctrans.texi: Mention the new module.
53492 2011-02-06  Bruno Haible  <bruno@clisp.org>
53494         New module 'iswctype'.
53495         * modules/iswctype: New file.
53496         * lib/wctype.in.h (iswctype): New declaration.
53497         * lib/iswctype.c: New file.
53498         * lib/iswctype-impl.h: New file.
53499         * m4/iswctype.m4: New file.
53500         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
53501         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
53502         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
53503         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
53504         * doc/posix-functions/iswctype.texi: Mention the new module and the
53505         HP-UX 11.00 problem.
53507 2011-02-06  Bruno Haible  <bruno@clisp.org>
53509         New module 'wctype'.
53510         * modules/wctype: Change to represent the wctype() substitute.
53511         * lib/wctype.in.h (wctype): New declaration.
53512         * lib/wctype.c: New file.
53513         * lib/wctype-impl.h: New file.
53514         * m4/wctype.m4: New file.
53515         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
53516         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
53517         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
53518         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
53519         * doc/posix-functions/wctype.texi: Mention the new module and the
53520         HP-UX 11.00 problem.
53522 2011-02-06  Bruno Haible  <bruno@clisp.org>
53524         wctype-h: Ensure wctype_t and wctrans_t are defined.
53525         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
53526         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
53527         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
53528         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
53529         HAVE_WCTRANS_T.
53530         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
53532 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
53534         flock: fix license typo
53536         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
53537         omitted.
53539 2011-02-08  Bruno Haible  <bruno@clisp.org>
53541         Split large sed scripts, for HP-UX sed.
53542         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
53543         to avoid HP-UX limit of 99 commands, in the near future.
53544         * modules/stdlib (Makefile.am): Likewise.
53545         * modules/unistd (Makefile.am): Likewise.
53546         * modules/wchar (Makefile.am): Likewise.
53547         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53548         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
53549         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
53551 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
53552             Bruno Haible  <bruno@clisp.org>
53554         stdlib: improve random_r modularization
53555         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
53556         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
53557         you also need the random_r module to get this material right.
53558         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
53559         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
53560         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
53562 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
53564         stdlib: don't depend on stdint
53565         * lib/stdlib.in.h: Don't include <stdint.h> merely because
53566         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
53567         be independent of whether stdint.h is needed.
53568         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
53569         here, instead of ...
53570         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
53571         struct random_data should be using the random_r module, not just
53572         the stdlib module (which wouldn't make sense: what package needs
53573         just struct random_data without also needing random_r?).
53574         * modules/stdlib (Depends-on): Remove stdint.
53576         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
53577         See the thread rooted at
53578         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
53579         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
53580         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
53581         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
53582         __VMS)); previously it was always included (via fcntl--.h).
53583         (getloadavg): Do not use c_strtod.  Instead, approximate it by
53584         hand; this is good enough for load averages.  Also, do not use
53585         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
53586         flags directly if available and don't bother otherwise.  (Packages
53587         that need the extra reliability should use the modules that define
53588         these flags on older platforms that lack them.)
53589         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
53590         fcntl-safer.
53592 2011-02-08  Jim Meyering  <meyering@redhat.com>
53594         di-set.h, ino-map.h: add multiple-inclusion guard
53595         Technically, the guard is required only for ino-map.h, due to its
53596         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
53597         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
53598         * lib/ino-map.h: Likewise.
53600 2011-02-06  Bruno Haible  <bruno@clisp.org>
53602         iswblank: Ensure declaration on glibc systems.
53603         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
53604         * modules/iswblank (Dependencies): Add 'extensions'.
53605         * doc/posix-functions/iswblank.texi: Document the glibc problem.
53607 2011-02-06  Bruno Haible  <bruno@clisp.org>
53609         New module 'iswblank'.
53610         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
53611         * modules/iswblank: New file.
53612         * modules/wctype-h (Files): Remove lib/iswblank.c.
53613         (Makefile.am): Substitute GNULIB_ISWBLANK.
53614         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
53615         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
53616         (gl_WCTYPE_H_DEFAULTS): New macro.
53617         (gl_WCTYPE_H): Require it. Remove iswblank related code.
53618         * modules/iswblank-tests: New file.
53619         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
53620         * tests/test-wctype-h.c (main): Remove iswblank tests.
53621         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
53622         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
53623         of 'wctype-h'.
53624         * NEWS: Mention the change.
53625         * modules/mbchar (Depends-on): Add iswblank.
53627 2011-02-08  Bruno Haible  <bruno@clisp.org>
53629         di-set tests: Refactor.
53630         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
53631         unnecessary includes.
53632         (ASSERT): Remove macro.
53633         (main): Make C90 compliant by avoiding variable declaration after
53634         statement.
53635         * modules/di-set-tests (Files): Add tests/macros.h.
53637 2011-02-08  Bruno Haible  <bruno@clisp.org>
53639         ino-map tests: Refactor.
53640         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
53641         unnecessary includes.
53642         (ASSERT): Remove macro.
53643         (main): Make C90 compliant by avoiding variable declaration after
53644         statement.
53645         * modules/ino-map-tests (Files): Add tests/macros.h.
53647 2011-02-08  Jim Meyering  <meyering@redhat.com>
53649         di-set: add "const" to a cast
53650         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
53651         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
53653 2011-02-06  Bruno Haible  <bruno@clisp.org>
53655         Rename module 'wctype' to 'wctype-h'.
53656         * modules/wctype-h: Renamed from modules/wctype.
53657         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
53658         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
53659         (Files, Depends-on, Makefile.am): Update.
53660         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
53661         (Files, Makefile.am): Update.
53662         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
53663         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
53664         * doc/posix-headers/wctype.texi: Update.
53665         * doc/posix-functions/iswalnum.texi: Update.
53666         * doc/posix-functions/iswalpha.texi: Update.
53667         * doc/posix-functions/iswblank.texi: Update.
53668         * doc/posix-functions/iswcntrl.texi: Update.
53669         * doc/posix-functions/iswdigit.texi: Update.
53670         * doc/posix-functions/iswgraph.texi: Update.
53671         * doc/posix-functions/iswlower.texi: Update.
53672         * doc/posix-functions/iswprint.texi: Update.
53673         * doc/posix-functions/iswpunct.texi: Update.
53674         * doc/posix-functions/iswspace.texi: Update.
53675         * doc/posix-functions/iswupper.texi: Update.
53676         * doc/posix-functions/iswxdigit.texi: Update.
53677         * doc/posix-functions/towlower.texi: Update.
53678         * doc/posix-functions/towupper.texi: Update.
53679         * NEWS: Mention the change.
53680         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
53681         * modules/mbchar (Dependencies): Likewise.
53682         * modules/mbswidth (Dependencies): Likewise.
53683         * modules/quotearg (Dependencies): Likewise.
53684         * modules/regex (Dependencies): Likewise.
53685         * modules/wcscasecmp (Dependencies): Likewise.
53686         * modules/wcsncasecmp (Dependencies): Likewise.
53687         * modules/wcwidth (Dependencies): Likewise.
53689 2011-02-06  Bruno Haible  <bruno@clisp.org>
53691         New module 'wcswidth'.
53692         * modules/wcswidth: New file.
53693         * lib/wchar.in.h (wcswidth): New declaration.
53694         * lib/wcswidth.c: New file.
53695         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
53696         * m4/wcswidth.m4: New file.
53697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
53698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
53699         REPLACE_WCSWIDTH.
53700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
53701         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
53702         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
53703         * doc/posix-functions/wcswidth.texi: Mention the new module.
53705 2011-02-06  Bruno Haible  <bruno@clisp.org>
53707         New module 'wcstok'.
53708         * modules/wcstok: New file.
53709         * lib/wchar.in.h (wcstok): New declaration.
53710         * lib/wcstok.c: New file.
53711         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
53712         * m4/wcstok.m4: New file.
53713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
53714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
53715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
53716         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
53717         * doc/posix-functions/wcstok.texi: Mention the new module.
53719 2011-02-06  Bruno Haible  <bruno@clisp.org>
53721         New module 'wcsstr'.
53722         * modules/wcsstr: New file.
53723         * lib/wchar.in.h (wcsstr): New declaration.
53724         * lib/wcsstr.c: New file.
53725         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
53726         * m4/wcsstr.m4: New file.
53727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
53728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
53729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
53730         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
53731         * doc/posix-functions/wcsstr.texi: Mention the new module.
53733 2011-02-06  Bruno Haible  <bruno@clisp.org>
53735         New module 'wcspbrk'.
53736         * modules/wcspbrk: New file.
53737         * lib/wchar.in.h (wcspbrk): New declaration.
53738         * lib/wcspbrk.c: New file.
53739         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
53740         * m4/wcspbrk.m4: New file.
53741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
53742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
53743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
53744         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
53745         * doc/posix-functions/wcspbrk.texi: Mention the new module.
53747 2011-02-06  Bruno Haible  <bruno@clisp.org>
53749         New module 'wcsspn'.
53750         * modules/wcsspn: New file.
53751         * lib/wchar.in.h (wcsspn): New declaration.
53752         * lib/wcsspn.c: New file.
53753         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
53754         * m4/wcsspn.m4: New file.
53755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
53756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
53757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
53758         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
53759         * doc/posix-functions/wcsspn.texi: Mention the new module.
53761 2011-02-06  Bruno Haible  <bruno@clisp.org>
53763         New module 'wcscspn'.
53764         * modules/wcscspn: New file.
53765         * lib/wchar.in.h (wcscspn): New declaration.
53766         * lib/wcscspn.c: New file.
53767         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
53768         * m4/wcscspn.m4: New file.
53769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
53770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
53771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
53772         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
53773         * doc/posix-functions/wcscspn.texi: Mention the new module.
53775 2011-02-06  Bruno Haible  <bruno@clisp.org>
53777         New module 'wcsrchr'.
53778         * modules/wcsrchr: New file.
53779         * lib/wchar.in.h (wcsrchr): New declaration.
53780         * lib/wcsrchr.c: New file.
53781         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
53782         * m4/wcsrchr.m4: New file.
53783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
53784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
53785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
53786         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
53787         * doc/posix-functions/wcsrchr.texi: Mention the new module.
53789 2011-02-06  Bruno Haible  <bruno@clisp.org>
53791         New module 'wcschr'.
53792         * modules/wcschr: New file.
53793         * lib/wchar.in.h (wcschr): New declaration.
53794         * lib/wcschr.c: New file.
53795         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
53796         * m4/wcschr.m4: New file.
53797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
53798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
53799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
53800         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
53801         * doc/posix-functions/wcschr.texi: Mention the new module.
53803 2011-02-06  Bruno Haible  <bruno@clisp.org>
53805         New module 'wcsdup'.
53806         * modules/wcsdup: New file.
53807         * lib/wchar.in.h (wcsdup): New declaration.
53808         * lib/wcsdup.c: New file.
53809         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
53810         * m4/wcsdup.m4: New file.
53811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
53812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
53813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
53814         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
53815         * doc/posix-functions/wcsdup.texi: Mention the new module.
53817 2011-02-06  Bruno Haible  <bruno@clisp.org>
53819         New module 'wcsxfrm'.
53820         * modules/wcsxfrm: New file.
53821         * lib/wchar.in.h (wcsxfrm): New declaration.
53822         * lib/wcsxfrm.c: New file.
53823         * lib/wcsxfrm-impl.h: New file.
53824         * m4/wcsxfrm.m4: New file.
53825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
53826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
53827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
53828         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
53829         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
53831 2011-02-06  Bruno Haible  <bruno@clisp.org>
53833         New module 'wcscoll'.
53834         * modules/wcscoll: New file.
53835         * lib/wchar.in.h (wcscoll): New declaration.
53836         * lib/wcscoll.c: New file.
53837         * lib/wcscoll-impl.h: New file.
53838         * m4/wcscoll.m4: New file.
53839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
53840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
53841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
53842         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
53843         * doc/posix-functions/wcscoll.texi: Mention the new module.
53845 2011-02-06  Bruno Haible  <bruno@clisp.org>
53847         New module 'wcsncasecmp'.
53848         * modules/wcsncasecmp: New file.
53849         * lib/wchar.in.h (wcsncasecmp): New declaration.
53850         * lib/wcsncasecmp.c: New file.
53851         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
53852         * m4/wcsncasecmp.m4: New file.
53853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
53854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
53855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
53856         HAVE_WCSNCASECMP.
53857         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
53858         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
53860 2011-02-06  Bruno Haible  <bruno@clisp.org>
53862         New module 'wcscasecmp'.
53863         * modules/wcscasecmp: New file.
53864         * lib/wchar.in.h (wcscasecmp): New declaration.
53865         * lib/wcscasecmp.c: New file.
53866         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
53867         * m4/wcscasecmp.m4: New file.
53868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
53869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
53870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
53871         HAVE_WCSCASECMP.
53872         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
53873         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
53875 2011-02-05  Bruno Haible  <bruno@clisp.org>
53877         New module 'wcsncmp'.
53878         * modules/wcsncmp: New file.
53879         * lib/wchar.in.h (wcsncmp): New declaration.
53880         * lib/wcsncmp.c: New file.
53881         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
53882         * m4/wcsncmp.m4: New file.
53883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
53884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
53885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
53886         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
53887         * doc/posix-functions/wcsncmp.texi: Mention the new module.
53889 2011-02-05  Bruno Haible  <bruno@clisp.org>
53891         New module 'wcscmp'.
53892         * modules/wcscmp: New file.
53893         * lib/wchar.in.h (wcscmp): New declaration.
53894         * lib/wcscmp.c: New file.
53895         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
53896         * m4/wcscmp.m4: New file.
53897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
53898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
53899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
53900         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
53901         * doc/posix-functions/wcscmp.texi: Mention the new module.
53903 2011-02-05  Bruno Haible  <bruno@clisp.org>
53905         New module 'wcsncat'.
53906         * modules/wcsncat: New file.
53907         * lib/wchar.in.h (wcsncat): New declaration.
53908         * lib/wcsncat.c: New file.
53909         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
53910         * m4/wcsncat.m4: New file.
53911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
53912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
53913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
53914         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
53915         * doc/posix-functions/wcsncat.texi: Mention the new module.
53917 2011-02-05  Bruno Haible  <bruno@clisp.org>
53919         New module 'wcscat'.
53920         * modules/wcscat: New file.
53921         * lib/wchar.in.h (wcscat): New declaration.
53922         * lib/wcscat.c: New file.
53923         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
53924         * m4/wcscat.m4: New file.
53925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
53926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
53927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
53928         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
53929         * doc/posix-functions/wcscat.texi: Mention the new module.
53931 2011-02-05  Bruno Haible  <bruno@clisp.org>
53933         New module 'wcpncpy'.
53934         * modules/wcpncpy: New file.
53935         * lib/wchar.in.h (wcpncpy): New declaration.
53936         * lib/wcpncpy.c: New file.
53937         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
53938         * m4/wcpncpy.m4: New file.
53939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
53940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
53941         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
53942         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
53943         * doc/posix-functions/wcpncpy.texi: Mention the new module.
53945 2011-02-05  Bruno Haible  <bruno@clisp.org>
53947         New module 'wcsncpy'.
53948         * modules/wcsncpy: New file.
53949         * lib/wchar.in.h (wcsncpy): New declaration.
53950         * lib/wcsncpy.c: New file.
53951         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
53952         * m4/wcsncpy.m4: New file.
53953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
53954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
53955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
53956         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
53957         * doc/posix-functions/wcsncpy.texi: Mention the new module.
53959 2011-02-05  Bruno Haible  <bruno@clisp.org>
53961         New module 'wcpcpy'.
53962         * modules/wcpcpy: New file.
53963         * lib/wchar.in.h (wcpcpy): New declaration.
53964         * lib/wcpcpy.c: New file.
53965         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
53966         * m4/wcpcpy.m4: New file.
53967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
53968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
53969         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
53970         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
53971         * doc/posix-functions/wcpcpy.texi: Mention the new module.
53973 2011-02-05  Bruno Haible  <bruno@clisp.org>
53975         New module 'wcscpy'.
53976         * modules/wcscpy: New file.
53977         * lib/wchar.in.h (wcscpy): New declaration.
53978         * lib/wcscpy.c: New file.
53979         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
53980         * m4/wcscpy.m4: New file.
53981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
53982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
53983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
53984         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
53985         * doc/posix-functions/wcscpy.texi: Mention the new module.
53987 2011-02-05  Bruno Haible  <bruno@clisp.org>
53989         New module 'wcsnlen'.
53990         * modules/wcsnlen: New file.
53991         * lib/wchar.in.h (wcsnlen): New declaration.
53992         * lib/wcsnlen.c: New file.
53993         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
53994         * m4/wcsnlen.m4: New file.
53995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
53996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
53997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
53998         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
53999         * doc/posix-functions/wcsnlen.texi: Mention the new module.
54001 2011-02-05  Bruno Haible  <bruno@clisp.org>
54003         New module 'wcslen'.
54004         * modules/wcslen: New file.
54005         * lib/wchar.in.h (wcslen): New declaration.
54006         * lib/wcslen.c: New file.
54007         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
54008         * m4/wcslen.m4: New file.
54009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
54010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
54011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
54012         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
54013         * doc/posix-functions/wcslen.texi: Mention the new module.
54015 2011-02-05  Bruno Haible  <bruno@clisp.org>
54017         New module 'wmemset'.
54018         * modules/wmemset: New file.
54019         * lib/wchar.in.h (wmemset): New declaration.
54020         * lib/wmemset.c: New file.
54021         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
54022         * m4/wmemset.m4: New file.
54023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
54024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
54025         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
54026         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
54027         * doc/posix-functions/wmemset.texi: Mention the new module.
54029 2011-02-05  Bruno Haible  <bruno@clisp.org>
54031         New module 'wmemmove'.
54032         * modules/wmemmove: New file.
54033         * lib/wchar.in.h (wmemmove): New declaration.
54034         * lib/wmemmove.c: New file.
54035         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
54036         * m4/wmemmove.m4: New file.
54037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
54038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
54039         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
54040         HAVE_WMEMMOVE.
54041         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
54042         * doc/posix-functions/wmemmove.texi: Mention the new module.
54044 2011-02-05  Bruno Haible  <bruno@clisp.org>
54046         New module 'wmemcpy'.
54047         * modules/wmemcpy: New file.
54048         * lib/wchar.in.h (wmemcpy): New declaration.
54049         * lib/wmemcpy.c: New file.
54050         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
54051         * m4/wmemcpy.m4: New file.
54052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
54053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
54054         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
54055         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
54056         * doc/posix-functions/wmemcpy.texi: Mention the new module.
54058 2011-02-05  Bruno Haible  <bruno@clisp.org>
54060         New module 'wmemcmp'.
54061         * modules/wmemcmp: New file.
54062         * lib/wchar.in.h (wmemcmp): New declaration.
54063         * lib/wmemcmp.c: New file.
54064         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
54065         * m4/wmemcmp.m4: New file.
54066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
54067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
54068         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
54069         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
54070         * doc/posix-functions/wmemcmp.texi: Mention the new module.
54072 2011-02-07  Jim Meyering  <meyering@redhat.com>
54074         di-set, ino-map: new modules, from coreutils
54075         * lib/di-set.c: New file.
54076         * lib/di-set.h: Likewise.
54077         * lib/ino-map.c: Likewise.
54078         * lib/ino-map.h: Likewise.
54079         * modules/di-set: Likewise.
54080         * modules/di-set-tests: Likewise.
54081         * modules/ino-map: Likewise.
54082         * modules/ino-map-tests: Likewise.
54083         * tests/test-di-set.c: Likewise.
54084         * tests/test-ino-map.c: Likewise.
54086 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
54088         getloadavg: merge minor changes from Emacs
54090         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
54091         (getloadavg): Use memset, not bzero.
54093         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
54094         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
54095         clash (bug#86).
54097 2010-11-14  Bruno Haible  <bruno@clisp.org>
54099         Allow multiple gnulib generated replacements to coexist.
54100         * lib/getopt.in.h (struct option): Avoid identical redefinition.
54101         * lib/inttypes.in.h (imaxdiv_t): Likewise.
54102         * lib/langinfo.in.h (nl_item): Likewise.
54103         * lib/math.in.h (_NaN, NAN): Likewise.
54104         * lib/netdb.in.h (struct addrinfo): Likewise.
54105         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
54106         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
54107         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
54108         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
54109         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
54110         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
54111         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
54112         pthread_mutexattr_init, pthread_mutexattr_settype,
54113         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
54114         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
54115         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
54116         pthread_spin_trylock, pthread_spin_unlock): Likewise.
54117         * lib/sched.in.h (struct sched_param): Likewise.
54118         * lib/se-selinux.in.h (security_class_t, security_context_t,
54119         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
54120         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
54121         lsetfilecon, fsetfilecon, security_check_context,
54122         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
54123         Likewise.
54124         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
54125         Likewise.
54126         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
54127         _gl_function_taking_int_returning_void_t, union sigval,
54128         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
54129         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
54130         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
54131         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
54132         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
54133         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
54134         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
54135         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
54136         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
54137         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
54138         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
54139         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
54140         socklen_t, rpl_fd_isset): Likewise.
54141         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
54142         * lib/sys_time.in.h (struct timeval): Likewise.
54143         * lib/sys_times.in.h (struct tms): Likewise.
54144         * lib/sys_utsname.in.h (struct utsname):
54145         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
54146         * lib/unistd.in.h (getpagesize): Likewise.
54147         * lib/wchar.in.h (mbstate_t): Likewise.
54148         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54149         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
54150         towlower, towupper): Likewise.
54151         Reported by Sam Steingold <sds@gnu.org>.
54153 2011-02-05  Eric Blake  <eblake@redhat.com>
54155         unsetenv: work around Haiku issues
54156         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
54157         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
54159 2010-12-30  Bruce Korb  <bkorb@gnu.org>
54161         libposix: avoid calling error() within libposix
54162         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
54163         is defined.
54165 2011-02-05  Eric Blake  <eblake@redhat.com>
54167         strerror_r-posix: port to cygwin
54168         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
54169         implementation.
54170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
54171         * tests/test-strerror_r.c (main): Fix test.
54172         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54173         issue.
54175 2011-02-05  Bruno Haible  <bruno@clisp.org>
54177         New module 'wmemchr'.
54178         * modules/wmemchr: New file.
54179         * lib/wchar.in.h (wmemchr): New declaration.
54180         * lib/wmemchr.c: New file.
54181         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
54182         * m4/wmemchr.m4: New file.
54183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
54184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
54185         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
54186         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
54187         * doc/posix-functions/wmemchr.texi: Mention the new module.
54189 2011-02-04  Eric Blake  <eblake@redhat.com>
54191         fdopendir: detect FreeBSD bug
54192         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
54193         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
54195 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54197         stdbool: do not define HAVE_STDBOOL_H
54198         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
54199         AC_HEADER_STDBOOL.  All uses changed.  Do not define
54200         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
54201         imported from the latest Autoconf git.  It was motivated by Emacs,
54202         which uses gnulib but does not need HAVE_STDBOOL_H.
54204 2011-02-04  Bruno Haible  <bruno@clisp.org>
54206         wcsnrtombs: Prepare for new module wwcsnrtombs.
54207         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
54208         * lib/wcsnrtombs.c: Include it.
54209         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
54211         wcsrtombs: Prepare for new module wwcsrtombs.
54212         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
54213         * lib/wcsrtombs.c: Include it.
54214         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
54216         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
54217         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
54218         * lib/mbsnrtowcs.c: Include it.
54219         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
54221         mbsrtowcs: Prepare for new module mbsrtowwcs.
54222         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
54223         * lib/mbsrtowcs.c: Include it.
54224         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
54226 2011-02-04  Bruno Haible  <bruno@clisp.org>
54228         vasnprintf: Reduce use of malloc for small format strings.
54229         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
54230         (arguments): Add room for the first 7 arguments.
54231         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
54232         (char_directives, u8_directives, u16_directives, u32_directives): Add
54233         room for the first 7 directives.
54234         * lib/printf-parse.c: Include <string.h>.
54235         (PRINTF_PARSE): Change memory handling code so that it uses the first
54236         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
54237         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
54238         Reported by Pádraig Brady <P@draigbrady.com>.
54240 2011-01-31  Eric Blake  <eblake@redhat.com>
54242         dup2: work around Haiku bug
54243         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
54244         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
54245         * doc/posix-functions/dup2.texi (dup2): Document the bug.
54246         * tests/test-dup2.c (main): Enhance test.
54248 2011-01-31  Simon Josefsson  <simon@josefsson.org>
54250         doc: off_t is not available in eglibc 2.11.2 stdio.h.
54251         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
54252         declared by eglibc 2.11.2.
54253         * lib/stdio.in.h: Likewise.
54255 2011-01-31  Eric Blake  <eblake@redhat.com>
54257         ignore-value: add missing test dependency
54258         * tests/test-ignore-value.c: Revert previous change; stdio.h
54259         provides off_t.
54260         * modules/ignore-value-tests (Depends-on): Add missing dependency.
54262 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
54264         mktime: clarify long_int width checking
54265         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
54266         the top level, to make it clearer that the assumption about
54267         long_int width is being checked.  See
54268         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
54270 2011-01-30  Simon Josefsson  <simon@josefsson.org>
54272         ignore-value: Fix self-test.
54273         * tests/test-ignore-value.c: Include sys/types.h for off_t.
54275 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54277         TYPE_MAXIMUM: avoid theoretically undefined behavior
54278         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
54279         negative number, which the C Standard says has undefined behavior.
54280         In practice this is not a problem, but might as well do it by the book.
54281         Reported by Rich Felker and Eric Blake; see
54282         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
54283         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
54284         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54286         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
54287         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54288         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
54290         mktime: #undef mktime before #defining it
54291         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
54293         mktime: systematically normalize tm_isdst comparisons
54294         * lib/mktime.c (isdst_differ): New function.
54295         (__mktime_internal): Use it systematically for all isdst comparisons.
54296         This completes the fix for libc BZ #6723, and removes the need for
54297         normalizing tm_isdst.  See
54298         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
54299         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
54301         mktime: fix some integer overflow issues and sidestep the rest
54303         This was prompted by a bug report by Benjamin Lindner for MinGW
54304         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
54305         His bug is due to signed integer overflow (0 - INT_MIN), and I
54306         I scanned through mktime.c looking for other integer overflow
54307         problems, fixing all the bugs I found.
54309         Although the C Standard says the resulting code is still not safe
54310         in the presence of integer overflow, in practice it should be good
54311         enough for all real-world two's-complement implementations, except
54312         for debugging environments that deliberately trap on integer
54313         overflow (e.g., gcc -ftrapv).
54315         * lib/mktime.c (WRAPV): New macro.
54316         (SHR): Also check that long_int and time_t shift right in the
54317         usual way, before using the fast-but-unportable method.
54318         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
54319         used.  The code already assumed two's complement, so there's
54320         no need to test for alternatives.  All uses removed.
54321         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
54322         the C standard.  Problem reported by Rich Felker in
54323         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
54324         (twos_complement_arithmetic): Also check long_int and time_t.
54325         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
54326         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
54327         (__mktime_internal): Avoid integer overflow with unary subtraction
54328         in two instances where -1 - X is an adequate replacement for -X,
54329         since the calculations are approximate.
54331 2011-01-29  Eric Blake  <eblake@redhat.com>
54333         mktime: avoid infinite loop
54334         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
54335         type; behavior is still undefined but portable to all known targets.
54336         Reported by Rich Felker.
54338 2011-01-29  Simon Josefsson  <simon@josefsson.org>
54340         rename, unlink, same-inode: Relicense.
54341         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
54342         * modules/unlink (License): Likewise.
54343         * modules/same-inode (License): Likewise.
54345 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54347         mktime: avoid problems on NetBSD 5 / i386
54348         * lib/mktime.c (long_int): New type.  This works around a problem
54349         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
54350         but time_t is 64 bits, and where I expect the existing code is
54351         wrong in some cases.
54352         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
54353         (ydhms_diff): Bring back the compile-time check for wide-enough
54354         year and yday.
54356         mktime: fix misspelling in comment
54357         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
54358         This merges all recent glibc changes of importance.
54360 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54362         move-if-change: cope with concurrent mv of identical file.
54363         * build-aux/move-if-change (CMPPROG): Accept environment
54364         variable as an override for `cmp'.
54365         (usage): Document CMPPROG.
54366         Adjust comparison to drop stdout.  Cope with failure of mv if
54367         the target file exists and is identical to the source, for
54368         parallel builds.
54369         Report from H.J. Lu against binutils in PR binutils/12283.
54371 2011-01-28  Bruce Korb  <bkorb@gnu.org>
54373         * users.txt: Mention sharutils.
54375 2011-01-28  Simon Josefsson  <simon@josefsson.org>
54377         * users.txt: Mention OATH Toolkit.
54379 2011-01-27  Bruno Haible  <bruno@clisp.org>
54381         Prepare for supporting FreeBSD 10.
54382         * build-aux/config.libpath: Remove handling of freebsd1*.
54384 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
54386         Prepare for supporting FreeBSD 10.
54387         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
54388         match FreeBSD 10.0.
54390 2011-01-27  Bruno Haible  <bruno@clisp.org>
54392         vma-iter, get-rusage-as: Add OpenBSD support.
54393         * modules/vma-iter (configure.ac): Test for mquery.
54394         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
54395         * lib/vma-iter.c: Include <sys/mman.h>.
54396         (vma_iterate): Add an implementation based on mquery().
54397         * lib/resource-ext.h (get_rusage_as): Update comments.
54398         * lib/get-rusage-as.c: Likewise.
54399         * lib/get-rusage-data.c: Likewise.
54401 2011-01-26  Karl Berry  <karl@gnu.org>
54403         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
54404         variables to make it easier to override the makeinfo program used.
54406 2011-01-26  Eric Blake  <eblake@redhat.com>
54408         fcntl: work around Haiku F_DUPFD bugs
54409         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
54410         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
54411         cloexec bit on duplication.
54412         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
54414 2011-01-26  Bruno Haible  <bruno@clisp.org>
54416         Enable memory leak tests on AIX.
54417         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
54418         * tests/test-fprintf-posix3.c (main): Likewise.
54420 2011-01-26  Bruno Haible  <bruno@clisp.org>
54422         Tests for module 'get-rusage-data'.
54423         * modules/get-rusage-data-tests: New file.
54424         * tests/test-get-rusage-data.c: New file.
54426         New module 'get-rusage-data'.
54427         * lib/resource-ext.h (get_rusage_data): New declaration.
54428         * lib/get-rusage-data.c: New file.
54429         * modules/get-rusage-data: New file.
54431 2011-01-25  Bruno Haible  <bruno@clisp.org>
54433         get-rusage-as: Allow for easier testing.
54434         * lib/resource-ext.h (get_rusage_as): Add comment.
54435         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
54436         (main): New function for interactive testing.
54438 2011-01-25  Bruno Haible  <bruno@clisp.org>
54440         vma-iter: Treat Haiku like BeOS.
54441         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
54442         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
54444 2011-01-25  Eric Blake  <eblake@redhat.com>
54446         c-stack: fix regression on cygwin when libsigsegv is present
54447         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
54449 2011-01-24  Bruno Haible  <bruno@clisp.org>
54451         vma-iter: Avoid empty intervals.
54452         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
54453         on an empty interval.
54455 2011-01-24  Jim Meyering  <meyering@redhat.com>
54457         u64: remove unnecessary #include
54458         * lib/u64.h: Don't include <stddef.h>.  It was not used.
54460 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54462         Allow the user to avoid the HAVE_RAW_DECL_* macros.
54463         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
54465 2011-01-23  Bruno Haible  <bruno@clisp.org>
54467         New module 'vma-iter'.
54468         * lib/vma-iter.h: New file.
54469         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
54470         * modules/vma-iter: New file.
54471         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
54472         for get_rusage_as_via_iterator.
54473         (vma_iterate_callback): New function.
54474         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
54475         * modules/get-rusage-as (Depends-on): Add vma-iter.
54477 2011-01-23  Bruno Haible  <bruno@clisp.org>
54479         uninorm: Tweak includes.
54480         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
54481         Reported by Jim Meyering.
54483 2011-01-23  Bruno Haible  <bruno@clisp.org>
54485         get-rusage-as: Improve on NetBSD.
54486         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
54487         /proc, like on FreeBSD.
54489 2011-01-23  Jim Meyering  <meyering@redhat.com>
54491         xreadlink.h: remove unnecessary #include
54492         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
54494         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
54495         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
54497 2011-01-23  Bruno Haible  <bruno@clisp.org>
54499         get-rusage-as: Fix bug.
54500         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
54501         original limit when aborting the first loop.
54503 2011-01-23  Bruno Haible  <bruno@clisp.org>
54505         wctype: Ensure valid C syntax.
54506         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
54507         unconditionally, instead of gl_NEXT_HEADERS conditionally.
54509 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54511         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
54512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
54513         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
54514         as they are needed only for configure's test case.
54515         This removes two unnecessary symbols from config.h.
54517         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
54518         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
54519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
54520         AC_CHECK_HEADERS_ONCE on a header that we also invoke
54521         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
54522         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
54523         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
54524         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
54525         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54526         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54527         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
54528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54529         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54530         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54531         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
54532         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54533         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
54534         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
54536 2011-01-21  Eric Blake  <eblake@redhat.com>
54538         maintainer-makefile: work with older git for submodule check
54539         * top/maint.mk (public-submodule-commit): Rewrite to avoid
54540         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
54541         Reported by Matthias Bolte.
54543         bootstrap: minor portability fixes
54544         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
54545         (usage): Omit leading capital and trailing . on help phrases, per
54546         GNU Coding Standards.
54547         (check_versions, top level): Prefix messages with script name.
54549 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
54551         bootstrap: support --no-git option
54552         * build-aux/bootstrap: Add --no-git option, to be used when
54553         --gnulib-srcdir points to the exact desired checkout.
54555 2011-01-21  Eric Blake  <eblake@redhat.com>
54557         strerror_r-posix: work with glibc 2.13
54558         * lib/strerror_r.c (strerror_r): Fix return type.
54560 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54561             Bruno Haible  <bruno@clisp.org>
54563         uN_strstr: New unit tests.
54564         * modules/unistr/u8-strstr-tests: New file.
54565         * modules/unistr/u16-strstr-tests: New file.
54566         * modules/unistr/u32-strstr-tests: New file.
54567         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
54568         * tests/unistr/test-u8-strstr.c: New file.
54569         * tests/unistr/test-u16-strstr.c: New file.
54570         * tests/unistr/test-u32-strstr.c: New file.
54572 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54573             Bruno Haible  <bruno@clisp.org>
54575         Make uN_strstr functions O(n) worst-case.
54576         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
54577         16-bit and 32-bit unit cases, use the unibyte algorithm from
54578         lib/mbsstr.c.
54579         * lib/unistr/u8-strstr.c: Include <string.h>.
54580         (UNIT_IS_UINT8_T): New macro.
54581         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
54582         (U_STRLEN, U_STRNLEN): New macros.
54583         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
54584         (U_STRLEN, U_STRNLEN): New macros.
54585         * modules/unistr/u8-strstr (Depends-on): Add strstr.
54586         (configure.ac): Update required libunistring version.
54587         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
54588         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
54589         malloca.
54590         (configure.ac): Update required libunistring version.
54591         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
54592         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
54593         malloca.
54594         (configure.ac): Update required libunistring version.
54596 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54597             Bruno Haible  <bruno@clisp.org>
54599         Prepare for faster uN_strstr functions.
54600         * lib/str-kmp.h: Support definable UNITs.
54601         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
54602         needle_len argument.
54603         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
54604         * lib/mbscasestr.c (mbscasestr): Likewise.
54606 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54608         malloca-tests: make faster by unsetting MALLOC_PERTURB_
54609         * tests/test-malloca.c (main): Unset the environment variable
54610         to greatly speed up the test.
54611         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
54612         * modules/malloca-tests: Depend on unsetenv.
54614 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54616         ignore-value: remove stdint dependency
54617         * lib/ignore-value.h: Remove <stdint.h>
54618         * modules/ignore-value: Remove stdint dependency.
54620 2011-01-21  Jim Meyering  <meyering@redhat.com>
54622         maint.mk: adjust variable name to be consistent with other gl_ vars
54623         * top/maint.mk (gl_public_submodule_commit): Rename the variable
54624         to be lower case.
54626 2011-01-20  Jim Meyering  <meyering@redhat.com>
54628         maint.mk: make "check" depend on public-submodule-commit by default
54629         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
54631 2011-01-20  Bruno Haible  <bruno@clisp.org>
54633         mbfile, mbiter: Complete change from 2008-12-21.
54634         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
54635         * m4/mbiter.m4 (gl_MBITER): Likewise.
54637 2011-01-20  Jim Meyering  <meyering@redhat.com>
54639         init.sh: insert space between each function name and "()"
54640         * tests/init.sh: Make it a little easier to see that a function's
54641         name is "warn_", and not "warn" when looking at the first part of
54642         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
54644 2011-01-20  Jim Meyering  <meyering@redhat.com>
54646         mountlist: clean up code formatting
54647         * lib/mountlist.c (read_file_system_list): Split a long line,
54648         correct bracing style, use NULL in place of "(struct statfs *)0",
54649         don't parenthesize return value, add spaces around "=" and after
54650         ";-in-for-stmt".
54652 2011-01-14  Markus Duft  <mduft@gentoo.org>
54654         mountlist: add support for Interix
54655         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
54656         Apply statvfs to all entries of /dev/fs.
54657         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
54658         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
54660 2011-01-20  Jim Meyering  <meyering@redhat.com>
54662         maint.mk: improve the public-submodule-commit rule
54663         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
54664         to suppress printing of its commands... unless V=1.
54665         Add git submodule's --quiet option to suppress printing of e.g.,
54666         "Entering gnulib" output.
54667         "cd" into $(srcdir) before running git submodule.
54669 2011-01-20  Bruno Haible  <bruno@clisp.org>
54671         include_next: Fix bug introduced on 2011-01-18.
54672         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
54673         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
54674         ac_cv_header_... variable if the second argument is not 'check'.
54675         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
54676         gl_NEXT_HEADERS_INTERNAL.
54678 2011-01-20  Bruno Haible  <bruno@clisp.org>
54680         Allow the user to avoid the GNULIB_TEST_* macros.
54681         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
54682         Suggested by Paul Eggert.
54684 2011-01-14  Jim Meyering  <meyering@redhat.com>
54686         bootstrap: avoid failure when there is no .gitmodules file
54687         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
54688         has been assigned to, even when its value is the empty string.
54689         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
54690         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
54691         Reported by John W. Eaton <jwe@gnu.org>.
54693 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54695         assume <ctype.h>, ..., <time.h> exist
54696         For years gnulib has been assuming the existence of the headers
54697         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
54698         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
54699         them, since they don't appear to be needed.
54700         * README (Portability guidelines): Document this.
54701         * lib/flock.c: Assume <fcntl.h> exists.
54702         * lib/regex_internal.h: Assume <locale.h> exists.
54703         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
54704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
54705         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
54706         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
54707         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
54708         * m4/regex.m4 (gl_REGEX): Likewise.
54709         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
54710         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
54711         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
54712         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
54713         * tests/test-argp.c: Likewise.
54714         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
54716         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
54717         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
54718         AA_APPLE_UNIVERSAL_BUILD.  See
54719         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
54720         * NEWS: Document this.
54722 2011-01-19  Eric Blake  <eblake@redhat.com>
54724         c-stack: assume stack overflow if SA_SIGINFO unsupported
54725         * lib/c-stack.c (SIGACTION_WORKS): Rename...
54726         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
54727         sigaction will work.
54728         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
54729         behavior match Linux.
54730         * tests/test-c-stack.c (main): Prefer NULL for pointers.
54732         stdbool-tests: accommodate Haiku
54733         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
54735         binary-io: fix O_TEXT on Haiku
54736         * modules/binary-io (Depends-on): Add fcntl-h.
54737         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
54738         than blindly undefining O_TEXT.
54739         Reported by Scott McCreary.
54741 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54743         include_next: do not check for standard headers like stddef.h
54745         I found this problem when modifying Emacs to use gnulib.
54746         I noticed that it added HAVE_STDDEF_H to config.h, even though
54747         gnulib always assumes <stddef.h> exists as per README and this
54748         symbol is unnecessary.
54749         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
54750         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
54751         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
54752         faster for headers like stddef.h that are known to exist.
54753         (gl_CHECK_NEXT_HEADERS): Use it.
54754         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
54755         rather than gl_CHECK_NEXT_HEADERS.
54756         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
54757         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
54759 2011-01-18  Eric Blake  <eblake@redhat.com>
54761         ansi-c++-opt: skip C++ dependency style if C++ is unused
54762         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
54763         tests when we know C++ compilation is not desired.
54764         Reported by Scott McCreary.
54766 2011-01-18  Bruno Haible  <bruno@clisp.org>
54768         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
54769         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
54770         (main): Perform test also when getrlimit and setrlimit don't exist or
54771         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
54772         limiting the address space size using setrlimit, compare the address
54773         space size before and after the test.
54774         * tests/test-dprintf-posix2.c: Likewise.
54775         * tests/test-fprintf-posix3.sh: Update skip messages.
54776         * tests/test-dprintf-posix2.sh: Likewise.
54777         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
54778         * modules/dprintf-posix-tests (Depends-on): Likewise.
54779         Reported by Bruce Korb <bkorb@gnu.org> and
54780         Gary V. Vaughan <gary@gnu.org>.
54782 2011-01-18  Bruno Haible  <bruno@clisp.org>
54784         get-rusage-as: Improvement for Cygwin.
54785         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
54786         areas that are merely reserved.
54788 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54790         strftime: remove dependencies on multibyte modules
54792         strftime depended on mbrlen, mbsinit, and wchar, but these modules
54793         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
54794         only if __osf__ is defined, and I suspect OSF doesn't need these
54795         other modules.  If my guess is wrong, we'll need to come up with a
54796         variant of strftime that doesn't need the multibyte modules.
54798         I discovered this problem when attempting modify Emacs to use the
54799         strftime module.  With the previous gnulib, this caused Emacs to
54800         need 31 new files, ranging from lib/config.charset to
54801         m4/wint_t.m4.  This was overkill and I expect would be offputting
54802         to the Emacs maintainers.  After this change, only 6 new files are
54803         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
54804         stdbool.m4, and tm_gmtoff.m4.
54806         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
54807         Suggested by Bruno Haible in
54808         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
54809         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
54810         and do not check for wchar.h.
54811         * modules/strftime (Files): Remove m4/mbstate_t.m4.
54812         (Depends-on): Remove mbrlen, mbsinit, wchar.
54814 2011-01-18  Bruno Haible  <bruno@clisp.org>
54816         Tests for module 'get-rusage-as'.
54817         * modules/get-rusage-as-tests: New file.
54818         * tests/test-get-rusage-as.c: New file.
54820         New module 'get-rusage-as'.
54821         * modules/get-rusage-as: New file.
54822         * lib/resource-ext.h: New file.
54823         * lib/get-rusage-as.c: New file.
54825 2011-01-17  Eric Blake  <eblake@redhat.com>
54827         sigaction: relax license from LGPLv3+ to LGPLv2+
54828         * modules/sigaction (License): Relax to LGPLv2+.
54830 2011-01-14  Bruno Haible  <bruno@clisp.org>
54832         filemode: Make function declarations usable in C++ mode.
54833         * lib/filemode.h: Enclose function declarations in extern "C" block.
54834         Reported by John W. Eaton <jwe@gnu.org>.
54836 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
54838         save-cwd: no longer include "xgetcwd.h"
54839         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
54840         This avoids a compilation failure in projects that use save-cwd
54841         without also using the xgetcwd module.
54843 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54845         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
54846         This is so that a program like Emacs, which needs only dtoastr,
54847         does not have to bother with distributing and compiling ftoastr
54848         and ldtoastr.
54849         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
54850         * modules/dtoastr, modules/ldtoastr: New files.
54851         * modules/ftoastr: Now works just for 'float'.
54852         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
54853         (Makefile.am): Remove ftoastr.h (not needed and no effect),
54854         dtoastr.c, ldtoastr.c.
54856 2011-01-11  Jim Meyering  <meyering@redhat.com>
54858         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
54859         There is no need to work around the lack of the fchdir function,
54860         since gnulib can now provide a replacement when required.
54861         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
54862         * modules/save-cwd (Depends-on): Add fchdir.
54864 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54866         openat, save-cwd: avoid xmalloc
54868         This removes a direct (but undocumented) dependency of openat on
54869         xalloc, along with an indirect dependency via save-cwd.  It also
54870         removes a dependency of save-cwd on xgetcwd, and thereby
54871         indirectly on xalloc.  This change causes the openat substitute
54872         to fall back on save_cwd when memory is tight, and for save_cwd to
54873         fail instead of dying when memory is tight, but that's good enough.
54874         Problem and initial idea for fix reported by Bastien Roucaries in
54875         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
54877         * lib/openat-proc.c: Include stdlib.h (for malloc), not
54878         xalloc.h (for xmalloc).
54879         (openat_proc_name): Use malloc, not xmalloc.
54880         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
54881         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
54883         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
54884         This avoids heap allocation for file names whose lengths are in
54885         the range 512..1023, with the upper bound increasing to at most
54886         4031 depending on the platform's PATH_MAX.  (We do not want
54887         pathmax.h here as it might supply a non-constant PATH_MAX.)
54888         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
54889         Perhaps they should be moved to malloca.h?
54890         (OPENAT_BUFFER_SIZE): Use them.
54892 2011-01-10  Bruno Haible  <bruno@clisp.org>
54894         doc: Update users.txt.
54895         * users.txt: Add recutils.
54897 2011-01-09  Karl Berry  <karl@gnu.org>
54899         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
54901         * doc/configmake.texi: New file.
54902         * doc/gnulib.texi: Include it.
54903         * modules/configmake: Move documentation from here.
54905 2011-01-09  Bruno Haible  <bruno@clisp.org>
54907         Update to Unicode 6.0.0.
54908         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
54909         (get_lbp): Update for Unicode 6.0.0.
54910         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
54911         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
54912         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
54913         U+11001, U+11038..U+11046. Remove U+06DE.
54914         (uc_width): Fix bounds of planes.
54915         * tests/uniwidth/test-uc_width2.sh: Same updates as in
54916         lib/uniwidth/width.c.
54917         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
54918         trailing whitespace removed.
54919         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
54920         without comments, but with the original copyright notice.
54921         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
54922         * lib/unicase/ignorable.h: Likewise.
54923         * lib/unicase/tocasefold.h: Likewise.
54924         * lib/unicase/tolower.h: Likewise.
54925         * lib/unicase/totitle.h: Likewise.
54926         * lib/unicase/toupper.h: Likewise.
54927         * lib/unictype/bidi_of.h: Likewise.
54928         * lib/unictype/blocks.h: Likewise.
54929         * lib/unictype/categ_C.h: Likewise.
54930         * lib/unictype/categ_Cn.h: Likewise.
54931         * lib/unictype/categ_L.h: Likewise.
54932         * lib/unictype/categ_Ll.h: Likewise.
54933         * lib/unictype/categ_Lm.h: Likewise.
54934         * lib/unictype/categ_Lo.h: Likewise.
54935         * lib/unictype/categ_Lu.h: Likewise.
54936         * lib/unictype/categ_M.h: Likewise.
54937         * lib/unictype/categ_Mc.h: Likewise.
54938         * lib/unictype/categ_Me.h: Likewise.
54939         * lib/unictype/categ_Mn.h: Likewise.
54940         * lib/unictype/categ_N.h: Likewise.
54941         * lib/unictype/categ_Nd.h: Likewise.
54942         * lib/unictype/categ_No.h: Likewise.
54943         * lib/unictype/categ_P.h: Likewise.
54944         * lib/unictype/categ_Po.h: Likewise.
54945         * lib/unictype/categ_S.h: Likewise.
54946         * lib/unictype/categ_Sc.h: Likewise.
54947         * lib/unictype/categ_Sk.h: Likewise.
54948         * lib/unictype/categ_Sm.h: Likewise.
54949         * lib/unictype/categ_So.h: Likewise.
54950         * lib/unictype/categ_of.h: Likewise.
54951         * lib/unictype/combining.h: Likewise.
54952         * lib/unictype/ctype_alnum.h: Likewise.
54953         * lib/unictype/ctype_alpha.h: Likewise.
54954         * lib/unictype/ctype_graph.h: Likewise.
54955         * lib/unictype/ctype_lower.h: Likewise.
54956         * lib/unictype/ctype_print.h: Likewise.
54957         * lib/unictype/ctype_punct.h: Likewise.
54958         * lib/unictype/ctype_upper.h: Likewise.
54959         * lib/unictype/decdigit.h: Likewise.
54960         * lib/unictype/digit.h: Likewise.
54961         * lib/unictype/numeric.h: Likewise.
54962         * lib/unictype/pr_alphabetic.h: Likewise.
54963         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54964         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54965         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54966         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54967         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54968         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54969         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54970         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54971         * lib/unictype/pr_case_ignorable.h: Likewise.
54972         * lib/unictype/pr_cased.h: Likewise.
54973         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
54974         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
54975         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
54976         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
54977         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
54978         * lib/unictype/pr_combining.h: Likewise.
54979         * lib/unictype/pr_composite.h: Likewise.
54980         * lib/unictype/pr_currency_symbol.h: Likewise.
54981         * lib/unictype/pr_decimal_digit.h: Likewise.
54982         * lib/unictype/pr_deprecated.h: Likewise.
54983         * lib/unictype/pr_format_control.h: Likewise.
54984         * lib/unictype/pr_grapheme_base.h: Likewise.
54985         * lib/unictype/pr_grapheme_extend.h: Likewise.
54986         * lib/unictype/pr_grapheme_link.h: Likewise.
54987         * lib/unictype/pr_id_continue.h: Likewise.
54988         * lib/unictype/pr_id_start.h: Likewise.
54989         * lib/unictype/pr_ideographic.h: Likewise.
54990         * lib/unictype/pr_lowercase.h: Likewise.
54991         * lib/unictype/pr_math.h: Likewise.
54992         * lib/unictype/pr_numeric.h: Likewise.
54993         * lib/unictype/pr_other_alphabetic.h: Likewise.
54994         * lib/unictype/pr_other_id_continue.h: Likewise.
54995         * lib/unictype/pr_other_math.h: Likewise.
54996         * lib/unictype/pr_punctuation.h: Likewise.
54997         * lib/unictype/pr_sentence_terminal.h: Likewise.
54998         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54999         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55000         * lib/unictype/pr_unified_ideograph.h: Likewise.
55001         * lib/unictype/pr_uppercase.h: Likewise.
55002         * lib/unictype/pr_xid_continue.h: Likewise.
55003         * lib/unictype/pr_xid_start.h: Likewise.
55004         * lib/unictype/scripts.h: Likewise.
55005         * lib/unictype/scripts_byname.gperf: Likewise.
55006         * lib/unictype/sy_java_ident.h: Likewise.
55007         * lib/unigbrk/gbrkprop.h: Likewise.
55008         * lib/unilbrk/lbrkprop1.h: Likewise.
55009         * lib/unilbrk/lbrkprop2.h: Likewise.
55010         * lib/uninorm/decomposition-table2.h: Likewise.
55011         * lib/uniwbrk/wbrkprop.h: Likewise.
55012         * tests/unicase/test-cased.c: Likewise.
55013         * tests/unicase/test-ignorable.c: Likewise.
55014         * tests/unicase/test-uc_tolower.c: Likewise.
55015         * tests/unicase/test-uc_totitle.c: Likewise.
55016         * tests/unicase/test-uc_toupper.c: Likewise.
55017         * tests/unictype/test-categ_C.c: Likewise.
55018         * tests/unictype/test-categ_Cn.c: Likewise.
55019         * tests/unictype/test-categ_L.c: Likewise.
55020         * tests/unictype/test-categ_Ll.c: Likewise.
55021         * tests/unictype/test-categ_Lm.c: Likewise.
55022         * tests/unictype/test-categ_Lo.c: Likewise.
55023         * tests/unictype/test-categ_Lu.c: Likewise.
55024         * tests/unictype/test-categ_M.c: Likewise.
55025         * tests/unictype/test-categ_Mc.c: Likewise.
55026         * tests/unictype/test-categ_Me.c: Likewise.
55027         * tests/unictype/test-categ_Mn.c: Likewise.
55028         * tests/unictype/test-categ_N.c: Likewise.
55029         * tests/unictype/test-categ_Nd.c: Likewise.
55030         * tests/unictype/test-categ_No.c: Likewise.
55031         * tests/unictype/test-categ_P.c: Likewise.
55032         * tests/unictype/test-categ_Po.c: Likewise.
55033         * tests/unictype/test-categ_S.c: Likewise.
55034         * tests/unictype/test-categ_Sc.c: Likewise.
55035         * tests/unictype/test-categ_Sk.c: Likewise.
55036         * tests/unictype/test-categ_Sm.c: Likewise.
55037         * tests/unictype/test-categ_So.c: Likewise.
55038         * tests/unictype/test-ctype_alnum.c: Likewise.
55039         * tests/unictype/test-ctype_alpha.c: Likewise.
55040         * tests/unictype/test-ctype_graph.c: Likewise.
55041         * tests/unictype/test-ctype_lower.c: Likewise.
55042         * tests/unictype/test-ctype_print.c: Likewise.
55043         * tests/unictype/test-ctype_punct.c: Likewise.
55044         * tests/unictype/test-ctype_upper.c: Likewise.
55045         * tests/unictype/test-decdigit.h: Likewise.
55046         * tests/unictype/test-digit.h: Likewise.
55047         * tests/unictype/test-numeric.h: Likewise.
55048         * tests/unictype/test-pr_alphabetic.c: Likewise.
55049         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55050         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55051         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55052         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55053         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55054         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55055         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55056         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55057         * tests/unictype/test-pr_case_ignorable.c: Likewise.
55058         * tests/unictype/test-pr_cased.c: Likewise.
55059         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
55060         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
55061         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
55062         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
55063         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
55064         * tests/unictype/test-pr_combining.c: Likewise.
55065         * tests/unictype/test-pr_composite.c: Likewise.
55066         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55067         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55068         * tests/unictype/test-pr_deprecated.c: Likewise.
55069         * tests/unictype/test-pr_format_control.c: Likewise.
55070         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55071         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55072         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55073         * tests/unictype/test-pr_id_continue.c: Likewise.
55074         * tests/unictype/test-pr_id_start.c: Likewise.
55075         * tests/unictype/test-pr_ideographic.c: Likewise.
55076         * tests/unictype/test-pr_lowercase.c: Likewise.
55077         * tests/unictype/test-pr_math.c: Likewise.
55078         * tests/unictype/test-pr_numeric.c: Likewise.
55079         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55080         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55081         * tests/unictype/test-pr_other_math.c: Likewise.
55082         * tests/unictype/test-pr_punctuation.c: Likewise.
55083         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55084         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55085         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55086         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55087         * tests/unictype/test-pr_uppercase.c: Likewise.
55088         * tests/unictype/test-pr_xid_continue.c: Likewise.
55089         * tests/unictype/test-pr_xid_start.c: Likewise.
55090         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
55091         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
55092         changes.
55093         * lib/unictype/categ_Cc.h: Likewise.
55094         * lib/unictype/categ_Cf.h: Likewise.
55095         * lib/unictype/categ_Co.h: Likewise.
55096         * lib/unictype/categ_Cs.h: Likewise.
55097         * lib/unictype/categ_Lt.h: Likewise.
55098         * lib/unictype/categ_Nl.h: Likewise.
55099         * lib/unictype/categ_Pc.h: Likewise.
55100         * lib/unictype/categ_Pd.h: Likewise.
55101         * lib/unictype/categ_Pe.h: Likewise.
55102         * lib/unictype/categ_Pf.h: Likewise.
55103         * lib/unictype/categ_Pi.h: Likewise.
55104         * lib/unictype/categ_Ps.h: Likewise.
55105         * lib/unictype/categ_Z.h: Likewise.
55106         * lib/unictype/categ_Zl.h: Likewise.
55107         * lib/unictype/categ_Zp.h: Likewise.
55108         * lib/unictype/categ_Zs.h: Likewise.
55109         * lib/unictype/ctype_blank.h: Likewise.
55110         * lib/unictype/ctype_cntrl.h: Likewise.
55111         * lib/unictype/ctype_digit.h: Likewise.
55112         * lib/unictype/ctype_space.h: Likewise.
55113         * lib/unictype/ctype_xdigit.h: Likewise.
55114         * lib/unictype/mirror.h: Likewise.
55115         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55116         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55117         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55118         * lib/unictype/pr_bidi_control.h: Likewise.
55119         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55120         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55121         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55122         * lib/unictype/pr_bidi_pdf.h: Likewise.
55123         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55124         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55125         * lib/unictype/pr_dash.h: Likewise.
55126         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55127         * lib/unictype/pr_diacritic.h: Likewise.
55128         * lib/unictype/pr_extender.h: Likewise.
55129         * lib/unictype/pr_hex_digit.h: Likewise.
55130         * lib/unictype/pr_hyphen.h: Likewise.
55131         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55132         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55133         * lib/unictype/pr_ignorable_control.h: Likewise.
55134         * lib/unictype/pr_iso_control.h: Likewise.
55135         * lib/unictype/pr_join_control.h: Likewise.
55136         * lib/unictype/pr_left_of_pair.h: Likewise.
55137         * lib/unictype/pr_line_separator.h: Likewise.
55138         * lib/unictype/pr_logical_order_exception.h: Likewise.
55139         * lib/unictype/pr_non_break.h: Likewise.
55140         * lib/unictype/pr_not_a_character.h: Likewise.
55141         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55142         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55143         * lib/unictype/pr_other_id_start.h: Likewise.
55144         * lib/unictype/pr_other_lowercase.h: Likewise.
55145         * lib/unictype/pr_other_uppercase.h: Likewise.
55146         * lib/unictype/pr_paired_punctuation.h: Likewise.
55147         * lib/unictype/pr_paragraph_separator.h: Likewise.
55148         * lib/unictype/pr_pattern_syntax.h: Likewise.
55149         * lib/unictype/pr_pattern_white_space.h: Likewise.
55150         * lib/unictype/pr_private_use.h: Likewise.
55151         * lib/unictype/pr_quotation_mark.h: Likewise.
55152         * lib/unictype/pr_radical.h: Likewise.
55153         * lib/unictype/pr_soft_dotted.h: Likewise.
55154         * lib/unictype/pr_space.h: Likewise.
55155         * lib/unictype/pr_titlecase.h: Likewise.
55156         * lib/unictype/pr_variation_selector.h: Likewise.
55157         * lib/unictype/pr_white_space.h: Likewise.
55158         * lib/unictype/pr_zero_width.h: Likewise.
55159         * lib/unictype/sy_c_ident.h: Likewise.
55160         * lib/unictype/sy_c_whitespace.h: Likewise.
55161         * lib/unictype/sy_java_whitespace.h: Likewise.
55162         * lib/uninorm/composition-table.gperf: Likewise.
55163         * lib/uninorm/decomposition-table1.h: Likewise.
55164         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
55165         LB8.
55166         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55167         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55168         * modules/unictype/*: Bump version number of expected libunistring
55169         version.
55171 2011-01-09  Bruno Haible  <bruno@clisp.org>
55173         Update to Unicode 5.2.0.
55174         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
55175         trailing whitespace removed.
55177 2011-01-09  Bruno Haible  <bruno@clisp.org>
55179         New Unicode character properties, from Unicode 5.2.0.
55180         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
55181         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
55182         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
55183         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
55184         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
55185         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
55186         uc_is_property_cased, uc_is_property_case_ignorable,
55187         uc_is_property_changes_when_lowercased,
55188         uc_is_property_changes_when_uppercased,
55189         uc_is_property_changes_when_titlecased,
55190         uc_is_property_changes_when_casefolded,
55191         uc_is_property_changes_when_casemapped): New declarations.
55192         * lib/unictype/pr_byname.gperf: Add the new properties.
55193         * modules/unictype/property-byname (Depends-on): Depend on the new
55194         properties modules.
55195         * modules/unictype/property-all (Depends-on): Likewise.
55196         * MODULES.html.sh (Unicode string functions): Add
55197         unictype/property-case-ignorable, unictype/property-cased,
55198         unictype/property-changes-when-casefolded,
55199         unictype/property-changes-when-casemapped,
55200         unictype/property-changes-when-lowercased,
55201         unictype/property-changes-when-titlecased,
55202         unictype/property-changes-when-uppercased.
55204         New module 'unictype/property-changes-when-casemapped'.
55205         * modules/unictype/property-changes-when-casemapped: New file.
55206         * lib/unictype/pr_changes_when_casemapped.c: New file.
55207         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
55208         generated by gen-uni-tables.
55209         * modules/unictype/property-changes-when-casemapped-tests: New file.
55210         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
55211         automatically generated by gen-uni-tables.
55213         New module 'unictype/property-changes-when-casefolded'.
55214         * modules/unictype/property-changes-when-casefolded: New file.
55215         * lib/unictype/pr_changes_when_casefolded.c: New file.
55216         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
55217         generated by gen-uni-tables.
55218         * modules/unictype/property-changes-when-casefolded-tests: New file.
55219         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
55220         automatically generated by gen-uni-tables.
55222         New module 'unictype/property-changes-when-titlecased'.
55223         * modules/unictype/property-changes-when-titlecased: New file.
55224         * lib/unictype/pr_changes_when_titlecased.c: New file.
55225         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
55226         generated by gen-uni-tables.
55227         * modules/unictype/property-changes-when-titlecased-tests: New file.
55228         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
55229         automatically generated by gen-uni-tables.
55231         New module 'unictype/property-changes-when-uppercased'.
55232         * modules/unictype/property-changes-when-uppercased: New file.
55233         * lib/unictype/pr_changes_when_uppercased.c: New file.
55234         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
55235         generated by gen-uni-tables.
55236         * modules/unictype/property-changes-when-uppercased-tests: New file.
55237         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
55238         automatically generated by gen-uni-tables.
55240         New module 'unictype/property-changes-when-lowercased'.
55241         * modules/unictype/property-changes-when-lowercased: New file.
55242         * lib/unictype/pr_changes_when_lowercased.c: New file.
55243         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
55244         generated by gen-uni-tables.
55245         * modules/unictype/property-changes-when-lowercased-tests: New file.
55246         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
55247         automatically generated by gen-uni-tables.
55249         New module 'unictype/property-case-ignorable'.
55250         * modules/unictype/property-case-ignorable: New file.
55251         * lib/unictype/pr_case_ignorable.c: New file.
55252         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
55253         by gen-uni-tables.
55254         * modules/unictype/property-case-ignorable-tests: New file.
55255         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
55256         generated by gen-uni-tables.
55258         New module 'unictype/property-cased'.
55259         * modules/unictype/property-cased: New file.
55260         * lib/unictype/pr_cased.c: New file.
55261         * lib/unictype/pr_cased.h: New file, automatically generated by
55262         gen-uni-tables.
55263         * modules/unictype/property-cased-tests: New file.
55264         * tests/unictype/test-pr_cased.c: New file, automatically generated by
55265         gen-uni-tables.
55267 2011-01-09  Bruno Haible  <bruno@clisp.org>
55269         Update to Unicode 5.2.0.
55270         * lib/gen-uni-tables.c (output_predicate, output_category,
55271         output_combclass, output_bidi_category, output_decimal_digit_test,
55272         output_decimal_digit, output_digit_test, output_digit,
55273         output_numeric_test, output_numeric, output_mirror, output_scripts,
55274         output_scripts_byname, output_blocks, output_ident_category): Fix
55275         comment header.
55276         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
55277         get_wbp.
55278         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
55279         items.
55280         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
55281         Changes_When_Lowercased, Changes_When_Uppercased,
55282         Changes_When_Titlecased, Changes_When_Casefolded,
55283         Changes_When_Casemapped.
55284         (is_property_alphabetic, is_property_default_ignorable_code_point):
55285         Update for Unicode 5.2.0.
55286         (is_property_cased, is_property_case_ignorable,
55287         is_property_changes_when_lowercased,
55288         is_property_changes_when_uppercased,
55289         is_property_changes_when_titlecased,
55290         is_property_changes_when_casefolded,
55291         is_property_changes_when_casemapped): New functions.
55292         (output_properties): Output also the properties cased, case_ignorable,
55293         changes_when_lowercased, changes_when_uppercased,
55294         changes_when_titlecased, changes_when_casefolded,
55295         changes_when_casemapped.
55296         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
55297         Unicode TR#11 revision 17 -> 19.
55298         (LBP_CP): New enumeration value.
55299         (LBP_*): Adjust values accordingly.
55300         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
55301         TR#14 revision 22 -> 24.
55302         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
55303         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
55304         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
55305         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
55306         is_WBP_MIDLETTER.
55307         (output_composition_tables): Allow for 24 bits instead of 16 bits in
55308         the code1 and code2 of each composition rule.
55309         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
55310         * lib/unicase/ignorable.h: Likewise.
55311         * lib/unicase/tocasefold.h: Likewise.
55312         * lib/unicase/tolower.h: Likewise.
55313         * lib/unicase/totitle.h: Likewise.
55314         * lib/unicase/toupper.h: Likewise.
55315         * lib/unictype/bidi_of.h: Likewise.
55316         * lib/unictype/blocks.h: Likewise.
55317         * lib/unictype/categ_C.h: Likewise.
55318         * lib/unictype/categ_Cf.h: Likewise.
55319         * lib/unictype/categ_Cn.h: Likewise.
55320         * lib/unictype/categ_L.h: Likewise.
55321         * lib/unictype/categ_Ll.h: Likewise.
55322         * lib/unictype/categ_Lm.h: Likewise.
55323         * lib/unictype/categ_Lo.h: Likewise.
55324         * lib/unictype/categ_Lu.h: Likewise.
55325         * lib/unictype/categ_M.h: Likewise.
55326         * lib/unictype/categ_Mc.h: Likewise.
55327         * lib/unictype/categ_Mn.h: Likewise.
55328         * lib/unictype/categ_N.h: Likewise.
55329         * lib/unictype/categ_Nd.h: Likewise.
55330         * lib/unictype/categ_Nl.h: Likewise.
55331         * lib/unictype/categ_No.h: Likewise.
55332         * lib/unictype/categ_P.h: Likewise.
55333         * lib/unictype/categ_Pd.h: Likewise.
55334         * lib/unictype/categ_Po.h: Likewise.
55335         * lib/unictype/categ_S.h: Likewise.
55336         * lib/unictype/categ_Sc.h: Likewise.
55337         * lib/unictype/categ_So.h: Likewise.
55338         * lib/unictype/categ_of.h: Likewise.
55339         * lib/unictype/combining.h: Likewise.
55340         * lib/unictype/ctype_alnum.h: Likewise.
55341         * lib/unictype/ctype_alpha.h: Likewise.
55342         * lib/unictype/ctype_graph.h: Likewise.
55343         * lib/unictype/ctype_lower.h: Likewise.
55344         * lib/unictype/ctype_print.h: Likewise.
55345         * lib/unictype/ctype_punct.h: Likewise.
55346         * lib/unictype/ctype_upper.h: Likewise.
55347         * lib/unictype/decdigit.h: Likewise.
55348         * lib/unictype/digit.h: Likewise.
55349         * lib/unictype/numeric.h: Likewise.
55350         * lib/unictype/pr_alphabetic.h: Likewise.
55351         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55352         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55353         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55354         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55355         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55356         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55357         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55358         * lib/unictype/pr_combining.h: Likewise.
55359         * lib/unictype/pr_composite.h: Likewise.
55360         * lib/unictype/pr_currency_symbol.h: Likewise.
55361         * lib/unictype/pr_dash.h: Likewise.
55362         * lib/unictype/pr_decimal_digit.h: Likewise.
55363         * lib/unictype/pr_deprecated.h: Likewise.
55364         * lib/unictype/pr_diacritic.h: Likewise.
55365         * lib/unictype/pr_extender.h: Likewise.
55366         * lib/unictype/pr_grapheme_base.h: Likewise.
55367         * lib/unictype/pr_grapheme_extend.h: Likewise.
55368         * lib/unictype/pr_grapheme_link.h: Likewise.
55369         * lib/unictype/pr_id_continue.h: Likewise.
55370         * lib/unictype/pr_id_start.h: Likewise.
55371         * lib/unictype/pr_ideographic.h: Likewise.
55372         * lib/unictype/pr_ignorable_control.h: Likewise.
55373         * lib/unictype/pr_logical_order_exception.h: Likewise.
55374         * lib/unictype/pr_lowercase.h: Likewise.
55375         * lib/unictype/pr_numeric.h: Likewise.
55376         * lib/unictype/pr_other_alphabetic.h: Likewise.
55377         * lib/unictype/pr_punctuation.h: Likewise.
55378         * lib/unictype/pr_sentence_terminal.h: Likewise.
55379         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55380         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55381         * lib/unictype/pr_unified_ideograph.h: Likewise.
55382         * lib/unictype/pr_uppercase.h: Likewise.
55383         * lib/unictype/pr_xid_continue.h: Likewise.
55384         * lib/unictype/pr_xid_start.h: Likewise.
55385         * lib/unictype/pr_zero_width.h: Likewise.
55386         * lib/unictype/scripts.h: Likewise.
55387         * lib/unictype/scripts_byname.gperf: Likewise.
55388         * lib/unictype/sy_java_ident.h: Likewise.
55389         * lib/unigbrk/gbrkprop.h: Likewise.
55390         * lib/unilbrk/lbrkprop1.h: Likewise.
55391         * lib/unilbrk/lbrkprop2.h: Likewise.
55392         * lib/unilbrk/lbrktables.h: Likewise.
55393         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
55394         LBP_CP. Implement rule LB30.
55395         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
55396         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
55397         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
55398         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
55399         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
55400         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
55401         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
55402         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
55403         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
55404         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
55405         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
55406         bits instead of 16 bits in the code1 and code2 of each composition
55407         rule.
55408         (uc_composition): Update for Unicode 5.2.0.
55409         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
55410         * lib/uninorm/decomposition-table2.h: Likewise.
55411         * lib/uniwbrk/wbrkprop.h: Likewise.
55412         * tests/unicase/test-cased.c: Likewise.
55413         * tests/unicase/test-ignorable.c: Likewise.
55414         * tests/unicase/test-uc_tolower.c: Likewise.
55415         * tests/unicase/test-uc_totitle.c: Likewise.
55416         * tests/unicase/test-uc_toupper.c: Likewise.
55417         * tests/unictype/test-categ_C.c: Likewise.
55418         * tests/unictype/test-categ_Cf.c: Likewise.
55419         * tests/unictype/test-categ_Cn.c: Likewise.
55420         * tests/unictype/test-categ_L.c: Likewise.
55421         * tests/unictype/test-categ_Ll.c: Likewise.
55422         * tests/unictype/test-categ_Lm.c: Likewise.
55423         * tests/unictype/test-categ_Lo.c: Likewise.
55424         * tests/unictype/test-categ_Lu.c: Likewise.
55425         * tests/unictype/test-categ_M.c: Likewise.
55426         * tests/unictype/test-categ_Mc.c: Likewise.
55427         * tests/unictype/test-categ_Mn.c: Likewise.
55428         * tests/unictype/test-categ_N.c: Likewise.
55429         * tests/unictype/test-categ_Nd.c: Likewise.
55430         * tests/unictype/test-categ_Nl.c: Likewise.
55431         * tests/unictype/test-categ_No.c: Likewise.
55432         * tests/unictype/test-categ_P.c: Likewise.
55433         * tests/unictype/test-categ_Pd.c: Likewise.
55434         * tests/unictype/test-categ_Po.c: Likewise.
55435         * tests/unictype/test-categ_S.c: Likewise.
55436         * tests/unictype/test-categ_Sc.c: Likewise.
55437         * tests/unictype/test-categ_So.c: Likewise.
55438         * tests/unictype/test-ctype_alnum.c: Likewise.
55439         * tests/unictype/test-ctype_alpha.c: Likewise.
55440         * tests/unictype/test-ctype_graph.c: Likewise.
55441         * tests/unictype/test-ctype_lower.c: Likewise.
55442         * tests/unictype/test-ctype_print.c: Likewise.
55443         * tests/unictype/test-ctype_punct.c: Likewise.
55444         * tests/unictype/test-ctype_upper.c: Likewise.
55445         * tests/unictype/test-decdigit.h: Likewise.
55446         * tests/unictype/test-digit.h: Likewise.
55447         * tests/unictype/test-numeric.h: Likewise.
55448         * tests/unictype/test-pr_alphabetic.c: Likewise.
55449         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55450         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55451         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55452         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55453         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55454         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55455         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55456         * tests/unictype/test-pr_combining.c: Likewise.
55457         * tests/unictype/test-pr_composite.c: Likewise.
55458         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55459         * tests/unictype/test-pr_dash.c: Likewise.
55460         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55461         * tests/unictype/test-pr_deprecated.c: Likewise.
55462         * tests/unictype/test-pr_diacritic.c: Likewise.
55463         * tests/unictype/test-pr_extender.c: Likewise.
55464         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55465         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55466         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55467         * tests/unictype/test-pr_id_continue.c: Likewise.
55468         * tests/unictype/test-pr_id_start.c: Likewise.
55469         * tests/unictype/test-pr_ideographic.c: Likewise.
55470         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55471         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55472         * tests/unictype/test-pr_lowercase.c: Likewise.
55473         * tests/unictype/test-pr_numeric.c: Likewise.
55474         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55475         * tests/unictype/test-pr_punctuation.c: Likewise.
55476         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55477         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55478         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55479         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55480         * tests/unictype/test-pr_uppercase.c: Likewise.
55481         * tests/unictype/test-pr_xid_continue.c: Likewise.
55482         * tests/unictype/test-pr_xid_start.c: Likewise.
55483         * tests/unictype/test-pr_zero_width.c: Likewise.
55484         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
55485         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
55486         changed behaviour: line breaking is now disallowed between a letter
55487         or '=' and '('.
55488         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55489         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55490         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55491         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
55492         * tests/uniwidth/test-uc_width2.sh: Same updates as in
55493         lib/uniwidth/width.c.
55494         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
55495         without comments, but with the original copyright notice.
55496         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
55497         changes.
55498         * lib/unictype/categ_Cc.h: Likewise.
55499         * lib/unictype/categ_Co.h: Likewise.
55500         * lib/unictype/categ_Cs.h: Likewise.
55501         * lib/unictype/categ_Lt.h: Likewise.
55502         * lib/unictype/categ_Me.h: Likewise.
55503         * lib/unictype/categ_Pc.h: Likewise.
55504         * lib/unictype/categ_Pe.h: Likewise.
55505         * lib/unictype/categ_Pf.h: Likewise.
55506         * lib/unictype/categ_Pi.h: Likewise.
55507         * lib/unictype/categ_Ps.h: Likewise.
55508         * lib/unictype/categ_Sk.h: Likewise.
55509         * lib/unictype/categ_Sm.h: Likewise.
55510         * lib/unictype/categ_Z.h: Likewise.
55511         * lib/unictype/categ_Zl.h: Likewise.
55512         * lib/unictype/categ_Zp.h: Likewise.
55513         * lib/unictype/categ_Zs.h: Likewise.
55514         * lib/unictype/ctype_blank.h: Likewise.
55515         * lib/unictype/ctype_cntrl.h: Likewise.
55516         * lib/unictype/ctype_digit.h: Likewise.
55517         * lib/unictype/ctype_space.h: Likewise.
55518         * lib/unictype/ctype_xdigit.h: Likewise.
55519         * lib/unictype/mirror.h: Likewise.
55520         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55521         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55522         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55523         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55524         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55525         * lib/unictype/pr_bidi_control.h: Likewise.
55526         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55527         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55528         * lib/unictype/pr_bidi_pdf.h: Likewise.
55529         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55530         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55531         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55532         * lib/unictype/pr_format_control.h: Likewise.
55533         * lib/unictype/pr_hex_digit.h: Likewise.
55534         * lib/unictype/pr_hyphen.h: Likewise.
55535         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55536         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55537         * lib/unictype/pr_iso_control.h: Likewise.
55538         * lib/unictype/pr_join_control.h: Likewise.
55539         * lib/unictype/pr_left_of_pair.h: Likewise.
55540         * lib/unictype/pr_line_separator.h: Likewise.
55541         * lib/unictype/pr_math.h: Likewise.
55542         * lib/unictype/pr_non_break.h: Likewise.
55543         * lib/unictype/pr_not_a_character.h: Likewise.
55544         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55545         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55546         * lib/unictype/pr_other_id_continue.h: Likewise.
55547         * lib/unictype/pr_other_id_start.h: Likewise.
55548         * lib/unictype/pr_other_lowercase.h: Likewise.
55549         * lib/unictype/pr_other_math.h: Likewise.
55550         * lib/unictype/pr_other_uppercase.h: Likewise.
55551         * lib/unictype/pr_paired_punctuation.h: Likewise.
55552         * lib/unictype/pr_paragraph_separator.h: Likewise.
55553         * lib/unictype/pr_pattern_syntax.h: Likewise.
55554         * lib/unictype/pr_pattern_white_space.h: Likewise.
55555         * lib/unictype/pr_private_use.h: Likewise.
55556         * lib/unictype/pr_quotation_mark.h: Likewise.
55557         * lib/unictype/pr_radical.h: Likewise.
55558         * lib/unictype/pr_soft_dotted.h: Likewise.
55559         * lib/unictype/pr_space.h: Likewise.
55560         * lib/unictype/pr_titlecase.h: Likewise.
55561         * lib/unictype/pr_variation_selector.h: Likewise.
55562         * lib/unictype/pr_white_space.h: Likewise.
55563         * lib/unictype/sy_c_ident.h: Likewise.
55564         * lib/unictype/sy_c_whitespace.h: Likewise.
55565         * lib/unictype/sy_java_whitespace.h: Likewise.
55566         * modules/uni*/*: Bump version number of expected libunistring version.
55567         Reported by Simon Josefsson.
55569 2011-01-09  Karl Heuer  <kwzh@gnu.org>
55571         useless-if-before-free: fix typo in --help and make the internal,
55572         automatic version date update process work once again.
55573         --help output contained a NUL character instead of the
55574         backslash-zero that was intended.  Also, the "must lie within
55575         the first 8 lines" line is on line 9, and hence not getting
55576         automatically updated.
55577         * build-aux/useless-if-before-free: Fix the former by adding a
55578         backslash, and the latter by condensing the three lines of what-it-does
55579         to a single line, leaving one line of slack for the future.
55581 2011-01-09  Bruno Haible  <bruno@clisp.org>
55583         uniwidth/width: Fix width of U+1D173..U+1D17A.
55584         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
55585         symbolic_width, output_width_property_test): New functions.
55586         (main): Invoke output_nonspacing_property, output_width_property_test.
55587         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
55588         U+1D173..U+1D17A.
55589         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
55590         1.
55591         * modules/uniwidth/*: Bump version number of expected libunistring
55592         version.
55593         * modules/unilbrk/*: Likewise.
55595 2011-01-08  Bruno Haible  <bruno@clisp.org>
55597         uninorm tests: Preserve copyright of Unicode data file.
55598         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
55599         Mention modifications.
55601 2011-01-08  Bruno Haible  <bruno@clisp.org>
55603         gen-uni-tables: Prepare for Unicode 5.2.0.
55604         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
55605         (debug_output_lbp, output_lbp): Update.
55607 2011-01-08  Bruno Haible  <bruno@clisp.org>
55609         unilbrk: Clarify gen-uni-tables.c code.
55610         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
55611         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
55612         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
55614 2011-01-07  Bruno Haible  <bruno@clisp.org>
55616         strtod: Restore errno when successfully parsing Infinity or NaN.
55617         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
55618         restore the original errno.
55620 2011-01-07  Bruno Haible  <bruno@clisp.org>
55622         remove test: Avoid failure on HP-UX 11.
55623         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
55625 2011-01-07  Bruno Haible  <bruno@clisp.org>
55627         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
55628         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
55629         error code.
55631 2011-01-07  Pádraig Brady  <P@draigBrady.com>
55633         ignore-value: fixup comments, and add Eric Blake
55634         as an author since he rewrote the macros.
55635         * lib/ignore-value.h (ignore_value):  State that
55636         we now support aggregates.  Also specify exactly
55637         when the GCC warn_unused_result feature was added.
55639 2011-01-06  Eric Blake  <eblake@redhat.com>
55641         ignore-value: support aggregate types
55642         * lib/ignore-value.h (ignore_value): Provide separate gcc
55643         definition.
55644         * modules/ignore-value-tests: New test module.
55645         * tests/test-ignore-value.c: New test.
55647         maint.mk: improve sc_prohibit_strcmp regex
55648         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
55649         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
55650         definition of STRNEQ.
55652         signal: work around Haiku issue with SIGBUS
55653         * lib/siglist.h: Add comment.
55654         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
55655         strsignal's favoring of SIGSEGV.
55656         * tests/test-signal.c (main): Avoid test failure.
55657         * doc/posix-headers/signal.texi (signal.h): Document the issue.
55658         Reported by Scott McCreary.
55660         maint.mk: add pre-release check to ensure submodule commits are public
55661         * top/maint.mk (public-submodule-commit): New rule.
55662         (submodule-checks): New variable.
55663         (alpha beta stable): Depend on the variable.
55665 2011-01-05  Pádraig Brady  <P@draigBrady.com>
55666         and Jim Meyering  <meyering@redhat.com>
55668         ignore-value: make ignore_value more generic; deprecate ignore_ptr
55669         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
55670         (ATTRIBUTE_DEPRECATED): Define.
55671         (_ignore_case): New function.
55672         (ignore_value): New macro, to replace the old function.
55673         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
55674         * modules/ignore-value (Depends-on): Add stdint.
55676 2011-01-04  Eric Blake  <eblake@redhat.com>
55678         doc: regenerate INSTALL
55679         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
55680         @firstparagraphindent support, now that autoconf dropped it.
55681         (INSTALL_PRELUDE): Reinstate old macro.
55682         * doc/install.texi: Resync from autoconf.
55683         * doc/INSTALL: Reflect recent autoconf update.
55684         * doc/INSTALL.ISO: Likewise.
55685         * doc/INSTALL.UTF-8: Likewise.
55686         Reported by Karl Berry.
55688 2011-01-04  Bruce Korb  <address@hidden>
55690         git-version-gen: avoid a sub-shell
55691         * build-aux/git-version-gen: Redirect stderr in `...` via
55692         "exec 2>...", rather than via an added sub-shell.
55694 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
55696         git-version-gen: use (...) rather than sh -c '...'
55697         * build-aux/git-version-gen: Rather than hard-coding a shell's name
55698         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
55700 2011-01-03  Jim Meyering  <meyering@redhat.com>
55702         git-version-gen: convert leading TABs to spaces
55703         * build-aux/git-version-gen: Expand leading TABs.
55705         git-version-gen: handle failed "git rev-list"
55706         * build-aux/git-version-gen: Rather than leaking a "fatal" error
55707         from git and proceeding as if it had succeeded but printed no SHA1
55708         checksums, suppress the diagnostic and handle the failure.
55709         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
55711         git-version-gen: include command name in one more diagnostic
55712         * build-aux/git-version-gen: When the required .tarball-version file
55713         was missing or unreadable, you might see the diagnostic from "cat",
55714         but no trace of the name of the invoking script.  Now, you still see
55715         the diagnostic from cat, but also get one from "git-version-gen: ".
55716         Inspired by a patch from Bruce Korb.
55718         update-copyright: adjust test to match changed code
55719         * tests/test-update-copyright.sh: Change test's expected output
55720         to match new actual output.
55722 2011-01-02  Bruno Haible  <bruno@clisp.org>
55724         getlogin_r: Avoid test failure on HP-UX 11.
55725         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
55726         ERANGE when the second argument is zero.
55727         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
55728         portability problem.
55730 2011-01-02  Bruce Korb  <bkorb@gnu.org>
55732         * build-aux/update-copyright: doc Simon's changes
55734 2011-01-02  Simon Josefsson  <simon@josefsson.org>
55736         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
55737         environment variable.
55739 2011-01-02  Bruno Haible  <bruno@clisp.org>
55741         unigbrk: Avoid gcc warnings.
55742         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
55743         unused variable.
55744         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
55745         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
55746         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
55747         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
55748         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
55749         Change type of first argument to 'const char *'.
55750         (main): Remove unused variable.
55751         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
55752         type of first argument to 'const char *'.
55753         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
55754         Likewise.
55755         (main): Change type of variable 's'.
55756         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
55757         to 'int'.
55759 2011-01-02  Bruno Haible  <bruno@clisp.org>
55761         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
55762         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
55763         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
55764         bug.
55765         * lib/pwrite.c: Undo 2010-12-31 patch.
55766         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
55768 2011-01-02  Bruno Haible  <bruno@clisp.org>
55770         pread: Fix test whether it works.
55771         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
55773 2011-01-02  Bruno Haible  <bruno@clisp.org>
55775         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
55776         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
55777         ends in "6". Don't require a specific month name. Try also the locale
55778         names found on HP-UX 11 and Solaris 7.
55780 2011-01-02  Bruno Haible  <bruno@clisp.org>
55782         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
55783         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
55784         C linkage.
55785         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
55787 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55789         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
55790         for consistency, since the "cluster" term is not used elsewhere.
55791         * lib/unigbrk.in.h: Update name.
55792         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
55793         * lib/unigbrk/u16-grapheme-next.c: Update name.
55794         * lib/unigbrk/u16-grapheme-prev.c: Update name.
55795         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
55796         * lib/unigbrk/u32-grapheme-next.c: Update name.
55797         * lib/unigbrk/u32-grapheme-prev.c: Update name.
55798         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
55799         * lib/unigbrk/u8-grapheme-next.c: Update name.
55800         * lib/unigbrk/u8-grapheme-prev.c: Update name.
55801         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
55802         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
55803         Suggested by Bruno Haible.
55805 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55807         Remove module 'u8-grapheme-len' as too redundant with
55808         'u8-grapheme-next'.
55809         * modules/unigbrk/u8-grapheme-len: Delete file.
55810         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
55811         * lib/unigbrk.in.h: Remove prototype for deleted function.
55812         * lib/unigbrk/u8-grapheme-len.c: Delete file.
55813         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
55815         Remove module 'u16-grapheme-len' as too redundant with
55816         'u16-grapheme-next'.
55817         * modules/unigbrk/u16-grapheme-len: Delete file.
55818         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
55819         * lib/unigbrk.in.h: Remove prototype for deleted function.
55820         * lib/unigbrk/u16-grapheme-len.c: Delete file.
55821         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
55823         Remove module 'u32-grapheme-len' as too redundant with
55824         'u32-grapheme-next'.
55825         * modules/unigbrk/u32-grapheme-len: Delete file.
55826         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
55827         * lib/unigbrk.in.h: Remove prototype for deleted function.
55828         * lib/unigbrk/u32-grapheme-len.c: Delete file.
55829         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
55831         Suggested by Bruno Haible.
55833 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55835         * unigbrk.in.h: Fix typo: "ben" => "been".
55836         Reported by Bruno Haible.
55838 2011-01-01  Jim Meyering  <meyering@redhat.com>
55840         maint: update almost all copyright ranges to include 2011
55841         Run the new "make update-copyright" rule.
55843 2011-01-01  Jim Meyering  <meyering@redhat.com>
55845         maint: update-copyright: exempt doc/INSTALL*
55846         * Makefile (update-copyright): Also exclude doc/INSTALL*,
55847         since they are generated.  Suggested by Bruno Haible.
55849 2011-01-01  Jim Meyering  <meyering@redhat.com>
55851         maint: refine the update-copyright rule
55852         * Makefile (update-copyright): Also exclude any file that includes
55853         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
55854         code that merely generates the comment.
55856 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
55858         New module 'u8-grapheme-len'.
55859         * modules/unigbrk/u8-grapheme-len: New file.
55860         * modules/unigbrk/u8-grapheme-len-tests: New file.
55861         * lib/unigbrk.in.h: Add prototype for new function.
55862         * lib/unigbrk/u8-grapheme-len.c: New file.
55863         * tests/unigbrk/test-u8-grapheme-len.c: New file.
55865         New module 'u16-grapheme-len'.
55866         * modules/unigbrk/u16-grapheme-len: New file.
55867         * modules/unigbrk/u16-grapheme-len-tests: New file.
55868         * lib/unigbrk.in.h: Add prototype for new function.
55869         * lib/unigbrk/u16-grapheme-len.c: New file.
55870         * tests/unigbrk/test-u16-grapheme-len.c: New file.
55872         New module 'u32-grapheme-len'.
55873         * modules/unigbrk/u32-grapheme-len: New file.
55874         * modules/unigbrk/u32-grapheme-len-tests: New file.
55875         * lib/unigbrk.in.h: Add prototype for new function.
55876         * lib/unigbrk/u32-grapheme-len.c: New file.
55877         * tests/unigbrk/test-u32-grapheme-len.c: New file.
55879         New module 'u8-grapheme-next'.
55880         * modules/unigbrk/u8-grapheme-next: New file.
55881         * modules/unigbrk/u8-grapheme-next-tests: New file.
55882         * lib/unigbrk.in.h: Add prototype for new function.
55883         * lib/unigbrk/u8-grapheme-next.c: New file.
55884         * tests/unigbrk/test-u8-grapheme-next.c: New file.
55886         New module 'u16-grapheme-next'.
55887         * modules/unigbrk/u16-grapheme-next: New file.
55888         * modules/unigbrk/u16-grapheme-next-tests: New file.
55889         * lib/unigbrk.in.h: Add prototype for new function.
55890         * lib/unigbrk/u16-grapheme-next.c: New file.
55891         * tests/unigbrk/test-u16-grapheme-next.c: New file.
55893         New module 'u32-grapheme-next'.
55894         * modules/unigbrk/u32-grapheme-next: New file.
55895         * modules/unigbrk/u32-grapheme-next-tests: New file.
55896         * lib/unigbrk.in.h: Add prototype for new function.
55897         * lib/unigbrk/u32-grapheme-next.c: New file.
55898         * tests/unigbrk/test-u32-grapheme-next.c: New file.
55900         New module 'u8-grapheme-prev'.
55901         * modules/unigbrk/u8-grapheme-prev: New file.
55902         * modules/unigbrk/u8-grapheme-prev-tests: New file.
55903         * lib/unigbrk.in.h: Add prototype for new function.
55904         * lib/unigbrk/u8-grapheme-prev.c: New file.
55905         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
55907         New module 'u16-grapheme-prev'.
55908         * modules/unigbrk/u16-grapheme-prev: New file.
55909         * modules/unigbrk/u16-grapheme-prev-tests: New file.
55910         * lib/unigbrk.in.h: Add prototype for new function.
55911         * lib/unigbrk/u16-grapheme-prev.c: New file.
55912         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
55914         New module 'u32-grapheme-prev'.
55915         * modules/unigbrk/u32-grapheme-prev: New file.
55916         * modules/unigbrk/u32-grapheme-prev-tests: New file.
55917         * lib/unigbrk.in.h: Add prototype for new function.
55918         * lib/unigbrk/u32-grapheme-prev.c: New file.
55919         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
55921         New module 'u8-grapheme-breaks'.
55922         * modules/unigbrk/u8-grapheme-breaks: New file.
55923         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
55924         * lib/unigbrk.in.h: Add prototype for new function.
55925         * lib/unigbrk/u8-grapheme-breaks.c: New file.
55926         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
55928         New module 'u16-grapheme-breaks'.
55929         * modules/unigbrk/u16-grapheme-breaks: New file.
55930         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
55931         * lib/unigbrk.in.h: Add prototype for new function.
55932         * lib/unigbrk/u16-grapheme-breaks.c: New file.
55933         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
55935         New module 'u32-grapheme-breaks'.
55936         * modules/unigbrk/u32-grapheme-breaks: New file.
55937         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
55938         * lib/unigbrk.in.h: Add prototype for new function.
55939         * lib/unigbrk/u32-grapheme-breaks.c: New file.
55940         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
55942         New module 'ulc-grapheme-breaks'.
55943         * modules/unigbrk/ulc-grapheme-breaks: New file.
55944         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
55945         * m4/locale-ar.m4: New file.
55946         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
55947         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
55948         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
55950 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
55952         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
55953         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
55954         modified how this file was generated before I initially submitted
55955         the module, but failed to regenerate it.  This meant that several
55956         of the level2 entries were wrong.
55957         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
55958         Remove the division-by-2 that is folded into the table now that
55959         gbrkprop.h has been regenerated properly.  Now -1 entries are
55960         handled correctly.
55962         New module 'unigbrk/uc-gbrk-prop-tests'.
55963         * modules/unigbrk/uc-gbrk-prop-tests: New file.
55964         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
55965         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
55966         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
55968 2011-01-01  Bruno Haible  <bruno@clisp.org>
55970         Avoid use of hexadecimal escapes.
55971         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
55972         instead of hexadecimal escapes.
55974 2011-01-01  Jim Meyering  <meyering@redhat.com>
55976         maint: new rule to update copyright year ranges
55977         * Makefile (update-copyright): New rule.
55979         maint: indent with TABs in Makefile
55980         * Makefile: Expand leading sequences of spaces to TABs
55982         version-etc: update the copyright year it reports
55983         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
55985 2010-12-31  Bruno Haible  <bruno@clisp.org>
55987         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
55988         * lib/isfinite.c (zerof, zerod, zerol): New variables.
55989         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
55990         zero.
55992 2010-12-31  Bruno Haible  <bruno@clisp.org>
55994         pwrite: Work around HP-UX 11.11 bug.
55995         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
55996         works and set REPLACE_PWRITE if not.
55997         * lib/pwrite.c (pwrite): Add an implementation that uses the system
55998         function.
55999         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
56001 2010-12-31  Bruno Haible  <bruno@clisp.org>
56003         pread: Work around HP-UX 11 bugs.
56004         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
56005         and set REPLACE_PREAD if not.
56006         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
56008 2010-12-31  Eric Blake  <eblake@redhat.com>
56010         nl_langinfo: fix YESEXPR on Irix 6.5
56011         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
56012         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
56013         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
56014         it.
56016 2010-12-31  Bruno Haible  <bruno@clisp.org>
56018         iconv: Document HP-UX 11 bug.
56019         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
56021 2010-12-31  Bruno Haible  <bruno@clisp.org>
56023         ldexpl: Fix link error on HP-UX 11.
56024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
56025         LDEXPL_LIBM, using $ISNANL_LIBM.
56027 2010-12-31  Eric Blake  <eblake@redhat.com>
56029         ftello: avoid compilation failure with SunStudio c89
56030         * lib/ftello.c (ftello): Use lseek, not llseek.
56032         tests: avoid failing coreutils tests on cygwin
56033         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
56034         (create_exe_shims_): Return 0 when skipping.
56036 2010-12-31  Bruno Haible  <bruno@clisp.org>
56038         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
56039         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
56041 2010-12-31  Bruno Haible  <bruno@clisp.org>
56043         waitpid: Fix link error in C++ mode.
56044         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
56046 2010-12-31  Bruno Haible  <bruno@clisp.org>
56048         isnan: Use GCC built-ins when possible.
56049         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
56050         __builtin_isnan.
56051         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
56052         (isnan): Define using GCC built-ins for GCC >= 4.0.
56054 2010-12-31  Bruno Haible  <bruno@clisp.org>
56056         isnand: Fix mistake.
56057         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
56058         __builtin_isnand.
56060 2010-12-31  Bruno Haible  <bruno@clisp.org>
56062         open: Avoid C++ error on HP-UX 11.
56063         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
56065 2010-12-31  Bruno Haible  <bruno@clisp.org>
56067         time_r: Add missing declarations on HP-UX 11.
56068         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
56069         instead of HAVE_LOCALTIME_R.
56070         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
56071         HAVE_LOCALTIME_R always.
56072         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
56073         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
56074         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
56075         HAVE_LOCALTIME_R.
56076         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
56077         * doc/posix-functions/localtime_r.texi: Likewise.
56079 2010-12-29  Eric Blake  <eblake@redhat.com>
56081         mountlist: tweak previous commit
56082         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
56083         Reported by Paul Eggert.
56085         mountlist: fix local drive detection on cygwin
56086         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
56087         that works for cygwin.
56089 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56091         ftoastr, snprintf: ftoastr + snprintf module
56092         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
56093         since the snprintf module now should be good enough here.
56094         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
56095         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
56096         and gl_MODULE_INDICATOR([snprintf]), but the former enables
56097         GNULIB_SNPRINTF only for the test directory, and the latter
56098         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
56099         seems to suffice by itself.
56101 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56103         alloca: one step towards thread-safety
56104         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
56105         need for a static variable.  All callers changed.  This does not
56106         make the alloca replacement thread-safe, but it's one step.
56108         tests: minor indenting change
56109         * tests/init.sh: Sync from coreutils housekeeping patch
56110         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
56111         to keep lines within 80 columns.
56113 2010-12-28  Jim Meyering  <meyering@redhat.com>
56115         regex: don't infloop on persistent failing calloc
56116         * lib/regexec.c (build_trtable): Return failure indication upon
56117         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
56118         In glibc, this was fixed for version 2.13:
56119         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
56121 2010-12-28  Bruno Haible  <bruno@clisp.org>
56122             Paul Eggert <eggert@cs.ucla.edu>
56124         linkat: Make implementation robust against system behaviour variations.
56125         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
56126         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
56127         way, and to -2 if it needs a generic runtime test.
56128         * lib/linkat.c (solaris_optimized_link_immediate,
56129         solaris_optimized_link_follow): New functions.
56130         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
56131         (check_same_link): Use it.
56133 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
56135         New module 'unigbrk/base'.
56136         * modules/unigbrk/base: New file.
56137         * lib/unigbrk.in.h: New file.
56139         New module 'unigbrk/uc-gbrk-prop'.
56140         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
56141         * modules/unigbrk/uc-gbrk-prop: New file.
56142         * lib/unigbrk/gbrkprop.h: New file.
56143         * lib/unigbrk/uc-gbrk-prop.c: New file.
56145         New module 'unigbrk/uc-is-grapheme-break'.
56146         * modules/unigbrk/uc-is-grapheme-break: New file.
56147         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
56148         * lib/unigbrk/uc-is-grapheme-break.c: New file.
56149         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
56150         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
56151         * tests/unigbrk/GraphemeBreakTest.txt: New file.
56153         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
56155 2010-12-27  Bruno Haible  <bruno@clisp.org>
56157         linkat test: Avoid failure on Solaris 11 2010-11.
56158         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
56160 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56162         utimens: work around glibc rounding bug on more platforms
56163         * lib/utimens.c (fdutimens): Work around rounding bug even if
56164         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
56165         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
56167 2010-12-27  Bruno Haible  <bruno@clisp.org>
56169         select tests: Improve comments.
56170         * tests/test-select.c (do_select): Add comments.
56172 2010-12-27  Bruno Haible  <bruno@clisp.org>
56174         select tests: Safer way of handling timeout.
56175         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
56176         at every invocation.
56178 2010-12-27  Bruno Haible  <bruno@clisp.org>
56180         select tests: Use 'bool' where appropriate.
56181         * tests/test-select.c (connect_to_socket): Change argument type to
56182         'bool'.
56184 2010-12-27  Bruno Haible  <bruno@clisp.org>
56186         select tests: Use existing modules.
56187         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
56188         (configure.ac): Don't test for unistd.h.
56189         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
56190         declared in <unistd.h>.
56192 2010-12-27  Bruno Haible  <bruno@clisp.org>
56194         mbrtowc: Work around a Solaris 7 bug.
56195         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
56196         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
56197         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
56198         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
56199         MBRTOWC_NULL_ARG1_BUG.
56200         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
56201         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
56202         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
56203         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
56205 2010-12-27  Jim Meyering  <meyering@redhat.com>
56207         read-file.c: tweak syntax
56208         * lib/read-file.c (fread_file): Remove space after "*" in function
56209         definitions.
56211 2010-12-27  Bruno Haible  <bruno@clisp.org>
56213         times test: Avoid gcc warnings on OSF/1.
56214         * tests/test-times.c (main): Cast printf arguments from clock_t to
56215         'long int'.
56217 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56219         utimens: work around glibc rounding bug on older Linux kernels
56220         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
56221         on Linux with a glibc whose utimes might not work, then work
56222         around a longstanding glibc bug involving rounding rather than
56223         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
56224         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
56226 2010-12-26  Bruno Haible  <bruno@clisp.org>
56228         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
56229         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
56230         _GL_CXXALIAS_SYS.
56231         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56233 2010-12-26  Bruno Haible  <bruno@clisp.org>
56235         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
56236         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
56237         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
56238         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
56239         looking for the declaration.
56240         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
56241         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
56242         problem.
56243         * doc/posix-functions/inet_pton.texi: Likewise.
56245 2010-12-26  Bruno Haible  <bruno@clisp.org>
56247         arpa_inet: Use the common idioms with C++ support.
56248         * lib/arpa_inet.in.h: Include c++defs.h.
56249         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
56250         support.
56251         * modules/arpa_inet (Depends-on): Add c++defs.
56252         (Makefile.am): Substitute the contents of c++defs.h.
56253         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
56254         * modules/arpa_inet-c++-tests: New file.
56255         * tests/test-arpa_inet-c++.cc: New file.
56257 2010-12-25  Bruno Haible  <bruno@clisp.org>
56259         Fix more C++ link errors on Solaris 8.
56260         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
56261         $(LIB_EACCESS).
56262         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
56263         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
56264         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
56265         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
56266         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
56268 2010-12-25  Bruno Haible  <bruno@clisp.org>
56270         printf-posix: Fix link error when a non-GCC compiler is used.
56271         * lib/stdio.in.h (printf): When not using GCC, override printf
56272         correctly.
56273         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56275 2010-12-25  Bruno Haible  <bruno@clisp.org>
56277         strerror_r-posix: Update doc.
56278         * doc/posix-functions/strerror_r.texi: Update doc about the return
56279         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
56281 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56283         utimens: simplify the logic of the previous change
56284         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
56285         This should not affect whether the test succeeds or fails.
56287         utimens: configure better on hosts with NFS clock skew
56288         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
56289         uses the clock of the local host.  It might use the clock of the
56290         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
56291         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
56293 2010-12-25  Bruno Haible  <bruno@clisp.org>
56295         ptsname test: Avoid failure on Solaris.
56296         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
56297         open a pseudo-terminal; don't use BSD-style ptys.
56298         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
56300 2010-12-25  Bruno Haible  <bruno@clisp.org>
56302         ptsname: Avoid ERANGE failure on some systems.
56303         * lib/ptsname.c (buffer): Increase size.
56305 2010-12-25  Bruno Haible  <bruno@clisp.org>
56307         rename, renameat: Avoid test failures at NFS mounted locations.
56308         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
56309         so that subsequent mkdir calls succeed.
56311 2010-12-25  Bruno Haible  <bruno@clisp.org>
56313         iswblank: Fix C++ link error on Solaris 8.
56314         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
56315         _GL_FUNCDECL_SYS.
56317 2010-12-25  Bruno Haible  <bruno@clisp.org>
56319         unistd: Fix C++ link error on Solaris 8.
56320         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
56322 2010-12-25  Bruno Haible  <bruno@clisp.org>
56324         readlink doc: Mention an old glibc bug.
56325         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
56327 2010-12-25  Bruno Haible  <bruno@clisp.org>
56329         fcntl-h: Fix for use of C++ on glibc systems.
56330         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
56331         also on glibc systems in C++ mode.
56332         Reported by Gary V. Vaughan <gary@gnu.org>.
56334 2010-12-25  Bruno Haible  <bruno@clisp.org>
56336         roundl-ieee: Make it work on OSF/1 5.1 with cc.
56337         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
56339 2010-12-25  Bruno Haible  <bruno@clisp.org>
56341         truncl-ieee: Make it work on OSF/1 5.1 with cc.
56342         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
56343         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
56344         test whether truncl works according to ISO C 99 with IEC 60559.
56345         * m4/truncl-ieee.m4: New file.
56346         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
56347         m4/signbit.m4.
56348         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
56350 2010-12-25  Bruno Haible  <bruno@clisp.org>
56352         ceill-ieee: Make it work on OSF/1 5.1 with cc.
56353         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
56354         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
56355         test whether ceill works according to ISO C 99 with IEC 60559.
56356         * m4/ceill-ieee.m4: New file.
56357         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
56358         m4/signbit.m4.
56359         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
56361 2010-12-25  Bruno Haible  <bruno@clisp.org>
56363         Ensure all prerequisites of <wchar.h> are included.
56364         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
56365         before <wchar.h>.
56366         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
56367         gl_MBRLEN_NUL_RETVAL): Likewise.
56368         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
56369         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
56370         AC_FUNC_MBRTOWC): Likewise.
56371         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
56372         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56373         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
56374         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
56375         Likewise.
56376         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
56377         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
56378         (gl_WCHAR_H): Improve comments.
56379         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56381 2010-12-25  Bruno Haible  <bruno@clisp.org>
56383         strtok_r: Fix C syntax error in autoconf macro.
56384         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
56385         characters in test program.
56387 2010-12-24  Bruno Haible  <bruno@clisp.org>
56389         ceil, trunc, round: Fix gcc warnings.
56390         * lib/ceil.c (MIN): Undefine before redefining.
56391         * lib/trunc.c (MIN): Likewise.
56392         * lib/round.c (MIN): Likewise.
56393         Include <math.h> first.
56395 2010-12-24  Bruno Haible  <bruno@clisp.org>
56397         select tests: Avoid failures on OSF/1 5.1.
56398         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
56399         failure of closing the last socket; it may fail with ECONNRESET.
56401 2010-12-24  Eric Blake  <eblake@redhat.com>
56403         stdint: avoid HP-UX 10.20 preprocessor bug
56404         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
56405         than #if.
56406         * tests/test-floor2.c (main): Likewise.
56407         Reported by Peter O'Gorman.
56409         pipe: make obsoletion transition easier
56410         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
56411         * modules/pipe (Files): Include revived file.
56412         (Include): Drop reference, to mirror getdate's behavior.
56414 2010-12-24  Bruno Haible  <bruno@clisp.org>
56416         sys_socket: Hide mismatch of declarations on NonStop Kernel.
56417         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
56418         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
56419         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56421 2010-12-24  Bruno Haible  <bruno@clisp.org>
56423         gethostname: Ensure declaration on NonStop Kernel.
56424         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
56425         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56427 2010-12-24  Bruno Haible  <bruno@clisp.org>
56429         sys_select: Ensure all necessary types on NonStop Kernel.
56430         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
56431         include <sys/time.h>.
56432         * doc/posix-headers/sys_select.texi: Mention that it's missing on
56433         NonStop Kernel.
56434         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56436 2010-12-24  Bruno Haible  <bruno@clisp.org>
56438         sys_select: Remove unneeded include.
56439         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
56440         have <sys/select.h>.
56442 2010-12-24  Bruno Haible  <bruno@clisp.org>
56444         gethostname: Provide a fallback for HOST_NAME_MAX.
56445         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
56446         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
56447         instead.
56448         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56450 2010-12-24  Bruno Haible  <bruno@clisp.org>
56452         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
56453         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
56454         (SA_RESTART): Likewise.
56455         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56457 2010-12-24  Bruno Haible  <bruno@clisp.org>
56459         signal: Define NSIG.
56460         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
56461         * tests/test-signal.c (nsig): New variable.
56462         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56464 2010-12-24  Bruno Haible  <bruno@clisp.org>
56466         rename, renameat: Avoid test failures on OSF/1 5.1.
56467         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
56468         alternative error codes.
56469         * tests/test-renameat.c (main): Likewise.
56471 2010-12-24  Bruno Haible  <bruno@clisp.org>
56473         *printf: Detect large precisions bug on Solaris 10/SPARC.
56474         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
56475         by Paul Eggert.
56476         * tests/test-snprintf-posix.h (test_function): Add this test code here
56477         too.
56478         * tests/test-sprintf-posix.h (test_function): Likewise.
56479         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56480         * tests/test-vasprintf-posix.c (test_function): Likewise.
56481         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
56482         around by gnulib.
56483         * doc/posix-functions/printf.texi: Likewise.
56484         * doc/posix-functions/snprintf.texi: Likewise.
56485         * doc/posix-functions/sprintf.texi: Likewise.
56486         * doc/posix-functions/vfprintf.texi: Likewise.
56487         * doc/posix-functions/vprintf.texi: Likewise.
56488         * doc/posix-functions/vsnprintf.texi: Likewise.
56489         * doc/posix-functions/vsprintf.texi: Likewise.
56490         * doc/posix-functions/dprintf.texi: Undo last commit.
56491         * doc/posix-functions/vdprintf.texi: Likewise.
56493 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56495         tests: port test-fdutimensat.c to Solaris 8
56496         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
56497         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
56498         On Solaris 8, it fails with errno == ENOSYS, because there is no
56499         futimens (so it can't use the fd), and there is no lutimens (so it
56500         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
56502         vsnprintf: make more consistent with snprintf; doc fixes
56504         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
56505         the byte count return problem was promoted from the snprintf-posix
56506         to the snprintf module.
56507         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
56508         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
56509         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
56510         * tests/test-snprintf.c (main): Check the byte count returned.
56511         * tests/test-vsnprintf.c (main): Likewise.
56513 2010-12-23  Eric Blake  <eblake@redhat.com>
56515         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
56516         * modules/sigpipe (License): Relax license.
56518 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56520         doc: document Solaris printf bug with large float precisions
56521         * doc/posix-functions/dprintf.texi (dprintf):
56522         * doc/posix-functions/fprintf.texi (fprintf):
56523         * doc/posix-functions/printf.texi (printf):
56524         * doc/posix-functions/snprintf.texi (snprintf):
56525         * doc/posix-functions/sprintf.texi (sprintf):
56526         * doc/posix-functions/vdprintf.texi (vdprintf):
56527         * doc/posix-functions/vfprintf.texi (vfprintf):
56528         * doc/posix-functions/vprintf.texi (vprintf):
56529         * doc/posix-functions/vsnprintf.texi (vsnprintf):
56530         * doc/posix-functions/vsprintf.texi (vsprintf):
56531         Mention that these functions mishandle large floating point
56532         precisions on Solaris 10.  The same bug is also present in Solaris
56533         8, and I assume earlier.  This causes "cd gnulib-tests; make
56534         check" to fail on Solaris 8 (and I assume, later) when building
56535         the latest coreutils, in test-vasprintf-posix's call to
56536         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
56537         the wide flavors (e.g., wprintf) so this patch just updates the
56538         documentation for the narrow ones.
56540         test-posixtm.c: add two tests
56541         * tests/test-posixtm.c: Add two tests, to highlight the
56542         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
56543         around this bug; this is merely to document it.
56545 2010-12-22  Bruno Haible  <bruno@clisp.org>
56547         getlogin_r: Work around portability problem on OSF/1.
56548         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
56549         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
56550         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
56551         test for a truncated result.
56552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
56553         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
56554         * modules/getlogin_r (Depends-on): Add memchr.
56555         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
56557 2010-12-22  Bruno Haible  <bruno@clisp.org>
56559         ptsname: Avoid test failure on OSF/1 5.1.
56560         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
56561         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
56562         (same_slave): New function.
56563         (main): Use it to compare ptsname's result with the expected file name.
56565 2010-12-22  Bruno Haible  <bruno@clisp.org>
56567         Port extended stdio modules to HP NonStop Kernel.
56568         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
56569         macros.
56570         * lib/fbufmode.c: Update comments.
56571         * lib/fflush.c: Likewise.
56572         * lib/fpurge.c: Likewise.
56573         * lib/freadable.c: Likewise.
56574         * lib/freadahead.c: Likewise.
56575         * lib/freading.c: Likewise.
56576         * lib/freadptr.c: Likewise.
56577         * lib/freadseek.c: Likewise.
56578         * lib/fseeko.c: Likewise.
56579         * lib/fseterr.c: Likewise.
56580         * lib/fwritable.c: Likewise.
56581         * lib/fwriting.c: Likewise.
56582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56584 2010-12-22  Bruno Haible  <bruno@clisp.org>
56586         ttyname_r: Work around bug on OSF/1 5.1.
56587         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
56588         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
56589         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
56590         present.
56591         * lib/ttyname_r.c (ttyname_r): Update comments.
56593 2010-12-22  Bruno Haible  <bruno@clisp.org>
56595         round: Implement result sign according to IEEE 754.
56596         * lib/round.c (MIN, MINUS_ZERO): New macros.
56597         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
56598         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
56599         * tests/test-round-ieee.c (main): Likewise.
56600         * tests/test-roundl-ieee.c (main): Likewise.
56602         trunc: Implement result sign according to IEEE 754.
56603         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
56604         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
56605         * tests/test-trunc2.c: Include minus-zero.h.
56606         (MINUS_ZERO): New macro.
56607         (trunc_reference): Keep in sync with lib/trunc.c.
56608         * tests/test-truncf2.c: Include minus-zero.h.
56609         (MINUS_ZERO): New macro.
56610         (truncf_reference): Keep in sync with lib/trunc.c.
56611         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
56612         * tests/test-trunc-ieee.c (main): Likewise.
56613         * tests/test-truncl-ieee.c (main): Likewise.
56615         ceil: Implement result sign according to IEEE 754.
56616         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
56617         (FUNC): Return -0.0 for -1 < x < 0.
56618         * tests/test-ceil2.c: Include minus-zero.h.
56619         (MINUS_ZERO): New macro.
56620         (ceil_reference): Keep in sync with lib/ceil.c.
56621         * tests/test-ceilf2.c: Include minus-zero.h.
56622         (MINUS_ZERO): New macro.
56623         (ceilf_reference): Keep in sync with lib/ceil.c.
56624         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
56625         * tests/test-ceil-ieee.c (main): Likewise.
56626         * tests/test-ceill-ieee.c (main): Likewise.
56628         floor: Implement result sign according to IEEE 754.
56629         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
56630         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
56631         * tests/test-floorf2.c (floorf_reference): Likewise.
56632         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
56633         * tests/test-floor-ieee.c (main): Likewise.
56634         * tests/test-floorl-ieee.c (main): Likewise.
56636 2010-12-22  Bruno Haible  <bruno@clisp.org>
56638         getaddrinfo: Update doc.
56639         * doc/posix-functions/gai_strerror.texi: Return type is also different
56640         on AIX and HP-UX.
56642 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56644         getaddrinfo, inet_ntop: Update doc for Solaris.
56645         * doc/posix-functions/gai_strerror.texi: Return type is also an
56646         issue on Solaris 9 and earlier.
56647         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
56648         on Solaris 10 and earlier.
56650 2010-12-21  Bruno Haible  <bruno@clisp.org>
56652         New module 'roundl-ieee'.
56653         * modules/roundl-ieee: New file.
56654         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
56655         test whether roundl works according to ISO C 99 with IEC 60559.
56656         * m4/roundl-ieee.m4: New file.
56657         * modules/roundl-ieee-tests: New file.
56658         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
56659         * tests/test-roundl.c (main): Remove signbit tests.
56660         * modules/roundl-tests (Depends-on): Remove signbit.
56661         * doc/posix-functions/roundl.texi: Mention the new module.
56663 2010-12-21  Bruno Haible  <bruno@clisp.org>
56665         New module 'truncl-ieee'.
56666         * modules/truncl-ieee: New file.
56667         * modules/truncl-ieee-tests: New file.
56668         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
56669         * tests/test-truncl.c (main): Remove signbit tests.
56670         * modules/truncl-tests (Depends-on): Remove signbit.
56671         * doc/posix-functions/truncl.texi: Mention the new module.
56673 2010-12-21  Bruno Haible  <bruno@clisp.org>
56675         New module 'ceill-ieee'.
56676         * modules/ceill-ieee: New file.
56677         * modules/ceill-ieee-tests: New file.
56678         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
56679         * tests/test-ceill.c (main): Remove signbit tests.
56680         * modules/ceill-tests (Depends-on): Remove signbit.
56681         * doc/posix-functions/ceill.texi: Mention the new module.
56683 2010-12-21  Bruno Haible  <bruno@clisp.org>
56685         New module 'floorl-ieee'.
56686         * modules/floorl-ieee: New file.
56687         * modules/floorl-ieee-tests: New file.
56688         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
56689         * tests/test-floorl.c (main): Remove signbit tests.
56690         * modules/floorl-tests (Depends-on): Remove signbit.
56691         * doc/posix-functions/floorl.texi: Mention the new module.
56693 2010-12-21  Bruno Haible  <bruno@clisp.org>
56695         New module 'round-ieee'.
56696         * modules/round-ieee: New file.
56697         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
56698         whether round works according to ISO C 99 with IEC 60559.
56699         * m4/round-ieee.m4: New file.
56700         * modules/round-ieee-tests: New file.
56701         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
56702         * tests/test-round1.c (main): Remove signbit tests.
56703         * modules/round-tests (Depends-on): Remove 'signbit'.
56704         * doc/posix-functions/round.texi: Mention the new module.
56706 2010-12-21  Bruno Haible  <bruno@clisp.org>
56708         New module 'trunc-ieee'.
56709         * modules/trunc-ieee: New file.
56710         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
56711         whether trunc works according to ISO C 99 with IEC 60559.
56712         * m4/trunc-ieee.m4: New file.
56713         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
56714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
56715         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
56716         * modules/trunc-ieee-tests: New file.
56717         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
56718         * tests/test-trunc1.c (main): Remove signbit tests.
56719         * modules/trunc-tests (Depends-on): Remove 'signbit'.
56720         * doc/posix-functions/trunc.texi: Mention the new module.
56722 2010-12-21  Bruno Haible  <bruno@clisp.org>
56724         New module 'ceil-ieee'.
56725         * modules/ceil-ieee: New file.
56726         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
56727         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
56728         ISO C 99 with IEC 60559.
56729         * m4/ceil-ieee.m4: New file.
56730         * modules/ceil (Files): Add lib/ceil.c.
56731         (Depends-on): Add 'float'.
56732         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56733         * lib/math.in.h (ceil): New declaration.
56734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
56735         REPLACE_CEIL.
56736         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
56737         * modules/ceil-ieee-tests: New file.
56738         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
56739         * tests/test-math-c++.cc: Check the signature of 'ceil'.
56740         * doc/posix-functions/ceil.texi: Mention the new module.
56742 2010-12-21  Bruno Haible  <bruno@clisp.org>
56744         New module 'floor-ieee'.
56745         * modules/floor-ieee: New file.
56746         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
56747         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
56748         ISO C 99 with IEC 60559.
56749         * m4/floor-ieee.m4: New file.
56750         * modules/floor (Files): Add lib/floor.c.
56751         (Depends-on): Add 'float'.
56752         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56753         * lib/math.in.h (floor): New declaration.
56754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
56755         REPLACE_FLOOR.
56756         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
56757         * modules/floor-ieee-tests: New file.
56758         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
56759         * tests/test-math-c++.cc: Check the signature of 'floor'.
56760         * doc/posix-functions/floor.texi: Mention the new module.
56762 2010-12-21  Bruno Haible  <bruno@clisp.org>
56764         New module 'roundf-ieee'.
56765         * modules/roundf-ieee: New file.
56766         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
56767         test whether roundf works according to ISO C 99 with IEC 60559.
56768         * m4/roundf-ieee.m4: New file.
56769         * modules/roundf-ieee-tests: New file.
56770         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
56771         * tests/test-roundf1.c (main): Remove signbit tests.
56772         * modules/roundf-tests (Depends-on): Remove 'signbit'.
56773         * doc/posix-functions/roundf.texi: Mention the new module.
56775 2010-12-21  Bruno Haible  <bruno@clisp.org>
56777         New module 'truncf-ieee'.
56778         * modules/truncf-ieee: New file.
56779         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
56780         test whether truncf works according to ISO C 99 with IEC 60559.
56781         * m4/truncf-ieee.m4: New file.
56782         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
56783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
56784         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
56785         * modules/truncf-ieee-tests: New file.
56786         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
56787         * tests/test-truncf1.c (main): Remove signbit tests.
56788         * modules/truncf-tests (Depends-on): Remove 'signbit'.
56789         * doc/posix-functions/truncf.texi: Mention the new module.
56791 2010-12-21  Bruno Haible  <bruno@clisp.org>
56793         New module 'ceilf-ieee'.
56794         * modules/ceilf-ieee: New file.
56795         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
56796         test whether ceilf works according to ISO C 99 with IEC 60559.
56797         * m4/ceilf-ieee.m4: New file.
56798         * modules/ceilf-ieee-tests: New file.
56799         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
56800         * tests/test-ceilf1.c (main): Remove signbit tests.
56801         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
56802         * doc/posix-functions/ceilf.texi: Mention the new module.
56804 2010-12-21  Bruno Haible  <bruno@clisp.org>
56806         New module 'floorf-ieee'.
56807         * modules/floorf-ieee: New file.
56808         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
56809         test whether floorf works according to ISO C 99 with IEC 60559.
56810         * m4/floorf-ieee.m4: New file.
56811         * modules/floorf-ieee-tests: New file.
56812         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
56813         * tests/test-floorf1.c (main): Remove signbit tests.
56814         * modules/floorf-tests (Depends-on): Remove 'signbit'.
56815         * doc/posix-functions/floorf.texi: Mention the new module.
56817 2010-12-21  Bruno Haible  <bruno@clisp.org>
56819         Support for minus zero in autoconf macros.
56820         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
56821         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
56822         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
56823         * tests/minus-zero.h: Update comments.
56825 2010-12-21  Bruno Haible  <bruno@clisp.org>
56827         Tests for module 'ceil'.
56828         * modules/ceil-tests: New file.
56829         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
56830         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
56832 2010-12-21  Bruno Haible  <bruno@clisp.org>
56834         Tests for module 'floor'.
56835         * modules/floor-tests: New file.
56836         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
56837         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
56839 2010-12-21  Bruno Haible  <bruno@clisp.org>
56841         math: Fix indentation.
56842         * lib/math.in.h (floorf): Fix indentation.
56844 2010-12-21  Bruno Haible  <bruno@clisp.org>
56846         Fix cross-compilation guesses on Solaris.
56847         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
56848         not match "solaris2.10".
56849         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
56850         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
56851         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
56853 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56855         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
56856         This fixes a problem observed with the latest coreutils snapshot
56857         that caused a test to fail on Solaris 8.  src/csplit.c's call
56858         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
56859         earlier, instead of returning the number of bytes that would have
56860         been generated; this causes csplit to incorrectly report memory
56861         exhaustion.
56862         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
56863         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
56864         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
56865         comments to match.
56866         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
56867         Fix typo in matching older versions of Solaris: "solaris2.10"
56868         is matched by the shell pattern "solaris2.[0-9]*".  This matters
56869         only for guessing while cross-compiling.
56870         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
56872 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
56874         ftoastr: fix comment again
56875         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
56876         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
56877         Also, simplify example a bit by using flags = 0.
56879 2010-12-20  Bruno Haible  <bruno@clisp.org>
56881         round*, trunc*: Update documentation regarding glibc.
56882         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
56883         * doc/posix-functions/round.texi: Likewise.
56884         * doc/posix-functions/roundl.texi: Likewise.
56885         * doc/posix-functions/truncf.texi: Likewise.
56886         * doc/posix-functions/trunc.texi: Likewise.
56887         * doc/posix-functions/truncl.texi: Likewise.
56889 2010-12-20  Bruno Haible  <bruno@clisp.org>
56891         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
56892         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
56893         * doc/posix-functions/round.texi: Likewise.
56894         * doc/posix-functions/roundl.texi: Likewise.
56896 2010-12-20  Bruno Haible  <bruno@clisp.org>
56898         ttyname_r: Add missing declaration on HP-UX 11.
56899         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
56900         HAVE_TTYNAME_R.
56901         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
56902         declared. Set HAVE_TTYNAME_R always.
56903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56904         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
56905         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
56906         HAVE_TTYNAME_R.
56907         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
56909 2010-12-20  Bruno Haible  <bruno@clisp.org>
56911         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
56912         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
56913         * doc/posix-functions/getlogin_r.texi: Likewise.
56914         * tests/test-getlogin.c: Include <errno.h>.
56915         (main): Avoid test failure on HP-UX 11.11.
56916         * tests/test-getlogin_r.c (main): Likewise.
56918 2010-12-20  Bruno Haible  <bruno@clisp.org>
56920         getlogin_r: Add missing declaration on HP-UX 11.
56921         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
56922         declared also when it exists as a function.
56923         * doc/posix-functions/getlogin_r.texi: Document this workaround.
56925 2010-12-20  Bruno Haible  <bruno@clisp.org>
56927         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
56928         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
56929         through wcrtomb.
56931 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56933         ftoastr: fix comment
56934         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
56935         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
56937 2010-12-19  Bruno Haible  <bruno@clisp.org>
56939         isnan: Ensure it is a macro.
56940         * lib/math.in.h (isnan): Define as a macro if not already a macro.
56941         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
56942         Solaris.
56944 2010-12-19  Bruno Haible  <bruno@clisp.org>
56946         ldexpl test: Fix link error on OSF/1 5.1.
56947         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
56949 2010-12-19  Bruno Haible  <bruno@clisp.org>
56951         wctype: Make it work in C++ mode on OSF/1 5.1.
56952         * lib/wctype.in.h (iswblank): Declare but not define here.
56953         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
56954         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
56955         * modules/wctype (Files): Add lib/iswblank.c.
56957 2010-12-19  Bruno Haible  <bruno@clisp.org>
56959         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
56960         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
56961         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
56963 2010-12-19  Bruno Haible  <bruno@clisp.org>
56965         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
56966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
56967         _POSIX_PII_SOCKET.
56968         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
56969         * doc/posix-functions/recvfrom.texi: Likewise.
56970         * doc/posix-functions/send.texi: Likewise.
56971         * doc/posix-functions/sendto.texi: Likewise.
56973 2010-12-19  Bruno Haible  <bruno@clisp.org>
56975         tcgetsid: Add missing declaration on OSF/1 5.1.
56976         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
56977         HAVE_TCGETSID.
56978         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
56979         Don't set HAVE_TCGETSID.
56980         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
56981         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
56982         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
56983         HAVE_TCGETSID.
56984         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
56986 2010-12-19  Bruno Haible  <bruno@clisp.org>
56988         stdio: Fix problem with popen() declaration on OSF/1 5.1.
56989         * lib/stdio.in.h: During the include_next statement, let recursive
56990         includes of this file include only the system header file.
56992 2010-12-19  Bruno Haible  <bruno@clisp.org>
56994         iconv_open: Fix regression from 2010-12-04.
56995         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
56996         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
56998 2010-12-19  Bruno Haible  <bruno@clisp.org>
57000         stdbool test: Avoid a gcc warning.
57001         * tests/test-stdbool.c (main): Fail if e1 is false.
57002         Reported by Jim Meyering.
57004 2010-12-19  Jim Meyering  <meyering@redhat.com>
57006         setenv: restore to working order
57007         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
57008         mistakenly removed.
57009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
57010         HAVE_SETENV.
57011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
57012         HAVE_SETENV.
57014 2010-12-19  Bruno Haible  <bruno@clisp.org>
57016         Document some different function declarations on OSF/1 5.1.
57017         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
57018         * doc/posix-functions/inet_ntop.texi: Likewise.
57019         * doc/posix-functions/gethostname.texi: Likewise.
57020         * lib/unistd.in.h (gethostname): Update comment.
57022 2010-12-19  Bruno Haible  <bruno@clisp.org>
57024         doc: Mention vasprintf-posix module.
57025         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
57026         the 'vasprintf-posix' module.
57027         * doc/glibc-functions/vasprintf.texi: Likewise.
57029 2010-12-19  Bruno Haible  <bruno@clisp.org>
57031         unsetenv: Add missing declaration on OSF/1 5.1.
57032         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
57033         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
57034         Don't set HAVE_UNSETENV. In the test program, set _BSD.
57035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
57036         not HAVE_UNSETENV.
57037         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
57038         HAVE_UNSETENV.
57039         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
57041 2010-12-19  Bruno Haible  <bruno@clisp.org>
57043         setenv: Add missing declaration on OSF/1 5.1.
57044         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
57045         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
57046         declared. Don't set HAVE_SETENV.
57047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
57048         not HAVE_SETENV.
57049         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
57050         HAVE_SETENV.
57051         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
57053 2010-12-19  Bruno Haible  <bruno@clisp.org>
57055         nl_langinfo tests: Avoid gcc warning.
57056         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
57058 2010-12-19  Bruno Haible  <bruno@clisp.org>
57060         mknod: Avoid error in C++ mode on OSF/1 with GCC.
57061         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
57062         _GL_CXXALIAS_SYS.
57064 2010-12-19  Bruno Haible  <bruno@clisp.org>
57066         stdbool: Relax test.
57067         * tests/test-stdbool.c (e): Don't require that casts from a variable's
57068         address to 'bool' work in static initializer, for compilers other than
57069         GCC.
57071 2010-12-19  Bruno Haible  <bruno@clisp.org>
57073         ftello: Add missing declaration on OSF/1 5.1.
57074         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
57075         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
57076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
57077         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
57078         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
57080 2010-12-19  Bruno Haible  <bruno@clisp.org>
57082         fseeko: Add missing declaration on OSF/1 5.1.
57083         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
57084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
57085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
57086         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
57087         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
57089 2010-12-19  Bruno Haible  <bruno@clisp.org>
57091         fchdir: Add missing declaration on OSF/1 5.1.
57092         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
57093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
57094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
57095         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
57096         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
57098 2010-12-19  Bruno Haible  <bruno@clisp.org>
57100         relocatable-prog-wrapper: Separate from relocatable-prog.
57101         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
57102         uninstall-relocwrapper rule here.
57103         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
57104         Reported by Ian Beckwith <ianb@erislabs.net>.
57106 2010-12-19  Bruno Haible  <bruno@clisp.org>
57108         unistr/u8-mbsnlen: Add missing dependency.
57109         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
57110         Reported by Ian Beckwith <ianb@erislabs.net>.
57112 2010-12-19  Bruno Haible  <bruno@clisp.org>
57114         iconv: Make it possible again to use this module without 'iconv-h'.
57115         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
57116         if it is not defined.
57117         Reported by Ian Beckwith <ianb@erislabs.net>.
57119 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57121         acl: port to Solaris 8 when copying from tmpfs to ufs
57122         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
57123         error number.  Problem observed on Solaris 8 with latest
57124         coreutils, with "mv A B", where A is on a tmpfs file system and B
57125         is on a ufs file system.  This caused coreutils' mv/part-symlink
57126         test to fail.
57128         tests: set fail=0 at start
57129         * tests/init.sh (setup_): Move fail=0 initialization here ...
57130         (mktempd_): ... from here, so that tests can rely on fail being
57131         set to 0 initially.  This fixes a problem in coreutils; see:
57132         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
57134 2010-12-18  Bruno Haible  <bruno@clisp.org>
57136         memmem-simple: Stylistic changes.
57137         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
57138         Fix preprocessor directive indentation.
57140 2010-12-15  Pádraig Brady  <P@draigBrady.com>
57142         memmem, memmem-simple: reorganize and expand empty needle check
57143         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
57144         functional checks to memmem-simple so that one has a fully functional
57145         memmem by using just this module.
57146         Restrict the performance only check to the memmem module.
57147         Also expand the empty needle check to ensure the correct
57148         pointer is returned, not just a non NULL pointer.
57149         * doc/glibc-functions/memmem.texi: Rearrange the portability
57150         documentation to correlate with the rearranged checks.
57151         Clarify exactly how the memmem and memmem-simple modules
57152         relate to each other.
57154 2010-12-15  Pádraig Brady  <P@draigBrady.com>
57155             Bruno Haible  <bruno@clisp.org>
57157         Improve cross-compilation guesses for uClibc.
57158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
57159         that uClibc does not have the glibc bug.
57160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
57161         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
57163 2010-12-14  Eric Blake  <eblake@redhat.com>
57165         configmake: provide fallbacks for oldest supported autotools
57166         * m4/configmake.m4: New file.
57167         * modules/configmake (Files): Ship it.
57168         (configure.ac): Use it to guarantee fallbacks.
57170 2010-12-13  Pádraig Brady  <P@draigBrady.com>
57172         read-file: Improve handling of large files
57173         * lib/read-file.c (fread_file): Minimize realloc()s
57174         for regular files, and better manage sizes around SIZE_MAX.
57176 2010-12-13  Eric Blake  <eblake@redhat.com>
57178         cloexec, fcntl: relax license
57179         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
57180         consent from all contributors.
57181         * modules/fcntl (License): Likewise.
57183 2010-12-10  Bruno Haible  <bruno@clisp.org>
57185         Tests for module 'pipe-posix'.
57186         * modules/pipe-posix-tests: New file.
57187         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
57189 2010-12-10  Bruno Haible  <bruno@clisp.org>
57191         pipe-posix: Make it work in C++ mode.
57192         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
57193         (pipe): Use common idiom, not a macro definition.
57194         * lib/pipe.c: New file.
57195         * m4/pipe.m4: New file.
57196         * modules/pipe-posix (Description): Enhance.
57197         (Files): Add lib/pipe.c, m4/pipe.m4.
57198         (configure.ac): Invoke gl_FUNC_PIPE.
57199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
57200         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
57201         * tests/test-unistd-c++.cc: Check the signature of pipe.
57203 2010-12-10  Bruno Haible  <bruno@clisp.org>
57205         Rename module 'pipe' to 'spawn-pipe'.
57206         * modules/spawn-pipe: New file, renamed from modules/pipe.
57207         (Files, configure.ac, Makefile.am): Update.
57208         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
57209         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
57210         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
57211         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
57212         "spawn-pipe.h" instead of "pipe.h".
57213         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
57214         to gl_SPAWN_PIPE.
57215         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
57216         (Files, Makefile.am): Update.
57217         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
57218         Update.
57219         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
57220         Include "spawn-pipe.h" instead of "pipe.h".
57221         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
57222         * lib/javacomp.c: Likewise.
57223         * lib/javaversion.c: Likewise.
57224         * lib/pipe-filter-gi.c: Likewise.
57225         * lib/pipe-filter-ii.c: Likewise.
57226         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
57227         * modules/javacomp (Depends-on): Likewise.
57228         * modules/javaversion (Depends-on): Likewise.
57229         * modules/pipe-filter-gi (Depends-on): Likewise.
57230         * modules/pipe-filter-ii (Depends-on): Likewise.
57231         * MODULES.html.sh (Executing programs): Update.
57232         * NEWS: Mention the change.
57234 2010-12-10  Eric Blake  <eblake@redhat.com>
57236         pipe-posix: new module
57237         * modules/pipe-posix: New file.
57238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
57239         (gl_UNISTD_H): Check for declaration.
57240         * modules/unistd (Makefile.am): Substitute it.
57241         * lib/unistd.in.h (pipe): Provide it for mingw.
57242         * doc/posix-functions/pipe.texi (pipe): Update documentation.
57243         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
57245 2010-12-07  Bruno Haible  <bruno@clisp.org>
57247         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
57248         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
57249         u8_strcmp_gnu.
57250         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
57252 2010-12-06  Bruno Haible  <bruno@clisp.org>
57254         Update internal documentation.
57255         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
57257 2010-12-04  Bruno Haible  <bruno@clisp.org>
57259         Put more information about failed tests into the test return codes.
57260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
57261         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
57262         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
57263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
57264         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
57265         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57266         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57267         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
57268         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
57269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
57271         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57272         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
57273         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57274         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
57275         returns a bit mask.
57276         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
57277         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
57278         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
57279         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
57280         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
57281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
57282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57284         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57285         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
57286         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
57287         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
57288         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
57289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
57290         * m4/link.m4 (gl_FUNC_LINK): Likewise.
57291         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
57292         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
57293         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
57294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57295         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
57296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57297         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
57298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
57299         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57300         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
57301         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
57302         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
57303         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
57304         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
57305         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
57306         gl_PRINTF_PRECISION): Likewise.
57307         * m4/regex.m4 (gl_REGEX): Likewise.
57308         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
57309         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57310         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
57311         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
57315         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
57316         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57318         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
57319         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
57320         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
57321         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57322         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57323         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57324         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
57325         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57327         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
57328         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
57329         enumerated value.
57330         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
57332 2010-12-04  Bruno Haible  <bruno@clisp.org>
57334         Update for Solaris 11 2010-11.
57335         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
57336         Express, released in November 2010.
57338 2010-12-04  Bruno Haible  <bruno@clisp.org>
57340         nproc: Relax license.
57341         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
57342         and Paul Eggert.
57343         Requested by Ludovic Courtès <ludo@gnu.org>.
57345 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
57347         utimecmp: fine-grained src to nearby coarse-grained dest
57349         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
57350         and the source is on a file system with higher-resolution time
57351         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
57352         not work, and the time stamps are close together, the algorithm to
57353         determine the exact resolution from the read-back mtime was buggy:
57354         it had a "!=" where it should have had an "==".  This bug has been
57355         in the code ever since it was introduced to gnulib.
57356         Problem reported by Dan Jacobson in
57357         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
57359 2010-11-30  Bruno Haible  <bruno@clisp.org>
57361         strerror_r-posix: Fix autoconf test.
57362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
57364 2010-11-28  Bruno Haible  <bruno@clisp.org>
57365             Paul Eggert  <eggert@cs.ucla.edu>
57367         Tests for module 'getdomainname'.
57368         * modules/getdomainname-tests: New file.
57369         * tests/test-getdomainname.c: New file, based on
57370         tests/test-gethostname.c.
57372 2010-11-28  Bruno Haible  <bruno@clisp.org>
57373             Paul Eggert  <eggert@cs.ucla.edu>
57375         getdomainname: Use the system function when possible.
57376         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
57377         (getdomainname): Replace if needed. Provide the declaration if it is
57378         missing. Don't use _GL_CXXALIAS_SYS_CAST.
57379         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
57380         (getdomainname): When the system has getdomainname, call the system
57381         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
57382         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
57383         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
57384         found in libnsl. Look for the declaration also in <netdb.h>. Replace
57385         the function if its second argument is of type 'int' or if it is found
57386         in libnsl.
57387         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
57388         <sys/systeminfo.h> and sysinfo().
57389         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
57390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57391         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
57392         HAVE_GETDOMAINNAME.
57393         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
57394         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
57395         * doc/glibc-functions/getdomainname.texi: Document the problems with
57396         the getdomainname declaration.
57398 2010-11-28  Bruno Haible  <bruno@clisp.org>
57400         sys_socket: Ensure ss_family field on AIX.
57401         * lib/sys_socket.in.h (ss_family): New macro definition.
57402         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
57403         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
57404         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
57405         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
57406         * modules/sys_socket (Makefile.am): Substitute
57407         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
57408         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
57410 2010-11-27  Bruno Haible  <bruno@clisp.org>
57412         readline: Improve configure output.
57413         * m4/readline.m4 (gl_FUNC_READLINE): Make the
57414         "checking for readline..." result understandable.
57416 2010-11-27  Bruno Haible  <bruno@clisp.org>
57418         *printf-posix: Detect a bug on Solaris 10/x86.
57419         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
57420         for floating-point output.
57421         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
57422         directive.
57423         * tests/test-snprintf-posix.h (test_function): Likewise.
57424         * tests/test-sprintf-posix.h (test_function): Likewise.
57425         * tests/test-vasprintf-posix.c (test_function): Likewise.
57426         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
57427         * doc/posix-functions/printf.texi: Likewise.
57428         * doc/posix-functions/snprintf.texi: Likewise.
57429         * doc/posix-functions/sprintf.texi: Likewise.
57430         * doc/posix-functions/vfprintf.texi: Likewise.
57431         * doc/posix-functions/vprintf.texi: Likewise.
57432         * doc/posix-functions/vsnprintf.texi: Likewise.
57433         * doc/posix-functions/vsprintf.texi: Likewise.
57434         * doc/glibc-functions/obstack_printf.texi: Likewise.
57435         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
57437 2010-11-27  Bruno Haible  <bruno@clisp.org>
57439         Fix link error when module libunistring-optional is in use.
57440         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
57441         * modules/striconveha-tests (Makefile.am): Likewise.
57443 2010-11-27  Bruno Haible  <bruno@clisp.org>
57445         regex: Mention link dependencies.
57446         * modules/regex (Link): New section.
57447         * modules/rpmatch (Link): Likewise.
57448         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
57450 2010-11-27  Bruno Haible  <bruno@clisp.org>
57452         ftoastr: Fix compilation error on Solaris.
57453         * lib/ftoastr.c: Include <config.h>.
57455 2010-11-27  Bruno Haible  <bruno@clisp.org>
57457         getloadavg: Update documentation.
57458         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
57460 2010-11-27  Bruno Haible  <bruno@clisp.org>
57462         sys_socket: Fix test whether the functions are declared.
57463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
57464         not <sys/select.h>.
57466 2010-11-27  Bruno Haible  <bruno@clisp.org>
57468         getpass: Make sure to get system declaration on some platforms.
57469         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
57470         gl_USE_SYSTEM_EXTENSIONS.
57471         * modules/getpass (Depends-on): Add extensions.
57473 2010-11-26  Bruno Haible  <bruno@clisp.org>
57475         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
57476         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
57477         'iconv' module is present.
57478         (ICONV_CONST): New macro.
57479         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
57480         ICONV_CONST.
57481         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
57482         set ICONV_CONST.
57483         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
57484         here.
57485         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
57486         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
57487         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
57488         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
57489         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
57490         present.
57492 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57494         ftoastr: comment fix
57495         * lib/ftoastr.c: "little" -> "little or no" in comment
57497 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
57499         stdint: port to GCC 4.3 + OSX + Octave
57500         On this platform, stdint.h is buggy and defines int64_t to long
57501         long int.  The replacement defined it to long int, causing
57502         problems with C++ style name mangling.  Instead, trust the system
57503         definition if INT64_MAX is defined, and likewise for the unsigned
57504         variant.   Problem reported by Jarno Rajahalme in
57505         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
57506         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
57507         and don't mess with int64_t and INT64_MAX in this case.
57508         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
57510 2010-11-24  Bruno Haible  <bruno@clisp.org>
57512         doc: Corrections regarding MacOS X 10.4 and 10.5.
57513         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
57514         MacOS X.
57515         Reported by Simon Josefsson.
57517 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
57519         Uninstall ".bin" files installed by relocwrapper.
57520         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
57521         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
57522         unless it is already there.
57524 2010-11-21  Bruno Haible  <bruno@clisp.org>
57526         Update for NetBSD 5.0.
57527         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
57528         NetBSD; the test fails on NetBSD 5.0.
57529         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
57530         about NetBSD.
57532 2010-11-21  Bruno Haible  <bruno@clisp.org>
57534         Update for HP-UX 11.23 and HP-UX 11.31.
57535         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
57536         HP-UX.
57538 2010-11-21  Bruno Haible  <bruno@clisp.org>
57540         Update for MacOS X 10.5.
57541         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
57542         MacOS X; the test fails on MacOS X 10.5.8.
57543         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
57544         about MacOS X.
57546 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
57548         bootstrap: add bootstrap_sync option.
57549         See discussion at
57550         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
57551         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
57552         * build-aux/bootstrap: Accept --bootstrap-sync to update
57553         bootstrap if it is not identical to the local gnulib's
57554         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
57555         enable this by default.  Accept --no-bootstrap-sync to disable
57556         it.
57558 2010-11-20  Bruno Haible  <bruno@clisp.org>
57560         Ensure that <features.h> is included before __GLIBC__ is tested.
57561         * lib/printf-parse.h: Include <features.h>.
57562         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
57563         Reported by Mike Frysinger <vapier@gentoo.org>.
57565         Ensure that <features.h> is included before __GLIBC__ is tested.
57566         * lib/wchar.in.h: Include <features.h>.
57567         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
57568         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
57569         Reported by Mike Frysinger <vapier@gentoo.org>.
57571         Ensure that <features.h> is included before __GLIBC__ is tested.
57572         * lib/arpa_inet.in.h: Include <features.h>.
57573         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
57574         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
57575         Reported by Mike Frysinger <vapier@gentoo.org>.
57577         Ensure that <features.h> is included before __GLIBC__ is tested.
57578         * build-aux/link-warning.h: Include <features.h>.
57579         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
57580         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
57581         Reported by Mike Frysinger <vapier@gentoo.org>.
57583         Ensure that <features.h> is included before __GLIBC__ is tested.
57584         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
57585         Reported by Mike Frysinger <vapier@gentoo.org>.
57587 2010-11-20  Bruno Haible  <bruno@clisp.org>
57589         memmem: Fix autoconf test.
57590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
57592 2010-11-20  Bruno Haible  <bruno@clisp.org>
57594         Port to uClibc.
57595         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
57596         * lib/fcntl.in.h: Likewise.
57597         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
57598         * lib/mbrtowc.c (mbrtowc): Likewise.
57599         * lib/relocatable.c (find_shared_library_fullname): Likewise.
57600         * lib/strerror_r.c: Likewise.
57601         * lib/unistr/u8-strnlen.c: Likewise.
57602         * lib/vasnprintf.c (decimal_point_char): Likewise.
57603         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57604         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
57605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
57606         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
57607         * tests/test-sigaction.c (handler, main): Likewise.
57608         * lib/freading.h: Treat uClibc like a non-glibc platform.
57609         * lib/freading.c: Likewise.
57610         * lib/gettext.h: Likewise.
57611         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
57612         Likewise.
57613         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
57614         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57615         * lib/propername.c (proper_name_utf8): Likewise.
57616         * lib/spawn.in.h: Likewise.
57617         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
57618         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
57619         mem_cd_iconveh_internal): Likewise.
57620         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
57621         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
57622         strstr, strcasestr): Likewise.
57623         * lib/unicodeio.c (unicode_to_mb): Likewise.
57624         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
57625         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
57626         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
57627         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
57628         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
57629         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
57630         * lib/unistr/u8-stpncpy.c: Likewise.
57631         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57632         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
57633         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57634         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57635         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
57636         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
57637         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
57638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
57639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
57640         Likewise.
57641         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
57642         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57643         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
57644         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57645         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57646         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57647         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57648         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
57649         * tests/test-getopt.h (OPTIND_MIN): Likewise.
57650         * tests/test-striconveha.c (main): Likewise.
57651         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57652         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
57653         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
57654         * doc/posix-functions/getline.texi: Likewise.
57655         Reported by Mike Frysinger <vapier@gentoo.org>.
57657 2010-11-20  Bruno Haible  <bruno@clisp.org>
57659         nproc: Fix condition.
57660         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
57661         HAVE_PTHREAD_AFFINITY_NP.
57663 2010-11-20  Bruno Haible  <bruno@clisp.org>
57665         Fix a comment.
57666         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
57668 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
57670         ftoastr: don't assume snprintf
57671         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
57672         Implement a subset of snprintf here, by using sprintf safely.
57673         * modules/ftoastr (Depends-on): Remove snprintf.
57675 2010-11-19  Jim Meyering  <meyering@redhat.com>
57677         test-rename.h: fix compilation failure
57678         * tests/test-rename.h (test_rename): Add omitted "}".
57680 2010-11-17  Jim Meyering  <meyering@redhat.com>
57682         maint.mk: add a URL discussing the no-@acronym policy
57683         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
57685 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
57687         ftoastr: depend on snprintf, improve comments
57688         * lib/ftoastr.c: Also mention Loitsch's draft.
57689         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
57690         needed in the current implementation, but it might simplify
57691         speeding up the code later.
57692         * modules/ftoastr: Depend on snprintf; this improves portability.
57693         Suggested by Bruno Haible in the same email.
57695         ftoastr: port to hosts lacking strtof and strtold
57696         Problem reported by Bruno Haible in
57697         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
57698         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
57699         environment and strtold (and presumably strtof) are not available.
57700         * modules/ftoastr (Files): Add m4/c-strtod.m4.
57701         (configure.ac): Require gl_C99_STRTOLD.
57703 2010-11-18  Bruno Haible  <bruno@clisp.org>
57705         c-strtold: Avoid link error on AIX 7.
57706         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
57707         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
57708         (gl_C_STRTOLD): Test whether strtold_l exists.
57709         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57711 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57713         intprops: new macro INT_BITS_STRLEN_BOUND
57714         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
57715         ftoastr.h.  This exposes an internal of intprops.h that was formerly
57716         not exposed.  Also, it uses a slightly tighter bound than before;
57717         though this makes no practical difference, we might as well be as
57718         tight as we easily can.
57720         ftoastr: new module, for lossless conversion of floats to short strings
57721         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
57722         * modules/ftoastr: New files.
57724 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57726         bootstrap: port to Solaris sed
57727         * build-aux/bootstrap (get_version): Port to Solaris sed.
57728         See Ralf Wildenhues's note in
57729         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
57731 2010-11-14  Jim Meyering  <meyering@redhat.com>
57733         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
57734         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
57735         and move definition closer to sole use.
57737 2010-11-13  Jim Meyering  <meyering@redhat.com>
57739         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
57740         Now we require at least autoconf-2.59, which means the work-around
57741         is no longer needed.
57742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
57743         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57745         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57746         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57748 2010-11-13  Bruno Haible  <bruno@clisp.org>
57750         rename, renameat: Avoid test failures at NFS mounted locations.
57751         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
57752         functions.
57753         (test_rename): Use assert_nonexistent.
57754         * tests/test-rename.c: Include <dirent.h>.
57755         * tests/test-renameat.c: Likewise.
57756         Reported by Gary V. Vaughan <gary@gnu.org>.
57758         rename, renameat: Document Linux bug with NFS
57759         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
57760         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
57761         * doc/posix-functions/renameat.texi: Likewise.
57762         Suggested by Eric Blake.
57764 2010-11-13  Bruno Haible  <bruno@clisp.org>
57766         rename test: Add comments.
57767         * tests/test-rename.h (test_rename): Add structure and comments.
57769 2010-11-13  Eric Blake  <eblake@redhat.com>
57771         maintainer-makefile: cover a few more files
57772         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
57773         scripts generated within C files, for libvirt.
57775 2010-11-13  Bruno Haible  <bruno@clisp.org>
57777         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
57778         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
57779         character, return the number of bytes that belong together, not always
57780         1.
57781         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
57782         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
57783         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
57784         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
57785         number of bytes of an invalid character.
57786         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
57787         (main): Invoke it.
57788         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
57789         results.
57790         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
57791         malformed byte sequences.
57792         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
57793         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
57794         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
57795         Reported by Ben Pfaff and Paolo Bonzini.
57797 2010-11-13  Bruno Haible  <bruno@clisp.org>
57799         openat: Work around glibc bug with fchownat() and empty file names.
57800         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
57801         (gl_FUNC_FCHOWNAT): Invoke it.
57802         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
57803         * doc/posix-functions/fchownat.texi: Document the glibc bug.
57804         Reported by Gary V. Vaughan <gary@gnu.org>.
57806 2010-11-13  Bruno Haible  <bruno@clisp.org>
57808         openat: Ensure autoconf macro ordering.
57809         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
57810         gl_USE_SYSTEM_EXTENSIONS.
57811         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
57813 2010-11-13  Bruno Haible  <bruno@clisp.org>
57815         Update comments.
57816         * lib/unistr/u8-check.c: Update file name in comments.
57817         * lib/unistr/u8-mblen.c: Likewise.
57818         * lib/unistr/u8-prev.c: Likewise.
57819         * lib/unistr/u8-strmblen.c: Likewise.
57820         * lib/unistr/u8-strmbtouc.c: Likewise.
57822 2010-11-13  Jim Meyering  <meyering@redhat.com>
57824         tests: avoid test failure on Solaris 10 due to lack of PATH export
57825         * tests/test-update-copyright.sh: Don't forget to export PATH.
57827         init.sh: ensure that IFS is defined, just in case...
57828         * tests/init.sh (setup_): Ensure that IFS is defined,
57829         so that saving and restoring it works as expected.  This
57830         appears to be useful at least for an old version of dash
57831         from a long time ago (RH 6).  See here for details:
57832         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
57834         maint.mk: tighten "test a == b" check
57835         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
57836         test to files that contain something like #!/bin/sh.
57837         Without this, coreutils would get two false positives in
57838         the comments of C source files.
57840 2010-11-12  Eric Blake  <eblake@redhat.com>
57842         bootstrap: fix typo in previous attempt
57843         * build-aux/bootstrap (buildreq): Correct the grouping.
57844         Reported by Paul Eggert.
57846         maintainer-makefile: prohibit test x == x
57847         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
57848         Based on a report by Matthias Bolte.
57850         bootstrap: allow FreeBSD gzip
57851         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
57852         which has no '.' and goes to stderr.
57853         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
57854         Reported by Matthias Bolte.
57856         maintainer-makefile: check for i18n setup
57857         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
57858         will likely work.
57860 2010-11-12  Bruno Haible  <bruno@clisp.org>
57862         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
57863         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
57864         * lib/nanosleep.c (nanosleep): Likewise.
57866 2010-11-11  Bruno Haible  <bruno@clisp.org>
57868         fcntl-h: Fix for use of C++ on glibc systems.
57869         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57870         also on glibc systems in C++ mode.
57871         Reported by Gary V. Vaughan <gary@gnu.org>.
57873 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
57875         mknod: avoid false failure with dash
57876         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
57878 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57880         unlink: Fix "is it should" typo in diagnostic.
57881         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
57882         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
57884 2010-11-11  Bruno Haible  <bruno@clisp.org>
57886         Tests for module 'strerror_r-posix'.
57887         * modules/strerror_r-posix-tests: New file.
57888         * tests/test-strerror_r.c: New file.
57889         * tests/test-string-c++.cc: Check the signature of strerror_r.
57891         New module 'strerror_r-posix'.
57892         * lib/string.in.h (strerror_r): New declaration.
57893         * lib/strerror_r.c: New file.
57894         * m4/strerror_r.m4: New file.
57895         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
57896         of strerror_r.
57897         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
57898         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
57899         * modules/strerror_r-posix: New file.
57900         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
57901         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
57902         * doc/posix-functions/strerror_r.texi: Mention the new module and the
57903         portability problems.
57905 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
57907         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
57908         line is also considered for output. Quoted function name in shell
57909         command, so temporary files for functions like MyClass::operator()
57910         are removed correctly without errors.
57912 2010-11-09  Bruno Haible  <bruno@clisp.org>
57914         * doc/posix-functions/strerror.texi: List more failing platforms.
57916         * doc/posix-functions/strerror.texi: Add a comment.
57918 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57920         fdopendir: fix bug on MacOS X when low on file descriptors
57922         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
57923         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
57924         All callers changed.
57925         (fdopendir): Invoke save_cwd at the top level, not after using
57926         multiple dup() calls to use up file descriptors.  Then retry
57927         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
57928         less than the maximum number of open file descriptors, because
57929         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
57930         on Mac OS X 10.6.4 for tar 1.24
57931         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
57932         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
57933         and for tar 1.25
57934         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
57936 2010-11-07  Bruno Haible  <bruno@clisp.org>
57938         vasnprintf: Support I flag on glibc systems.
57939         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
57940         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
57941         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
57942         snprintf function.
57943         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
57944         glibc systems.
57945         * tests/test-vasnprintf-posix3.c: New file.
57946         * modules/vasnprintf-posix-tests (Files): Add it.
57947         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
57949 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57951         [html] Fix copy/paste bug: Use unique name for compiler warnings.
57952         * MODULES.html.sh: For compiler warnings, use name
57953         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
57955 2010-11-05  Eric Blake  <eblake@redhat.com>
57957         ceil, floor: avoid spurious failure with icc
57958         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
57959         [denormals-as-zero] when optimizing without -mieee-fp option.
57960         * tests/test-floorf2.c (floorf_reference): Likewise.
57961         * tests/test-ceilf1.c (dummy): New function.
57962         (main): Use it to outsmart icc's optimization.
57963         * tests/test-floorf1.c (dummy, main): Likewise.
57965         tests: require working signbit
57966         * modules/ceilf-tests (Depends-on): Add signbit.
57967         * modules/ceill-tests (Depends-on): Likewise.
57968         * modules/floorf-tests (Depends-on): Likewise.
57969         * modules/floorl-tests (Depends-on): Likewise.
57970         * modules/round-tests (Depends-on): Likewise.
57971         * modules/roundf-tests (Depends-on): Likewise.
57972         * modules/roundl-tests (Depends-on): Likewise.
57973         * modules/trunc-tests (Depends-on): Likewise.
57974         * modules/truncf-tests (Depends-on): Likewise.
57975         * modules/truncl-tests (Depends-on): Likewise.
57977         strtod: work around icc bug
57978         * lib/strtod.c (minus_zero): Define to working value.
57979         (strtod): Use it to avoid icc bug.
57981         copysign: enhance tests
57982         * modules/copysign-tests (Files): Add minus-zero.h.
57983         * tests/test-copysign.c (main): Also test zeros.
57985 2010-11-04  Eric Blake  <eblake@redhat.com>
57987         ceil, floor, round, trunc: enhance tests of -0
57988         * tests/test-ceilf1.c (main): Ensure correct sign of result.
57989         * tests/test-ceill.c (main): Likewise.
57990         * tests/test-floorf1.c (main): Likewise.
57991         * tests/test-floorl.c (main): Likewise.
57992         * tests/test-round1.c (main): Likewise.
57993         * tests/test-roundf1.c (main): Likewise.
57994         * tests/test-roundl.c (main): Likewise.
57995         * tests/test-trunc1.c (main): Likewise.
57996         * tests/test-truncf1.c (main): Likewise.
57997         * tests/test-truncl.c (main): Likewise.
57999 2010-11-04  Eric Blake  <eblake@redhat.com>
58001         frexp, tests: work around ICC bug with -zero
58002         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
58003         works with more compilers.
58004         * tests/minus-zero.h: New file.
58005         * modules/ceilf-tests (Files): Include it.
58006         * modules/ceill-tests (Files): Likewise.
58007         * modules/floorf-tests (Files): Likewise.
58008         * modules/floorl-tests (Files): Likewise.
58009         * modules/frexp-nolibm-tests (Files): Likewise.
58010         * modules/frexp-tests (Files): Likewise.
58011         * modules/frexpl-nolibm-tests (Files): Likewise.
58012         * modules/frexpl-tests (Files): Likewise.
58013         * modules/isnan-tests (Files): Likewise.
58014         * modules/isnand-nolibm-tests (Files): Likewise.
58015         * modules/isnand-tests (Files): Likewise.
58016         * modules/isnanf-nolibm-tests (Files): Likewise.
58017         * modules/isnanf-tests (Files): Likewise.
58018         * modules/isnanl-nolibm-tests (Files): Likewise.
58019         * modules/isnanl-tests (Files): Likewise.
58020         * modules/round-tests (Files): Likewise.
58021         * modules/roundf-tests (Files): Likewise.
58022         * modules/roundl-tests (Files): Likewise.
58023         * modules/ldexpl-tests (Files): Likewise.
58024         * modules/signbit-tests (Files): Likewise.
58025         * modules/snprintf-posix-tests (Files): Likewise.
58026         * modules/sprintf-posix-tests (Files): Likewise.
58027         * modules/strtod-tests (Files): Likewise.
58028         * modules/trunc-tests (Files): Likewise.
58029         * modules/truncf-tests (Files): Likewise.
58030         * modules/truncl-tests (Files): Likewise.
58031         * modules/vsnprintf-posix-tests (Files): Likewise.
58032         * modules/vsprintf-posix-tests (Files): Likewise.
58033         * modules/vasnprintf-posix-tests (Files): Likewise.
58034         * modules/vasprintf-posix-tests (Files): Likewise.
58035         * tests/test-ceilf1.c (main): Use it.
58036         * tests/test-ceill.c (main): Likewise.
58037         * tests/test-floorf1.c (main): Likewise.
58038         * tests/test-floorl.c (main): Likewise.
58039         * tests/test-frexp.c (main): Likewise.
58040         * tests/test-frexpl.c (main): Likewise.
58041         * tests/test-isnan.c (main): Likewise.
58042         * tests/test-isnand.h (main): Likewise.
58043         * tests/test-isnanf.h (main): Likewise.
58044         * tests/test-isnanl.h (main): Likewise.
58045         * tests/test-ldexpl.c (main): Likewise.
58046         * tests/test-round.c (main): Likewise.
58047         * tests/test-roundf.c (main): Likewise.
58048         * tests/test-roundl.c (main): Likewise.
58049         * tests/test-signbit.c (test_signbitf, test_signbitd)
58050         (test_signbitl): Likewise.
58051         * tests/test-snprintf-posix.h (test_function): Likewise.
58052         * tests/test-sprintf-posix.h (test_function): Likewise.
58053         * tests/test-strtod.c (main): Likewise.
58054         * tests/test-trunc1.c (main): Likewise.
58055         * tests/test-truncf1.c (main): Likewise.
58056         * tests/test-truncl.c (main): Likewise.
58058         isnanl: work around icc bug
58059         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
58061 2010-11-03  Eric Blake  <eblake@redhat.com>
58063         tests: fix compiler warnings
58064         * tests/test-getopt.h (test_getopt): Fix condition.
58065         * tests/test-getopt_long.h (test_getopt_long): Likewise.
58066         * tests/test-pipe2.c (main): Likewise.
58067         * tests/test-quotearg-simple.c (main): Avoid icc warning.
58069         utimens: fix broken m4 test
58070         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
58072 2010-10-28  Bruno Haible  <bruno@clisp.org>
58074         posix_spawn*, getdtablesize: Relax license.
58075         * modules/posix_spawn (License): Change to LGPLv2+.
58076         * modules/posix_spawnp (License): Likewise.
58077         * modules/posix_spawn-internal (License): Likewise.
58078         * modules/posix_spawnattr_init (License): Likewise.
58079         * modules/posix_spawnattr_getflags (License): Likewise.
58080         * modules/posix_spawnattr_setflags (License): Likewise.
58081         * modules/posix_spawnattr_getpgroup (License): Likewise.
58082         * modules/posix_spawnattr_setpgroup (License): Likewise.
58083         * modules/posix_spawnattr_getschedparam (License): Likewise.
58084         * modules/posix_spawnattr_setschedparam (License): Likewise.
58085         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
58086         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
58087         * modules/posix_spawnattr_getsigdefault (License): Likewise.
58088         * modules/posix_spawnattr_setsigdefault (License): Likewise.
58089         * modules/posix_spawnattr_getsigmask (License): Likewise.
58090         * modules/posix_spawnattr_setsigmask (License): Likewise.
58091         * modules/posix_spawnattr_destroy (License): Likewise.
58092         * modules/posix_spawn_file_actions_init (License): Likewise.
58093         * modules/posix_spawn_file_actions_addclose (License): Likewise.
58094         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
58095         * modules/posix_spawn_file_actions_addopen (License): Likewise.
58096         * modules/posix_spawn_file_actions_destroy (License): Likewise.
58097         * modules/getdtablesize (License): Likewise.
58098         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
58100 2010-10-26  Bruno Haible  <bruno@clisp.org>
58102         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
58103         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
58104         Cygwin and mingw.
58105         Suggested by Eric Blake.
58107 2010-10-26  Bruno Haible  <bruno@clisp.org>
58109         stdio: Work around compilation error due to renameat() on Solaris 10.
58110         * lib/stdio.in.h: Include <unistd.h> on Solaris.
58111         * lib/renameat.c: Don't include <unistd.h> here.
58112         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
58113         Reported by Paul Eggert and Eric Blake.
58115 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58117         renameat: port to Solaris 10, which declares renameat in unistd.h
58119         * lib/renameat.c: Include unistd.h before stdio.h, because
58120         Solaris 10 declares renameat in unistd.h.  Problem encountered
58121         when building GNU tar 1.24 on Solaris 10.
58123 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
58125         fdopendir: fix C89 compilation
58126         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
58127         compilers.
58129 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
58131         inttostr: simplify by removing unnecessary redundancy
58132         * lib/anytostr.c: Don't include verify.h.
58133         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
58134         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
58135         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
58136         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
58137         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
58138         Likewise.
58139         * modules/inttostr (Depends-on): Remove 'verify'.
58141 2010-10-23  Bruno Haible  <bruno@clisp.org>
58143         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
58144         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
58145         Reported by Eric Blake.
58147 2010-10-23  Bruno Haible  <bruno@clisp.org>
58149         Tests: Fix LOCALE_JA on MirBSD 10.
58150         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
58151         to an UTF-8 locale.
58152         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
58153         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58154         Reported by Eric Blake.
58156 2010-10-21  Bruno Haible  <bruno@clisp.org>
58158         nl_langinfo test: Avoid test failure on NetBSD 5.
58159         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
58160         Reported by Eric Blake.
58162 2010-10-21  Eric Blake  <eblake@redhat.com>
58164         c-stack: work around libsigsegv 2.8 bug
58165         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
58166         overflow on at least PowerPC64.
58168 2010-10-17  Bruno Haible  <bruno@clisp.org>
58170         userspec: Drop redundant file.
58171         * modules/userspec (Files): Remove lib/inttostr.h.
58173 2010-10-17  Bruno Haible  <bruno@clisp.org>
58175         nl_langinfo tests: Silence some warnings.
58176         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
58177         Reported by Jim Meyering.
58179 2010-10-17  Bruno Haible  <bruno@clisp.org>
58181         Make use of GCC's attribute __alloc_size__.
58182         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
58183         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
58184         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
58185         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
58186         __alloc_size__.
58187         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58188         Suggested by Jim Meyering.
58190 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
58192         bootstrap: anchor .gitignore entries.
58193         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
58194         with...
58195         (insert_vc_ignore): ... this new function, which prepends `/' to
58196         all .gitignore entries before passing them to
58197         insert_sorted_if_absent.
58199 2010-10-16  Bruno Haible  <bruno@clisp.org>
58201         nextafter: Fix configure check.
58202         * modules/nextafter (configure.ac): Correct expected prototype.
58204 2010-10-16  Bruno Haible  <bruno@clisp.org>
58206         termios: Update documentation.
58207         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
58209 2010-10-16  Bruno Haible  <bruno@clisp.org>
58211         tests: Make them compile with TinyCC.
58212         * tests/test-strstr.c (main): Remove parentheses around array
58213         initializer.
58215 2010-10-15  Eric Blake  <eblake@redhat.com>
58217         ignore-value: make header idempotent
58218         * lib/ignore-value.h: Add double-inclusion guards.
58219         Reported by Stefan Berger.
58221 2010-10-15  Jim Meyering  <meyering@redhat.com>
58223         GNUmakefile: handle "stable" target, not "major"
58224         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
58225         lists in maint.mk and announce-gen.  Without this, "make stable"
58226         would fail to ensure that $(VERSION) is up to date.
58228 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
58230         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
58231         & co.
58233 2010-10-14  Bruno Haible  <bruno@clisp.org>
58235         vasnprintf: Don't set errno to 0.
58236         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
58237         block that sets it to 0.
58238         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
58240 2010-10-14  Bruno Haible  <bruno@clisp.org>
58242         socketlib: Fix.
58243         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
58244         gl_PREREQ_SYS_H_WINSOCK2.
58245         Reported by Ian Beckwith <ianb@erislabs.net>.
58247 2010-10-13  Jim Meyering  <meyering@redhat.com>
58249         test-select-stdin.c: avoid warn_unused_result warnings
58250         * tests/test-select-stdin.c: Include "macros.h".
58251         ASSERT that read and fflush succeed.
58253 2010-10-13  Jim Meyering  <meyering@redhat.com>
58255         git-version-gen: do require git-VC'd files in cwd
58256         * build-aux/git-version-gen: Reject a git version string
58257         if there are no commits associated with the current directory.
58258         This avoids an unlikely false-positive (unrelated dir whose parent
58259         repository also contains a tag matching v*), as pointed out
58260         by Giuseppe Scrivano in
58261         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
58263 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58265         argv-iter: omit nonconforming declaration
58266         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
58267         enum arg_iter_err declaration, which doesn't conform to C99.
58268         Solaris 10 cc warns about this.
58270 2010-10-13  Eric Blake  <eblake@redhat.com>
58272         termios: fix compilation on mingw
58273         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
58274         (gl_TERMIOS_H): Adjust it on mingw.
58275         * modules/termios (Makefile.am): Substitute new key.
58276         * lib/termios.in.h (includes): Make include_next conditional.
58277         * doc/posix-headers/termios.texi (termios.h): Update
58278         documentation.
58279         Reported by Daniel P. Berrange.
58281 2010-10-13  Jim Meyering  <meyering@redhat.com>
58283         git-version-gen: don't require that .git/ be in the current dir
58284         * build-aux/git-version-gen: Adjust this script so that it works
58285         when run from any working directory beneath the top-level .git/-
58286         containing directory.  Inspired by a patch from Giuseppe Scrivano,
58287         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
58289         test-select: avoid warn_unused_result warnings
58290         * tests/test-select.c: Include "macros.h".
58291         ASSERT that each call to read, write, and pipe succeeds.
58292         While not technically required, also check each "close".
58293         * modules/select-tests (Files): Add tests/macros.h.
58295         test-symlinkat: remove declaration of unused local
58296         * tests/test-symlinkat.c (main): Remove unused local, "buf".
58298         test-inttostr: avoid shadowing warnings
58299         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
58300         and use malloc rather than the stack for the same reason as
58301         mentioned in the comment justifying the other allocation.
58303 2010-10-11  Bruno Haible  <bruno@clisp.org>
58305         stdlib: Allow multiple gnulib generated replacements to coexist.
58306         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
58307         Reported by Sam Steingold <sds@gnu.org>.
58309 2010-10-11  Jim Meyering  <meyering@redhat.com>
58311         fix a documentation typo
58312         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
58314 2010-10-11  Eric Blake  <eblake@redhat.com>
58316         futimens: work around Solaris 11 bug
58317         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
58318         * tests/test-futimens.h (test_futimens): Enhance, rather than
58319         weaken test.
58320         * doc/posix-functions/futimens.texi (futimens): Document the bug.
58322 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58324         Indentation.
58325         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
58326         higher-level operators more to the left.
58328 2010-10-11  Jim Meyering  <meyering@redhat.com>
58330         test-futimens: avoid unwarranted test failure on Solaris 5.11
58331         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
58332         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
58333         because it tries to dereference the NULL name argument.
58335 2010-10-11  Bruno Haible  <bruno@clisp.org>
58337         Indentation.
58338         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
58339         indentation.
58341 2010-10-11  Jim Meyering  <meyering@redhat.com>
58343         spawn.in.h: make indentation consistent with parentheses
58344         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
58345         Make indentation consistent with parentheses.
58347 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
58349         Fix mismatched parens in previous commit
58350         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
58351         parens.
58353 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58355         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
58357         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
58358         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
58359         * lib/malloca.c: Include "verify.h".
58360         (verify1): Remove, replacing with a verify call.
58361         * lib/relocwrapper.c (verify1): Likewise.
58362         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
58363         Likewise.
58364         * modules/malloca (Depends-on): Add 'verify'.
58365         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
58366         * modules/vasnprintf (Depends-on): Add 'verify'.
58367         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58368         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58369         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58370         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58371         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58372         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58373         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58375         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
58377         Formerly the style was sometimes 2*X - 1, because the C standard
58378         was wrongly thought to disallow ?: in integral constant expressions.
58379         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
58380         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
58381         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58382         * lib/stdint.in.h (_verify_intmax_size): Likewise.
58383         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
58384         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
58385         verify that time_t cannot be floating.
58387 2010-10-08  Eric Blake  <eblake@redhat.com>
58389         time: enforce recent POSIX ruling that time_t is integral
58390         * lib/time.in.h (__time_t_must_be_integral): Detect any
58391         problematic systems, allowing the rest of gnulib to assume POSIX.
58393 2010-10-08  Jim Meyering  <meyering@redhat.com>
58395         fdopendir: fix a bug on systems lacking openat and /proc support
58396         OpenBSD 4.7 is one such system.  The most noticeable effect was
58397         failure of any application making nontrivial use of fts: rm, du,
58398         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
58399           ./rm: traversal failed: `a': Bad file descriptor
58400         Debugging that, you see that even though FD 6 was closed just
58401         prior to the opendir call in fd_clone_opendir, its resulting
58402         dir->dd_fd was 8, rather than the expected value of 6:
58404         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
58405         93                close (fd);
58406         (gdb) n
58407         94                dir = fd_clone_opendir (dupfd);
58408         (gdb) n
58409         95                saved_errno = errno;
58410         (gdb) p dir->dd_fd
58411         $11 = 8
58413         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
58414         The problem is that on OpenBSD, fd_clone_opendir has to resort
58415         to using the old-style save/restore CWD mechanism, due to its
58416         lack of openat/proc support, and *that* would steal the FD (6)
58417         that opendir was supposed to use.
58419         The fix is to squirrel away the desired FD so that save_cwd uses a
58420         different one, and then free the dest FD right before calling opendir.
58421         That guarantees opendir will use the required file descriptor.
58423         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
58425 2010-10-08  Bruno Haible  <bruno@clisp.org>
58427         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
58428         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
58430 2010-10-08  Bruno Haible  <bruno@clisp.org>
58432         nanosleep: Make replacement POSIX compliant.
58433         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
58434         is out of range.
58435         Reported by Jim Meyering.
58437 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58439         bootstrap: add hook for altering gnulib.mk, for Bison
58440         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
58441         the Bison bootstrapping process can rewrite file names and variables
58442         in this file before later parts of 'bootstrap' use the file.
58443         Bison wants to include lib/gnulib.mk from the top-level makefile,
58444         so it needs the file names in this file to be relative to the top
58445         level, not relative to lib; plus it needs variable names to be
58446         rewritten.
58447         (slurp): Use the new function.
58449         bootstrap: reformat for readability
58450         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
58452 2010-10-08  Eric Blake  <eblake@redhat.com>
58454         docs: update cygwin progress
58455         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
58456         1.7.7.
58457         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
58458         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
58459         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
58460         * doc/posix-functions/carg.texi (carg): Likewise.
58461         * doc/posix-functions/cargf.texi (cargf): Likewise.
58462         * doc/posix-functions/casin.texi (casin): Likewise.
58463         * doc/posix-functions/casinf.texi (casinf): Likewise.
58464         * doc/posix-functions/casinh.texi (casinh): Likewise.
58465         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
58466         * doc/posix-functions/catan.texi (catan): Likewise.
58467         * doc/posix-functions/catanf.texi (catanf): Likewise.
58468         * doc/posix-functions/catanh.texi (catanh): Likewise.
58469         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
58470         * doc/posix-functions/ccos.texi (ccos): Likewise.
58471         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
58472         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
58473         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
58474         * doc/posix-functions/cexp.texi (cexp): Likewise.
58475         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
58476         * doc/posix-functions/cimag.texi (cimag): Likewise.
58477         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
58478         * doc/posix-functions/clog.texi (clog): Likewise.
58479         * doc/posix-functions/clogf.texi (clogf): Likewise.
58480         * doc/posix-functions/conj.texi (conj): Likewise.
58481         * doc/posix-functions/conjf.texi (conjf): Likewise.
58482         * doc/posix-functions/cpow.texi (cpow): Likewise.
58483         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
58484         * doc/posix-functions/cproj.texi (cproj): Likewise.
58485         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
58486         * doc/posix-functions/creal.texi (creal): Likewise.
58487         * doc/posix-functions/crealf.texi (crealf): Likewise.
58488         * doc/posix-functions/csin.texi (csin): Likewise.
58489         * doc/posix-functions/csinf.texi (csinf): Likewise.
58490         * doc/posix-functions/csinh.texi (csinh): Likewise.
58491         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
58492         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
58493         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
58494         * doc/posix-functions/ctan.texi (ctan): Likewise.
58495         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
58496         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
58497         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
58498         * doc/posix-headers/complex.texi (complex.h): Likewise.
58500 2010-10-07  Jim Meyering  <meyering@redhat.com>
58502         parse-datetime: avoid compilation failure on OpenBSD 4.7
58503         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
58504         This works around a compilation failure on OpenBSD 4.7:
58505         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
58507 2010-10-07  Eric Blake  <eblake@redhat.com>
58509         docs: update cygwin progress
58510         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
58511         1.7.6.
58512         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
58513         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
58514         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
58515         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
58516         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
58517         Likewise.
58518         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
58519         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
58520         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
58521         Likewise.
58522         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
58523         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
58524         Likewise.
58525         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
58526         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
58527         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
58528         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
58529         Likewise.
58530         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
58531         Likewise.
58532         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
58534         docs: update parse-datetime history
58535         * doc/parse-datetime.texi (Authors of parse_datetime): Better
58536         documentation of this function's history and alternatives.
58538         cygwin: use more robust version check
58539         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
58540         exclude an eventual cygwin 1.9.1.
58541         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
58542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
58543         (gl_FUNC_STRCASESTR): Likewise.
58544         Reported by Bruno Haible.
58546 2010-10-06  Bruno Haible  <bruno@clisp.org>
58548         string, sys_select: Avoid #including large headers unless necessary.
58549         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
58550         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
58551         OSF/1, BeOS, Haiku.
58552         Reported by Jim Meyering.
58554 2010-10-05  Eric Blake  <eblake@redhat.com>
58556         memmem, strstr, strcasestr: fix bug with long periodic needle
58557         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
58558         periodic needle having false positive.
58559         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
58560         and cygwin 1.7.7.
58561         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
58562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
58563         (gl_FUNC_STRCASESTR): Likewise.
58564         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
58565         * tests/test-memmem.c (main): Expose the bug.
58566         * tests/test-strcasestr.c (main): Likewise.
58567         * tests/test-strstr.c (main): Likewise.
58568         * tests/test-c-strcasestr.c (main): Likewise.
58569         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
58570         * doc/posix-functions/strstr.texi (strstr): Likewise.
58571         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58572         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
58574 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58576         parse-datetime: do some more renaming
58577         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
58578         parse_datetime, not get_date.  Mention the renaming.
58579         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
58580         in comments.
58581         * m4/bison.m4: Likewise.
58583 2010-10-05  Eric Blake  <eblake@redhat.com>
58585         parse-datetime: better name than get_date
58586         * NEWS: Reword the deprecation notice.
58587         * modules/get_date: Rename to modules/parse-datetime.
58588         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
58589         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
58590         * lib/get_date.y: Rename to lib/parse-datetime.y.
58591         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
58592         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
58593         * doc/getdate.texi: Provide fallback wrapper.
58594         * lib/getdate.h: Move guts, and wrap...
58595         * lib/parse-datetime.h: ...new file.
58596         * lib/parse-datetime.y (get_date): Rename...
58597         (parse_datetime): ...to this.
58598         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
58599         (gl_PARSE_DATETIME): ...to this.
58600         * doc/posix-functions/getdate.texi (get_date): Provide fallback
58601         documentation.
58602         * modules/getdate (Files): Provide fallback docs and header.
58603         (Notice, Depends-on): Update references.
58604         * tests/test-parse-datetime.c: Likewise.
58605         * DEPENDENCIES: Likewise.
58606         * MODULES.html.sh (Date and time <time.h>): Likewise.
58607         * doc/parse-datetime.texi (Date input formats)
58608         (Authors of parse_datetime): Likewise.
58609         * modules/parse-datetime (Files, configure.ac, Makefile.am)
58610         (Include): Likewise.
58611         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
58612         * gnulib-tool: Likewise.
58613         * m4/bison.m4 (gl_BISON): Likewise.
58614         Suggested by Bruno Haible.
58616 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58618         more ports to Solaris tr, which needs [] around ranges
58619         * gnulib-tool: Solaris tr needs [] around ranges.
58620         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58621         * tests/test-pipe-filter-gi1.c (main): Likewise.
58622         * tests/test-pipe-filter-ii1.c (main): Likewise.
58624 2010-10-05  Eric Blake  <eblake@redhat.com>
58626         bootstrap: fix Solaris regression
58627         * build-aux/bootstrap (check_versions): Solaris tr still needs []
58628         around ranges.
58629         Reported by Pádraig Brady.
58631         bootstrap: work with pkg-config
58632         * build-aux/bootstrap (check_versions): Also transliterate - in
58633         prerequisite name.
58634         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
58635         prerequisites that were already found, to avoid confusion.
58636         Reported by Justin Clift.
58638         faccessat: remove unused wrappers
58639         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
58640         presence of these wrappers dragged in -lgen on Solaris.
58641         Reported by Clemens Brogi; fix suggested by Paul Eggert.
58643 2010-10-05  Jim Meyering  <meyering@redhat.com>
58645         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
58646         * Makefile (sc_pragma_columns): New syntax-check rule.
58648 2010-10-04  Bruno Haible  <bruno@clisp.org>
58650         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
58651         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
58652         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
58653         Reported by Bruce Korb and Eric Blake.
58655 2010-10-04  Bruno Haible  <bruno@clisp.org>
58657         threadlib: Make option --with-libpth-prefix work.
58658         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
58659         use $LIBPTH, not just -lpth.
58661 2010-10-04  Bruno Haible  <bruno@clisp.org>
58663         Avoid line length limitation from HP NonStop system header files.
58664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
58665         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
58666         * lib/ctype.in.h: Likewise.
58667         * lib/dirent.in.h: Likewise.
58668         * lib/errno.in.h: Likewise.
58669         * lib/fcntl.in.h: Likewise.
58670         * lib/float.in.h: Likewise.
58671         * lib/getopt.in.h: Likewise.
58672         * lib/iconv.in.h: Likewise.
58673         * lib/inttypes.in.h: Likewise.
58674         * lib/langinfo.in.h: Likewise.
58675         * lib/locale.in.h: Likewise.
58676         * lib/math.in.h: Likewise.
58677         * lib/netdb.in.h: Likewise.
58678         * lib/netinet_in.in.h: Likewise.
58679         * lib/poll.in.h: Likewise.
58680         * lib/pthread.in.h: Likewise.
58681         * lib/pty.in.h: Likewise.
58682         * lib/sched.in.h: Likewise.
58683         * lib/se-selinux.in.h: Likewise.
58684         * lib/search.in.h: Likewise.
58685         * lib/signal.in.h: Likewise.
58686         * lib/spawn.in.h: Likewise.
58687         * lib/stdarg.in.h: Likewise.
58688         * lib/stddef.in.h: Likewise.
58689         * lib/stdint.in.h: Likewise.
58690         * lib/stdio.in.h: Likewise.
58691         * lib/stdlib.in.h: Likewise.
58692         * lib/string.in.h: Likewise.
58693         * lib/strings.in.h: Likewise.
58694         * lib/sys_file.in.h: Likewise.
58695         * lib/sys_ioctl.in.h: Likewise.
58696         * lib/sys_select.in.h: Likewise.
58697         * lib/sys_socket.in.h: Likewise.
58698         * lib/sys_stat.in.h: Likewise.
58699         * lib/sys_time.in.h: Likewise.
58700         * lib/sys_times.in.h: Likewise.
58701         * lib/sys_utsname.in.h: Likewise.
58702         * lib/sys_wait.in.h: Likewise.
58703         * lib/sysexits.in.h: Likewise.
58704         * lib/termios.in.h: Likewise.
58705         * lib/time.in.h: Likewise.
58706         * lib/unistd.in.h: Likewise.
58707         * lib/wchar.in.h: Likewise.
58708         * lib/wctype.in.h: Likewise.
58709         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
58710         * modules/ctype (Makefile.am): Likewise.
58711         * modules/dirent (Makefile.am): Likewise.
58712         * modules/errno (Makefile.am): Likewise.
58713         * modules/fcntl-h (Makefile.am): Likewise.
58714         * modules/float (Makefile.am): Likewise.
58715         * modules/getopt-posix (Makefile.am): Likewise.
58716         * modules/iconv-h (Makefile.am): Likewise.
58717         * modules/inttypes (Makefile.am): Likewise.
58718         * modules/langinfo (Makefile.am): Likewise.
58719         * modules/locale (Makefile.am): Likewise.
58720         * modules/math (Makefile.am): Likewise.
58721         * modules/netdb (Makefile.am): Likewise.
58722         * modules/netinet_in (Makefile.am): Likewise.
58723         * modules/poll-h (Makefile.am): Likewise.
58724         * modules/pthread (Makefile.am): Likewise.
58725         * modules/pty (Makefile.am): Likewise.
58726         * modules/sched (Makefile.am): Likewise.
58727         * modules/search (Makefile.am): Likewise.
58728         * modules/selinux-h (Makefile.am): Likewise.
58729         * modules/signal (Makefile.am): Likewise.
58730         * modules/spawn (Makefile.am): Likewise.
58731         * modules/stdarg (Makefile.am): Likewise.
58732         * modules/stddef (Makefile.am): Likewise.
58733         * modules/stdint (Makefile.am): Likewise.
58734         * modules/stdio (Makefile.am): Likewise.
58735         * modules/stdlib (Makefile.am): Likewise.
58736         * modules/string (Makefile.am): Likewise.
58737         * modules/strings (Makefile.am): Likewise.
58738         * modules/sys_file (Makefile.am): Likewise.
58739         * modules/sys_ioctl (Makefile.am): Likewise.
58740         * modules/sys_select (Makefile.am): Likewise.
58741         * modules/sys_socket (Makefile.am): Likewise.
58742         * modules/sys_stat (Makefile.am): Likewise.
58743         * modules/sys_time (Makefile.am): Likewise.
58744         * modules/sys_times (Makefile.am): Likewise.
58745         * modules/sys_utsname (Makefile.am): Likewise.
58746         * modules/sys_wait (Makefile.am): Likewise.
58747         * modules/sysexits (Makefile.am): Likewise.
58748         * modules/termios (Makefile.am): Likewise.
58749         * modules/time (Makefile.am): Likewise.
58750         * modules/unistd (Makefile.am): Likewise.
58751         * modules/wchar (Makefile.am): Likewise.
58752         * modules/wctype (Makefile.am): Likewise.
58754 2010-10-04  Bruno Haible  <bruno@clisp.org>
58756         read-file tests: Avoid a test failure on NonStop Kernel.
58757         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
58758         a regular file.
58759         Reported by Joachim Schmitz <schmitz@hp.com>.
58761 2010-10-03  Bruno Haible  <bruno@clisp.org>
58763         gnulib-tool: Fixes for --create-testdir with --libtool.
58764         * gnulib-tool (func_get_automake_snippet): Don't augment
58765         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
58766         an executable.
58767         (func_create_testdir): Handle module 'alloca' like func_import.
58768         Reported by Bruce Korb <bruce.korb@gmail.com>.
58770 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58772         Avoid some lines longer than 80 characters.
58773         * lib/stdint.in.h: Break long comment lines.
58774         * lib/math.in.h: Likewise.
58775         (_GL_NUM_UINT_WORDS): New macro, for readability.
58776         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
58777         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
58778         * lib/stdlib.in.h: Likewise.
58779         * lib/spawn.in.h: Likewise.
58780         * lib/sys_socket.in.h: Update an URL.
58781         * lib/sys_stat.in.h: Break long line.
58783 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
58785         Improve pmccabe2html.
58786         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
58787         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
58788         when the sources change. Remove the line in the HTML about "Used
58789         ranges" (which implied that there might be other unused ranges),
58790         rename "Resume" to "Summary" (easier to understand for more users).
58791         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
58792         styles, and some unnecessary blank lines.
58794 2010-10-03  Bruno Haible  <bruno@clisp.org>
58795             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
58797         acl: Add support for ACLs on NonStop Kernel.
58798         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
58799         Check whether the function aclsort() exists.
58800         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
58801         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
58802         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
58803         (acl_nontrivial [HAVE_ACLSORT]: New function.
58804         (file_has_acl): Implement for NonStop Kernel.
58805         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
58806         (qset_acl): Implement for NonStop Kernel.
58807         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
58808         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
58809         (main): Implement for NonStop Kernel.
58810         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
58811         Kernel. Handle this flavor.
58812         * tests/test-set-mode-acl.sh: Likewise.
58813         * tests/test-copy-acl.sh: Likewise.
58814         * tests/test-copy-file.sh: Likewise.
58816 2010-10-03  Bruno Haible  <bruno@clisp.org>
58818         Info about ACLs on NonStop Kernel.
58819         * doc/acl-resources.txt: Add info about NonStop Kernel.
58820         References by Joachim Schmitz <schmitz@hp.com>.
58822 2010-10-02  Bruno Haible  <bruno@clisp.org>
58824         Define missing EDQUOT on NonStop Kernel.
58825         * lib/errno.in.h (EDQUOT): Assign a value if missing.
58826         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
58827         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
58828         missing.
58829         * doc/posix-headers/errno.texi: Mention the NSK bug.
58830         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
58831         Reported by Joachim Schmitz <schmitz@hp.com>.
58833 2010-10-02  Bruno Haible  <bruno@clisp.org>
58835         Update doc for POSIX:2008.
58836         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
58837         Update URL of POSIX specification.
58839 2010-10-02  Bruno Haible  <bruno@clisp.org>
58841         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
58842         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
58843         from gnulib, not from Automake.
58845 2010-10-02  Bruno Haible  <bruno@clisp.org>
58847         New module 'system-posix'.
58848         * modules/system-posix: New file.
58849         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
58850         module is present.
58851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58852         GNULIB_SYSTEM_POSIX.
58853         * modules/stdlib (Depends-on): Remove sys_wait.
58854         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
58855         * doc/posix-functions/system.texi: Mention the new module.
58856         * doc/posix-headers/stdlib.texi: Likewise.
58857         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
58858         define test_sys_wait_macros to a no-op.
58859         Reported by Sam Steingold <sds@gnu.org>.
58861 2010-09-30  Bruno Haible  <bruno@clisp.org>
58863         More renaming from 'getdate' to 'get_date'.
58864         * doc/get_date.texi: Renamed from doc/getdate.texi.
58865         * modules/get_date (Files): Update.
58866         * MODULES.html.sh (Date and time <time.h>): Update.
58867         * DEPENDENCIES: Update.
58868         * gnulib-tool: Update comment.
58869         * m4/bison.m4 (gl_BISON): Likewise.
58870         * m4/get_date.m4 (gl_GET_DATE): Likewise.
58872 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
58874         bootstrap: support ACLOCAL_FLAGS during aclocal
58875         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
58876         can add additional -I dir for third-party .m4 files.
58878 2010-09-30  Eric Blake  <eblake@redhat.com>
58880         bootstrap: use glibtoolize on MacOS
58881         * build-aux/bootstrap (check_versions): Convert libtool into
58882         libtoolize.
58883         (tool search): Move libtool check earlier, and look for
58884         glibtoolize for MacOS.
58885         (gnulib_tool_options): Auto-add --libtool when appropriate.
58886         Reported by Justin Clift.
58888         poll: fix typo that broke test on MacOS
58889         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
58890         Reported by Justin Clift.
58892         getdate: rename to get_date
58893         Note: getdate.h is not renamed, to minimize client impact.
58894         * modules/getdate: Mark obsolete.  Move old contents...
58895         * modules/get_date: ...to new module name.
58896         * modules/getdate-tests: Move...
58897         * modules/get_date-tests: ...here.
58898         * m4/getdate.m4: Move...
58899         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
58900         * lib/getdate.y: Move...
58901         * lib/get_date.y: ...here.
58902         * tests/test-getdate.c: Move...
58903         * tests/test-get_date.c: ...here.
58904         * doc/posix-functions/getdate.texi (getdate): Update name.
58905         * NEWS: Mention the change.
58907 2010-09-29  Bruno Haible  <bruno@clisp.org>
58909         Separate the module 'waitpid' from the module 'sys_wait'.
58910         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
58911         present.
58912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
58913         gl_MODULE_INDICATOR_FOR_TESTS.
58914         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
58915         * modules/sys_wait (Depends-on): Remove waitpid.
58916         (Makefile.am): Substitute GNULIB_WAITPID.
58917         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
58918         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
58919         signature only if the 'waitpid' module is present.
58920         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
58921         * NEWS: Mention the change.
58922         * modules/grantpt (Depends-on): Add waitpid.
58923         * modules/wait-process (Depends-on): Likewise.
58925 2010-09-29  Bruno Haible  <bruno@clisp.org>
58927         More tests for module 'sys_wait'.
58928         * modules/sys_wait-c++-tests: New file.
58929         * tests/test-sys_wait-c++.cc: New file.
58930         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
58931         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
58933 2010-09-29  Bruno Haible  <bruno@clisp.org>
58935         New module 'waitpid'.
58936         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
58937         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
58938         Don't include <process.h>.
58939         (waitpid): Declare only, using modern idiom.
58940         * m4/waitpid.m4: New file.
58941         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
58942         * modules/waitpid: New file.
58943         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
58944         (Makefile.am): Update.
58945         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
58947 2010-09-28  Bruno Haible  <bruno@clisp.org>
58949         poll: Assume ANSI C.
58950         * lib/poll.c (poll): Use an ANSI C declaration.
58952 2010-09-28  Bruno Haible  <bruno@clisp.org>
58954         poll-h: Create poll.h on all platforms.
58955         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
58956         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
58957         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
58958         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
58959         (gl_REPLACE_POLL_H): Don't set POLL_H.
58960         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
58961         * modules/poll-h (Depends-on): Add include_next.
58962         (Makefile.am): Create poll.h unconditionally. Substitute also
58963         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
58965 2010-09-28  Bruno Haible  <bruno@clisp.org>
58967         Tests for module 'poll-h'.
58968         * modules/poll-h-c++-tests: New file.
58969         * tests/test-poll-h-c++.cc: New file.
58971         Tests for module 'poll-h'.
58972         * modules/poll-h-tests: New file.
58973         * tests/test-poll-h.c: New file.
58975 2010-09-28  Bruno Haible  <bruno@clisp.org>
58977         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
58978         * modules/poll-h (Depends-on): Add 'extensions'.
58980 2010-09-28  Bruno Haible  <bruno@clisp.org>
58982         New module 'poll-h'.
58983         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
58984         (poll): Use modern idiom.
58985         * modules/poll-h: New file.
58986         * modules/poll (Files): Remove lib/poll.in.h.
58987         (Depends-on): Add poll-h.
58988         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
58989         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
58990         * m4/poll_h.m4: New file.
58991         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
58992         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
58993         and invoke gl_REPLACE_POLL_H.
58994         * lib/poll.c: Use common idiom.
58995         * tests/test-poll.c: Likewise.
58996         * doc/posix-headers/poll.texi: Mention the poll-h module.
58997         Suggested by Eric Blake.
58999 2010-09-26  Bruno Haible  <bruno@clisp.org>
59001         sys_wait: Implement WSTOPSIG.
59002         * lib/sys_wait.in.h (WSTOPSIG): New macro.
59003         Reported by Simon Josefsson.
59005 2010-09-26  Simon Josefsson  <simon@josefsson.org>
59007         stdlib, sys_wait: Avoid compilation error on mingw.
59008         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
59010 2010-09-26  Bruno Haible  <bruno@clisp.org>
59012         stdlib tests: Avoid code duplication.
59013         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
59014         * modules/sys_wait-tests (Files): Likewise.
59015         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
59016         * tests/test-stdlib.c: Include test-sys_wait.h.
59017         (main): Invoke test_sys_wait_macros.
59018         * tests/test-sys_wait.c: Include test-sys_wait.h.
59019         (main): Invoke test_sys_wait_macros.
59021 2010-09-25  Simon Josefsson  <simon@josefsson.org>
59023         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
59024         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
59025         sure Windows sockets are working before calling getaddrinfo.
59026         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
59027         * doc/gnulib.texi (Windows sockets): Fix typo.
59029 2010-09-25  Bruno Haible  <bruno@clisp.org>
59031         Tests for module 'regex-quote'.
59032         * modules/regex-quote-tests: New file.
59033         * tests/test-regex-quote.c: New file.
59035         New module 'regex-quote'.
59036         * lib/regex-quote.h: New file.
59037         * lib/regex-quote.c: New file.
59038         * modules/regex-quote: New file.
59039         Suggested by Reuben Thomas <rrt@sc3d.org>.
59041 2010-09-24  Bruno Haible  <bruno@clisp.org>
59043         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
59044         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
59046 2010-09-23  Bruno Haible  <bruno@clisp.org>
59048         setenv: Relax license.
59049         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
59050         Blake.
59051         Requested by Eric Blake.
59053 2010-09-22  Bruno Haible  <bruno@clisp.org>
59055         termios: Relax license.
59056         * modules/termios (License): Change to LGPLv2+.
59057         Requested by Eric Blake.
59059 2010-09-22  Bruno Haible  <bruno@clisp.org>
59061         threadlib: Allow the package to change the default to 'no'.
59062         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
59063         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
59064         Reported by Paul Eggert.
59066 2010-09-22  Pádraig Brady  <P@draigbrady.com>
59067             Bruno Haible  <bruno@clisp.org>
59069         Fix endless loop in mbmemcasecoll.
59070         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
59071         byte.
59072         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
59074 2010-09-22  Bruno Haible  <bruno@clisp.org>
59076         Tests for module 'memcoll'.
59077         * modules/memcoll-tests: New file.
59078         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
59080         memcoll, xmemcoll: Clarify size vs. length.
59081         * modules/memcoll.c (memcoll0): Clarify specification.
59082         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
59083         passed to collate_error.
59085 2010-09-22  Bruno Haible  <bruno@clisp.org>
59087         Tests for module 'memcasecmp'.
59088         * modules/memcasecmp-tests: New file.
59089         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
59091 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59093         * lib/pthread.in.h: Add split double-inclusion guard, and include
59094         system <pthread.h> if there is one.  Use @@-style as in other
59095         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
59096         pthread.h doesn't.
59097         (pthread_mutexattr_destroy, pthread_mutexattr_init):
59098         (pthread_mutexattr_settype, pthread_mutex_trylock):
59099         New static inline functions, if there's no system <pthread.h>.
59100         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
59101         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
59102         Approximate with mutexes if the system lacks spinlocks, as in
59103         MacOS.
59104         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
59105         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
59106         @@-style.  Check for spinlocks separately.
59107         (gl_PTHREAD_DEFAULTS): New macro.
59108         * modules/pthread: Redo to use a more typical style for in.h files.
59110 2010-09-21  Eric Blake  <eblake@redhat.com>
59112         net_if: enhance tests
59113         * tests/test-net_if.c (main): Move signature checks earlier.
59114         Print failures to stderr.
59115         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
59116         Document the bug that we do not yet fix.
59118 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
59120         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
59121         about gnulib, not GSS.
59123 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
59125         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
59126         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
59127         for Emacs.
59128         * build-aux/pmccabe2html: Make Makefile.am example code more
59129         cut-and-paste friendly.
59131 2010-09-21  Simon Josefsson  <simon@josefsson.org>
59133         * tests/test-net_if.c: New file.
59134         * modules/net_if-tests: New file.
59136 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59138         pthread: add pthread_spin_destroy
59139         * lib/pthread.in.h (pthread_spin_destroy): New function.
59141 2010-09-19  Bruno Haible  <bruno@clisp.org>
59143         gnulib-tool: Fix --help output.
59144         * gnulib-tool (func_usage): Fix help message.
59145         Reported by Reuben Thomas <rrt@sc3d.org>.
59147 2010-09-18  Jim Meyering  <meyering@redhat.com>
59149         maint.mk: avoid unexpanded \n in two diagnostics
59150         * top/maint.mk (sc_prohibit_always_true_header_tests):
59151         Don't use a literal \n in a halt=... assignment.  It would not be
59152         expanded, and the two \n bytes would appear in the diagnostic output
59153         rather than the desired newline.  Use halt=$$(printf ... instead.
59154         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
59156 2010-09-18  Bruno Haible  <bruno@clisp.org>
59158         netinet_in: Doc tweak.
59159         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
59160         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59162 2010-09-18  Jim Meyering  <meyering@redhat.com>
59164         init.sh: correct an outdated comment
59165         * tests/init.sh (create_exe_shims_):  s/function/alias/
59167         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
59168         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
59169         a file named "*.exe" is removed between the glob expansion and the
59170         processing of that oddly named file.
59172 2010-09-17  Eric Blake  <eblake@redhat.com>
59174         mirbsd: add some more support
59175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
59176         in BSD family.
59177         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
59178         devices as OpenBSD.
59179         * m4/host-os.m4 (mirbsd): Add MirBSD.
59181         tests: fix unportable assumption on sys/wait.h
59182         * tests/test-sys_wait.c (main): Relax test.
59183         * tests/test-stdlib.c (main): Likewise.
59185         init.sh: accommodate directory with no .exes
59186         * tests/init.sh: Accomodate directory containing only scripts.
59188         tests: avoid compiler warning
59189         * tests/test-stdlib.c (main): Use the variable.
59191         fdutimens, fdutimensat: update signature, again
59192         * lib/utimens.h (gl_futimens): Delete, and move signature...
59193         (fdutimens): ...here.
59194         (fdutimensat): Rearrange signature.
59195         (lutimensat): Rename variable for clarity.
59196         * lib/fdutimensat.c (fdutimensat): Update signature.
59197         * lib/utimens.c (fdutimens): Likewise.
59198         (gl_futimens): Delete.
59199         (utimens, lutimens): Update callers.
59200         * lib/futimens.c (futimens): Likewise.
59201         * tests/test-fdutimensat.c: Likewise.
59202         * tests/test-utimens.c: Likewise.
59203         * tests/test-futimens.h: Update comment.
59204         * NEWS: Mention this.
59205         Suggested by Paul Eggert.
59207 2010-09-17  Bruno Haible  <bruno@clisp.org>
59209         Take over the maintenance of some older macros from Autoconf.
59210         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
59211         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
59212         GNU Autoconf.
59213         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
59214         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
59216 2010-09-17  Eric Blake  <eblake@redhat.com>
59218         fdutimensat: drop atflag validation
59219         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
59220         with valid fd, to close a race scenario where futimens is
59221         unsupported and FILE was replaced by a symlink.
59222         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
59223         accordingly.
59224         Suggested by Paul Eggert.
59226 2010-09-16  Bruno Haible  <bruno@clisp.org>
59228         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
59229         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
59231 2010-09-16  Bruno Haible  <bruno@clisp.org>
59233         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
59234         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
59235         login_tty exists.
59236         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59238 2010-09-16  Bruno Haible  <bruno@clisp.org>
59240         login_tty: Make the replacement code work on BSD systems.
59241         * lib/login_tty.c: Include <sys/ioctl.h>.
59242         (login_tty): Use ioctl TIOCSCTTY when available.
59243         * modules/login_tty (Depends-on): Add sys_ioctl.
59244         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59246 2010-09-16  Bruno Haible  <bruno@clisp.org>
59248         login_tty: Stricter unit test.
59249         * modules/login_tty-tests (Depends-on): Add tcgetsid.
59250         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
59251         and tcgetsid() after login_tty.
59252         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59254 2010-09-16  Bruno Haible  <bruno@clisp.org>
59256         New module 'tcgetsid'.
59257         * lib/tcgetsid.c: New file.
59258         * m4/tcgetsid.m4: New file.
59259         * modules/tcgetsid: New file.
59260         * modules/termios (Depends-on): Add c++defs, warn-on-use.
59261         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
59262         GNULIB_TCGETSID, HAVE_TCGETSID.
59263         * lib/termios.in.h: Include <sys/types.h>.
59264         (tcgetsid): New declaration.
59265         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
59266         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
59267         * doc/posix-functions/tcgetsid.texi: Mention the new module.
59268         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
59270 2010-09-16  Bruno Haible  <bruno@clisp.org>
59272         Tests for module 'termios'.
59273         * modules/termios-c++-tests: New file.
59274         * modules/termios-tests: New file.
59275         * tests/test-termios-c++.cc: New file.
59276         * tests/test-termios.c: New file.
59278         New module 'termios'.
59279         * modules/termios: New file.
59280         * lib/termios.in.h: New file.
59281         * m4/termios_h.m4: New file.
59282         * doc/posix-headers/termios.texi: Mention the new module.
59284 2010-09-16  Eric Blake  <eblake@redhat.com>
59286         fdutimensat: add an atflag parameter
59287         * lib/fdutimensat.c (fdutimensat): Add new parameter.
59288         * lib/utimens.h (fdutimensat): Update prototype.
59289         * tests/test-fdutimensat.c: Adjust test to match.
59290         * NEWS: Document the change.
59291         Suggested by Paul Eggert.
59293 2010-09-16  Bruno Haible  <bruno@clisp.org>
59295         Fix typos in comments.
59296         * lib/striconveh.h: Fix typo in comment.
59297         * lib/login_tty.c (login_tty): Likewise.
59299 2010-09-15  Bruno Haible  <bruno@clisp.org>
59301         stdlib: clarify MirBSD WEXITSTATUS bug
59302         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
59303         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
59305 2010-09-15  Eric Blake  <eblake@redhat.com>
59307         stdlib: work around MirBSD WEXITSTATUS bug
59308         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
59309         * modules/stdlib (Depends-on): Add sys_wait.
59310         * tests/test-sys_wait.c (main): Enhance test.
59311         * tests/test-stdlib.c (main): Likewise.
59312         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
59314         docs: mention MacOS issue with WEXITSTATUS(constant)
59315         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
59316         issue.
59317         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
59319         strnlen: add tests
59320         * modules/strnlen-tests: New file.
59321         * tests/test-strnlen.c: Likewise.
59323 2010-09-14  Bruno Haible  <bruno@clisp.org>
59325         unistr/base: Avoid link errors when module 'libunistring' is also used.
59326         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
59327         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
59328         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
59329         Declare also when HAVE_LIBUNISTRING is set.
59330         Reported by Pádraig Brady <P@draigbrady.com>.
59332 2010-09-14  Eric Blake  <eblake@redhat.com>
59334         test-rawmemchr: make more robust
59335         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
59336         (Depends-on, configure.ac): Add needed prerequisites to use it.
59337         * modules/memchr-tests (Files, Depends-on, configure.ac):
59338         Likewise, to avoid implicit reliance on memchr module prereqs.
59339         * tests/test-memchr.c (main): Ensure proper masking.
59340         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
59341         reads.
59343         memchr: detect glibc Alpha bug
59344         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
59345         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
59346         Alpha.
59347         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
59348         * tests/test-memchr.c (main): Enhance test.
59349         Reported by Nelson H. F. Beebe.
59351 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59353         fts, getcwd, glob: audit for dirfd returning -1
59354         * lib/fts.c (opendir): Remove #define; no longer used.
59355         (opendirat): New arg PDIR_FD.  All callers changed.
59356         (fts_build, _opendir2): Use new opendirat to avoid the need for
59357         dirfd, or for checking whether dirfd returns a negative value.
59358         Don't use opendir; always use openat followed by fdopendir.
59359         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
59360         it.
59361         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
59362         returns -1 here.
59363         * modules/fts (Depends-on): Remove dirfd.
59364         * modules/getcwd (Depends-on): Likewise.
59366 2010-09-13  Eric Blake  <eblake@redhat.com>
59368         float: fix broken MirBSD header
59369         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
59370         * doc/posix-headers/float.texi (float.h): Document it.
59372 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59374         fts: use O_NOFOLLOW to avoid race condition when opening a directory
59375         * lib/fts.c (opendirat): New arg extra_flags.
59376         (__opendir2): Use it to avoid following symlinks when opening
59377         a directory, if symlinks are not supposed to be followed.  See
59378         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
59380         fdopendir: preserve argument fd before returning
59381         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
59382         (fdopendir_with_dup, fd_clone_opendir): New static functions.
59383         (fdopendir): Use them, arranging for FD to be open to the same
59384         directory that it was when it started.  (It might be temporarily
59385         closed while fdopendir is running, so this not thread- or
59386         signal-safe.)  Be careful to do the right thing even when file
59387         descriptors are scarce and dup fails with errno == EMFILE.  See
59388         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
59390 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
59392         regex: Pass the system regex if its only problem is 32-bit regoff_t.
59393         * NEWS: Document change.
59394         * m4/regex.m4: Disable test for regoff_t size.
59396 2010-09-13  Jim Meyering  <meyering@redhat.com>
59398         fts: don't operate on an invalid file descriptor after failed dup
59399         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
59400         negative file descriptor.
59402 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59404         savedir: add streamsavedir, deprecate fdsavedir
59405         * NEWS: Mention deprecation of fdsavedir.
59406         * lib/savedir.c (streamsavedir): New extern function, whose name
59407         ends in "savedir" to be consistent with the others.  This differs
59408         from savedirstream in that it doesn't close its argument.  The
59409         next version of GNU tar will use this instead of fdsavedir, to
59410         avoid some race conditions and conserve file descriptors.
59411         (savedirstream): Reimplement as a wrapper around streamsavedir.
59412         (fdsavedir): Add a comment deprecating this function.  As far as
59413         I know, only GNU tar used it, and GNU tar doesn't need it any more.
59414         * lib/savedir.h (streamsavedir): New decl.
59415         (fdsavedir): Add a comment deprecating this.
59417 2010-09-10  Bruno Haible  <bruno@clisp.org>
59419         langinfo: Fix last commit.
59420         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
59421         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
59422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59424 2010-09-10  Bruno Haible  <bruno@clisp.org>
59426         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
59427         * lib/progreloc.c (O_EXEC): Define fallback.
59429 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
59431         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
59432         * NEWS: Document recent changes to fcntl-h.
59433         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
59434         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
59435         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
59436         Similarly for O_SEARCH; this last was already true, but not documented.
59437         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
59438         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
59439         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
59440         Likewise.
59441         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
59442         is zero, not whether it is defined.
59443         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
59444         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
59445         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
59447 2010-09-10  Bruno Haible  <bruno@clisp.org>
59449         langinfo, nl_langinfo: Fix for IRIX 5.3.
59450         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
59451         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
59452         HAVE_LANGINFO_YESEXPR.
59453         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
59454         HAVE_LANGINFO_YESEXPR.
59455         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
59456         HAVE_LANGINFO_T_FMT_AMPM is 0.
59457         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
59458         HAVE_LANGINFO_YESEXPR is 0.
59459         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
59460         NOEXPR.
59461         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
59462         * doc/posix-functions/nl_langinfo.texi: Likewise.
59463         Reported by Eric Blake.
59465 2010-09-10  Bruno Haible  <bruno@clisp.org>
59467         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
59468         * doc/glibc-functions/login_tty.texi: Mention the include file problem
59469         on FreeBSD 8.0 and OpenBSD 4.6.
59470         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
59471         * m4/pty_h.m4 (gl_PTY_H): Likewise.
59472         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
59473         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
59474         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
59475         ac_includes_default.
59476         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59478 2010-09-09  Eric Blake  <eblake@redhat.com>
59480         strsignal: work around NetBSD bug
59481         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
59482         * lib/string.in.h (includes): Likewise.
59483         * doc/posix-functions/strsignal.texi (strsignal): Document the
59484         bug.
59485         Reported by Nelson H. F. Beebe.
59487         gnulib-tool: work with NetBSD /bin/sh
59488         * gnulib-tool (func_cache_var, func_cache_lookup_module)
59489         (func_get_description, func_get_comment, func_get_status)
59490         (func_get_notice, func_get_applicability, func_get_filelist)
59491         (func_get_dependencies, func_get_autoconf_early_snippet)
59492         (func_get_autoconf_snippet, func_get_automake_snippet)
59493         (func_get_include_directive, func_get_link_directive)
59494         (func_get_license, func_get_maintainer, func_import): Avoid
59495         shell syntax errors from parsing syntax extensions.
59497 2010-09-09  Bruno Haible  <bruno@clisp.org>
59499         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
59500         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
59501         a reliable way to determine whether the 'alias' command works.
59503 2010-09-08  Jim Meyering  <meyering@redhat.com>
59505         init.sh: penalize a set-x-impaired shell; don't disqualify it
59506         * tests/init.sh: Too many shells corrupt application stderr when
59507         you set -x, so we can't afford to disqualify them, since at least
59508         on Irix-6.5, that would disqualify all bourne shells.
59509         Instead, use a two-pass approach.
59510         On the first pass, try to find a shell that meets the stricter
59511         condition that set -x does not corrupt stderr.
59512         If no shell meets the stricter condition, retest each candidate
59513         shell, but without that extra condition.  Finally, when
59514         VERBOSE=yes is requested and set -x might cause trouble, simply
59515         issue a warning and refrain from enabling debug output.
59517 2010-09-08  Eric Blake  <eblake@redhat.com>
59519         unsetenv: fix OpenBSD bug
59520         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
59521         * doc/posix-functions/unsetenv.texi (unsetenv): Update
59522         documentation.
59523         Reported by Jim Meyering.
59525         strtod: work around IRIX 6.5 bug
59526         * lib/strtod.c (strtod): Reparse number on shorter string if
59527         exponent parse was invalid.
59528         * tests/test-strtod.c (main): Add check for "0x1p 2".
59529         Reported by Tom G. Christensen.
59531         getopt: optimize previous patch
59532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
59533         empty variable.  Speed up awk script.
59534         Reported by Paolo Bonzini.
59536 2010-09-08  Jim Meyering  <meyering@redhat.com>
59538         test.sh: disqualify shells for which set -x corrupts stderr
59539         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
59540         and OpenBSD 4.7.  They make it so with "set -x", environment settings
59541         appear in stderr output.  For example, this command:
59542             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
59543         prints "P=1" on those two systems:
59545 2010-09-08  Bruno Haible  <bruno@clisp.org>
59547         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
59548         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
59549         commands, because some shells ignore redirections when there is an
59550         error in the command lookup.
59551         Reported by Eric Blake.
59553 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
59555         * lib/regex.h: Fix a mention of `regex_compile' (should be
59556         `re_compile_pattern').
59557         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
59558         (re_set_registers): Correct name of parameter in comment.
59560         * doc/regex.texi: Add documentation for missing syntax flags.
59561         Remove commented-out documentation of defunct syntax option
59562         RE_NO_EMPTY_ALTS.
59563         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
59564         Add documentation of re_set_registers.
59565         Document trick to re-use a pattern buffer by setting fastmap manually.
59566         Update documentation of struct re_pattern_buffer per public members.
59567         Uncomment documentation of equivalence class operators and
59568         collating symbol operators, since they are now implemented,
59569         Explain leftmost-longest matching in relation to alternatives.
59570         Tidy documentation of substring matching.
59571         Remove POSIX documentation, which is done better in
59572         glibc, and refer the reader there. Keep BSD API documentation, as
59573         that is not readily available elsewhere.
59575 2010-09-07  Eric Blake  <eblake@redhat.com>
59577         getopt: handle POSIXLY_CORRECT set but not exported
59578         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
59579         export state of POSIXLY_CORRECT, due to bash set -o posix.
59580         Reported by Dustin J. Mitchell.
59582 2010-09-05  Bruno Haible  <bruno@clisp.org>
59584         gnulib-tool: Highlight the changed options.
59585         * gnulib-tool (func_usage): Display the --import, --add-import,
59586         --remove-import explanations in bold font.
59588 2010-09-06  Karl Berry  <karl@gnu.org>
59590         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
59592 2010-09-05  Bruno Haible  <bruno@clisp.org>
59594         uniwidth/width: Update comment.
59595         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
59596         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
59598 2010-09-05  Bruno Haible  <bruno@clisp.org>
59600         isinf, isnan: Relax license.
59601         * modules/isinf (License): Change from GPL to LGPL, with consent from
59602         Ben Pfaff.
59603         * modules/isnan (License): Likewise.
59604         Requested by Ludovic Courtès.
59606 2010-09-04  Bruno Haible  <bruno@clisp.org>
59608         gnulib-tool: Help migration from --import to --add-import or --update.
59609         * gnulib-tool: Emit a verbose error message when --import is used
59610         without any module name.
59612 2010-09-04  Bruno Haible  <bruno@clisp.org>
59614         Update doc about gnulib-tool.
59615         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
59616         'gnulib-tool --update' in more detail.
59617         Reported by Eric Blake.
59619 2010-09-04  Bruno Haible  <bruno@clisp.org>
59621         gnulib-tool: Change --import. New options --add/remove-import.
59622         * gnulib-tool: New options --add-import, --remove-import.
59623         (func_usage): Document them.
59624         (have_associative): Define always.
59625         (func_import): In import mode, don't merge the specified settings with
59626         the cached settings. Implement remove-import mode.
59627         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
59628         Explain when to use them versus --import.
59629         (Simple update): Use --add-import instead of --import.
59630         * NEWS: Mention the change.
59632 2010-09-04  Bruno Haible  <bruno@clisp.org>
59634         * doc/gnulib-tool.texi (Initial import): Update paragraph about
59635         separate gnulib.mk.
59637 2010-09-04  Bruno Haible  <bruno@clisp.org>
59639         gnulib-tool: Don't talk about CVS any more.
59640         * gnulib-tool (func_usage, func_import): Write "version control"
59641         instead of CVS.
59643 2010-09-04  Jim Meyering  <meyering@redhat.com>
59645         maint.mk: avoid obscure sc_copyright_check failure in coreutils
59646         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
59647         false positives (whose names may be ill-chosen) when searching
59648         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
59649         would cause a false-positive.
59651         avoid coreutils "make distcheck" failure
59652         Coreutils tests with an absolute build directory name that contains
59653         a space.  Not quoting this directory name caused a failure.
59654         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
59655         * tests/test-vc-list-files-cvs.sh: Likewise.
59657 2010-09-04  Bruno Haible  <bruno@clisp.org>
59659         gnulib-tool: Avoid error when run in a package without Makefile.am.
59660         * gnulib-tool: When collecting the m4dirs in a package that does not
59661         have a Makefile.am, eliminate those directories that contain no
59662         gnulib-cache.m4. Fix expression that counts these directories.
59664 2010-09-04  Bruno Haible  <bruno@clisp.org>
59666         update-copyright test: Improve output when perl is missing or too old.
59667         * tests/test-update-copyright.sh: Move test of Perl version down after
59668         the test whether Perl exists. Provide an explanation relating Perl's
59669         error message to Automake's SKIP: message.
59671 2010-09-04  Bruno Haible  <bruno@clisp.org>
59673         Don't augment PATH in TESTS_ENVIRONMENT.
59674         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
59675         set abs_aux_dir instead of augmenting PATH.
59676         * modules/vc-list-files-tests (Makefile.am): Likewise.
59677         * tests/test-update-copyright.sh: Augment PATH here.
59678         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
59679         path_prepend_.
59680         * tests/test-vc-list-files-git.sh: Likewise.
59682 2010-09-04  Jim Meyering  <meyering@redhat.com>
59684         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
59685         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
59687 2010-09-04  Bruno Haible  <bruno@clisp.org>
59689         strdup: Fix compilation error in C++ mode.
59690         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
59691         the macro.
59693 2010-09-04  Bruno Haible  <bruno@clisp.org>
59695         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
59696         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
59697         macro into a function.
59698         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59700 2010-09-04  Bruno Haible  <bruno@clisp.org>
59702         Set PATH_SEPARATOR the same way autoconf does.
59703         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
59704         the value of PATH_SEPARATOR the same way autoconf-generated configure
59705         scripts do.
59706         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
59707         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
59709 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59711         Set PATH_SEPARATOR the same way autoconf does.
59712         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
59713         the same way autoconf-generated configure scripts do.
59714         * posix-modules: Likewise.
59716 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59718         hash: fix safe_hasher const typo
59719         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
59720         const; otherwise, there is a type error later.
59722 2010-09-02  Jim Meyering  <meyering@redhat.com>
59724         test-update-copyright.sh: require perl 5.8.0
59725         * tests/test-update-copyright.sh: Require 5.8.0,
59726         which Tom G. Christensen has confirmed is adequate,
59727         while 5.6.1 is not.
59729 2010-09-02  Eric Blake  <eblake@redhat.com>
59731         tests: init.sh improvements for re-exec'ing with zsh
59732         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
59733         -vx through shell re-exec.
59734         Reported by Tom G. Christensen.
59736         wctype: fix typo in previous commit
59737         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
59738         Reported by Ludovic Courtès.
59740 2010-09-02  Jim Meyering  <meyering@redhat.com>
59742         test-update-copyright.sh: skip test if Perl is too old
59743         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
59744         Reported by Tom G. Christensen.
59746 2010-09-02  Bruno Haible  <bruno@clisp.org>
59748         wctype: Avoid compilation error on IRIX 6.5.30.
59749         * lib/wctype.in.h (iswblank): Declare with a replacement if
59750         REPLACE_ISWBLANK is set.
59751         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
59752         declared. Set REPLACE_ISWBLANK.
59753         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
59754         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
59755         * doc/posix-headers/wctype.texi: Likewise.
59756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59758 2010-09-01  Bruno Haible  <bruno@clisp.org>
59760         New module 'socketlib'.
59761         * modules/socketlib: New file.
59762         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
59763         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
59764         * modules/sockets (Depends-on): Add socketlib.
59765         Suggested by Sam Steingold <sds@gnu.org>.
59767 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59769         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
59771         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
59772         when one needs search access to a directory but not read access.
59773         On systems where it is available, it works in some cases where
59774         O_RDONLY does not, namely on directories that are searchable but
59775         not readable, and which need only to be searchable.  If O_SEARCH
59776         is not available, fall back to the traditional method of using
59777         O_RDONLY.
59779         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
59780         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
59781         when opening a directory that needs only to be searchable.
59782         * lib/chdir-safer.c (chdir_no_follow): Likewise.
59783         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
59784         * lib/openat-proc.c (openat_proc_name): Likewise.
59785         * lib/openat.c (openat_needs_fchdir): Likewise.
59786         * lib/save-cwd.c (save_cwd): Likewise.
59787         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
59789 2010-08-28  Bruno Haible  <bruno@clisp.org>
59791         New module 'host-cpu-c-abi'.
59792         * modules/host-cpu-c-abi: New file.
59793         * m4/host-cpu-c-abi.m4: New file, based on part of
59794         clisp/src/m4/general.m4.
59795         Requested by Sam Steingold <sds@gnu.org>.
59797 2010-08-31  Eric Blake  <eblake@redhat.com>
59798         and Jim Meyering  <meyering@redhat.com>
59800         hash: factor, and guard against misbehaving hasher function
59801         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
59802         of table->hasher's return value.  Also protect against a hash value
59803         so large that adding it to table->bucket results in a NULL pointer.
59804         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
59805         Use it in place of open-coded check-and-abort.
59807 2010-08-30  Bruno Haible  <bruno@clisp.org>
59809         hash: silence spurious clang warning
59810         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
59811         Reported by Eric Blake.
59813 2010-08-30  Eric Blake  <eblake@redhat.com>
59815         strstr, memmem, strcasestr: avoid leaked shell message
59816         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
59817         FreeBSD.
59818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59819         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59821         tests: silence clang warning
59822         * tests/test-malloca.c (do_allocation): Avoid dead store.
59824 2010-08-29  Bruno Haible  <bruno@clisp.org>
59826         gettext: Fix recent mistake.
59827         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
59829 2010-08-29  Bruno Haible  <bruno@clisp.org>
59831         selinux-h: Offer a --without-selinux option.
59832         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
59833         --without-selinux was specified, skip all tests and define
59834         HAVE_SELINUX_SELINUX_H to 0.
59835         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
59836         set LIB_SELINUX to empty.
59837         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
59838         gl_LIBSELINUX. If --without-selinux was specified, replace
59839         selinux/context.h.
59840         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
59842 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59843             Bruno Haible  <bruno@clisp.org>
59845         Make the module 'realloc-gnu' work again on AIX and OSF/1.
59846         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
59847         of HAVE_REALLOC.
59848         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
59849         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
59850         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
59851         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
59853 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59854             Bruno Haible  <bruno@clisp.org>
59856         Make the module 'calloc-gnu' work again on AIX and OSF/1.
59857         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
59858         HAVE_CALLOC.
59859         * lib/xmalloc.c: Update accordingly.
59860         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
59861         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
59862         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
59864 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59865             Bruno Haible  <bruno@clisp.org>
59867         Make the module 'malloc-gnu' work again on AIX and OSF/1.
59868         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
59869         HAVE_MALLOC.
59870         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
59871         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
59872         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
59874 2010-08-29  Bruno Haible  <bruno@clisp.org>
59876         Update modules list.
59877         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
59878         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
59879         (String handling <string.h>): Add astrxfrm.
59880         (File system functions): Add readlinkat.
59882 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59884         Tests for module 'realloc-gnu'.
59885         * modules/realloc-gnu-tests: New file.
59886         * tests/test-realloc-gnu.c: New file.
59888         Tests for module 'calloc-gnu'.
59889         * modules/calloc-gnu-tests: New file.
59890         * tests/test-calloc-gnu.c: New file.
59892         Tests for module 'malloc-gnu'.
59893         * modules/malloc-gnu-tests: New file.
59894         * tests/test-malloc-gnu.c: New file.
59896 2010-08-28  Bruno Haible  <bruno@clisp.org>
59898         Rename module 'realloc' -> 'realloc-gnu'.
59899         * modules/realloc-gnu: New file, copied from modules/realloc.
59900         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
59901         obsolete.
59902         * modules/mgetgroups (Depends-on): Update.
59903         * doc/posix-functions/realloc.texi: Update.
59904         * NEWS: Mention the change.
59906         Rename module 'calloc' -> 'calloc-gnu'.
59907         * modules/calloc-gnu: New file, copied from modules/calloc.
59908         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
59909         obsolete.
59910         * doc/posix-functions/calloc.texi: Update.
59911         * NEWS: Mention the change.
59913         Rename module 'malloc' -> 'malloc-gnu'.
59914         * modules/malloc-gnu: New file, copied from modules/malloc.
59915         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
59916         obsolete.
59917         * modules/argp (Depends-on): Update.
59918         * modules/regex (Depends-on): Update.
59919         * doc/posix-functions/malloc.texi: Update.
59920         * NEWS: Mention the change.
59922 2010-08-28  Eric Blake  <eblake@redhat.com>
59924         pread, pwrite: add missing dependency
59925         * modules/pread (Depends-on): Add extensions.
59926         * modules/pwrite (Depends-on): Likewise.
59928 2010-08-28  Bruno Haible  <bruno@clisp.org>
59930         unistr/u*-strchr: Fix tests dependencies.
59931         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
59932         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
59933         Reported by Ian Beckwith <ianb@erislabs.net>.
59935 2010-08-28  Bruno Haible  <bruno@clisp.org>
59937         read-file: Don't occupy too much unused memory.
59938         * lib/read-file.c (fread_file): Shrink the buffer at the end.
59940 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
59941             Eric Blake  <eblake@redhat.com>
59942             Bruno Haible  <bruno@clisp.org>
59944         read-file: Avoid memory reallocations with regular files.
59945         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
59946         (fread_file): With regular files, use the remaining length as the
59947         initial buffer size.  Check against overflow.
59948         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
59949         sys_stat.
59951 2010-08-28  Bruno Haible  <bruno@clisp.org>
59953         ftello: Relax license.
59954         * modules/ftello (License): Relax to LGPLv2+.
59955         Reported by Eric Blake.
59957 2010-08-28  Bruno Haible  <bruno@clisp.org>
59959         Avoid relocwrapper link errors due to gnulib replacement functions.
59960         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
59961         function.
59962         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59964 2010-08-28  Bruno Haible  <bruno@clisp.org>
59966         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
59967         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
59968         defined.
59969         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
59970         Suggested by Eric Blake.
59972 2010-08-28  Bruno Haible  <bruno@clisp.org>
59974         sys_socket, netdb: Ensure socklen_t gets defined.
59975         * modules/sys_socket (Depends-on): Add socklen.
59976         * modules/netdb (Depends-on): Likewise.
59977         * modules/getaddrinfo (Depends-on): Remove socklen.
59978         * modules/getsockopt (Depends-on): Likewise.
59979         * modules/setsockopt (Depends-on): Likewise.
59980         * tests/test-sys_socket.c: Check that socklen_t is defined.
59981         * tests/test-netdb.c: Likewise.
59982         * m4/socklen.m4: Update comments.
59983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59985 2010-08-27  Eric Blake  <eblake@redhat.com>
59987         login_tty: add missing dependency
59988         * modules/login_tty (Depends-on): Add pty.
59990 2010-08-26  Eric Blake  <eblake@redhat.com>
59992         lib-symbol-versions: fix m4 quoting
59993         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
59994         format for AC_LINK_IFELSE.
59996         glob: fix compile test
59997         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
59999         btowc: fix missing file
60000         * modules/btowc (Files): Also ship locale-fr.m4.
60002         lseek: fix link test
60003         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
60004         AC_LINK_IFELSE.
60006         include_next: silence autoconf 2.68 warning
60007         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
60008         AC_COMPILE_IFELSE as special.
60009         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
60010         autoconf < 2.68.
60012         acl: fix compilation test
60013         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
60014         AC_COMPILE_IFELSE.
60016 2010-08-26  Bruno Haible  <bruno@clisp.org>
60018         Modernize AC_TRY_RUN invocations.
60019         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
60020         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
60021         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
60022         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
60023         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
60024         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
60025         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
60026         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60027         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
60028         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
60029         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
60030         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
60031         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
60032         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
60033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
60034         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
60035         gl_MBRLEN_NUL_RETVAL): Likewise.
60036         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
60037         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
60038         Likewise.
60039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60040         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
60041         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
60042         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
60043         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
60044         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
60045         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
60046         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
60047         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
60048         Likewise.
60049         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
60050         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
60051         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60052         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
60053         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
60054         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
60055         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
60056         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
60057         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
60058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60060 2010-08-26  Bruno Haible  <bruno@clisp.org>
60062         Modernize AC_TRY_LINK invocations.
60063         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
60064         AC_TRY_LINK.
60065         * m4/argp.m4 (gl_ARGP): Likewise.
60066         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
60067         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
60068         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60069         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60070         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60071         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
60072         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
60073         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
60074         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60075         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
60076         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60077         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
60078         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
60079         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
60080         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60081         * m4/hostent.m4 (gl_HOSTENT): Likewise.
60082         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
60083         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
60084         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
60085         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
60086         Likewise.
60087         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
60088         Likewise.
60089         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
60090         Likewise.
60091         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
60092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
60093         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
60094         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
60095         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
60096         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
60097         * m4/servent.m4 (gl_SERVENT): Likewise.
60098         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
60099         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
60100         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
60101         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
60102         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
60103         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
60104         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
60105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
60106         * modules/tsearch-tests (configure.ac): Likewise.
60108 2010-08-26  Bruno Haible  <bruno@clisp.org>
60110         Modernize AC_TRY_COMPILE invocations.
60111         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
60112         AC_TRY_COMPILE.
60113         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
60114         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
60115         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
60116         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60117         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
60118         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60119         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60120         * m4/lock.m4 (gl_LOCK): Likewise.
60121         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
60122         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60123         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
60124         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60125         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
60126         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
60127         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
60128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
60129         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
60130         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
60131         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
60132         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60133         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
60134         extraneous semicolon.
60136 2010-08-26  Jim Meyering  <meyering@redhat.com>
60138         stat-time: relax license LGPL
60139         * modules/stat-time (License): Change from GPL to LGPL,
60140         with consent from all contributors, for use in libguile.
60141         Requested by Ludovic Courtès.
60143 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
60145         poll: return immediately on POLLHUP.
60146         * lib/poll.c (poll): Always set timeout before wait_timeout is
60147         computed.
60149 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60151         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
60152         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
60153         rmdir ("dir/.//"), unlinkat.
60155 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60157         stdbool: avoid spurious failure with modern xlc
60158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
60160 2010-08-24  Bruno Haible  <bruno@clisp.org>
60162         getloadavg: simplify code
60163         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
60164         gl_have_func. Update comments.
60166 2010-08-24  Eric Blake  <eblake@redhat.com>
60168         getloadavg: don't define SVR4 on cygwin
60169         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
60170         only define SVR4 when -lkvm is required.
60171         Reported by Yaakov Selkowitz.
60173 2010-08-24  Bruno Haible  <bruno@clisp.org>
60175         priv-set: fix comment
60176         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
60178 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60180         priv-set: fix comments
60181         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
60182         to match code, as suggested by David Bartley in:
60183         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
60185 2010-08-23  Eric Blake  <eblake@redhat.com>
60187         stdbool: avoid rejecting clang
60188         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
60189         * tests/test-stdbool.c: Enable more tests if using the system
60190         <stdbool.h> instead of the gnulib replacement.
60191         (main): Move xlc bug test to a runtime test for all compilers.
60192         Reported by Anders Kaseorg.
60194         argz: fix shell quoting issue
60195         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
60196         Reported by Charles Wilson.
60198 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
60199             Erik Faye-Lund <kusmabite@gmail.com>
60201         poll, select: handle ERROR_BROKEN_PIPE.
60202         * lib/poll.c (win32_compute_revents): Return POLLHUP when
60203         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
60204         * lib/select.c (win32_compute_revents): Do not mark a pipe
60205         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
60207 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
60209         fts: allow compilation with C++
60210         * lib/fts_.h: Specify extern "C" linkage with C++.
60212 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60214         Fix gnulib-tool sed script de-commentation for AIX sed.
60215         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
60216         sed.
60218 2010-08-17  Eric Blake  <eblake@redhat.com>
60220         test-stddef: test for (some) offsetof bugs
60221         * tests/test-stddef.c: Enhance test to ensure correct type of
60222         offsetof.
60223         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
60224         that we are not fixing at this time.
60226 2010-08-15  Bruno Haible  <bruno@clisp.org>
60228         stpncpy: Allow stpncpy to be defined as a macro.
60229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
60230         if it's already correctly declared.
60231         * lib/string.in.h (stpncpy): Undefine before redefining.
60232         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
60234 2010-08-14  Bruno Haible  <bruno@clisp.org>
60236         Rename module 'memxfrm' to 'amemxfrm'.
60237         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
60238         (amemxfrm): Renamed from memxfrm.
60239         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
60240         (amemxfrm): Renamed from memxfrm.
60241         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
60242         * NEWS: Mention the change.
60243         * MODULES.html.sh (String handling <string.h>): Update.
60244         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
60245         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
60246         * lib/unicase/u16-casexfrm.c: Likewise.
60247         * lib/unicase/u32-casexfrm.c: Likewise.
60248         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
60249         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
60250         * lib/uninorm/u16-normxfrm.c: Likewise.
60251         * lib/uninorm/u32-normxfrm.c: Likewise.
60252         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
60253         memxfrm.
60254         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
60255         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
60256         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
60257         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
60258         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
60259         Suggested by Paul Eggert.
60261 2010-08-14  Bruno Haible  <bruno@clisp.org>
60263         Tests for module 'astrxfrm'.
60264         * modules/astrxfrm-tests: New file.
60265         * tests/test-astrxfrm.c: New file.
60267         New module 'astrxfrm'.
60268         * lib/astrxfrm.h: New file.
60269         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
60270         * modules/astrxfrm: New file.
60272 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
60274         regex: Tweak doc.
60275         * doc/regex.texi (Overview): Don't mention regex.c.
60276         (GNU Regular Expression Compiling): Likewise.
60277         (Match-end-of-line Operator): Mention 'not_eol'.
60279 2010-08-14  Brian Gough  <bjg@gnu.org>
60280             Bruno Haible  <bruno@clisp.org>
60282         git-merge-changelog: add doc relating to use with bzr and hg.
60283         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
60285 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
60287         pthread: fix pthread.h creation for srcdir != builddir
60288         * modules/pthread (Makefile.am): Fix the rule to work also in a
60289         non-srcdir build.
60291 2010-08-13  Karl Berry  <karl@gnu.org>
60293         * doc/regex.texi (Predefined Syntaxes): @smallexample.
60294         * doc/posix-*/*: force line break before @url of POSIX
60295         specifications.
60296         Suggested by Werner Lemberg.
60298 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60300         strtod: fix const diagnostic
60301         * lib/strtod.c (strtod): Don't assign const char * to char *,
60302         as this elicits a warning from GCC when warnings are enabled.
60304 2010-08-10  Pádraig Brady  <P@draigbrady.com>
60305         and Eric Blake  <eblake@redhat.com>
60307         copy-acl: ignore ENOTSUP on HP-UX
60308         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
60309         so that it is available for HP-UX.
60310         * lib/copy-acl.c (qcopy_acl): Use it.
60311         Reported by Patrick M. Callahan.
60313 2010-08-10  Eric Blake  <eblake@redhat.com>
60315         open, chown: relax license
60316         * modules/open (License): Change to LGPLv2+, with consent by all
60317         authors, for use in augeas.
60318         * modules/chown (License): Likewise.
60319         * modules/lchown (Likewise): Likewise.
60320         Requested by Adam Stokes.
60322 2010-08-09  Karl Berry  <karl@gnu.org>
60324         * build-aux/ar-lib: new file, import from Automake.
60325         * config/srclist.txt: autocheck for updates.
60327 2010-08-09  Eric Blake  <eblake@redhat.com>
60329         readlinkat: adjust client modules
60330         * modules/areadlinkat (Depends-on): Use readlinkat, not
60331         symlinkat.
60332         * modules/areadlinkat-with-size (Depends-on): Likewise.
60334         mknod: be more vocal about danger of running tests as root
60335         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
60336         root, since that is just asking for problems.
60337         Suggested by Bruno Haible, based on a report by Rainer Tammer.
60339         readlinkat: split into its own module
60340         * modules/symlinkat: Split readlinkat...
60341         * modules/readlinkat: ...into separate module.
60342         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
60343         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
60344         * lib/symlinkat.c (readlinkat): Move...
60345         * lib/readlinkat.c: ...into new file.
60346         * modules/symlinkat-tests: Split readlinkat test...
60347         * modules/readlinkat-tests: ...into separate module.
60348         * tests/test-symlinkat.c: Split...
60349         * tests/test-readlinkat.c: ...into new file.
60350         * NEWS: Document the split.
60351         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60352         * lib/unistd.in.h (readlinkat): Likewise.
60353         Suggested by Bruno Haible.
60355 2010-08-08  Bruno Haible  <bruno@clisp.org>
60357         memxfrm: Speed up.
60358         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
60359         that usually only one call to strxfrm is necessary for each string
60360         part.
60361         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60363 2010-08-07  Karl Berry  <karl@gnu.org>
60365         * doc/posix-headers/limits.texi,
60366         * doc/posix-functions/malloc.texi,
60367         * doc/posix-functions/strsignal.texi: missing @item.
60368         * doc/ld-version-script.texi: spurious leading i.
60369         * doc/regex.texi (Interval Operators): no commas inside @var.
60371 2010-08-01  Bruno Haible  <bruno@clisp.org>
60373         Integrate the regex documentation.
60374         * doc/gnulib.texi: Define 'cn' index.
60375         (Regular expressions): New a chapter that includes regex.texi and
60376         regexprops-generic.texi.
60377         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
60378         syntax.
60380         Whitespace cleanup.
60381         * doc/regex.texi: Remove trailing spaces.
60383         Add regex documentation.
60384         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
60385         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
60386         Written by Kathy A. Hargreaves and Karl Berry.
60388 2010-08-01  Bruno Haible  <bruno@clisp.org>
60390         link: Update documentation.
60391         * doc/posix-functions/link.texi: Update regarding Solaris.
60393 2010-07-31  Bruno Haible  <bruno@clisp.org>
60395         Update modules list.
60396         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
60397         (String handling <string.h>): Add memcmp2, memxfrm.
60398         (Container data structures): Add xlist, xsublist, xoset.
60399         (Core language properties): Add alignof, unused-parameter.
60400         (Process control, Numeric conversion functions <stdlib.h>): Renamed
60401         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
60402         (Unibyte characters <ctype.h>): New section.
60403         (String handling <string.h>): New section.
60404         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
60405         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
60406         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
60407         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
60408         tan, tanh, tanl, y0, y1, yn.
60409         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
60410         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
60411         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
60412         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
60413         unlockpt, vdprintf, vdprintf-posix.
60414         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
60415         (File system functions): Add concat-filename, sys_file, sys_ioctl,
60416         xconcat-filename.
60417         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
60418         getdtablesize, pipe2, pipe2-safer.
60419         (Security): New section.
60420         (Networking functions): Add accept4.
60421         (Signal handling): Add sigpipe.
60422         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
60423         mbmemcasecoll.
60424         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
60425         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
60426         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
60427         pipe-filter-ii.
60428         (Misc): Add argp-version-etc, login_tty, parse-duration.
60430 2010-07-31  Bruno Haible  <bruno@clisp.org>
60432         Improve doc in MODULES.html.
60433         * modules/linkat (Description): Add the word "function".
60434         * modules/mkfifo (Description): Likewise.
60435         * modules/mknod (Description): Likewise.
60436         * modules/remove (Description): Likewise.
60437         * modules/renameat (Description): Likewise.
60438         * modules/stat (Description): Likewise.
60439         * modules/symlink (Description): Likewise.
60440         * modules/unlink (Description): Likewise.
60442 2010-07-31  Bruno Haible  <bruno@clisp.org>
60444         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
60445         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
60446         option --enable/disable-c++ instead of --enable/disable-cxx.
60447         * NEWS: Mention the change.
60449 2010-07-31  Bruno Haible  <bruno@clisp.org>
60451         readlink, areadlink: Relax test a bit.
60452         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
60453         alternative to ENOTDIR.
60454         * tests/test-areadlink.h (test_areadlink): Likewise.
60455         Reported by Rainer Tammer.
60457 2010-07-31  Bruno Haible  <bruno@clisp.org>
60459         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
60460         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
60461         character, perform the search using U_STRCHR.
60462         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
60463         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
60464         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
60465         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
60466         Suggested by Paolo Bonzini.
60468 2010-07-31  Bruno Haible  <bruno@clisp.org>
60470         unistr/u*-strstr: Fix dependencies.
60471         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
60472         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
60473         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
60475 2010-07-31  Bruno Haible  <bruno@clisp.org>
60477         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
60478         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
60479         the beginning of the loop.
60480         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
60481         cases in 'switch' statement.
60483         unistr/u8-strchr: Fix several bugs.
60484         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
60485         the string. When not found, return NULL, not a pointer near the end.
60487         More tests for unistr/u8-strchr.
60488         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
60489         that the function does not read past the first occurrence of the byte
60490         being searched.
60491         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
60492         * tests/unistr/test-u16-strchr.c (main): New function.
60493         * tests/unistr/test-u32-strchr.c (main): New function.
60495 2010-07-31  Bruno Haible  <bruno@clisp.org>
60497         posix-modules: Ignore backup files of documentation files.
60498         * posix-modules: grep only through files named *.texi.
60500 2010-07-31  Bruno Haible  <bruno@clisp.org>
60502         symlinkat: Fix documentation.
60503         * doc/posix-functions/readlinkat.texi: Fix module name.
60505 2010-07-31  Bruno Haible  <bruno@clisp.org>
60507         fchownat: Replace also when chown has the trailing slash bug.
60508         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
60509         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
60510         introduced on 2010-04-10.
60511         Reported by Rainer Tammer.
60513 2010-07-31  Bruno Haible  <bruno@clisp.org>
60515         linkat: Work around AIX 7.1 bug.
60516         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
60517         whether linkat handles trailing slash correctly. If not, replace linkat
60518         and define LINKAT_TRAILING_SLASH_BUG.
60519         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
60520         check whether (fd1,file1) points to a directory if file1 or file2 ends
60521         in a slash. Code taken from lib/link.c.
60522         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
60523         Reported by Rainer Tammer.
60525 2010-07-31  Bruno Haible  <bruno@clisp.org>
60527         Correctly determine whether pow is available in libc on AIX 7 with xlc.
60528         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
60529         This disables an xlc optimization that was causing wrong test results.
60530         Reported by Rainer Tammer.
60532 2010-07-31  Bruno Haible  <bruno@clisp.org>
60534         iconv: Work around AIX 6.1..7.1 bug.
60535         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
60536         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
60537         cross-compiling, guess no on all versions of AIX.
60538         Reported by Rainer Tammer.
60540 2010-07-31  Bruno Haible  <bruno@clisp.org>
60542         readlink: Relax test a bit.
60543         * tests/test-readlink.h (test_readlink): Allow different errno value
60544         when readlink is called with a file name that ends in / and refers to
60545         a file.
60546         Suggested by Eric Blake.
60547         Reported by Rainer Tammer.
60549 2010-07-31  Bruno Haible  <bruno@clisp.org>
60551         copysign: Does not require -lm on glibc systems.
60552         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
60553         gl_COMMON_DOUBLE_MATHFUNC.
60554         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
60556 2010-07-31  Bruno Haible  <bruno@clisp.org>
60558         duplocale: Work around AIX 7.1 bug.
60559         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
60560         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
60561         * lib/duplocale.c (rpl_duplocale): Update comment.
60562         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
60563         Reported by Rainer Tammer.
60565 2010-07-30  Bruno Haible  <bruno@clisp.org>
60567         dirfd: Avoid link error on AIX 7.1.
60568         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
60569         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
60570         exist, set REPLACE_DIRFD.
60571         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
60572         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
60573         * doc/posix-functions/dirfd.texi: Update.
60574         Reported by Rainer Tammer.
60576 2010-07-30  Eric Blake  <eblake@redhat.com>
60578         strtod: next round of AIX fixes
60579         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
60580         exponent.
60581         * tests/test-strtod.c (main): Enhance tests.
60582         * doc/posix-functions/strtod.texi (strtod): Document next bug.
60583         Reported by Rainer Tammer.
60585         futimens: fix configure check
60586         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
60587         Reported by Bruno Haible.
60589 2010-07-30  Bruno Haible  <bruno@clisp.org>
60591         getline: Update regarding AIX.
60592         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
60593         Reported by Rainer Tammer.
60595 2010-07-30  Bruno Haible  <bruno@clisp.org>
60597         wcwidth: Drop replacement on AIX 7.
60598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
60599         AIX 7.
60600         Reported by Rainer Tammer.
60602 2010-07-30  Bruno Haible  <bruno@clisp.org>
60604         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
60605         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
60606         a 'char *'.
60607         Reported by Rainer Tammer.
60609 2010-07-30  Bruno Haible  <bruno@clisp.org>
60611         unlink: Update regarding AIX.
60612         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
60613         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
60614         Reported by Rainer Tammer.
60616 2010-07-30  Bruno Haible  <bruno@clisp.org>
60618         symlink: Update regarding AIX.
60619         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
60620         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
60621         Reported by Rainer Tammer.
60623 2010-07-30  Bruno Haible  <bruno@clisp.org>
60625         strndup: Update regarding AIX.
60626         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
60627         AIX 7.
60628         Reported by Rainer Tammer.
60630 2010-07-30  Bruno Haible  <bruno@clisp.org>
60632         stat: Update regarding AIX.
60633         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
60634         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
60635         Reported by Rainer Tammer.
60637 2010-07-30  Bruno Haible  <bruno@clisp.org>
60639         truncl: Fix autoconf test.
60640         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
60641         whether truncl works.
60642         Reported by Rainer Tammer.
60644 2010-07-30  Bruno Haible  <bruno@clisp.org>
60646         round: Update regarding AIX.
60647         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
60648         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
60649         Reported by Rainer Tammer.
60651 2010-07-30  Bruno Haible  <bruno@clisp.org>
60653         rename: Update regarding AIX.
60654         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
60655         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
60656         Reported by Rainer Tammer.
60658 2010-07-30  Bruno Haible  <bruno@clisp.org>
60660         printf.m4: Update regarding AIX.
60661         * m4/printf.m4: Update comments regarding AIX.
60662         Reported by Rainer Tammer.
60664 2010-07-30  Bruno Haible  <bruno@clisp.org>
60666         iconv: Update regarding AIX.
60667         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
60668         AIX 7.
60669         Reported by Rainer Tammer.
60671 2010-07-30  Bruno Haible  <bruno@clisp.org>
60673         getopt: Update regarding AIX.
60674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
60675         no on AIX.
60676         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
60677         Reported by Rainer Tammer.
60679 2010-07-30  Bruno Haible  <bruno@clisp.org>
60681         ldexpl; Update regarding AIX.
60682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
60683         on AIX 7.
60684         Reported by Rainer Tammer.
60686 2010-07-30  Bruno Haible  <bruno@clisp.org>
60688         frexpl: Update regarding AIX.
60689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
60690         on AIX 7.
60691         Reported by Rainer Tammer.
60693 2010-07-30  Bruno Haible  <bruno@clisp.org>
60695         open, fopen: Update regarding AIX.
60696         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
60697         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
60698         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
60699         * doc/posix-functions/fopen.texi: Likewise.
60700         Reported by Rainer Tammer.
60702 2010-07-30  Bruno Haible  <bruno@clisp.org>
60704         chown: Update doc regarding AIX.
60705         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
60706         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
60707         Reported by Rainer Tammer.
60709 2010-07-30  Eric Blake  <eblake@redhat.com>
60711         strtod: fix bug in replacement function on AIX
60712         * lib/strtod.c (strtod): Special case broken "0x" parse in
60713         underlying strtod.
60714         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
60715         * doc/posix-functions/strtod.texi (strtod): Likewise.
60716         Reported by Rainer Tammer.
60718 2010-07-30  Bruno Haible  <bruno@clisp.org>
60720         mbrlen: Fix cross-compilation guess for AIX.
60721         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
60722         guess. Leftover from 2008-12-22.
60724 2010-07-30  Bruno Haible  <bruno@clisp.org>
60726         mbrtowc: Fix cross-compilation guess for AIX.
60727         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
60728         guess. Leftover from 2008-12-21.
60730 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
60732         init.sh: work around trap limitation of some shells
60733         * tests/init.sh (setup_): Move exit trap outside of shell function.
60735 2010-07-29  Eric Blake  <eblake@redhat.com>
60737         strtod: aid debugging
60738         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
60739         understanding why strtod is rejected.
60741 2010-07-28  Bruno Haible  <bruno@clisp.org>
60743         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
60744         * lib/unistr/u8-chr.c: Include <string.h>.
60745         * tests/unistr/test-u8-chr.c: Likewise.
60746         * tests/unistr/test-u16-chr.c: Likewise.
60747         * tests/unistr/test-u32-chr.c: Likewise.
60748         * tests/unistr/test-u8-strchr.c: Likewise.
60749         * tests/unistr/test-u16-strchr.c: Likewise.
60750         * tests/unistr/test-u32-strchr.c: Likewise.
60751         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
60752         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
60753         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
60754         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
60756 2010-07-28  Bruno Haible  <bruno@clisp.org>
60758         Use spaces for indentation, not tabs.
60759         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60761 2010-07-27  Bruno Haible  <bruno@clisp.org>
60763         mbspcasecmp: Fix function specification.
60764         * lib/string.in.h (mbspcasecmp): Fix specification comment.
60765         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
60766         Reported by Eric Blake <eblake@redhat.com>.
60768 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
60770         timespec: use cast and not conditional, as truncation isn't possible
60771         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
60772         instead of a conditional.  Comment about the situation in more detail.
60773         This undoes most of the 2009-10-29 patch.
60775 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
60777         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
60778         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
60779         * lib/unistr/u8-strchr.c: Likewise.
60780         * modules/unistr/u8-chr: Depend on memchr.
60782         unistr/u*-strchr: add tests
60783         * modules/unistr/u8-strchr-tests: New file.
60784         * modules/unistr/u16-strchr-tests: New file.
60785         * modules/unistr/u32-strchr-tests: New file.
60786         * tests/unistr/test-strchr.h: New file.
60787         * tests/unistr/test-u8-strchr.c: New file.
60788         * tests/unistr/test-u16-strchr.c: New file.
60789         * tests/unistr/test-u32-strchr.c: New file.
60791         unistr/u*-chr: test multibyte sequences more
60792         * tests/unistr/test-chr.h: Do complete testing of the characters in the
60793         test vector.
60794         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
60795         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
60796         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
60798         unistr/u*-chr: test multibyte sequences
60799         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
60801         unistr/u*-chr: prepare for multibyte tests
60802         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
60803         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
60804         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
60805         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
60806         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
60807         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
60809 2010-07-18  Bruno Haible  <bruno@clisp.org>
60811         unistr/u8-strchr: Optimize non-ASCII argument case.
60812         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
60813         because the first byte often matches anyway.
60814         Reported by Pádraig Brady <P@draigbrady.com>.
60816 2010-07-15  Karl Berry  <karl@gnu.org>
60818         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
60820 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
60822         getcwd: on Solaris, work better if ancestors are inaccessible
60823         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
60824         buffer and size, try again with a large buffer.  This works better
60825         on Solaris, since its getcwd succeeds even if the path to the root
60826         is inaccessible, and this is helpful in common cases such as .zfs
60827         hidden directories.  Problem reported by J Chapman Flack in
60828         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
60829         Use system getcwd if it's declared, not merely if it's partly
60830         working; use the partly-working test only to avoid needless effort
60831         if the system getcwd fails.
60832         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
60833         comment that was already obsolete and is now even more obsolete.
60834         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
60835         now might call strdup.
60837 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
60839         pthread: Add enough so that coreutils/src/sort.c compiles.
60840         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
60841         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
60842         gnulib. Include <sched.h> and <time.h>, as per POSIX.
60843         Include <sys/types.h>, in case it defines pthread_t.
60844         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
60845         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
60846         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
60847         (pthread_rwlockattr_t, pthread_spinlock_t):
60848         New typedefs, if HAVE_PTHREAD_T is not defined.
60849         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
60850         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
60851         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
60852         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
60853         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
60854         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
60855         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
60856         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
60857         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
60858         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
60859         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
60860         New macros.
60861         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
60862         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
60863         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
60864         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
60865         (pthread_spin_unlock): New dummy functions.
60866         (pthread_create): Return EAGAIN; don't set errno.
60867         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
60868         require AC_C_INLINE.
60869         * modules/pthread (Depends-on): Add sched, time.
60870         (pthread.h): Use AM_V_GEN.
60872 2010-07-13  Bruno Haible  <bruno@clisp.org>
60874         striconveh: Don't malloc memory if the result buffer is sufficient.
60875         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
60876         buffer if its size is sufficient.
60877         Reported by Ludovic Courtès <ludo@gnu.org>.
60879 2010-07-13  Bruno Haible  <bruno@clisp.org>
60881         strtod: Add safety check.
60882         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
60884 2010-07-12  Bruno Haible  <bruno@clisp.org>
60886         Unify tests that set gl_cv_func_ldexpl_no_libm.
60887         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
60888         gl_FUNC_LDEXPL.
60889         (gl_FUNC_LDEXPL): Invoke it.
60890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60892 2010-07-12  Bruno Haible  <bruno@clisp.org>
60894         Unify tests that set gl_cv_func_ldexp_no_libm.
60895         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
60896         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
60897         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
60898         (configure.ac): Simply invoke gl_FUNC_LDEXP.
60899         * modules/strtod (Files): Add m4/ldexp.m4.
60901 2010-07-12  Bruno Haible  <bruno@clisp.org>
60903         Unify tests that set gl_cv_func_frexpl_no_libm.
60904         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
60905         gl_FUNC_FREXPL_NO_LIBM.
60906         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
60907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60909 2010-07-12  Bruno Haible  <bruno@clisp.org>
60911         Unify tests that set gl_cv_func_frexp_no_libm.
60912         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
60913         gl_FUNC_FREXP_NO_LIBM.
60914         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
60915         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
60917 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
60919         memcoll: clarify sizes versus lengths, document better, and tweak perf
60920         * lib/memcoll.c (strcoll_loop, memcoll0):
60921         Improve quality of descriptive comments.  Name variables
60922         consistently as to whether they are lengths (which do not include
60923         terminating null) versus sizes (which do).
60924         * lib/xmemcoll.c (xmemcoll0): Likewise.
60925         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
60926         returned when s1size == 0; this is easier to compile and saves
60927         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
60929 2010-07-12  Bruno Haible  <bruno@clisp.org>
60931         Tests for module '_Exit'.
60932         * modules/_Exit-tests: New file.
60933         * tests/test-_Exit.sh: New file.
60934         * tests/test-_Exit.c: New file.
60936         New module '_Exit'.
60937         * lib/stdlib.in.h (__attribute__): New macro.
60938         (_Exit): New declaration.
60939         * lib/_Exit.c: New file.
60940         * m4/_Exit.m4: New file.
60941         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
60942         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
60943         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
60944         * modules/_Exit: New file.
60945         * tests/test-stdlib-c++.cc (_Exit): Check signature.
60946         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
60948 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
60950         strtod: make it more-accurate typically, and don't require libm
60951         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
60952         Include limits.h.  Don't include string.h.
60953         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
60954         (locale_isspace): New function, so that no casts are needed to
60955         check whether *s is a space.
60956         (ldexp): Provide an unused dummy if not available.
60957         (scale_radix_exp, parse_number, underlying_strtod): New functions.
60958         (strtod): Use them.  This implementation prefers to use the
60959         underlying strtod if available, falling back on our own code
60960         only to fix known bugs.  This is more likely to produce an
60961         accurate result.  Also, it avoids the use of libm functions.
60962         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
60963         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
60964         was absent, but it caused a test failure with coreutils.
60965         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
60966         with libm.
60967         * modules/strtod (Makefile.am, Link): libm is no longer needed.
60968         * modules/strtod-tests (Makefile.am): Likewise.
60970 2010-07-11  Pádraig Brady  <P@draigBrady.com>
60971             Bruno Haible  <bruno@clisp.org>
60973         unistr/u8-strchr: Optimize ASCII argument case.
60974         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
60976 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60978         (x)memcoll: minor tweaks
60979         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
60980         is after the type that it qualifies.
60981         (memcoll0): Likewise.
60982         * lib/memcoll.h (memcoll0): Likewise.
60983         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
60984         * lib/xmemcoll.h (xmemcoll0): Likewise.
60985         * lib/memcoll.c (memcoll0): Correct the comment.  This function
60986         differs from memcoll in that the NUL byte is part of the argument.
60987         Omit the abort-checks, as performance is a real issue here.  Plus,
60988         the checks were wrong anyway (an off-by-one error).  Omit local
60989         variable 'diff', as it's a bit clearer that way.
60990         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
60991         no longer needed.
60993 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
60995         (x)memcoll: speedup when input is known to be NUL delimited
60996         * lib/memcoll.c: Include stdlib.
60997         (memcoll0): New function.
60998         (strcoll_loop): New function, refactored for use in both memcoll
60999         and memcoll0.
61000         * lib/memcoll.h (memcoll0): Add prototype.
61001         * lib/xmemcoll.c (xmemcoll0): New function.
61002         (collate_error): New function, refactored for use in both xmemcoll
61003         and xmemcoll0.
61004         * lib/xmemcoll.h (xmemcoll0): Add prototype.
61005         * m4/memcoll.m4: add inline invocation.
61007 2010-07-06  Pádraig Brady  <P@draigBrady.com>
61009         * build-aux/bootstrap: Remove any local translations
61010         from the translation project synchronization directory,
61011         so that local only translations are not distributed.
61013 2010-07-04  Bruno Haible  <bruno@clisp.org>
61015         fsusage: Clarify which code applies to which platforms.
61016         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
61017         platform.
61018         * lib/fsusage.c (get_fs_usage): Likewise.
61020 2010-07-04  Bruno Haible  <bruno@clisp.org>
61022         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
61023         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
61024         Reported by Martin Lambers <marlam@marlam.de>.
61026 2010-07-04  Jim Meyering  <meyering@redhat.com>
61028         hash: once again explicitly disallow insertion of NULL
61029         * lib/hash.c (hash_insert0): Reinstate just-removed test:
61030         inserting a NULL pointer cannot work with these functions.
61031         Add a comment with details.
61032         This reverts part of the 2010-07-01 commit, 5bef1a35
61033         "hash: extend module to deal with non-pointer keys".
61035 2010-07-01  Bruno Haible  <bruno@clisp.org>
61037         stdbool: Update doc.
61038         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
61039         Info from Christian Weisgerber <naddy@mips.inka.de>.
61041 2010-07-01  Jim Meyering  <meyering@redhat.com>
61043         hash: extend module to deal with non-pointer keys
61044         * lib/hash.c (hash_insert0): New interface, much like hash_insert
61045         but that allows insertion of non-pointer entries.
61046         Do not disallow an ENTRY value of NULL.
61047         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
61048         * lib/hash.h (hash_insert0): Declare.
61050 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
61052         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
61053         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
61054         not present (i.e. with autoconf 2.59 and when using gettextize, not
61055         gnulib), require AC_GNU_SOURCE instead.
61057 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
61059         idpriv-drop: Fix tests.
61060         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
61061         not to the test-idpriv-droptemp program.
61063 2010-06-29  Bruno Haible  <bruno@clisp.org>
61065         string: Fix syntax error with g++ 2.96.
61066         * lib/string.in.h (__pure__): Remove definition.
61067         (_GL_ATTRIBUTE_PURE): New macro.
61068         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
61069         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
61070         Reported by Christian Weisgerber <naddy@mips.inka.de>.
61072 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
61074         unitypes: Fix bug introduced on 2010-05-18.
61075         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
61077 2010-06-22  Eric Blake  <eblake@redhat.com>
61079         memmem: slight optimization
61080         * lib/str-two-way.h (critical_factorization): Update comments.
61081         Reduce work during factorization phase.
61082         Reported by Carlos Bueno <carlos@bueno.org>.
61084 2010-06-21  Bruno Haible  <bruno@clisp.org>
61086         Fix HAVE_CALLOC_POSIX misnomer.
61087         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
61088         !HAVE_CALLOC_POSIX.
61089         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
61090         HAVE_CALLOC_POSIX.
61091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
61092         instead of HAVE_CALLOC_POSIX.
61093         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
61094         HAVE_CALLOC_POSIX.
61096         Use modern idiom for calloc() replacement.
61097         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
61098         AC_FUNC_CALLOC.
61099         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
61100         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
61101         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
61102         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
61103         (gl_REPLACE_CALLOC): New macro.
61105 2010-06-21  Bruno Haible  <bruno@clisp.org>
61107         Fix HAVE_REALLOC_POSIX misnomer.
61108         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
61109         !HAVE_REALLOC_POSIX.
61110         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
61111         HAVE_REALLOC_POSIX.
61112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
61113         instead of HAVE_REALLOC_POSIX.
61114         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
61115         HAVE_REALLOC_POSIX.
61117         Use modern idiom for realloc() replacement.
61118         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
61119         AC_FUNC_REALLOC.
61120         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
61121         Autoconf's AC_FUNC_REALLOC.
61122         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
61123         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
61124         (gl_REPLACE_REALLOC): New macro.
61125         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
61127 2010-06-21  Bruno Haible  <bruno@clisp.org>
61129         Fix HAVE_MALLOC_POSIX misnomer.
61130         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
61131         !HAVE_MALLOC_POSIX.
61132         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
61133         HAVE_MALLOC_POSIX.
61134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
61135         instead of HAVE_MALLOC_POSIX.
61136         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
61137         HAVE_MALLOC_POSIX.
61139         Use modern idiom for malloc() replacement.
61140         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
61141         AC_FUNC_MALLOC.
61142         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
61143         Autoconf's AC_FUNC_MALLOC.
61144         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
61145         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
61146         (gl_REPLACE_MALLOC): New macro.
61147         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
61149 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
61151         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
61152         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
61153         This macro takes 3 arguments, not 4.
61155 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
61157         ipv6: fix detection under mingw
61158         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
61159         in6_addr.
61161 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
61163         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
61164         that strtod() works when cross-compiling to a glibc version known
61165         to work.
61167 2010-06-15  Bruno Haible  <bruno@clisp.org>
61169         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
61171 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
61173         select: Correct timeout.
61174         * lib/select.c (rpl_select): Compute wait_timeout correctly.
61176 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61178         git-version-gen: init shell var to avoid env var influence
61179         * build-aux/git-version-gen (v): Init shell var to empty.
61181 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
61183         priv-set: Don't assume that priv.h exists merely because getppriv does.
61184         See Jan Andersen's bug report about AIX 5L in
61185         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
61186         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
61187         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
61188         * lib/priv-set.h: Likewise.
61189         * tests/test-priv-set.c: Likewise.
61191 2010-06-13  Bruno Haible  <bruno@clisp.org>
61193         relocatable: Make it easier to test whether to install wrappers.
61194         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
61195         RELOCATABLE_VIA_WRAPPER.
61197 2010-06-13  Bruno Haible  <bruno@clisp.org>
61199         gnulib-tool: Display specified modules and dependencies differently.
61200         * gnulib-tool (func_show_module_list): New function.
61201         (func_import, func_create_testdir): Invoke it.
61202         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61204 2010-06-13  Bruno Haible  <bruno@clisp.org>
61206         gnulib-tool: Align code of func_import and func_create_testdir.
61207         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
61208         specified_modules.
61210 2010-06-12  Jim Meyering  <meyering@redhat.com>
61212         test-inttostr: avoid spurious failure on Solaris 9
61213         * tests/test-inttostr.c (main): Skip the test when snprintf fails
61214         to accept "%ju".  Reported by Bruno Haible.
61216 2010-06-11  Jim Meyering  <meyering@redhat.com>
61218         test-sys_socket: mark variables as used more readably
61219         * tests/test-sys_socket.c (main): Mark otherwise unused variables
61220         as "used" explicitly via (void) statement casts.  This is more
61221         readable than using them in an artificial return expression.
61222         Suggestion from Bruno Haible.
61224 2010-06-11  Bruno Haible  <bruno@clisp.org>
61226         Avoid some more warnings from "gcc -Wwrite-strings".
61227         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
61228         to 'const char *'.
61229         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
61230         * tests/test-c-strcasestr.c (main): Likewise.
61231         * tests/test-mbscasestr1.c (main): Likewise.
61232         * tests/test-mbscasestr2.c (main): Likewise.
61233         * tests/test-memmem.c (main): Likewise.
61234         * tests/test-strstr.c (main): Likewise.
61235         * tests/test-strcasestr.c (main): Likewise.
61237 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61239         init.sh: change framework_failure_ to fail with status 99, not 1
61240         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
61241         automake's parallel-tests rule that this is an unexpected failure,
61242         even if the test is listed in XFAIL_TESTS.
61244 2010-06-11  Jim Meyering  <meyering@redhat.com>
61246         test-inttostr: avoid warnings about 4-6KB literal strings
61247         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
61248         Include "macros.h", for its definition of ASSERT.
61249         (CK): s/assert/ASSERT/
61250         * modules/inttostr-tests (Files): Add macros.h.
61252         init.sh: don't use $ME_ or skip_ before they are defined
61253         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
61254         their first uses.  Also hoist their companions: warn_, fail_,
61255         framework_failure_, $stderr_fileno.  Prompted by a patch from
61256         Stefano Lattarini.
61258         test-sys_socket: avoid set-but-not-used warnings from gcc
61259         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
61260         avoid warning about set-but-not-used variables.
61262         test-xvasprintf: avoid 'const' discard warnings
61263         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
61264         "const" when assigning from literal strings.
61265         (test_xasprintf): Add "void" in function argument list to placate
61266         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
61268         tests: avoid compilation warnings in argmatch and exclude tests...
61269         in packages that define ARGMATCH_DIE_DECL, like coreutils.
61270         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
61271         Since it always exits, declare with the "noreturn" attribute.
61272         * tests/test-argmatch.c: Likewise.
61274         tests: avoid 'const' discard warnings in mbsstr tests
61275         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
61276         * tests/test-mbsstr2.c (main): Likewise.
61278         test-verify: avoid warning from gcc's -Wmissing-declarations
61279         * tests/test-verify.c (function): Declare to be static.
61281         test-inttostr.c: include <string.h> for use of strcmp
61282         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
61284         test-linkat: avoid failed assertion on "other" architectures
61285         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
61286         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
61287         sparc: https://bugs.launchpad.net/bugs/591968
61289 2010-06-11  Jim Meyering  <meyering@redhat.com>
61291         printf.m4: avoid autoconf's "Expanded Before Required" warning
61292         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
61293         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
61294         autoconf warning.
61296 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
61298         Replacement header templates are now named with ".in", not "_".
61299         * doc/gnulib-intro.texi: Correct.
61301 2010-06-10  Jim Meyering  <meyering@redhat.com>
61303         inttostr-tests: depend on snprintf, not snprintf-posix
61304         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
61305         snprintf-posix, to avoid this aclocal failure:
61306           missing file gnulib-tests/vasnprintf.c
61307           configure.ac:45: error: expected source file, required through \
61308           AC_LIBSOURCES, not found
61310 2010-06-10  Jim Meyering  <meyering@redhat.com>
61312         inttostr: add a new function, inttostr, and tests
61313         The namesake function was not available.  The existence of the
61314         template file, inttostr.c makes its addition nontrivial.
61315         * lib/anytostr.c: Rename from inttostr.c.
61316         (anytostr): Rename from inttostr.
61317         * lib/inttostr.c: New file.
61318         * modules/inttostr (Files): Add anytostr.c.
61319         (Makefile.am): Set lib_SOURCES instead of ...
61320         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
61321         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
61322         * lib/offtostr.c: Likewise.
61323         * lib/uinttostr.c: Likewise.
61324         * lib/umaxtostr.c: Likewise.
61325         * modules/inttostr-tests: New file.
61326         * tests/test-inttostr.c: New file.  Test these functions.
61328 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
61329             Bruno Haible  <bruno@clisp.org>
61331         Add "Extending Gnulib" chapter to manual.
61332         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
61333         chapter.
61334         (Extending Gnulib): New chapter.
61335         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
61336         chapter.
61338 2010-06-09  Bruno Haible  <bruno@clisp.org>
61340         Avoid relocwrapper link errors due to gnulib replacement functions.
61341         * lib/areadlink.c: Use the system's malloc, realloc functions.
61342         (areadlink): Set errno to ENOMEM explicitly.
61343         * modules/areadlink (Depends-on): Remove malloc-posix.
61344         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61346 2010-06-09  Bruno Haible  <bruno@clisp.org>
61348         Avoid relocwrapper link errors due to gnulib replacement functions.
61349         * lib/canonicalize-lgpl.c: Use the system's malloc function.
61350         * lib/malloca.c: Likewise.
61351         * lib/relocatable.c: Likewise.
61352         * lib/progreloc.c: Use the system's malloc, sprintf functions.
61353         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
61354         * lib/setenv.c: Use the system's malloc, realloc functions.
61355         * lib/strerror.c: Use the system's sprintf function.
61356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61358 2010-06-04  Bruno Haible  <bruno@clisp.org>
61360         Prefer documented low-level autoconf macro names.
61361         * m4/lib-link.m4: Use m4_translit instead of translit.
61362         * m4/environ.m4: Likewise.
61363         * m4/mathfunc.m4: Likewise.
61364         * m4/onceonly.m4: Likewise.
61365         * m4/stdint.m4: Likewise.
61366         Suggested by Eric Blake.
61368 2010-06-04  Martin Lambers  <marlam@marlam.de>
61369             Bruno Haible  <bruno@clisp.org>
61371         havelib: Allow library names with '+' characters.
61372         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61373         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
61375 2010-06-09  Bruno Haible  <bruno@clisp.org>
61377         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
61378         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
61379         realloc failed.
61381 2010-06-08  Peter Simons  <simons@cryp.to>
61383         maint.mk: make the news-check rule more configurable
61384         * top/maint.mk (news-check-lines-spec): New variable.
61385         (news-check): Use "sed -n 1,10p" in place of "head".
61387 2010-06-07  Jim Meyering  <meyering@redhat.com>
61389         do-release-commit-and-tag: fix typo in --help
61390         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
61392         regex: avoid new dead-code warning with gcc-4.6.0
61393         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
61394         if-block containing a while-loop.  It's been unused for at least
61395         5 years.
61397 2010-06-05  Bruno Haible  <bruno@clisp.org>
61399         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
61400         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
61402 2010-06-04  Bruno Haible  <bruno@clisp.org>
61404         Update to GNU gettext 0.18.1.
61405         * modules/gettext (configure.ac): Require gettext infrastructure from
61406         version 0.18.1.
61408 2010-06-03  Bruno Haible  <bruno@clisp.org>
61410         Don't use AC_LIBOBJ with file names in subdirectories.
61411         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
61412         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
61413         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
61414         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
61415         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
61416         gl_LIBUNISTRING_LIBSOURCE.
61417         (Makefile.am): Augment lib_SOURCES here, conditionally.
61418         * NEWS: Drop requirement for Automake option 'subdir-objects'.
61420 2010-06-03  Bruno Haible  <bruno@clisp.org>
61422         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
61423         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
61424         expansion does not end with a newline.
61425         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
61426         unnecessary newline.
61428 2010-06-03  Bruno Haible  <bruno@clisp.org>
61430         Reduce dependencies.
61431         * tests/test-quotearg.h: New file, extracted from
61432         tests/test-quotearg.c.
61433         * tests/test-quotearg-simple.c: New file, extracted from
61434         tests/test-quotearg.c.
61435         * tests/test-quotearg.c: Don't include <ctype.h>.
61436         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
61437         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
61438         use_quote_double_quotes, use_quotearg_colon): Moved to
61439         tests/test-quotearg.h.
61440         (results_g, flag_results, custom_quotes, custom_results): Moved
61441         to tests/test-quotearg-simple.c.
61442         (main): Moved the part that does not depend on gettext to
61443         tests/test-quotearg-simple.c. Return 77 if the test cannot be
61444         performed.
61445         * modules/quotearg-simple: New file.
61446         * modules/quotearg-simple-tests: New file.
61447         * modules/quotearg (Depends-on): Add quotearg-simple.
61448         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
61449         (Files): Add tests/test-quotearg.h.
61450         Reported by Paolo Bonzini.
61452 2010-06-03  Bruno Haible  <bruno@clisp.org>
61454         Reduce dependencies.
61455         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
61457 2010-06-03  Bruno Haible  <bruno@clisp.org>
61459         time: Undefine more broken macros.
61460         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
61461         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
61462         Reported by Eric Blake.
61464 2010-06-03  Bruno Haible  <bruno@clisp.org>
61466         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
61467         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
61468         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
61469         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
61470         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
61471         Reported by Ludovic Courtès <ludo@gnu.org>.
61473 2010-06-02  Eric Blake  <eblake@redhat.com>
61475         time: work with mingw + pthreads-win32 library
61476         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
61477         if timespec is defined only in pthread.h.
61478         * modules/time (Makefile.am): Substitute it.
61479         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
61480         <pthread.h>, when needed.
61481         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
61482         from the library.
61484 2010-05-31  Bruno Haible  <bruno@clisp.org>
61486         Avoid expanding two macros in the wrong order.
61487         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
61488         gl_LIBUNISTRING if it is defined.
61489         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
61490         autoconf >= 2.64.
61491         Reported by Ludovic Courtès <ludo@gnu.org>.
61493 2010-05-27  Jim Meyering  <meyering@redhat.com>
61495         maint.mk: also prohibit "#undef" of always-defined symbols
61496         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
61497         Allow more than one space before the symbol name.
61498         (sc_prohibit_always-defined_macros): Use grep's -E, now that
61499         the regexp uses alternation.
61501 2010-05-26  Eric Blake  <eblake@redhat.com>
61503         maint.mk: avoid echo -e
61504         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
61505         Convert all uses of echo -* to printf.
61506         Reported by Matthias Bolte.
61508 2010-05-25  Bruno Haible  <bruno@clisp.org>
61510         Update to GNU gettext 0.18, part 2.
61511         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
61512         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
61514 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61516         Add missing include in test-pwrite.c.
61517         * tests/test-pwrite.c: Include string.h, for strcmp.
61519 2010-05-24  Bruno Haible  <bruno@clisp.org>
61521         * NEWS: Mention requirement for Automake option 'subdir-objects'.
61523 2010-05-24  Bruno Haible  <bruno@clisp.org>
61525         Don't use conversion with transliteration in u{8,16,32}_strcoll.
61526         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
61527         iconveh_error argument.
61528         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
61529         U_STRCONV_TO_LOCALE.
61530         * lib/unistr/u16-strcoll.c: Likewise.
61531         * lib/unistr/u32-strcoll.c: Likewise.
61532         * modules/unistr/u8-strcoll (Depends-on): Add
61533         uniconv/u8-strconv-to-enc, localcharset. Remove
61534         uniconv/u8-strconv-to-locale.
61535         (configure.ac): Bump version number.
61536         * modules/unistr/u16-strcoll (Depends-on): Add
61537         uniconv/u16-strconv-to-enc, localcharset. Remove
61538         uniconv/u16-strconv-to-locale.
61539         (configure.ac): Bump version number.
61540         * modules/unistr/u32-strcoll (Depends-on): Add
61541         uniconv/u32-strconv-to-enc, localcharset. Remove
61542         uniconv/u32-strconv-to-locale.
61543         (configure.ac): Bump version number.
61545 2010-05-24  Bruno Haible  <bruno@clisp.org>
61547         Avoid a test failure on NetBSD 5.0.
61548         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
61549         an iconv() bug.
61551 2010-05-24  Bruno Haible  <bruno@clisp.org>
61553         Adjust #include directive style.
61554         * modules/regex (Includes): Recommend to write <regex.h>.
61556 2010-05-24  Bruno Haible  <bruno@clisp.org>
61558         regex: Don't require alloca.
61559         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
61560         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
61561         only inside if (0).
61563 2010-05-23  Jim Meyering  <meyering@redhat.com>
61565         test-renameat.c: include <sys/stat.h>
61566         * tests/test-renameat.c: Include <sys/stat.h>; required for
61567         definition of S_IS* macros.
61569 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
61571         Update maintainer documentation for 'relocatable-prog' module.
61572         * doc/relocatable-maint.texi: Update.
61573         Comments by Bruno Haible.
61575 2010-05-23  Bruno Haible  <bruno@clisp.org>
61577         git-merge-changelog: Enable --split-merged-entry by default.
61578         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
61579         (usage): Don't mention this option any more.
61580         Reported by Ralf Wildenhues.
61582 2010-05-23  Jim Meyering  <meyering@redhat.com>
61584         test-pwrite: do not leave behind a test file named "out"
61585         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
61586         The trivial-looking use of init.sh is really necessary.
61587         It ensures that the temporary file, "out", is created in
61588         a temporary directory, and removed upon termination.
61589         * tests/test-pwrite.sh: Re-add file.
61590         * modules/pwrite-tests: Reference it.
61592 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61594         Fix output redirection buglet in init.sh.
61595         * tests/init.sh: Fix redirection of stderr.
61597 2010-05-20  Simon Josefsson  <simon@josefsson.org>
61599         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
61601 2010-05-17  Simon Josefsson  <simon@josefsson.org>
61603         * modules/valgrind-tests: New file.
61604         * m4/valgrind-tests.m4: New file.
61605         * doc/valgrind-tests.texi: New file.
61606         * doc/gnulib.texi (Running self-tests under valgrind): New
61607         section.
61609 2010-05-19  Bruno Haible  <bruno@clisp.org>
61611         Clean up dead code in recent commit.
61612         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
61613         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
61614         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
61615         Suggested by Paolo Bonzini.
61617 2010-05-19  Bruno Haible  <bruno@clisp.org>
61619         Avoid valgrind error reports from libunistring.
61620         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
61621         * modules/libunistring (Files): Add it.
61622         * modules/libunistring-optional (Files): Likewise.
61624 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
61625             Bruno Haible  <bruno@clisp.org>
61627         New module 'libunistring-optional'.
61628         * modules/libunistring-optional: New file.
61629         * m4/libunistring-base.m4: New file.
61630         * m4/libunistring-optional.m4: New file.
61631         * lib/unicase.in.h: Renamed from lib/unicase.h.
61632         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
61633         * lib/unictype.in.h: Renamed from lib/unictype.h.
61634         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
61635         * lib/uniname.in.h: Renamed from lib/uniname.h.
61636         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
61637         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
61638         * lib/unistr.in.h: Renamed from lib/unistr.h.
61639         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
61640         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
61641         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
61642         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
61643         gl_LIBUNISTRING. If the library was found, determine the installed
61644         version and set LIBUNISTRING_VERSION.
61645         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
61646         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
61647         handle a configuration option --with-included-libunistring.
61648         * modules/libunistring (Files): Add m4/absolute-header.m4.
61649         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
61650         Add m4/libunistring-base.m4.
61651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61652         (Makefile.am): Build unicase.h from unicase.in.h.
61653         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
61654         Add m4/libunistring-base.m4.
61655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61656         (Makefile.am): Build uniconv.h from uniconv.in.h.
61657         * modules/unictype/base (Files): Use unictype.in.h instead of
61658         unictype.h. Add m4/libunistring-base.m4.
61659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61660         (Makefile.am): Build unictype.h from unictype.in.h.
61661         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
61662         Add m4/libunistring-base.m4.
61663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61664         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
61665         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
61666         Add m4/libunistring-base.m4.
61667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61668         (Makefile.am): Build uniname.h from uniname.in.h.
61669         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
61670         Add m4/libunistring-base.m4.
61671         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61672         (Makefile.am): Build uninorm.h from uninorm.in.h.
61673         * modules/unistdio/base (Files): Use unistdio.in.h instead of
61674         unistdio.h. Add m4/libunistring-base.m4.
61675         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61676         (Makefile.am): Build unistdio.h from unistdio.in.h.
61677         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
61678         Add m4/libunistring-base.m4.
61679         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61680         (Makefile.am): Build unistr.h from unistr.in.h.
61681         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
61682         Add m4/libunistring-base.m4.
61683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61684         (Makefile.am): Build unitypes.h from unitypes.in.h.
61685         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
61686         Add m4/libunistring-base.m4.
61687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61688         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
61689         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
61690         uniwidth.h. Add m4/libunistring-base.m4.
61691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61692         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
61693         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
61694         instead of augmenting lib_SOURCES.
61695         * modules/unicase/empty-suffix-context: Likewise.
61696         * modules/unicase/locale-language: Likewise.
61697         * modules/unicase/tolower: Likewise.
61698         * modules/unicase/totitle: Likewise.
61699         * modules/unicase/toupper: Likewise.
61700         * modules/unicase/u8-casecmp: Likewise.
61701         * modules/unicase/u8-casecoll: Likewise.
61702         * modules/unicase/u8-casefold: Likewise.
61703         * modules/unicase/u8-casexfrm: Likewise.
61704         * modules/unicase/u8-ct-casefold: Likewise.
61705         * modules/unicase/u8-ct-tolower: Likewise.
61706         * modules/unicase/u8-ct-totitle: Likewise.
61707         * modules/unicase/u8-ct-toupper: Likewise.
61708         * modules/unicase/u8-is-cased: Likewise.
61709         * modules/unicase/u8-is-casefolded: Likewise.
61710         * modules/unicase/u8-is-lowercase: Likewise.
61711         * modules/unicase/u8-is-titlecase: Likewise.
61712         * modules/unicase/u8-is-uppercase: Likewise.
61713         * modules/unicase/u8-prefix-context: Likewise.
61714         * modules/unicase/u8-suffix-context: Likewise.
61715         * modules/unicase/u8-tolower: Likewise.
61716         * modules/unicase/u8-totitle: Likewise.
61717         * modules/unicase/u8-toupper: Likewise.
61718         * modules/unicase/u16-casecmp: Likewise.
61719         * modules/unicase/u16-casecoll: Likewise.
61720         * modules/unicase/u16-casefold: Likewise.
61721         * modules/unicase/u16-casexfrm: Likewise.
61722         * modules/unicase/u16-ct-casefold: Likewise.
61723         * modules/unicase/u16-ct-tolower: Likewise.
61724         * modules/unicase/u16-ct-totitle: Likewise.
61725         * modules/unicase/u16-ct-toupper: Likewise.
61726         * modules/unicase/u16-is-cased: Likewise.
61727         * modules/unicase/u16-is-casefolded: Likewise.
61728         * modules/unicase/u16-is-lowercase: Likewise.
61729         * modules/unicase/u16-is-titlecase: Likewise.
61730         * modules/unicase/u16-is-uppercase: Likewise.
61731         * modules/unicase/u16-prefix-context: Likewise.
61732         * modules/unicase/u16-suffix-context: Likewise.
61733         * modules/unicase/u16-tolower: Likewise.
61734         * modules/unicase/u16-totitle: Likewise.
61735         * modules/unicase/u16-toupper: Likewise.
61736         * modules/unicase/u32-casecmp: Likewise.
61737         * modules/unicase/u32-casecoll: Likewise.
61738         * modules/unicase/u32-casefold: Likewise.
61739         * modules/unicase/u32-casexfrm: Likewise.
61740         * modules/unicase/u32-ct-casefold: Likewise.
61741         * modules/unicase/u32-ct-tolower: Likewise.
61742         * modules/unicase/u32-ct-totitle: Likewise.
61743         * modules/unicase/u32-ct-toupper: Likewise.
61744         * modules/unicase/u32-is-cased: Likewise.
61745         * modules/unicase/u32-is-casefolded: Likewise.
61746         * modules/unicase/u32-is-lowercase: Likewise.
61747         * modules/unicase/u32-is-titlecase: Likewise.
61748         * modules/unicase/u32-is-uppercase: Likewise.
61749         * modules/unicase/u32-prefix-context: Likewise.
61750         * modules/unicase/u32-suffix-context: Likewise.
61751         * modules/unicase/u32-tolower: Likewise.
61752         * modules/unicase/u32-totitle: Likewise.
61753         * modules/unicase/u32-toupper: Likewise.
61754         * modules/unicase/ulc-casecmp: Likewise.
61755         * modules/unicase/ulc-casecoll: Likewise.
61756         * modules/unicase/ulc-casexfrm: Likewise.
61757         * modules/uniconv/u8-conv-from-enc: Likewise.
61758         * modules/uniconv/u8-conv-to-enc: Likewise.
61759         * modules/uniconv/u8-strconv-from-enc: Likewise.
61760         * modules/uniconv/u8-strconv-from-locale: Likewise.
61761         * modules/uniconv/u8-strconv-to-enc: Likewise.
61762         * modules/uniconv/u8-strconv-to-locale: Likewise.
61763         * modules/uniconv/u16-conv-from-enc: Likewise.
61764         * modules/uniconv/u16-conv-to-enc: Likewise.
61765         * modules/uniconv/u16-strconv-from-enc: Likewise.
61766         * modules/uniconv/u16-strconv-from-locale: Likewise.
61767         * modules/uniconv/u16-strconv-to-enc: Likewise.
61768         * modules/uniconv/u16-strconv-to-locale: Likewise.
61769         * modules/uniconv/u32-conv-from-enc: Likewise.
61770         * modules/uniconv/u32-conv-to-enc: Likewise.
61771         * modules/uniconv/u32-strconv-from-enc: Likewise.
61772         * modules/uniconv/u32-strconv-from-locale: Likewise.
61773         * modules/uniconv/u32-strconv-to-enc: Likewise.
61774         * modules/uniconv/u32-strconv-to-locale: Likewise.
61775         * modules/unictype/bidicategory-byname: Likewise.
61776         * modules/unictype/bidicategory-name: Likewise.
61777         * modules/unictype/bidicategory-of: Likewise.
61778         * modules/unictype/bidicategory-test: Likewise.
61779         * modules/unictype/block-list: Likewise.
61780         * modules/unictype/block-test: Likewise.
61781         * modules/unictype/category-C: Likewise.
61782         * modules/unictype/category-Cc: Likewise.
61783         * modules/unictype/category-Cf: Likewise.
61784         * modules/unictype/category-Cn: Likewise.
61785         * modules/unictype/category-Co: Likewise.
61786         * modules/unictype/category-Cs: Likewise.
61787         * modules/unictype/category-L: Likewise.
61788         * modules/unictype/category-Ll: Likewise.
61789         * modules/unictype/category-Lm: Likewise.
61790         * modules/unictype/category-Lo: Likewise.
61791         * modules/unictype/category-Lt: Likewise.
61792         * modules/unictype/category-Lu: Likewise.
61793         * modules/unictype/category-M: Likewise.
61794         * modules/unictype/category-Mc: Likewise.
61795         * modules/unictype/category-Me: Likewise.
61796         * modules/unictype/category-Mn: Likewise.
61797         * modules/unictype/category-N: Likewise.
61798         * modules/unictype/category-Nd: Likewise.
61799         * modules/unictype/category-Nl: Likewise.
61800         * modules/unictype/category-No: Likewise.
61801         * modules/unictype/category-P: Likewise.
61802         * modules/unictype/category-Pc: Likewise.
61803         * modules/unictype/category-Pd: Likewise.
61804         * modules/unictype/category-Pe: Likewise.
61805         * modules/unictype/category-Pf: Likewise.
61806         * modules/unictype/category-Pi: Likewise.
61807         * modules/unictype/category-Po: Likewise.
61808         * modules/unictype/category-Ps: Likewise.
61809         * modules/unictype/category-S: Likewise.
61810         * modules/unictype/category-Sc: Likewise.
61811         * modules/unictype/category-Sk: Likewise.
61812         * modules/unictype/category-Sm: Likewise.
61813         * modules/unictype/category-So: Likewise.
61814         * modules/unictype/category-Z: Likewise.
61815         * modules/unictype/category-Zl: Likewise.
61816         * modules/unictype/category-Zp: Likewise.
61817         * modules/unictype/category-Zs: Likewise.
61818         * modules/unictype/category-and: Likewise.
61819         * modules/unictype/category-and-not: Likewise.
61820         * modules/unictype/category-byname: Likewise.
61821         * modules/unictype/category-name: Likewise.
61822         * modules/unictype/category-none: Likewise.
61823         * modules/unictype/category-of: Likewise.
61824         * modules/unictype/category-or: Likewise.
61825         * modules/unictype/category-test: Likewise.
61826         * modules/unictype/combining-class: Likewise.
61827         * modules/unictype/ctype-alnum: Likewise.
61828         * modules/unictype/ctype-alpha: Likewise.
61829         * modules/unictype/ctype-blank: Likewise.
61830         * modules/unictype/ctype-cntrl: Likewise.
61831         * modules/unictype/ctype-digit: Likewise.
61832         * modules/unictype/ctype-graph: Likewise.
61833         * modules/unictype/ctype-lower: Likewise.
61834         * modules/unictype/ctype-print: Likewise.
61835         * modules/unictype/ctype-punct: Likewise.
61836         * modules/unictype/ctype-space: Likewise.
61837         * modules/unictype/ctype-upper: Likewise.
61838         * modules/unictype/ctype-xdigit: Likewise.
61839         * modules/unictype/decimal-digit: Likewise.
61840         * modules/unictype/digit: Likewise.
61841         * modules/unictype/mirror: Likewise.
61842         * modules/unictype/numeric: Likewise.
61843         * modules/unictype/property-alphabetic: Likewise.
61844         * modules/unictype/property-ascii-hex-digit: Likewise.
61845         * modules/unictype/property-bidi-arabic-digit: Likewise.
61846         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
61847         * modules/unictype/property-bidi-block-separator: Likewise.
61848         * modules/unictype/property-bidi-boundary-neutral: Likewise.
61849         * modules/unictype/property-bidi-common-separator: Likewise.
61850         * modules/unictype/property-bidi-control: Likewise.
61851         * modules/unictype/property-bidi-embedding-or-override: Likewise.
61852         * modules/unictype/property-bidi-eur-num-separator: Likewise.
61853         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
61854         * modules/unictype/property-bidi-european-digit: Likewise.
61855         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
61856         * modules/unictype/property-bidi-left-to-right: Likewise.
61857         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
61858         * modules/unictype/property-bidi-other-neutral: Likewise.
61859         * modules/unictype/property-bidi-pdf: Likewise.
61860         * modules/unictype/property-bidi-segment-separator: Likewise.
61861         * modules/unictype/property-bidi-whitespace: Likewise.
61862         * modules/unictype/property-byname: Likewise.
61863         * modules/unictype/property-combining: Likewise.
61864         * modules/unictype/property-composite: Likewise.
61865         * modules/unictype/property-currency-symbol: Likewise.
61866         * modules/unictype/property-dash: Likewise.
61867         * modules/unictype/property-decimal-digit: Likewise.
61868         * modules/unictype/property-default-ignorable-code-point: Likewise.
61869         * modules/unictype/property-deprecated: Likewise.
61870         * modules/unictype/property-diacritic: Likewise.
61871         * modules/unictype/property-extender: Likewise.
61872         * modules/unictype/property-format-control: Likewise.
61873         * modules/unictype/property-grapheme-base: Likewise.
61874         * modules/unictype/property-grapheme-extend: Likewise.
61875         * modules/unictype/property-grapheme-link: Likewise.
61876         * modules/unictype/property-hex-digit: Likewise.
61877         * modules/unictype/property-hyphen: Likewise.
61878         * modules/unictype/property-id-continue: Likewise.
61879         * modules/unictype/property-id-start: Likewise.
61880         * modules/unictype/property-ideographic: Likewise.
61881         * modules/unictype/property-ids-binary-operator: Likewise.
61882         * modules/unictype/property-ids-trinary-operator: Likewise.
61883         * modules/unictype/property-ignorable-control: Likewise.
61884         * modules/unictype/property-iso-control: Likewise.
61885         * modules/unictype/property-join-control: Likewise.
61886         * modules/unictype/property-left-of-pair: Likewise.
61887         * modules/unictype/property-line-separator: Likewise.
61888         * modules/unictype/property-logical-order-exception: Likewise.
61889         * modules/unictype/property-lowercase: Likewise.
61890         * modules/unictype/property-math: Likewise.
61891         * modules/unictype/property-non-break: Likewise.
61892         * modules/unictype/property-not-a-character: Likewise.
61893         * modules/unictype/property-numeric: Likewise.
61894         * modules/unictype/property-other-alphabetic: Likewise.
61895         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
61896         * modules/unictype/property-other-grapheme-extend: Likewise.
61897         * modules/unictype/property-other-id-continue: Likewise.
61898         * modules/unictype/property-other-id-start: Likewise.
61899         * modules/unictype/property-other-lowercase: Likewise.
61900         * modules/unictype/property-other-math: Likewise.
61901         * modules/unictype/property-other-uppercase: Likewise.
61902         * modules/unictype/property-paired-punctuation: Likewise.
61903         * modules/unictype/property-paragraph-separator: Likewise.
61904         * modules/unictype/property-pattern-syntax: Likewise.
61905         * modules/unictype/property-pattern-white-space: Likewise.
61906         * modules/unictype/property-private-use: Likewise.
61907         * modules/unictype/property-punctuation: Likewise.
61908         * modules/unictype/property-quotation-mark: Likewise.
61909         * modules/unictype/property-radical: Likewise.
61910         * modules/unictype/property-sentence-terminal: Likewise.
61911         * modules/unictype/property-soft-dotted: Likewise.
61912         * modules/unictype/property-space: Likewise.
61913         * modules/unictype/property-terminal-punctuation: Likewise.
61914         * modules/unictype/property-test: Likewise.
61915         * modules/unictype/property-titlecase: Likewise.
61916         * modules/unictype/property-unassigned-code-value: Likewise.
61917         * modules/unictype/property-unified-ideograph: Likewise.
61918         * modules/unictype/property-uppercase: Likewise.
61919         * modules/unictype/property-variation-selector: Likewise.
61920         * modules/unictype/property-white-space: Likewise.
61921         * modules/unictype/property-xid-continue: Likewise.
61922         * modules/unictype/property-xid-start: Likewise.
61923         * modules/unictype/property-zero-width: Likewise.
61924         * modules/unictype/scripts: Likewise.
61925         * modules/unictype/syntax-c-ident: Likewise.
61926         * modules/unictype/syntax-c-whitespace: Likewise.
61927         * modules/unictype/syntax-java-ident: Likewise.
61928         * modules/unictype/syntax-java-whitespace: Likewise.
61929         * modules/unilbrk/u8-possible-linebreaks: Likewise.
61930         * modules/unilbrk/u8-width-linebreaks: Likewise.
61931         * modules/unilbrk/u16-possible-linebreaks: Likewise.
61932         * modules/unilbrk/u16-width-linebreaks: Likewise.
61933         * modules/unilbrk/u32-possible-linebreaks: Likewise.
61934         * modules/unilbrk/u32-width-linebreaks: Likewise.
61935         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
61936         * modules/unilbrk/ulc-width-linebreaks: Likewise.
61937         * modules/uniname/uniname: Likewise.
61938         * modules/uninorm/canonical-decomposition: Likewise.
61939         * modules/uninorm/composition: Likewise.
61940         * modules/uninorm/decomposing-form: Likewise.
61941         * modules/uninorm/decomposition: Likewise.
61942         * modules/uninorm/filter: Likewise.
61943         * modules/uninorm/nfc: Likewise.
61944         * modules/uninorm/nfd: Likewise.
61945         * modules/uninorm/nfkc: Likewise.
61946         * modules/uninorm/nfkd: Likewise.
61947         * modules/uninorm/u8-normalize: Likewise.
61948         * modules/uninorm/u8-normcmp: Likewise.
61949         * modules/uninorm/u8-normcoll: Likewise.
61950         * modules/uninorm/u8-normxfrm: Likewise.
61951         * modules/uninorm/u16-normalize: Likewise.
61952         * modules/uninorm/u16-normcmp: Likewise.
61953         * modules/uninorm/u16-normcoll: Likewise.
61954         * modules/uninorm/u16-normxfrm: Likewise.
61955         * modules/uninorm/u32-normalize: Likewise.
61956         * modules/uninorm/u32-normcmp: Likewise.
61957         * modules/uninorm/u32-normcoll: Likewise.
61958         * modules/uninorm/u32-normxfrm: Likewise.
61959         * modules/unistdio/u8-asnprintf: Likewise.
61960         * modules/unistdio/u8-asprintf: Likewise.
61961         * modules/unistdio/u8-snprintf: Likewise.
61962         * modules/unistdio/u8-sprintf: Likewise.
61963         * modules/unistdio/u8-u8-asnprintf: Likewise.
61964         * modules/unistdio/u8-u8-asprintf: Likewise.
61965         * modules/unistdio/u8-u8-snprintf: Likewise.
61966         * modules/unistdio/u8-u8-sprintf: Likewise.
61967         * modules/unistdio/u8-u8-vasnprintf: Likewise.
61968         * modules/unistdio/u8-u8-vasprintf: Likewise.
61969         * modules/unistdio/u8-u8-vsnprintf: Likewise.
61970         * modules/unistdio/u8-u8-vsprintf: Likewise.
61971         * modules/unistdio/u8-vasnprintf: Likewise.
61972         * modules/unistdio/u8-vasprintf: Likewise.
61973         * modules/unistdio/u8-vsnprintf: Likewise.
61974         * modules/unistdio/u8-vsprintf: Likewise.
61975         * modules/unistdio/u16-asnprintf: Likewise.
61976         * modules/unistdio/u16-asprintf: Likewise.
61977         * modules/unistdio/u16-snprintf: Likewise.
61978         * modules/unistdio/u16-sprintf: Likewise.
61979         * modules/unistdio/u16-u16-asnprintf: Likewise.
61980         * modules/unistdio/u16-u16-asprintf: Likewise.
61981         * modules/unistdio/u16-u16-snprintf: Likewise.
61982         * modules/unistdio/u16-u16-sprintf: Likewise.
61983         * modules/unistdio/u16-u16-vasnprintf: Likewise.
61984         * modules/unistdio/u16-u16-vasprintf: Likewise.
61985         * modules/unistdio/u16-u16-vsnprintf: Likewise.
61986         * modules/unistdio/u16-u16-vsprintf: Likewise.
61987         * modules/unistdio/u16-vasnprintf: Likewise.
61988         * modules/unistdio/u16-vasprintf: Likewise.
61989         * modules/unistdio/u16-vsnprintf: Likewise.
61990         * modules/unistdio/u16-vsprintf: Likewise.
61991         * modules/unistdio/u32-asnprintf: Likewise.
61992         * modules/unistdio/u32-asprintf: Likewise.
61993         * modules/unistdio/u32-snprintf: Likewise.
61994         * modules/unistdio/u32-sprintf: Likewise.
61995         * modules/unistdio/u32-u32-asnprintf: Likewise.
61996         * modules/unistdio/u32-u32-asprintf: Likewise.
61997         * modules/unistdio/u32-u32-snprintf: Likewise.
61998         * modules/unistdio/u32-u32-sprintf: Likewise.
61999         * modules/unistdio/u32-u32-vasnprintf: Likewise.
62000         * modules/unistdio/u32-u32-vasprintf: Likewise.
62001         * modules/unistdio/u32-u32-vsnprintf: Likewise.
62002         * modules/unistdio/u32-u32-vsprintf: Likewise.
62003         * modules/unistdio/u32-vasnprintf: Likewise.
62004         * modules/unistdio/u32-vasprintf: Likewise.
62005         * modules/unistdio/u32-vsnprintf: Likewise.
62006         * modules/unistdio/u32-vsprintf: Likewise.
62007         * modules/unistdio/ulc-asnprintf: Likewise.
62008         * modules/unistdio/ulc-asprintf: Likewise.
62009         * modules/unistdio/ulc-fprintf: Likewise.
62010         * modules/unistdio/ulc-snprintf: Likewise.
62011         * modules/unistdio/ulc-sprintf: Likewise.
62012         * modules/unistdio/ulc-vasnprintf: Likewise.
62013         * modules/unistdio/ulc-vasprintf: Likewise.
62014         * modules/unistdio/ulc-vfprintf: Likewise.
62015         * modules/unistdio/ulc-vsnprintf: Likewise.
62016         * modules/unistdio/ulc-vsprintf: Likewise.
62017         * modules/unistr/u8-check: Likewise.
62018         * modules/unistr/u8-chr: Likewise.
62019         * modules/unistr/u8-cmp: Likewise.
62020         * modules/unistr/u8-cmp2: Likewise.
62021         * modules/unistr/u8-cpy: Likewise.
62022         * modules/unistr/u8-cpy-alloc: Likewise.
62023         * modules/unistr/u8-endswith: Likewise.
62024         * modules/unistr/u8-mblen: Likewise.
62025         * modules/unistr/u8-mbsnlen: Likewise.
62026         * modules/unistr/u8-mbtouc: Likewise.
62027         * modules/unistr/u8-mbtouc-unsafe: Likewise.
62028         * modules/unistr/u8-mbtoucr: Likewise.
62029         * modules/unistr/u8-move: Likewise.
62030         * modules/unistr/u8-next: Likewise.
62031         * modules/unistr/u8-prev: Likewise.
62032         * modules/unistr/u8-set: Likewise.
62033         * modules/unistr/u8-startswith: Likewise.
62034         * modules/unistr/u8-stpcpy: Likewise.
62035         * modules/unistr/u8-stpncpy: Likewise.
62036         * modules/unistr/u8-strcat: Likewise.
62037         * modules/unistr/u8-strchr: Likewise.
62038         * modules/unistr/u8-strcmp: Likewise.
62039         * modules/unistr/u8-strcoll: Likewise.
62040         * modules/unistr/u8-strcpy: Likewise.
62041         * modules/unistr/u8-strcspn: Likewise.
62042         * modules/unistr/u8-strdup: Likewise.
62043         * modules/unistr/u8-strlen: Likewise.
62044         * modules/unistr/u8-strmblen: Likewise.
62045         * modules/unistr/u8-strmbtouc: Likewise.
62046         * modules/unistr/u8-strncat: Likewise.
62047         * modules/unistr/u8-strncmp: Likewise.
62048         * modules/unistr/u8-strncpy: Likewise.
62049         * modules/unistr/u8-strnlen: Likewise.
62050         * modules/unistr/u8-strpbrk: Likewise.
62051         * modules/unistr/u8-strrchr: Likewise.
62052         * modules/unistr/u8-strspn: Likewise.
62053         * modules/unistr/u8-strstr: Likewise.
62054         * modules/unistr/u8-strtok: Likewise.
62055         * modules/unistr/u8-to-u16: Likewise.
62056         * modules/unistr/u8-to-u32: Likewise.
62057         * modules/unistr/u8-uctomb: Likewise.
62058         * modules/unistr/u16-check: Likewise.
62059         * modules/unistr/u16-chr: Likewise.
62060         * modules/unistr/u16-cmp: Likewise.
62061         * modules/unistr/u16-cmp2: Likewise.
62062         * modules/unistr/u16-cpy: Likewise.
62063         * modules/unistr/u16-cpy-alloc: Likewise.
62064         * modules/unistr/u16-endswith: Likewise.
62065         * modules/unistr/u16-mblen: Likewise.
62066         * modules/unistr/u16-mbsnlen: Likewise.
62067         * modules/unistr/u16-mbtouc: Likewise.
62068         * modules/unistr/u16-mbtouc-unsafe: Likewise.
62069         * modules/unistr/u16-mbtoucr: Likewise.
62070         * modules/unistr/u16-move: Likewise.
62071         * modules/unistr/u16-next: Likewise.
62072         * modules/unistr/u16-prev: Likewise.
62073         * modules/unistr/u16-set: Likewise.
62074         * modules/unistr/u16-startswith: Likewise.
62075         * modules/unistr/u16-stpcpy: Likewise.
62076         * modules/unistr/u16-stpncpy: Likewise.
62077         * modules/unistr/u16-strcat: Likewise.
62078         * modules/unistr/u16-strchr: Likewise.
62079         * modules/unistr/u16-strcmp: Likewise.
62080         * modules/unistr/u16-strcoll: Likewise.
62081         * modules/unistr/u16-strcpy: Likewise.
62082         * modules/unistr/u16-strcspn: Likewise.
62083         * modules/unistr/u16-strdup: Likewise.
62084         * modules/unistr/u16-strlen: Likewise.
62085         * modules/unistr/u16-strmblen: Likewise.
62086         * modules/unistr/u16-strmbtouc: Likewise.
62087         * modules/unistr/u16-strncat: Likewise.
62088         * modules/unistr/u16-strncmp: Likewise.
62089         * modules/unistr/u16-strncpy: Likewise.
62090         * modules/unistr/u16-strnlen: Likewise.
62091         * modules/unistr/u16-strpbrk: Likewise.
62092         * modules/unistr/u16-strrchr: Likewise.
62093         * modules/unistr/u16-strspn: Likewise.
62094         * modules/unistr/u16-strstr: Likewise.
62095         * modules/unistr/u16-strtok: Likewise.
62096         * modules/unistr/u16-to-u32: Likewise.
62097         * modules/unistr/u16-to-u8: Likewise.
62098         * modules/unistr/u16-uctomb: Likewise.
62099         * modules/unistr/u32-check: Likewise.
62100         * modules/unistr/u32-chr: Likewise.
62101         * modules/unistr/u32-cmp: Likewise.
62102         * modules/unistr/u32-cmp2: Likewise.
62103         * modules/unistr/u32-cpy: Likewise.
62104         * modules/unistr/u32-cpy-alloc: Likewise.
62105         * modules/unistr/u32-endswith: Likewise.
62106         * modules/unistr/u32-mblen: Likewise.
62107         * modules/unistr/u32-mbsnlen: Likewise.
62108         * modules/unistr/u32-mbtouc: Likewise.
62109         * modules/unistr/u32-mbtouc-unsafe: Likewise.
62110         * modules/unistr/u32-mbtoucr: Likewise.
62111         * modules/unistr/u32-move: Likewise.
62112         * modules/unistr/u32-next: Likewise.
62113         * modules/unistr/u32-prev: Likewise.
62114         * modules/unistr/u32-set: Likewise.
62115         * modules/unistr/u32-startswith: Likewise.
62116         * modules/unistr/u32-stpcpy: Likewise.
62117         * modules/unistr/u32-stpncpy: Likewise.
62118         * modules/unistr/u32-strcat: Likewise.
62119         * modules/unistr/u32-strchr: Likewise.
62120         * modules/unistr/u32-strcmp: Likewise.
62121         * modules/unistr/u32-strcoll: Likewise.
62122         * modules/unistr/u32-strcpy: Likewise.
62123         * modules/unistr/u32-strcspn: Likewise.
62124         * modules/unistr/u32-strdup: Likewise.
62125         * modules/unistr/u32-strlen: Likewise.
62126         * modules/unistr/u32-strmblen: Likewise.
62127         * modules/unistr/u32-strmbtouc: Likewise.
62128         * modules/unistr/u32-strncat: Likewise.
62129         * modules/unistr/u32-strncmp: Likewise.
62130         * modules/unistr/u32-strncpy: Likewise.
62131         * modules/unistr/u32-strnlen: Likewise.
62132         * modules/unistr/u32-strpbrk: Likewise.
62133         * modules/unistr/u32-strrchr: Likewise.
62134         * modules/unistr/u32-strspn: Likewise.
62135         * modules/unistr/u32-strstr: Likewise.
62136         * modules/unistr/u32-strtok: Likewise.
62137         * modules/unistr/u32-to-u16: Likewise.
62138         * modules/unistr/u32-to-u8: Likewise.
62139         * modules/unistr/u32-uctomb: Likewise.
62140         * modules/uniwbrk/u8-wordbreaks: Likewise.
62141         * modules/uniwbrk/u16-wordbreaks: Likewise.
62142         * modules/uniwbrk/u32-wordbreaks: Likewise.
62143         * modules/uniwbrk/ulc-wordbreaks: Likewise.
62144         * modules/uniwbrk/wordbreak-property: Likewise.
62145         * modules/uniwidth/u8-strwidth: Likewise.
62146         * modules/uniwidth/u8-width: Likewise.
62147         * modules/uniwidth/u16-strwidth: Likewise.
62148         * modules/uniwidth/u16-width: Likewise.
62149         * modules/uniwidth/u32-strwidth: Likewise.
62150         * modules/uniwidth/u32-width: Likewise.
62151         * modules/uniwidth/width: Likewise.
62152         * modules/unicase/cased-tests (Makefile.am): Link all test programs
62153         with $(LIBUNISTRING).
62154         * modules/unicase/ignorable-tests: Likewise.
62155         * modules/unicase/locale-language-tests: Likewise.
62156         * modules/unicase/tolower-tests: Likewise.
62157         * modules/unicase/totitle-tests: Likewise.
62158         * modules/unicase/toupper-tests: Likewise.
62159         * modules/unicase/u8-casecmp-tests: Likewise.
62160         * modules/unicase/u8-casecoll-tests: Likewise.
62161         * modules/unicase/u8-casefold-tests: Likewise.
62162         * modules/unicase/u8-is-cased-tests: Likewise.
62163         * modules/unicase/u8-is-casefolded-tests: Likewise.
62164         * modules/unicase/u8-is-lowercase-tests: Likewise.
62165         * modules/unicase/u8-is-titlecase-tests: Likewise.
62166         * modules/unicase/u8-is-uppercase-tests: Likewise.
62167         * modules/unicase/u8-tolower-tests: Likewise.
62168         * modules/unicase/u8-totitle-tests: Likewise.
62169         * modules/unicase/u8-toupper-tests: Likewise.
62170         * modules/unicase/u16-casecmp-tests: Likewise.
62171         * modules/unicase/u16-casecoll-tests: Likewise.
62172         * modules/unicase/u16-casefold-tests: Likewise.
62173         * modules/unicase/u16-is-cased-tests: Likewise.
62174         * modules/unicase/u16-is-casefolded-tests: Likewise.
62175         * modules/unicase/u16-is-lowercase-tests: Likewise.
62176         * modules/unicase/u16-is-titlecase-tests: Likewise.
62177         * modules/unicase/u16-is-uppercase-tests: Likewise.
62178         * modules/unicase/u16-tolower-tests: Likewise.
62179         * modules/unicase/u16-totitle-tests: Likewise.
62180         * modules/unicase/u16-toupper-tests: Likewise.
62181         * modules/unicase/u32-casecmp-tests: Likewise.
62182         * modules/unicase/u32-casecoll-tests: Likewise.
62183         * modules/unicase/u32-casefold-tests: Likewise.
62184         * modules/unicase/u32-is-cased-tests: Likewise.
62185         * modules/unicase/u32-is-casefolded-tests: Likewise.
62186         * modules/unicase/u32-is-lowercase-tests: Likewise.
62187         * modules/unicase/u32-is-titlecase-tests: Likewise.
62188         * modules/unicase/u32-is-uppercase-tests: Likewise.
62189         * modules/unicase/u32-tolower-tests: Likewise.
62190         * modules/unicase/u32-totitle-tests: Likewise.
62191         * modules/unicase/u32-toupper-tests: Likewise.
62192         * modules/unicase/ulc-casecmp-tests: Likewise.
62193         * modules/unicase/ulc-casecoll-tests: Likewise.
62194         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
62195         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
62196         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
62197         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
62198         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
62199         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
62200         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
62201         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
62202         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
62203         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
62204         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
62205         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
62206         * modules/unictype/bidicategory-byname-tests: Likewise.
62207         * modules/unictype/bidicategory-name-tests: Likewise.
62208         * modules/unictype/bidicategory-of-tests: Likewise.
62209         * modules/unictype/bidicategory-test-tests: Likewise.
62210         * modules/unictype/block-list-tests: Likewise.
62211         * modules/unictype/block-of-tests: Likewise.
62212         * modules/unictype/block-test-tests: Likewise.
62213         * modules/unictype/category-C-tests: Likewise.
62214         * modules/unictype/category-Cc-tests: Likewise.
62215         * modules/unictype/category-Cf-tests: Likewise.
62216         * modules/unictype/category-Cn-tests: Likewise.
62217         * modules/unictype/category-Co-tests: Likewise.
62218         * modules/unictype/category-Cs-tests: Likewise.
62219         * modules/unictype/category-L-tests: Likewise.
62220         * modules/unictype/category-Ll-tests: Likewise.
62221         * modules/unictype/category-Lm-tests: Likewise.
62222         * modules/unictype/category-Lo-tests: Likewise.
62223         * modules/unictype/category-Lt-tests: Likewise.
62224         * modules/unictype/category-Lu-tests: Likewise.
62225         * modules/unictype/category-M-tests: Likewise.
62226         * modules/unictype/category-Mc-tests: Likewise.
62227         * modules/unictype/category-Me-tests: Likewise.
62228         * modules/unictype/category-Mn-tests: Likewise.
62229         * modules/unictype/category-N-tests: Likewise.
62230         * modules/unictype/category-Nd-tests: Likewise.
62231         * modules/unictype/category-Nl-tests: Likewise.
62232         * modules/unictype/category-No-tests: Likewise.
62233         * modules/unictype/category-P-tests: Likewise.
62234         * modules/unictype/category-Pc-tests: Likewise.
62235         * modules/unictype/category-Pd-tests: Likewise.
62236         * modules/unictype/category-Pe-tests: Likewise.
62237         * modules/unictype/category-Pf-tests: Likewise.
62238         * modules/unictype/category-Pi-tests: Likewise.
62239         * modules/unictype/category-Po-tests: Likewise.
62240         * modules/unictype/category-Ps-tests: Likewise.
62241         * modules/unictype/category-S-tests: Likewise.
62242         * modules/unictype/category-Sc-tests: Likewise.
62243         * modules/unictype/category-Sk-tests: Likewise.
62244         * modules/unictype/category-Sm-tests: Likewise.
62245         * modules/unictype/category-So-tests: Likewise.
62246         * modules/unictype/category-Z-tests: Likewise.
62247         * modules/unictype/category-Zl-tests: Likewise.
62248         * modules/unictype/category-Zp-tests: Likewise.
62249         * modules/unictype/category-Zs-tests: Likewise.
62250         * modules/unictype/category-and-not-tests: Likewise.
62251         * modules/unictype/category-and-tests: Likewise.
62252         * modules/unictype/category-byname-tests: Likewise.
62253         * modules/unictype/category-name-tests: Likewise.
62254         * modules/unictype/category-none-tests: Likewise.
62255         * modules/unictype/category-of-tests: Likewise.
62256         * modules/unictype/category-or-tests: Likewise.
62257         * modules/unictype/category-test-withtable-tests: Likewise.
62258         * modules/unictype/combining-class-tests: Likewise.
62259         * modules/unictype/ctype-alnum-tests: Likewise.
62260         * modules/unictype/ctype-alpha-tests: Likewise.
62261         * modules/unictype/ctype-blank-tests: Likewise.
62262         * modules/unictype/ctype-cntrl-tests: Likewise.
62263         * modules/unictype/ctype-digit-tests: Likewise.
62264         * modules/unictype/ctype-graph-tests: Likewise.
62265         * modules/unictype/ctype-lower-tests: Likewise.
62266         * modules/unictype/ctype-print-tests: Likewise.
62267         * modules/unictype/ctype-punct-tests: Likewise.
62268         * modules/unictype/ctype-space-tests: Likewise.
62269         * modules/unictype/ctype-upper-tests: Likewise.
62270         * modules/unictype/ctype-xdigit-tests: Likewise.
62271         * modules/unictype/decimal-digit-tests: Likewise.
62272         * modules/unictype/digit-tests: Likewise.
62273         * modules/unictype/mirror-tests: Likewise.
62274         * modules/unictype/numeric-tests: Likewise.
62275         * modules/unictype/property-alphabetic-tests: Likewise.
62276         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
62277         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
62278         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
62279         * modules/unictype/property-bidi-block-separator-tests: Likewise.
62280         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
62281         * modules/unictype/property-bidi-common-separator-tests: Likewise.
62282         * modules/unictype/property-bidi-control-tests: Likewise.
62283         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
62284         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
62285         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
62286         * modules/unictype/property-bidi-european-digit-tests: Likewise.
62287         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
62288         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
62289         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
62290         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
62291         * modules/unictype/property-bidi-pdf-tests: Likewise.
62292         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
62293         * modules/unictype/property-bidi-whitespace-tests: Likewise.
62294         * modules/unictype/property-byname-tests: Likewise.
62295         * modules/unictype/property-combining-tests: Likewise.
62296         * modules/unictype/property-composite-tests: Likewise.
62297         * modules/unictype/property-currency-symbol-tests: Likewise.
62298         * modules/unictype/property-dash-tests: Likewise.
62299         * modules/unictype/property-decimal-digit-tests: Likewise.
62300         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
62301         * modules/unictype/property-deprecated-tests: Likewise.
62302         * modules/unictype/property-diacritic-tests: Likewise.
62303         * modules/unictype/property-extender-tests: Likewise.
62304         * modules/unictype/property-format-control-tests: Likewise.
62305         * modules/unictype/property-grapheme-base-tests: Likewise.
62306         * modules/unictype/property-grapheme-extend-tests: Likewise.
62307         * modules/unictype/property-grapheme-link-tests: Likewise.
62308         * modules/unictype/property-hex-digit-tests: Likewise.
62309         * modules/unictype/property-hyphen-tests: Likewise.
62310         * modules/unictype/property-id-continue-tests: Likewise.
62311         * modules/unictype/property-id-start-tests: Likewise.
62312         * modules/unictype/property-ideographic-tests: Likewise.
62313         * modules/unictype/property-ids-binary-operator-tests: Likewise.
62314         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
62315         * modules/unictype/property-ignorable-control-tests: Likewise.
62316         * modules/unictype/property-iso-control-tests: Likewise.
62317         * modules/unictype/property-join-control-tests: Likewise.
62318         * modules/unictype/property-left-of-pair-tests: Likewise.
62319         * modules/unictype/property-line-separator-tests: Likewise.
62320         * modules/unictype/property-logical-order-exception-tests: Likewise.
62321         * modules/unictype/property-lowercase-tests: Likewise.
62322         * modules/unictype/property-math-tests: Likewise.
62323         * modules/unictype/property-non-break-tests: Likewise.
62324         * modules/unictype/property-not-a-character-tests: Likewise.
62325         * modules/unictype/property-numeric-tests: Likewise.
62326         * modules/unictype/property-other-alphabetic-tests: Likewise.
62327         * modules/unictype/property-other-default-ignorable-code-point-tests:
62328         Likewise.
62329         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
62330         * modules/unictype/property-other-id-continue-tests: Likewise.
62331         * modules/unictype/property-other-id-start-tests: Likewise.
62332         * modules/unictype/property-other-lowercase-tests: Likewise.
62333         * modules/unictype/property-other-math-tests: Likewise.
62334         * modules/unictype/property-other-uppercase-tests: Likewise.
62335         * modules/unictype/property-paired-punctuation-tests: Likewise.
62336         * modules/unictype/property-paragraph-separator-tests: Likewise.
62337         * modules/unictype/property-pattern-syntax-tests: Likewise.
62338         * modules/unictype/property-pattern-white-space-tests: Likewise.
62339         * modules/unictype/property-private-use-tests: Likewise.
62340         * modules/unictype/property-punctuation-tests: Likewise.
62341         * modules/unictype/property-quotation-mark-tests: Likewise.
62342         * modules/unictype/property-radical-tests: Likewise.
62343         * modules/unictype/property-sentence-terminal-tests: Likewise.
62344         * modules/unictype/property-soft-dotted-tests: Likewise.
62345         * modules/unictype/property-space-tests: Likewise.
62346         * modules/unictype/property-terminal-punctuation-tests: Likewise.
62347         * modules/unictype/property-test-tests: Likewise.
62348         * modules/unictype/property-titlecase-tests: Likewise.
62349         * modules/unictype/property-unassigned-code-value-tests: Likewise.
62350         * modules/unictype/property-unified-ideograph-tests: Likewise.
62351         * modules/unictype/property-uppercase-tests: Likewise.
62352         * modules/unictype/property-variation-selector-tests: Likewise.
62353         * modules/unictype/property-white-space-tests: Likewise.
62354         * modules/unictype/property-xid-continue-tests: Likewise.
62355         * modules/unictype/property-xid-start-tests: Likewise.
62356         * modules/unictype/property-zero-width-tests: Likewise.
62357         * modules/unictype/scripts-tests: Likewise.
62358         * modules/unictype/syntax-c-ident-tests: Likewise.
62359         * modules/unictype/syntax-c-whitespace-tests: Likewise.
62360         * modules/unictype/syntax-java-ident-tests: Likewise.
62361         * modules/unictype/syntax-java-whitespace-tests: Likewise.
62362         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
62363         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
62364         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
62365         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
62366         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
62367         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
62368         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
62369         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
62370         * modules/uniname/uniname-tests: Likewise.
62371         * modules/uninorm/canonical-decomposition-tests: Likewise.
62372         * modules/uninorm/compat-decomposition-tests: Likewise.
62373         * modules/uninorm/composition-tests: Likewise.
62374         * modules/uninorm/decomposing-form-tests: Likewise.
62375         * modules/uninorm/decomposition-tests: Likewise.
62376         * modules/uninorm/filter-tests: Likewise.
62377         * modules/uninorm/nfc-tests: Likewise.
62378         * modules/uninorm/nfd-tests: Likewise.
62379         * modules/uninorm/nfkc-tests: Likewise.
62380         * modules/uninorm/nfkd-tests: Likewise.
62381         * modules/uninorm/u8-normcmp-tests: Likewise.
62382         * modules/uninorm/u8-normcoll-tests: Likewise.
62383         * modules/uninorm/u16-normcmp-tests: Likewise.
62384         * modules/uninorm/u16-normcoll-tests: Likewise.
62385         * modules/uninorm/u32-normcmp-tests: Likewise.
62386         * modules/uninorm/u32-normcoll-tests: Likewise.
62387         * modules/unistdio/u8-asnprintf-tests: Likewise.
62388         * modules/unistdio/u8-vasnprintf-tests: Likewise.
62389         * modules/unistdio/u8-vasprintf-tests: Likewise.
62390         * modules/unistdio/u8-vsnprintf-tests: Likewise.
62391         * modules/unistdio/u8-vsprintf-tests: Likewise.
62392         * modules/unistdio/u16-asnprintf-tests: Likewise.
62393         * modules/unistdio/u16-vasnprintf-tests: Likewise.
62394         * modules/unistdio/u16-vasprintf-tests: Likewise.
62395         * modules/unistdio/u16-vsnprintf-tests: Likewise.
62396         * modules/unistdio/u16-vsprintf-tests: Likewise.
62397         * modules/unistdio/u32-asnprintf-tests: Likewise.
62398         * modules/unistdio/u32-vasnprintf-tests: Likewise.
62399         * modules/unistdio/u32-vasprintf-tests: Likewise.
62400         * modules/unistdio/u32-vsnprintf-tests: Likewise.
62401         * modules/unistdio/u32-vsprintf-tests: Likewise.
62402         * modules/unistdio/ulc-asnprintf-tests: Likewise.
62403         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
62404         * modules/unistdio/ulc-vasprintf-tests: Likewise.
62405         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
62406         * modules/unistdio/ulc-vsprintf-tests: Likewise.
62407         * modules/unistr/u8-check-tests: Likewise.
62408         * modules/unistr/u8-chr-tests: Likewise.
62409         * modules/unistr/u8-cmp-tests: Likewise.
62410         * modules/unistr/u8-cmp2-tests: Likewise.
62411         * modules/unistr/u8-cpy-alloc-tests: Likewise.
62412         * modules/unistr/u8-cpy-tests: Likewise.
62413         * modules/unistr/u8-mblen-tests: Likewise.
62414         * modules/unistr/u8-mbsnlen-tests: Likewise.
62415         * modules/unistr/u8-mbtouc-tests: Likewise.
62416         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
62417         * modules/unistr/u8-mbtoucr-tests: Likewise.
62418         * modules/unistr/u8-move-tests: Likewise.
62419         * modules/unistr/u8-next-tests: Likewise.
62420         * modules/unistr/u8-prev-tests: Likewise.
62421         * modules/unistr/u8-set-tests: Likewise.
62422         * modules/unistr/u8-stpcpy-tests: Likewise.
62423         * modules/unistr/u8-stpncpy-tests: Likewise.
62424         * modules/unistr/u8-strcat-tests: Likewise.
62425         * modules/unistr/u8-strcmp-tests: Likewise.
62426         * modules/unistr/u8-strcoll-tests: Likewise.
62427         * modules/unistr/u8-strcpy-tests: Likewise.
62428         * modules/unistr/u8-strdup-tests: Likewise.
62429         * modules/unistr/u8-strlen-tests: Likewise.
62430         * modules/unistr/u8-strmblen-tests: Likewise.
62431         * modules/unistr/u8-strmbtouc-tests: Likewise.
62432         * modules/unistr/u8-strncat-tests: Likewise.
62433         * modules/unistr/u8-strncmp-tests: Likewise.
62434         * modules/unistr/u8-strncpy-tests: Likewise.
62435         * modules/unistr/u8-strnlen-tests: Likewise.
62436         * modules/unistr/u8-to-u16-tests: Likewise.
62437         * modules/unistr/u8-to-u32-tests: Likewise.
62438         * modules/unistr/u8-uctomb-tests: Likewise.
62439         * modules/unistr/u16-check-tests: Likewise.
62440         * modules/unistr/u16-chr-tests: Likewise.
62441         * modules/unistr/u16-cmp-tests: Likewise.
62442         * modules/unistr/u16-cmp2-tests: Likewise.
62443         * modules/unistr/u16-cpy-alloc-tests: Likewise.
62444         * modules/unistr/u16-cpy-tests: Likewise.
62445         * modules/unistr/u16-mblen-tests: Likewise.
62446         * modules/unistr/u16-mbsnlen-tests: Likewise.
62447         * modules/unistr/u16-mbtouc-tests: Likewise.
62448         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
62449         * modules/unistr/u16-mbtoucr-tests: Likewise.
62450         * modules/unistr/u16-move-tests: Likewise.
62451         * modules/unistr/u16-next-tests: Likewise.
62452         * modules/unistr/u16-prev-tests: Likewise.
62453         * modules/unistr/u16-set-tests: Likewise.
62454         * modules/unistr/u16-stpcpy-tests: Likewise.
62455         * modules/unistr/u16-stpncpy-tests: Likewise.
62456         * modules/unistr/u16-strcat-tests: Likewise.
62457         * modules/unistr/u16-strcmp-tests: Likewise.
62458         * modules/unistr/u16-strcoll-tests: Likewise.
62459         * modules/unistr/u16-strcpy-tests: Likewise.
62460         * modules/unistr/u16-strdup-tests: Likewise.
62461         * modules/unistr/u16-strlen-tests: Likewise.
62462         * modules/unistr/u16-strmblen-tests: Likewise.
62463         * modules/unistr/u16-strmbtouc-tests: Likewise.
62464         * modules/unistr/u16-strncat-tests: Likewise.
62465         * modules/unistr/u16-strncmp-tests: Likewise.
62466         * modules/unistr/u16-strncpy-tests: Likewise.
62467         * modules/unistr/u16-strnlen-tests: Likewise.
62468         * modules/unistr/u16-to-u32-tests: Likewise.
62469         * modules/unistr/u16-to-u8-tests: Likewise.
62470         * modules/unistr/u16-uctomb-tests: Likewise.
62471         * modules/unistr/u32-check-tests: Likewise.
62472         * modules/unistr/u32-chr-tests: Likewise.
62473         * modules/unistr/u32-cmp-tests: Likewise.
62474         * modules/unistr/u32-cmp2-tests: Likewise.
62475         * modules/unistr/u32-cpy-alloc-tests: Likewise.
62476         * modules/unistr/u32-cpy-tests: Likewise.
62477         * modules/unistr/u32-mblen-tests: Likewise.
62478         * modules/unistr/u32-mbsnlen-tests: Likewise.
62479         * modules/unistr/u32-mbtouc-tests: Likewise.
62480         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
62481         * modules/unistr/u32-mbtoucr-tests: Likewise.
62482         * modules/unistr/u32-move-tests: Likewise.
62483         * modules/unistr/u32-next-tests: Likewise.
62484         * modules/unistr/u32-prev-tests: Likewise.
62485         * modules/unistr/u32-set-tests: Likewise.
62486         * modules/unistr/u32-stpcpy-tests: Likewise.
62487         * modules/unistr/u32-stpncpy-tests: Likewise.
62488         * modules/unistr/u32-strcat-tests: Likewise.
62489         * modules/unistr/u32-strcmp-tests: Likewise.
62490         * modules/unistr/u32-strcoll-tests: Likewise.
62491         * modules/unistr/u32-strcpy-tests: Likewise.
62492         * modules/unistr/u32-strdup-tests: Likewise.
62493         * modules/unistr/u32-strlen-tests: Likewise.
62494         * modules/unistr/u32-strmblen-tests: Likewise.
62495         * modules/unistr/u32-strmbtouc-tests: Likewise.
62496         * modules/unistr/u32-strncat-tests: Likewise.
62497         * modules/unistr/u32-strncmp-tests: Likewise.
62498         * modules/unistr/u32-strncpy-tests: Likewise.
62499         * modules/unistr/u32-strnlen-tests: Likewise.
62500         * modules/unistr/u32-to-u16-tests: Likewise.
62501         * modules/unistr/u32-to-u8-tests: Likewise.
62502         * modules/unistr/u32-uctomb-tests: Likewise.
62503         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
62504         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
62505         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
62506         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
62507         * modules/uniwidth/u8-strwidth-tests: Likewise.
62508         * modules/uniwidth/u8-width-tests: Likewise.
62509         * modules/uniwidth/u16-strwidth-tests: Likewise.
62510         * modules/uniwidth/u16-width-tests: Likewise.
62511         * modules/uniwidth/u32-strwidth-tests: Likewise.
62512         * modules/uniwidth/u32-width-tests: Likewise.
62513         * modules/uniwidth/width-tests: Likewise.
62515 2010-05-18  Richard Jones  <rjones@redhat.com>
62517         doc: users.txt: list hivex
62518         * users.txt: Add hivex.
62520 2010-05-18  Richard Jones  <rjones@redhat.com>
62522         doc: users.txt: list febootstrap
62523         * users.txt: Add febootstrap.
62525 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
62527         bootstrap: fix an error when gnulib is not used as a git submodule
62528         * build-aux/bootstrap (gnulib_path): If its length is zero then
62529         assign "gnulib" to it.
62530         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
62532 2010-05-16  Bruno Haible  <bruno@clisp.org>
62534         Avoid autoconf warnings about AM_ICONV.
62535         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
62536         2.64.
62538 2010-05-16  Bruno Haible  <bruno@clisp.org>
62540         absolute-header: Make the macro usable in more situations.
62541         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
62542         from gl_ABSOLUTE_HEADER.
62543         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
62545 2010-05-16  James Youngman  <jay@gnu.org>
62547         doc: update users.txt
62548         * users.txt: Add CSSC.
62550 2010-05-16  Jim Meyering  <meyering@redhat.com>
62552         init.sh: fix an error in the previous change; add more comments
62553         * tests/init.sh: Compare exit code in loop against 9, not 2.
62554         Patch by Bruno Haible.
62555         Make the two tests more similar by adding an empty "then" clause.
62556         Add comments.
62558         init.sh: avoid unnecessary shell re-exec
62559         * tests/init.sh: Improve the re-exec-required check to first test the
62560         current shell.  If it passes the test, do not search for a shell that
62561         does pass, and do not re-exec.  This test is particularly contorted to
62562         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
62563         of $(...) evokes a syntax error and causes immediate shell exit with
62564         status 2.  Bruno Haible reported that the re-exec made it impossible
62565         to single-step through any init.sh-using script.
62567 2010-05-16  Bruno Haible  <bruno@clisp.org>
62569         Fix collision between gnulib's and libintl's printf replacements.
62570         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
62571         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
62572         (printf): When using GNU C, map the __printf__ function to rpl_printf
62573         via __asm__. When not using GNU C, define rpl_printf instead of
62574         __printf__.
62575         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
62576         commit.
62577         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
62578         commit.
62579         * m4/asm-underscore.m4: New file.
62580         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
62581         * modules/stdio (Files): Add m4/asm-underscore.m4.
62582         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
62583         Reported by Ben Pfaff.
62585 2010-05-16  Bruno Haible  <bruno@clisp.org>
62587         verify: Avoid skipping the test on openSUSE 11.0.
62588         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
62590 2010-05-13  Bruno Haible  <bruno@clisp.org>
62592         Avoid useless warnings from G++.
62593         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
62594         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
62595         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
62597 2010-05-11  Jim Meyering  <meyering@redhat.com>
62599         maint.mk: tweak preceding change
62600         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
62601         regexps tighter by anchoring at EOL, and make the new group "shy"
62602         for slightly decreased overhead.
62604 2010-05-11  Eric Blake  <eblake@redhat.com>
62606         maint.mk: gnulib doesn't guarantee NSIG
62607         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
62609 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
62611         test-pwrite.c: Remove unused variable declaration.
62612         * tests/test-pwrite.c (main): Remove read_buf declaration.
62614         Remove useless test-pwrite.sh file.
62615         * tests/test-pwrite.sh: Delete file.
62616         * modules/pwrite-tests: Remove references.
62617         Reported by Bruno Haible.
62619 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
62621         init.sh: fix a typo
62622         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
62624 2010-05-10  Jim Meyering  <meyering@redhat.com>
62626         maint.mk: avoid using a temporary file in the always-defined-macros check
62627         * top/maint.mk (.re-defmac): Remove rule.
62628         (gl_trap_): Remove definition.
62629         (sc_prohibit_always-defined_macros): Rewrite not to create and
62630         depend on a temporary file.  Instead, depend on GNU grep's ability
62631         to read a list of regular expressions from stdin when given "-f -".
62633 2010-05-09  Bruno Haible  <bruno@clisp.org>
62635         Update to GNU gettext 0.18, part 1.
62636         * m4/gettext.m4: Update to GNU gettext 0.18.
62637         * m4/intl.m4: Likewise.
62638         * m4/po.m4: Likewise.
62639         * modules/gettext (Files): Add m4/fcntl-o.m4.
62640         (configure.ac): Require gettext infrastructure from version 0.18.
62642 2010-05-09  Jim Meyering  <meyering@redhat.com>
62644         init.sh: enable MALLOC_PERTURB_
62645         * tests/init.sh: Enable glibc's malloc-perturbing option.
62647         maint.mk: improve sc_cross_check_PATH_usage_in_tests
62648         With my recent change in init.sh from the two-line form:
62649             -#   : ${srcdir=.}
62650             -#   . "$srcdir/init.sh"; path_prepend_ .
62651             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
62652         I noticed that using the one-line form would cause this test
62653         to fail with a false-positive, or to stop working altogether,
62654         depending on whether help-version changed or all the tests did.
62655         * top/maint.mk (_hv_regex): Remove this definition.
62656         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
62657         (_hv_regex_strong): Use a stronger regex to check for conformance.
62658         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
62659         Give a separate diagnostic for lack of conforming use.
62661         maint.mk: prohibit definition of symbols defined by gnulib
62662         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
62663         definition of symbols defined by gnulib.
62665 2010-05-09  Bruno Haible  <bruno@clisp.org>
62667         acl: Avoid test failure on Cygwin-hosted mingw.
62668         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
62670 2010-05-09  Bruno Haible  <bruno@clisp.org>
62672         error: Use system's fcntl function.
62673         * lib/error.c (fcntl): Undefine.
62675 2010-05-09  Jim Meyering  <meyering@redhat.com>
62677         verify: adjust formatting to be more consistent
62678         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
62679         argument-list '('s, and after one comma.
62681 2010-05-09  Bruno Haible  <bruno@clisp.org>
62683         error: More reliable output on mingw.
62684         * lib/error.c: Include <windows.h>.
62685         (is_open): New function.
62686         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
62687         defined.
62689 2010-05-09  Bruno Haible  <bruno@clisp.org>
62691         vasnprintf: Fix syntax errors in libintl build on mingw.
62692         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
62693         pad_ourselves and prec_ourselves after use.
62695 2010-05-08  Bruno Haible  <bruno@clisp.org>
62697         * lib/config.charset: Update comments for Cygwin 1.7.
62698         * lib/localcharset.c: Likewise.
62700 2010-05-07  Jim Meyering  <meyering@redhat.com>
62702         init.sh: improve comments
62703         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
62704         . "${srcdir=.}/init.sh"; path_prepend_ .
62705         Add a note about path_prepend_ and the alternative of using
62706         TESTS_ENVIRONMENT.
62708 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62710         exclude: Unescape hashed patterns in wildcard mode.
62711         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
62712         to the hash list.
62713         * tests/test-exclude8.sh: New test case.
62714         * modules/exclude-tests: Add new test.
62716 2010-05-05  Eric Blake  <eblake@redhat.com>
62718         verify: automate tests
62719         * modules/verify-tests: New module.
62720         * tests/test-verify.sh: New file.
62721         * tests/test-verify.c: Guard each negative test with a unique id.
62722         Also avoid warning about unused left hand of comma expressions.
62724 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62726         Further improvements to verify.h, suggested by Eric Blake.
62727         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
62728         the GL_* versions, to avoid collision with OpenGL.
62729         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
62730         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
62731         than testing merely whether it's defined.
62733         Modify verify.h to pacify gcc -Wredundant_decls.
62734         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
62735         These use the prefix "GL_" since they're likely to be useful elsewhere.
62736         We may need to break them out into a different .h file.
62737         (__COUNTER__): Define to 0 if the compiler doesn't support it.
62738         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
62739         of verify_function__.
62741 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
62743         Tests for module pwrite.
62744         * modules/pwrite-tests: New file.
62745         * tests/test-pwrite.sh: New file.
62746         * tests/test-pwrite.c: New file.
62748         New module pwrite.
62749         * lib/unistd.in.h (pwrite): New declaration.
62750         * lib/pwrite.c: New file, from glibc with modifications.
62751         * m4/pwrite.m4: New file.
62752         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
62753         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
62754         REPLACE_PWRITE.
62755         * modules/pwrite: New file.
62756         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
62757         REPLACE_PWRITE.
62758         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
62759         * doc/posix-functions/pwrite.texi: Mention the new module.
62761 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
62763         pread: Update documentation.
62764         * doc/posix-functions/pread.texi: Mention the 'pread' module.
62766 2010-05-04  Eric Blake  <eblake@redhat.com>
62768         docs: update cygwin progress
62769         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
62770         this bug.
62771         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
62772         Added in cygwin 1.7.2.
62773         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
62774         Likewise.
62775         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
62776         Likewise.
62777         * doc/glibc-functions/dup3.texi (dup3): Likewise.
62778         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
62779         * doc/glibc-functions/accept4.texi (accept4): Likewise.
62780         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
62781         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
62782         Mention nproc module.
62783         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
62784         bug in cygwin 1.7.5 addition.
62785         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
62786         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
62787         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
62788         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
62789         1.7.5.
62790         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
62791         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
62792         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
62793         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
62794         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
62795         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
62796         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
62797         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
62798         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
62799         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
62800         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
62801         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
62802         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
62803         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
62804         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
62805         Likewise.
62806         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
62807         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
62808         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
62809         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
62810         Likewise.
62811         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
62812         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
62813         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
62814         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
62815         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
62816         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
62817         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
62818         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
62819         Likewise.
62820         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
62821         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
62822         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
62823         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
62824         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
62825         Likewise.
62826         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
62827         Likewise.
62828         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
62829         Likewise.
62830         * doc/glibc-functions/xdrrec_endofrecord.texi
62831         (xdrrec_endofrecord): Likewise.
62832         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
62833         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
62834         Likewise.
62835         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
62836         Likewise.
62838 2010-05-04  Jim Meyering  <meyering@redhat.com>
62840         gendocs.sh: make its "-s FILE" option more useful
62841         * build-aux/gendocs.sh: When honoring the -s FILE option, update
62842         $PACKAGE to reflect the probably-different basename of "FILE".
62844 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
62846         bootstrap: don't ignore download_po_files failure
62847         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
62848         failure.
62850 2010-05-03  Jim Meyering  <meyering@redhat.com>
62852         maint.mk: allow to pass options to gendocs.sh
62853         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
62854         (gendocs_options_): New overridable variable.
62856         gnu-web-doc-update: don't ignore configure or build failure
62857         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
62859         announce-gen: backslash-escape '@'s in --help output
62860         * build-aux/announce-gen: Fix syntax errors.
62862         maint.mk, announce-gen: allow project-specific announcement mail headers
62863         * top/maint.mk (translation_project_): Define default.
62864         (announcement_Cc_, announcement_mail_headers_): Likewise.
62865         (announcement): Invoke announce-gen with new --mail-headers option.
62866         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
62868         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
62869         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
62870         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
62871         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
62872         line in the "err2" output file when running "make check" in verbose
62873         mode (i.e., with set -x enabled).
62875 2010-05-03  Bruno Haible  <bruno@clisp.org>
62877         wctob: Fix for weird platforms.
62878         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
62879         argument value.
62881 2010-05-03  Jim Meyering  <meyering@redhat.com>
62883         maint.mk: prohibit unwarranted use of <strings.h>
62884         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
62885         strings.h in a file that does not also use strcasecmp, strncasecmp,
62886         ffs or ffsll.
62888         maint.mk: remove obsolete comments
62889         * top/maint.mk: Remove stale, commented-out rules.
62891 2010-05-02  Bruno Haible  <bruno@clisp.org>
62893         wcwidth: Declare also when it's aliased.
62894         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
62895         macro.
62897 2010-05-02  Bruno Haible  <bruno@clisp.org>
62899         Fix regression from 2010-04-25.
62900         * gnulib-tool (func_modules_transitive_closure): Check the status of
62901         all modules, not only of the tests that are of the form foo-tests where
62902         foo is a module.
62904 2010-05-02  Bruno Haible  <bruno@clisp.org>
62906         wctob: Work around nasty Cygwin 1.7.2 bug.
62907         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
62908         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
62910 2010-05-01  Bruno Haible  <bruno@clisp.org>
62912         fpurge: Sharper test.
62913         * tests/test-fpurge.c (main): Add one more ftell check.
62914         * modules/fpurge-tests (Depends-on): Add ftell.
62915         Suggested by Eric Blake.
62917 2010-05-01  Bruno Haible  <bruno@clisp.org>
62919         ftello: Another test.
62920         * tests/test-ftello3.c: New file.
62921         * modules/ftello-tests (Files): Add it.
62922         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
62923         MOSTLYCLEANFILES.
62925         ftell: Another test.
62926         * tests/test-ftell3.c: New file.
62927         * modules/ftell-tests (Files): Add it.
62928         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
62929         MOSTLYCLEANFILES.
62931 2010-05-01  Bruno Haible  <bruno@clisp.org>
62933         ftell, ftello: Work around Solaris bug.
62934         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
62935         * lib/ftello.c: Include stdio-impl.h.
62936         (ftello): On Solaris, when _IOWRT is set, compute the result without
62937         looking at _IOREAD.
62938         * modules/ftello (Files): Add lib/stdio-impl.h.
62939         * doc/posix-functions/ftell.texi: Mention Solaris bug.
62940         * doc/posix-functions/ftello.texi: Likewise.
62941         Reported by Eric Blake.
62943 2010-05-01  Bruno Haible  <bruno@clisp.org>
62945         freading: Adapt to special meaning of _IOREAD flag on Solaris.
62946         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
62947         the _IOWRT flag is also set.
62949 2010-05-01  Bruno Haible  <bruno@clisp.org>
62951         Fix doc about a HP-UX stdio bug.
62952         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
62953         * doc/posix-functions/ftello.texi: Likewise.
62955 2010-05-01  Bruno Haible  <bruno@clisp.org>
62957         lseek test: Fix failure on Solaris.
62958         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
62959         output.
62961 2010-04-30  Jim Meyering  <meyering@redhat.com>
62963         bootstrap: don't ignore failure to generate po*/Makevars
62964         * build-aux/bootstrap (with_gettext): Don't ignore failure
62965         to create po/Makevars or runtime-po/Makevars.
62967 2010-04-29  Eric Blake  <eblake@redhat.com>
62969         headers: relax license to LGPLv2+
62970         * modules/fcntl-h (License): Relax license.
62971         * modules/getopt-posix (License): Likewise.
62972         * modules/locale (License): Likewise.
62973         * modules/math (License): Likewise.
62974         * modules/pty (License): Likewise.
62975         * modules/sched (License): Likewise.
62976         * modules/search (License): Likewise.
62977         * modules/spawn (License): Likewise.
62978         * modules/stdarg (License): Likewise.
62979         * modules/sysexits (License): Likewise.
62981 2010-04-29  Jim Meyering  <meyering@redhat.com>
62983         inttypes: relax license to LGPLv2+
62984         * modules/inttypes (License): Relax license.
62986 2010-04-29  Simon Josefsson  <simon@josefsson.org>
62988         * top/maint.mk (indent): Run twice to produce idempotent results.
62990 2010-04-28  Bruno Haible  <bruno@clisp.org>
62992         getdate: Generate getdate.c in the source directory.
62993         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
62994         MOSTLYCLEANFILES.
62995         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
62997 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
62999         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
63000         is not declared as a const *; avoid warnings in that case.
63002 2010-04-28  Eric Blake  <eblake@redhat.com>
63004         canonicalize-lgpl: avoid compiler warning
63005         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
63006         declaration' / 'extraneous semicolon' warning with some compilers.
63007         Reported by Andreas Gruenbacher.
63009 2010-04-28  Jim Meyering  <meyering@redhat.com>
63011         init.sh: ensure a more reliable exit status when exiting via trap
63012         * tests/init.sh (setup_): Don't rely on $? in signal handler.
63013         Inspired by patches from Dmitry V. Levin.
63014         Also trap on signal 3 (SIGQUIT).
63016 2010-04-27  Bruno Haible  <bruno@clisp.org>
63018         Update doc about utimes().
63019         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
63020         'utimens' module.
63021         Reported by Andreas Gruenbacher <agruen@suse.de>.
63023 2010-04-27  Eric Blake  <eblake@redhat.com>
63025         full-read, full-write: relax license
63026         * modules/full-read (License): Drop to LGPLv2+.
63027         * modules/full-write (License): Likewise.
63028         * modules/safe-read (License): Likewise.
63029         * modules/safe-write (License): Likewise.
63031         pthread: mention library for linking
63032         * modules/pthread (Link): Mention $(LIB_PTHREAD).
63034 2010-04-27  Jim Meyering  <meyering@redhat.com>
63036         maint.mk: fix a bug introduced in last change
63037         * top/maint.mk (gl_assured_headers_): Now that all names are on
63038         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
63039         is not anchored to end of word, it should be adequate.
63041         maint.mk: avoid side-effect in latest syntax-check
63042         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
63043         to run commands via $(shell...), and hence to incur cost only when
63044         the new rule is actually run.
63046         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
63047         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
63048         and use that to create a regexp used to detect all #if HAVE_..._H uses.
63049         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
63050         (gl_assured_headers_, az_, AZ_): Define.
63051         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
63053 2010-04-26  Jim Meyering  <jim@meyering.net>
63054             Bruno Haible  <bruno@clisp.org>
63056         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
63057         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
63058         Prompted by an exchange with Gilles Espinasse.
63060 2010-04-26  Jim Meyering  <meyering@redhat.com>
63062         git-version-gen: aesthetic tweak
63063         * build-aux/git-version-gen: Use "$nl" rather than a literal,
63064         so that the command remains on a single line.
63066 2010-04-26  Eric Blake  <eblake@redhat.com>
63068         git-version-gen: allow use on EBCDIC hosts
63069         * build-aux/git-version-gen (dirty): Use literal rather than tying
63070         ourselves to ascii.
63071         Reported by Steve Goetze.
63073 2010-04-25  Bruno Haible  <bruno@clisp.org>
63075         netdb: Add support for GNULIB_POSIXCHECK.
63076         * lib/netdb.in.h: Include warn-on-use.h.
63077         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
63078         functions are used when GNULIB_POSIXCHECK is defined and the
63079         getaddrinfo module is not in use.
63080         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
63081         freeaddrinfo, gai_strerror, getnameinfo are declared.
63082         * modules/netdb (Depends-on): Add warn-on-use.
63083         (Makefile.am): Include warn-on-use.h in netdb.h.
63085 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
63087         build: avoid "make check" failure without .git/ directory
63088         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
63089         there is no .git/ directory.
63091 2010-04-25  Bruno Haible  <bruno@clisp.org>
63093         ptsname: Fix misuse of ttyname_r.
63094         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
63095         of errno.
63097 2010-04-25  Bruno Haible  <bruno@clisp.org>
63099         ttyname_r: Make it work on Solaris 10.
63100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
63101         if the system function has the POSIX declaration. Test whether the
63102         function fails if the buffer is less than 128 bytes large.
63103         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
63104         system's ttyname_r function. Provide a reasonably large buffer.
63105         * modules/ttyname_r (Depends-on): Add extensions.
63106         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
63108 2010-04-25  Bruno Haible  <bruno@clisp.org>
63110         Use the 'extensions' module for some more functions on Solaris.
63111         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
63112         module.
63113         * doc/posix-functions/ctime_r.texi: Likewise.
63114         * doc/posix-functions/getgrgid_r.texi: Likewise.
63115         * doc/posix-functions/getgrnam_r.texi: Likewise.
63116         * doc/posix-functions/getpwnam_r.texi: Likewise.
63117         * doc/posix-functions/getpwuid_r.texi: Likewise.
63118         * doc/posix-functions/readdir_r.texi: Likewise.
63119         * doc/posix-functions/sigwait.texi: Likewise.
63120         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
63121         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
63123 2010-04-25  Bruno Haible  <bruno@clisp.org>
63125         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
63126         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
63127         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
63128         * lib/ttyname_r.c: Include <limits.h>.
63129         (ttyname_r): Define using the system's ttyname_r function, if it exists
63130         and not on Solaris.
63131         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
63132         set.
63133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
63134         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
63135         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
63136         Reported by Simon Josefsson.
63138 2010-04-25  Bruno Haible  <bruno@clisp.org>
63140         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
63141         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
63142         * doc/posix-functions/ctime_r.texi: Likewise.
63143         * doc/posix-functions/getgrgid_r.texi: Likewise.
63144         * doc/posix-functions/getgrnam_r.texi: Likewise.
63145         * doc/posix-functions/getlogin_r.texi: Likewise.
63146         * doc/posix-functions/getpwnam_r.texi: Likewise.
63147         * doc/posix-functions/getpwuid_r.texi: Likewise.
63148         * doc/posix-functions/readdir_r.texi: Likewise.
63149         * doc/posix-functions/sigwait.texi: Likewise.
63150         * doc/posix-functions/ttyname_r.texi: Likewise.
63151         Reported by Simon Josefsson.
63153 2010-04-25  Bruno Haible  <bruno@clisp.org>
63155         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
63156         * gnulib-tool (func_usage): Document that --with-*-tests options apply
63157         also to --create-testdir.
63158         (func_acceptable): Don't consider the status of *-tests modules here.
63159         (func_modules_transitive_closure): Consider it here, before including a
63160         test module.
63161         (func_import, func_create_testdir): Set inc_all_direct_tests,
63162         inc_all_indirect_tests.
63163         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
63164         --create-testdir and --create-megatestdir.
63166 2010-04-25  Bruno Haible  <bruno@clisp.org>
63168         gnulib-tool: Add --without-*-tests options.
63169         * gnulib-tool (func_usage): Document the --without-*-tests options.
63170         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
63171         excl_unportable_tests): New variables.
63172         Fail if they are specified with --import or --update.
63173         (func_acceptable): Respect the excl_*_tests variables.
63174         (func_import): Set the excl_*_tests variables to empty.
63176 2010-04-25  Simon Josefsson  <simon@josefsson.org>
63177             Bruno Haible  <bruno@clisp.org>
63179         Work around a MacOS X 10.4 bug with openpty.
63180         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
63181         * tests/test-openpty.c (main): Close the master side explicitly.
63183 2010-04-25  Bruno Haible  <bruno@clisp.org>
63185         strnlen: Fix a C++ test error on MacOS X and Solaris.
63186         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
63187         the function is not declared.
63188         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
63189         Simon Josefsson.
63191 2010-04-24  Bruno Haible  <bruno@clisp.org>
63193         Avoid a gcc warning.
63194         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
63195         of correct type for %08lx directive.
63196         Reported by Eric Blake.
63198 2010-04-24  Bruno Haible  <bruno@clisp.org>
63200         vasnprintf: Correct errno value in case of out-of-memory.
63201         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
63202         or sprintf. Use the errno value from SNPRINTF or sprintf.
63203         Reported by Ian Beckwith <ianb@erislabs.net>.
63205 2010-04-24  Bruno Haible  <bruno@clisp.org>
63207         ansi-c++-opt: Find correct compiler when cross-compiling.
63208         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
63209         AC_CHECK_PROGS.
63210         Reported by Simon Josefsson.
63212 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
63214         vc-list-files: Add support for subversion
63215         * build-aux/vc-list-files: Use "svn list" to generate the list of
63216         files controlled by subversion.
63218 2010-04-23  Jim Meyering  <meyering@redhat.com>
63220         vc-list-files tests: convert to use init.sh
63221         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
63222         path_prepend_.
63223         Use Exit, not exit.
63224         Use skip_ rather than open coding it.
63225         Remove trap set-up and compare definitions.
63226         * tests/test-vc-list-files-git.sh: Likewise.
63227         * modules/vc-list-files-tests (Files): Add tests/init.sh.
63229 2010-04-22  Simon Josefsson  <simon@josefsson.org>
63231         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
63232         backup files.
63234 2010-04-21  Simon Josefsson  <simon@josefsson.org>
63236         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
63238 2010-04-20  Eric Blake  <eblake@redhat.com>
63240         tests: be robust to ignored SIGPIPE
63241         * tests/test-select-in.sh: Consume all output.
63242         * tests/test-lseek.sh: Check correct exit status, while avoiding
63243         EPIPE.
63245 2010-04-20  Simon Josefsson  <simon@josefsson.org>
63246             Bruno Haible  <bruno@clisp.org>
63248         visibility: Don't use -fvisibility if it leads to a warning.
63249         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
63250         yes, don't pretend that visibility works if it leads to a warning.
63251         Reported by Mike Gran <spk121@yahoo.com>.
63253 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
63255         * build-aux/bootstrap: Use "git -h" for testing for supported options
63256         instead of "git --help".  The short-form option only shows a summary,
63257         and doesn't layout the full man page.  Grep for the full option name
63258         in the summary, too.
63260 2010-04-19  Bruno Haible  <bruno@clisp.org>
63262         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
63263         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
63264         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
63265         mention of RELOCATABLE_STRIP.
63266         Reported by Sylvain Beucler <beuc@beuc.net>.
63268 2010-04-19  Bruno Haible  <bruno@clisp.org>
63270         * lib/diffseq.h: Fix typo in comment.
63271         Reported by Eric Blake.
63273 2010-04-19  Bruno Haible  <bruno@clisp.org>
63275         ioctl: Move autoconf macro to a .m4 file.
63276         * m4/ioctl.m4: New file, extracted from modules/ioctl.
63277         * modules/ioctl (Files): Add it.
63278         (configure.ac): Simply invoke gl_FUNC_IOCTL.
63279         Reported by Ian Beckwith <ianb@erislabs.net>.
63281 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
63282             Bruno Haible  <bruno@clisp.org>
63284         diffseq: Accommodate use-case with abstract arrays.
63285         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
63286         is not defined.
63287         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
63288         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
63290 2010-04-18  Bruno Haible  <bruno@clisp.org>
63292         * doc/posix-headers/stdbool.texi: More precise wording.
63294 2010-04-17  Jim Meyering  <meyering@redhat.com>
63296         maint.mk: use gnu-style indentation in an embedded perl script
63297         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
63298         Rename variable: s/two/last_two_bytes/
63300 2010-04-16  Eric Blake  <eblake@redhat.com>
63302         test-stdbool: skip test that fails with Solaris CC
63303         * tests/test-stdbool.c (f): Skip test that causes compilation
63304         error under buggy C++ compiler.
63305         * lib/stdbool.in.h: Document the limitation.
63306         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
63308         setenv: allow compilation with C++
63309         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
63310         register keyword.
63312         stdint: allow test to pass with C++
63313         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
63315         getopt: allow compilation with C++
63316         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
63317         struct.
63318         * lib/getopt.c (_getopt_internal_r): Use correct type.
63319         Reported by Dagobert Michelson, via Joel E. Denny.
63321 2010-04-16  Bruno Haible  <bruno@clisp.org>
63323         Override netdb.h always.
63324         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
63325         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
63326         Reported by Ludovic Courtès <ludo@gnu.org>.
63328 2010-04-15  Bruno Haible  <bruno@clisp.org>
63330         openpty: Fix mistake from 2010-03-21.
63331         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
63332         Reported by Simon Josefsson.
63334 2010-04-15  Eric Blake  <eblake@redhat.com>
63336         test-forkpty: fix expected signature
63337         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
63338         Reported by Simon Josefsson.
63340 2010-04-15  Jim Meyering  <meyering@redhat.com>
63342         maint.mk: texinfo_suffix_re_: correct the default regexp
63343         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
63345         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
63346         make it configurable via texinfo_suffix_re_.
63348 2010-04-14  Eric Blake  <eblake@redhat.com>
63350         strtok_r: relax license to LGPLv2+
63351         * modules/strtok_r (License): Relax license.
63352         Reported by Matthias Bolte.
63354 2010-04-14  Simon Josefsson  <simon@josefsson.org>
63356         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
63357         version 1.4.4 by default instead of requiring the libgcrypt
63358         version used during build.  This makes it possible to use the
63359         application with older but still binary compatible libgcrypt
63360         versions.
63362 2010-04-13  Eric Blake  <eblake@redhat.com>
63364         getopt-gnu: match recent glibc fixes and posix ruling
63365         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
63366         '+' handling, when requesting extensions.
63367         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
63368         'W;' handling.
63369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
63370         * doc/posix-functions/getopt.texi (getopt): Document this.
63371         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
63372         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
63373         Likewise.
63375         getopt: merge bug fixes from glibc
63376         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
63377         diagnostics.  Honor '+:' correctly.  Reject ';'.
63379         getopt-posix: detect MacOS bug
63380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
63381         optind when missing a required argument.
63382         * doc/posix-functions/getopt.texi (getopt): Document the bug.
63383         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
63384         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
63385         Likewise.
63387         getopt-posix: avoid spurious failure on Solaris
63388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
63389         an indicator that setting optind=1 is sufficient for reset.
63391         getopt-posix: avoid spurious failure on FreeBSD
63392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
63393         in POSIX mode, since the m4 test uses it.
63395         gnulib-tool: silence warning on BSD sh
63396         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
63398 2010-04-13  Jim Meyering  <meyering@redhat.com>
63400         doc: users.txt: GNU patch now uses gnulib
63401         * users.txt: Add patch.
63403 2010-04-12  Jim Meyering  <meyering@redhat.com>
63405         maint.mk: generate more concise timing data for syntax-check rules
63406         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
63407         " done" from each line that reports a syntax-check test duration.
63409 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
63411         git-version-gen: use "git update-index..." rather than "git status"
63412         * build-aux/git-version-gen: Use git update-index --refresh, not
63413         "git status".  With some versions of git, "git status" would fail
63414         to update the index and result in an unwarranted "-dirty" suffix.
63416 2010-04-11  Jim Meyering  <meyering@redhat.com>
63418         openat: correct formatting (no semantic change)
63419         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
63420         Suggested by Bruno Haible.
63422 2010-04-11  Bruno Haible  <bruno@clisp.org>
63424         Stricter declaration checking in testdirs.
63425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63426         If for_tests is true, augment AM_CPPFLAGS to define
63427         GNULIB_STRICT_CHECKING.
63428         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
63429         GNULIB_STRICT_CHECKING is defined, verify that the function is
63430         declared.
63432 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
63433             Bruno Haible  <bruno@clisp.org>
63435         libunistring: Improve configure output.
63436         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
63437         Don't say "consider installing GNU libunistring" when checking again
63438         with libiconv.
63440 2010-04-11  Bruno Haible  <bruno@clisp.org>
63442         libunistring: Correct value of $LTLIBUNISTRING.
63443         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
63444         correct the value of $LTLIBUNISTRING.
63446 2010-04-11  Bruno Haible  <bruno@clisp.org>
63448         havelib: Add static libraries to LIBS in the right order.
63449         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
63450         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
63452 2010-04-11  Bruno Haible  <bruno@clisp.org>
63454         libunistring: Detect libunistring also when it depends on libiconv.
63455         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
63456         the second AC_LIB_HAVE_LINKFLAGS invocation.
63458 2010-04-11  James Youngman  <jay@gnu.org>
63460         close-stream: declare local scalars to be "const"
63461         * lib/close-stream.c (close_stream): Make boolean variables const
63462         to document the fact that we set but do not change them.
63464 2010-04-11  Bruno Haible  <bruno@clisp.org>
63466         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
63468 2010-04-11  Jim Meyering  <meyering@redhat.com>
63470         maint.mk: don't include dist-check.mk
63471         * top/maint.mk: Remove bogus include directive.
63473         maint.mk: improve empty-line-at-EOF check
63474         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
63475         solution, rather than tail+Perl-based one.  The latter would read
63476         a few kilobytes from the end of each file, and did not handle empty
63477         files properly.
63479         maint.mk: print the elapsed time for each syntax-check rule
63480         * top/maint.mk (sc_m_rules_): Save start time in a file.
63481         (sc_z_rules_): New rules: remove temp file and print elapsed time.
63482         (local-check): Interpose the .z rules
63484 2010-04-11  Jim Meyering  <meyering@redhat.com>
63486         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
63487         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
63488         empty file with one that ends in an empty line.
63490 2010-04-10  Bruno Haible  <bruno@clisp.org>
63492         mkdir: Make it work on mingw64.
63493         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
63494         * lib/mkdir.c: Update comment.
63495         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
63497 2010-04-10  Bruno Haible  <bruno@clisp.org>
63499         Don't override improved macro from newer autoconf.
63500         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
63501         autoconf >= 2.62.
63502         Reported by Joel E. Denny <jdenny@clemson.edu>.
63504 2010-04-10  Jim Meyering  <meyering@redhat.com>
63506         maint.mk: new syntax-check rule: prohibit empty lines at end of file
63507         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
63509         maint.mk: correct a diagnostic
63510         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
63511         in diagnostic; now use $prohibit.
63513 2010-04-10  Bruno Haible  <address@hidden>
63515         fchownat: Fix a C++ test error on Solaris 8.
63516         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
63517         the function does not exist.
63519 2010-04-10  Bruno Haible  <bruno@clisp.org>
63521         vasnprintf: Add more tests.
63522         * tests/test-vasnprintf-posix.c: Include <errno.h>.
63523         (test_function): Test converting an invalid wide string.
63525         vasnprintf: Correct handling of unconvertible wide string arguments.
63526         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
63527         VASNPRINTF.
63528         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
63529         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
63530         smaller than the expected maximum need for the directive. Set errno to
63531         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
63532         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
63533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
63534         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
63535         * modules/vasnprintf (Files): Add m4/printf.m4.
63536         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63538 2010-04-10  Bruno Haible  <bruno@clisp.org>
63540         vasnprintf: Fix crash in %ls directive.
63541         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
63542         string is passed as argument to %ls, with no precision and no width.
63543         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63545 2010-04-10  Bruno Haible  <bruno@clisp.org>
63547         vasnprintf: Fix multiple test failures on mingw.
63548         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
63549         _snprintf, or snwprintf, not _snwprintf.
63551 2010-04-10  Bruno Haible  <bruno@clisp.org>
63553         write: Fix a C++ test error on mingw.
63554         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
63556 2010-04-10  Bruno Haible  <bruno@clisp.org>
63558         vasnprintf test: Reduce code duplication.
63559         * tests/test-vasnprintf.c (test_function): New function, extracted from
63560         test_vasnprintf.
63561         (test_vasnprintf, test_asnprintf): Invoke it.
63563 2010-04-10  Bruno Haible  <bruno@clisp.org>
63565         strnlen: Fix warning in C++ mode on MacOS X.
63566         * lib/string.in.h (strnlen): Use the modern idiom.
63567         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
63568         defining strnlen as a macro already in <config.h>.
63569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63570         REPLACE_STRNLEN.
63571         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
63572         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63574 2010-04-08  James Youngman  <jay@gnu.org>
63576         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
63577         the example.
63579 2010-04-09  Jim Meyering  <meyering@redhat.com>
63581         maint.mk: print better diagnostic when there is no $(_hv_file)
63582         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
63583         announce that when $(_hv_file) (aka help-version) does not exist.
63585         init.sh: run tr in the "C" locale to avoid multibyte interpretation
63586         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
63587         not try to interpret its random input bytes.  Jarno Rajahalme reported
63588         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
63589         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
63590         (mktempd_): Likewise, just in case.
63592         ftruncate: add two years to projected module removal date: 2012
63593         * m4/ftruncate.m4: Adjust comments.
63595         ftruncate: mark module as obsolete; even MinGW provides it, now
63596         * modules/ftruncate (Status): Obsolete.
63597         (Notice): Say that.
63598         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
63599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
63601 2010-04-08  Bruno Haible  <bruno@clisp.org>
63603         Fix side effects from tests-related modules.
63604         * modules/dprintf-posix (Comment): New section.
63605         * modules/fprintf-posix (Comment): Likewise.
63606         * modules/obstack-printf-posix (Comment): Likewise.
63607         * modules/printf-posix (Comment): Likewise.
63608         * modules/snprintf-posix (Comment): Likewise.
63609         * modules/sprintf-posix (Comment): Likewise.
63610         * modules/vasnprintf-posix (Comment): Likewise.
63611         * modules/vasprintf-posix (Comment): Likewise.
63612         * modules/vdprintf-posix (Comment): Likewise.
63613         * modules/vfprintf-posix (Comment): Likewise.
63614         * modules/vprintf-posix (Comment): Likewise.
63615         * modules/vsnprintf-posix (Comment): Likewise.
63616         * modules/vsprintf-posix (Comment): Likewise.
63617         * modules/xprintf-posix (Comment): Likewise.
63618         * modules/xvasprintf-posix (Comment): Likewise.
63619         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
63620         * modules/floorf-tests (Depends-on): Likewise.
63621         * modules/round-tests (Depends-on): Likewise.
63622         * modules/roundf-tests (Depends-on): Likewise.
63623         * modules/trunc-tests (Depends-on): Likewise.
63624         * modules/truncf-tests (Depends-on): Likewise.
63625         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
63626         'fprintf-posix' module is not present.
63627         * tests/test-floorf2.c (check): Likewise.
63628         * tests/test-trunc2.c (check): Likewise.
63629         * tests/test-truncf2.c (check): Likewise.
63630         * tests/test-round2.c (equal): Likewise.
63631         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63633 2010-04-07  Karl Berry  <karl@gnu.org>
63635         * config/srclist.txt,
63636         * config/srclistvars.sh,
63637         * config/srclist-update: doc fixes.
63639 2010-04-07  Jim Meyering  <meyering@redhat.com>
63641         maint.mk: add a PATH crosschecking syntax-check rule
63642         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
63643         Useful if you use a test like the one in help-version (coreutils,
63644         diffutils, grep, gzip) that ensures $(VERSION) matches what is
63645         printed by prog --version.
63647 2010-04-06  Bruno Haible  <bruno@clisp.org>
63649         Fix link error on mingw.
63650         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
63651         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
63653 2010-04-06  Bruno Haible  <bruno@clisp.org>
63655         Assume rmdir exists.
63656         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
63658 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
63660         doc: update users.txt
63661         * users.txt: Add gcal.
63663 2010-04-06  Jim Meyering  <meyering@redhat.com>
63665         init.sh: simply unset TMPDIR rather than risking env -i
63666         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
63667         although it probably works fine on all Unix-based systems, some
63668         systems (Cygwin?) cannot tolerate a totally cleared environment.
63669         Suggestion from Eric Blake.
63671 2010-04-06  Jim Meyering  <meyering@redhat.com>
63673         init.sh: portability fix: use env's POSIX-specified -i option not -u
63674         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
63675         than unportable env -u.  Solaris 5.11's env lacks support for -u.
63677 2010-04-05  Bruno Haible  <bruno@clisp.org>
63679         btowc: Work around Cygwin 1.7.2 bug.
63680         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
63681         does not map NUL to 0.
63682         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
63684 2010-04-05  Bruno Haible  <bruno@clisp.org>
63686         Make the multithread modules work on Cygwin 1.7.2.
63687         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
63688         imported symbols can be declared weak, so that it returns "no" on
63689         Cygwin 1.7.2.
63691 2010-04-05  Bruno Haible  <bruno@clisp.org>
63693         Use the module 'strncat'.
63694         * modules/unistr/u8-strncat (Depends-on): Add strncat.
63696         Tests for module 'strncat'.
63697         * modules/strncat-tests: New file.
63698         * tests/test-strncat.c: New file.
63700         New module 'strncat'.
63701         * lib/string.in.h (strncat): New declaration.
63702         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
63703         * m4/strncat.m4: New file, based on m4/memchr.m4.
63704         * modules/strncat: New file.
63705         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
63706         is declared.
63707         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
63708         REPLACE_STRNCAT.
63709         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
63710         REPLACE_STRNCAT.
63711         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
63712         module.
63713         * tests/test-string-c++.cc: Check signature of strncat.
63715 2010-04-05  Jim Meyering  <meyering@redhat.com>
63717         xstrtoumax-tests: convert to use init.sh
63718         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
63719         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63720         Use Exit, not exit.
63721         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63723         xstrtoimax-tests: convert to use init.sh
63724         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
63725         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63726         Use Exit, not exit.
63727         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63729 2010-04-05  Bruno Haible  <bruno@clisp.org>
63731         sys_socket: Avoid #define replacements in C++ mode.
63732         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
63733         warning to the function if possible, rather than #defining the symbol
63734         to a dysfunctional alias.
63736 2010-04-05  Bruno Haible  <bruno@clisp.org>
63738         fseeko: Fix C++ test error on mingw.
63739         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
63740         gl_FUNC_FSEEKO.
63741         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
63742         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
63743         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
63744         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
63746 2010-04-05  Bruno Haible  <bruno@clisp.org>
63748         duplocale: Improve test output.
63749         * tests/test-duplocale.c (main): Print reason for skipped test.
63751 2010-04-05  Bruno Haible  <bruno@clisp.org>
63753         Assume rmdir exists.
63754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
63755         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
63757 2010-04-05  Bruno Haible  <bruno@clisp.org>
63759         Fix link error on Solaris 8 with cc.
63760         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
63762 2010-04-05  Bruno Haible  <bruno@clisp.org>
63764         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
63765         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
63767 2010-04-05  Bruno Haible  <bruno@clisp.org>
63769         vasprintf: Update documentation.
63770         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
63772 2010-04-05  Bruno Haible  <bruno@clisp.org>
63774         ptsname: Improve test.
63775         * tests/test-ptsname.c (main): Also try the various master names of BSD
63776         systems.
63778 2010-04-05  Bruno Haible  <bruno@clisp.org>
63780         memchr: Avoid a possible C++ test error.
63781         * lib/string.in.h (memchr): Provide declaration if function is missing.
63782         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
63783         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
63784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
63785         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
63787 2010-04-05  Bruno Haible  <bruno@clisp.org>
63789         strtok_r: Improve idiom.
63790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
63791         AC_LIBOBJ is used.
63793 2010-04-05  Bruno Haible  <bruno@clisp.org>
63795         strdup: Improve idiom.
63796         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
63797         AC_LIBOBJ is used.
63798         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
63799         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
63800         when AC_LIBOBJ is used.
63802 2010-04-05  Bruno Haible  <bruno@clisp.org>
63804         mbsinit, mbrtowc, wcrtomb: Improve idioms.
63805         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
63806         don't set REPLACE_MBSINIT to 1.
63807         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
63808         don't set REPLACE_MBRTOWC to 1.
63809         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
63810         exist, don't set REPLACE_MBSRTOWCS to 1.
63811         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
63812         exist, don't set REPLACE_MBSNRTOWCS to 1.
63813         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
63814         don't set REPLACE_WCRTOMB to 1.
63815         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
63816         exist, don't set REPLACE_WCSRTOMBS to 1.
63817         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
63818         exist, don't set REPLACE_WCSNRTOMBS to 1.
63820 2010-04-05  Bruno Haible  <bruno@clisp.org>
63822         ldexpl: Improve idiom.
63823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
63824         make sure to set HAVE_DECL_LDEXPL to 0.
63826 2010-04-05  Jim Meyering  <meyering@redhat.com>
63828         xstrtol-tests: convert to use init.sh
63829         * modules/xstrtol-tests (Files): Add tests/init.sh.
63830         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63831         Use Exit, not exit.
63832         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63834         atexit-tests: convert to use init.sh
63835         * modules/atexit-tests (Files): Add tests/init.sh.
63836         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63837         Use Exit, not exit.
63838         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63840         init.sh: fix typo
63841         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
63843         init.sh: make it easier for a test script to write to the tty, ...
63844         when using automake's parallel-tests mode.
63845         * tests/init.sh (stderr_fileno_): Define overridable variable.
63846         (warn_): New function, to use it.
63847         (fail_, skip_, framework_failure_): Use warn_.
63849 2010-04-04  Bruno Haible  <bruno@clisp.org>
63851         btowc: Avoid warning.
63852         * lib/btowc.c: Include <stdlib.h>.
63853         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
63855 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
63856             Bruno Haible  <bruno@clisp.org>
63858         wchar: Port to NetBSD 1.5.
63859         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
63860         * lib/wctype.in.h (WEOF): Likewise.
63862 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
63863             Bruno Haible  <bruno@clisp.org>
63865         Port extended stdio to NetBSD 1.5.
63866         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
63867         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
63868         older.
63870 2010-04-04  Bruno Haible  <bruno@clisp.org>
63872         string: Remove unused substitution.
63873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63874         HAVE_DECL_STRERROR.
63875         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
63877 2010-04-04  Bruno Haible  <bruno@clisp.org>
63879         strtod: Avoid a possible C++ test error.
63880         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
63881         set REPLACE_STRTOD.
63883 2010-04-04  Bruno Haible  <bruno@clisp.org>
63885         strerror: Update documentation.
63886         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
63888 2010-04-04  Bruno Haible  <bruno@clisp.org>
63890         stdio: Fix some C++ test errors on Solaris 8 with GCC.
63891         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
63892         _GL_CXXALIAS_SYS_CAST.
63894 2010-04-04  Bruno Haible  <bruno@clisp.org>
63896         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
63897         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
63898         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
63899         REPLACE_FREXPL to 1.
63900         * doc/posix-functions/frexpl.texi: Update documentation.
63902 2010-04-04  Bruno Haible  <bruno@clisp.org>
63904         math: Fix some C++ test errors on Solaris 8 and Cygwin.
63905         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
63907 2010-04-04  Bruno Haible  <bruno@clisp.org>
63909         Implement nanosleep for native Windows.
63910         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
63912 2010-04-04  Bruno Haible  <bruno@clisp.org>
63914         math: Fix some C++ test errors on Solaris 8.
63915         * lib/math.in.h (truncf, trunc): Use simpler idiom.
63917 2010-04-04  Bruno Haible  <bruno@clisp.org>
63919         math: Fix some C++ test errors on Cygwin.
63920         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
63921         truncl): Provide declaration if the system does not have it.
63922         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
63923         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
63924         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
63925         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
63926         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
63927         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
63928         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
63929         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
63930         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
63931         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
63932         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
63933         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
63934         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
63935         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
63936         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
63937         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
63938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
63939         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
63940         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
63941         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
63942         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
63943         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
63945 2010-04-04  Bruno Haible  <bruno@clisp.org>
63947         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
63948         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
63949         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
63950         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63951         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
63952         * m4/isinf.m4 (gl_ISINF): Likewise.
63953         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
63955 2010-04-04  Bruno Haible  <bruno@clisp.org>
63957         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
63958         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
63960 2010-04-04  Bruno Haible  <bruno@clisp.org>
63962         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
63963         * modules/tmpfile (configure.ac): Update.
63965         tmpfile: Fix C++ test error on mingw.
63966         * lib/stdio.in.h (tmpfile): New declaration.
63967         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
63968         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
63969         * modules/tmpfile (Depends-on): Add stdio.
63970         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63971         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
63972         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
63973         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
63974         REPLACE_TMPFILE.
63975         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
63977 2010-04-04  Bruno Haible  <bruno@clisp.org>
63979         ioctl: Fix C++ test error on mingw.
63980         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
63981         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
63982         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
63984 2010-04-03  Bruno Haible  <bruno@clisp.org>
63986         wcwidth: Fix C++ test error on mingw.
63987         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
63988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
63989         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
63991 2010-04-03  Bruno Haible  <bruno@clisp.org>
63993         nanosleep: Fix C++ test error on mingw.
63994         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
63995         * lib/time.in.h (nanosleep): Use modern idiom.
63996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
63997         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
63998         REPLACE_NANOSLEEP to 1.
63999         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
64000         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
64002 2010-04-03  Bruno Haible  <bruno@clisp.org>
64004         strptime: Fix C++ test error on mingw.
64005         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
64006         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
64007         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
64008         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
64009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
64010         not REPLACE_STRPTIME.
64011         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
64012         REPLACE_STRPTIME.
64014 2010-04-03  Bruno Haible  <bruno@clisp.org>
64016         timegm: Fix C++ test error on mingw.
64017         * lib/time.in.h (timegm): Use modern idiom.
64018         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
64019         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
64020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
64021         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
64023 2010-04-03  Bruno Haible  <bruno@clisp.org>
64025         timegm: Assume declaration if function exists.
64026         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
64027         if it exists. Don't clobber ac_cv_func_timegm.
64029 2010-04-03  Bruno Haible  <bruno@clisp.org>
64031         time_r: Fix C++ test error on mingw.
64032         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
64033         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
64034         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
64035         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
64036         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
64038 2010-04-03  Bruno Haible  <bruno@clisp.org>
64040         time_r: Minor updates.
64041         * modules/time_r (Description): Mention the provided functions.
64042         * lib/time_r.c: Don't include <string.h>.
64043         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
64044         * doc/posix-functions/localtime_r.texi: Likewise.
64046 2010-04-03  Bruno Haible  <bruno@clisp.org>
64048         time: Fix regression introduced on 2010-03-08.
64049         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
64050         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
64052 2010-04-03  Jim Meyering  <meyering@redhat.com>
64054         maint.mk: don't silently disable project-specific syntax-check rules
64055         * top/maint.mk (_prohibit_regexp): Define, to help people realize
64056         that they need to convert their project-specific syntax-check rules
64057         to use the new _sc_search_regexp.
64059 2010-04-03  Bruno Haible  <bruno@clisp.org>
64061         fchdir: Fix regression introduced on 2010-03-08.
64062         * lib/unistd.in.h (fchdir): Fix declaration.
64063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
64064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
64065         REPLACE_FCHDIR.
64066         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
64067         REPLACE_FCHDIR.
64069 2010-04-03  Bruno Haible  <bruno@clisp.org>
64071         getpagesize: Fix C++ test error on mingw.
64072         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
64073         system does not declare the function.
64074         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
64075         declared.
64076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64077         HAVE_DECL_GETPAGESIZE.
64078         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
64080 2010-04-03  Bruno Haible  <bruno@clisp.org>
64082         stdio: Make C++ tests work on mingw.
64083         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
64084         does not declare the function.
64086 2010-04-03  Bruno Haible  <bruno@clisp.org>
64088         ftello: Fix C++ test error on mingw.
64089         * lib/stdio.in.h (ftello): Use modern idiom.
64090         * lib/ftello.c (ftello): Renamed from rpl_ftello.
64091         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
64092         is missing and that it needs to be replaced.
64093         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
64094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
64095         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
64097 2010-04-03  Bruno Haible  <bruno@clisp.org>
64099         fseeko: Fix C++ test error on mingw.
64100         * lib/stdio.in.h (fseeko): Use modern idiom.
64101         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
64102         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
64103         is missing and that it needs to be replaced.
64104         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
64105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
64106         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
64108 2010-04-03  Bruno Haible  <bruno@clisp.org>
64110         mkstemp: Fix C++ test error on mingw.
64111         * lib/stdlib.in.h (mkstemp): Use modern idiom.
64112         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
64113         function is missing and that it needs to be replaced.
64114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
64115         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
64117 2010-04-03  Bruno Haible  <bruno@clisp.org>
64119         stpncpy: Fix C++ test error on mingw.
64120         * lib/string.in.h (stpncpy): Use modern idiom.
64121         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
64122         function is missing and that it needs to be replaced.
64123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64124         REPLACE_STPNCPY.
64125         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
64127 2010-04-03  Bruno Haible  <bruno@clisp.org>
64129         sys_stat: Fix C++ test error on mingw.
64130         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
64131         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
64133 2010-04-03  Bruno Haible  <bruno@clisp.org>
64135         pty: Update doc.
64136         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
64138 2010-04-03  Bruno Haible  <bruno@clisp.org>
64140         unistd: Fix C++ test error on mingw.
64141         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
64143 2010-04-03  Bruno Haible  <bruno@clisp.org>
64145         Update doc regarding mingw.
64146         * doc/glibc-functions/openpty.texi: Update regarding mingw.
64147         * doc/glibc-functions/login_tty.texi: Likewise.
64148         * doc/glibc-functions/forkpty.texi: Likewise.
64150 2010-04-03  Bruno Haible  <bruno@clisp.org>
64152         stdlib: Avoid compilation failure of c-strtold on mingw.
64153         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
64155 2010-04-03  Bruno Haible  <bruno@clisp.org>
64157         locale: Make C++ tests work on Cygwin and mingw.
64158         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
64159         cannot provide the function.
64160         Reported by Simon Josefsson.
64162 2010-04-03  Bruno Haible  <bruno@clisp.org>
64164         localename: Port to MacOS X 10.6.
64165         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
64166         memory layout of the locales in MacOS X 10.6 as well.
64167         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
64169 2010-04-02  Bruno Haible  <bruno@clisp.org>
64171         gnulib-tool: Ensure that long-running tests are executed last.
64172         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
64173         running tests after the one for the other tests.
64175 2010-04-02  Bruno Haible  <bruno@clisp.org>
64177         gnulib-tool: Ensure the tests in the main directory are executed first.
64178         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
64179         start with the current directory.
64181 2010-04-02  Bruno Haible  <bruno@clisp.org>
64183         Tests for module 'havelib', moved here from GNU gettext.
64184         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
64185         modifications.
64186         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
64187         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
64188         with modifications.
64189         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
64190         modifications.
64191         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
64192         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
64193         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
64194         with modifications.
64195         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
64196         with modifications.
64197         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
64198         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
64199         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
64200         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
64201         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
64202         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
64203         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
64204         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
64205         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
64206         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
64207         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
64208         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
64209         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
64210         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
64211         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
64212         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
64213         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
64214         with modifications.
64215         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
64216         with modifications.
64217         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
64218         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
64219         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
64220         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
64221         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
64222         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
64223         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
64224         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
64225         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
64226         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
64227         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
64228         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
64229         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
64230         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
64231         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
64232         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
64233         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
64234         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
64235         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
64236         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
64237         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
64238         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
64239         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
64240         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
64241         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
64242         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
64243         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
64244         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
64245         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
64246         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
64247         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
64248         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
64249         * tests/havelib/rpathx/rpathx.c: New file, from
64250         gettext/autoconf-lib-link.
64251         * tests/havelib/rpathx/Makefile.am: New file, from
64252         gettext/autoconf-lib-link.
64253         * tests/havelib/rpathx/configure.ac: New file, from
64254         gettext/autoconf-lib-link with modifications.
64255         * tests/havelib/rpathy/rpathy.c: New file, from
64256         gettext/autoconf-lib-link.
64257         * tests/havelib/rpathy/Makefile.am: New file, from
64258         gettext/autoconf-lib-link.
64259         * tests/havelib/rpathy/configure.ac: New file, from
64260         gettext/autoconf-lib-link with modifications.
64261         * tests/havelib/rpathz/rpathz.c: New file, from
64262         gettext/autoconf-lib-link.
64263         * tests/havelib/rpathz/Makefile.am: New file, from
64264         gettext/autoconf-lib-link.
64265         * tests/havelib/rpathz/configure.ac: New file, from
64266         gettext/autoconf-lib-link with modifications.
64267         * tests/havelib/rpathlx/usex.c: New file, from
64268         gettext/autoconf-lib-link.
64269         * tests/havelib/rpathlx/Makefile.am: New file, from
64270         gettext/autoconf-lib-link.
64271         * tests/havelib/rpathlx/configure.ac: New file, from
64272         gettext/autoconf-lib-link with modifications.
64273         * tests/havelib/rpathly/usey.c: New file, from
64274         gettext/autoconf-lib-link.
64275         * tests/havelib/rpathly/Makefile.am: New file, from
64276         gettext/autoconf-lib-link.
64277         * tests/havelib/rpathly/configure.ac: New file, from
64278         gettext/autoconf-lib-link with modifications.
64279         * tests/havelib/rpathlz/usez.c: New file, from
64280         gettext/autoconf-lib-link.
64281         * tests/havelib/rpathlz/Makefile.am: New file, from
64282         gettext/autoconf-lib-link.
64283         * tests/havelib/rpathlz/configure.ac: New file, from
64284         gettext/autoconf-lib-link with modifications.
64285         * tests/havelib/rpathlyx/usey.c: New file, from
64286         gettext/autoconf-lib-link.
64287         * tests/havelib/rpathlyx/Makefile.am: New file, from
64288         gettext/autoconf-lib-link.
64289         * tests/havelib/rpathlyx/configure.ac: New file, from
64290         gettext/autoconf-lib-link with modifications.
64291         * tests/havelib/rpathlzyx/usez.c: New file, from
64292         gettext/autoconf-lib-link.
64293         * tests/havelib/rpathlzyx/Makefile.am: New file, from
64294         gettext/autoconf-lib-link.
64295         * tests/havelib/rpathlzyx/configure.ac: New file, from
64296         gettext/autoconf-lib-link with modifications.
64297         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
64298         with modifications.
64300 2010-04-02  Bruno Haible  <bruno@clisp.org>
64302         gnulib-tool: Create distributed built sources also for the tests.
64303         * gnulib-tool (func_create_testdir): Also generate distributed built
64304         sources in the tests directory.
64306 2010-04-02  Bruno Haible  <bruno@clisp.org>
64308         gnulib-tool: Obey user's environment variables.
64309         * gnulib-tool (func_create_testdir): When creating built sources,
64310         respect the environment variables for autoconf, automake, etc. given by
64311         the user.
64313 2010-04-02  Bruno Haible  <bruno@clisp.org>
64315         gnulib-tool: Provide the value of --m4-base to modules.
64316         * gnulib-tool (func_import, func_create_testdir): Emit a definition
64317         of gl_m4_base.
64319 2010-04-02  Eric Blake  <eblake@redhat.com>
64321         maint.mk: fix some fallout
64322         * NEWS: Document the incompatible change, and its effect on cfg.mk.
64323         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
64325 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
64327         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
64328         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
64329         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
64330         (sc_cast_of_x_alloc_return_value): Likewise.
64331         (sc_cast_of_alloca_return_value): Likewise.
64332         (sc_space_tab): Likewise.
64333         (sc_prohibit_atoi_atof): Likewise.
64334         (sc_prohibit_magic_number_exit): Likewise.
64335         (sc_error_exit_success): Likewise.
64336         (sc_file_system): Likewise.
64337         (sc_prohibit_have_config_h): Likewise.
64338         (sc_require_config_h): Likewise.
64339         (sc_prohibit_HAVE_MBRTOWC): Likewise.
64340         (sc_obsolete_symbols): Likewise.
64341         (sc_changelog): Likewise.
64342         (sc_program_name): Likewise.
64343         (sc_the_the): Likewise.
64344         (sc_trailing_blank): Likewise.
64345         (sc_two_space_separator_in_usage): Likewise.
64346         (sc_useless_cpp_parens): Likewise.
64347         (sc_GPL_version): Likewise.
64348         (sc_GFDL_version): Likewise.
64349         (sc_texinfo_acronym): Likewise.
64350         (sc_prohibit_cvs_keyword): Likewise.
64351         (sc_prohibit_stat_st_blocks): Likewise.
64352         (sc_prohibit_S_IS_definition): Likewise.
64353         (sc_redundant_const): Likewise.
64354         (sc_makefile_TAB_only_indentation): Likewise.
64355         (sc_m4_quote_check): Likewise.
64356         (sc_makefile_path_separator_check): Likewise.
64357         (sc_copyright_check): Likewise.
64358         (sc_Wundef_boolean): Likewise.
64359         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64361         maint.mk: match 0 or more whitespace-before-function-call '('
64362         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
64363         that have zero or two-and-more spaces between the function name
64364         and the open parenthesis.
64365         (sc_error_message_warn_fatal): Likewise.
64366         (sc_error_message_uppercase): Likewise.
64367         (sc_error_message_period): Likewise.
64369 2010-03-31  Eric Blake  <eblake@redhat.com>
64371         maint.mk: check for [ as well as test
64372         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
64373         Based on a libvirt report by Matthias Bolte.
64375         gnumakefile: don't squelch _version output
64376         * top/GNUmakefile (_version): Create one-shot dependency rather
64377         than using $(shell) when version must be regenerated.
64378         (_autoreconf): Run verbosely, by default.
64380         sys_time: avoid compiler warnings
64381         * lib/sys_time.in.h (includes): Ensure gcc pragma is
64382         unconditional, fixing regression from 2010-03-29.
64383         Reported by Simon Josefsson.
64385 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
64387         maint.mk: s/_header_without_use/_sc_header_without_use/
64388         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
64389         (sc_prohibit_assert_without_use): Use the new name.
64390         (sc_prohibit_close_stream_without_use): Likewise.
64391         (sc_prohibit_getopt_without_use): Likewise.
64392         (sc_prohibit_quotearg_without_use): Likewise.
64393         (sc_prohibit_quote_without_use): Likewise.
64394         (sc_prohibit_long_options_without_use): Likewise.
64395         (sc_prohibit_inttostr_without_use): Likewise.
64396         (sc_prohibit_ignore_value_without_use): Likewise.
64397         (sc_prohibit_error_without_use): Likewise.
64398         (sc_prohibit_xalloc_without_use): Likewise.
64399         (sc_prohibit_hash_without_use): Likewise.
64400         (sc_prohibit_hash_pjw_without_use): Likewise.
64401         (sc_prohibit_safe_read_without_use): Likewise.
64402         (sc_prohibit_argmatch_without_use): Likewise.
64403         (sc_prohibit_canonicalize_without_use): Likewise.
64404         (sc_prohibit_root_dev_ino_without_use): Likewise.
64405         (sc_prohibit_openat_without_use): Likewise.
64406         (sc_prohibit_c_ctype_without_use): Likewise.
64407         (sc_prohibit_signal_without_use): Likewise.
64408         (sc_prohibit_intprops_without_use): Likewise.
64410 2010-03-30  Eric Blake  <eblake@redhat.com>
64412         maint: improve module indicators
64413         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
64414         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
64415         columns, and avoid extra macro expansion.
64417         fdopendir: work around FreeBSD bug
64418         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
64419         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
64420         * modules/dirent (Makefile.am): Substitute it.
64421         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
64422         declaration.
64423         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
64424         fix.
64425         Reported by Christian Weisgerber <naddy@mips.inka.de>.
64427 2010-03-29  Bruno Haible  <bruno@clisp.org>
64429         Emit #pragma system_header after the inclusion guard, not before.
64430         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
64431         guard that spans the entire file, not before. This enables an
64432         optimization in GCC's preprocessor.
64433         * lib/ctype.in.h: Likewise.
64434         * lib/dirent.in.h: Likewise.
64435         * lib/errno.in.h: Likewise.
64436         * lib/float.in.h: Likewise.
64437         * lib/getopt.in.h: Likewise.
64438         * lib/iconv.in.h: Likewise.
64439         * lib/langinfo.in.h: Likewise.
64440         * lib/locale.in.h: Likewise.
64441         * lib/math.in.h: Likewise.
64442         * lib/netdb.in.h: Likewise.
64443         * lib/netinet_in.in.h: Likewise.
64444         * lib/pty.in.h: Likewise.
64445         * lib/sched.in.h: Likewise.
64446         * lib/se-selinux.in.h: Likewise.
64447         * lib/search.in.h: Likewise.
64448         * lib/spawn.in.h: Likewise.
64449         * lib/stdarg.in.h: Likewise.
64450         * lib/stdint.in.h: Likewise.
64451         * lib/string.in.h: Likewise.
64452         * lib/strings.in.h: Likewise.
64453         * lib/sys_file.in.h: Likewise.
64454         * lib/sys_ioctl.in.h: Likewise.
64455         * lib/sys_time.in.h: Likewise.
64456         * lib/sys_times.in.h: Likewise.
64457         * lib/sys_utsname.in.h: Likewise.
64458         * lib/sys_wait.in.h: Likewise.
64459         * lib/sysexits.in.h: Likewise.
64460         * lib/wctype.in.h: Likewise.
64462 2010-03-28  James Youngman  <jay@gnu.org>
64464         save-cwd: don't leak a file descriptor when the caller execs.
64465         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
64466         saved file descriptor.
64467         * modules/save-cwd (Depends-on): Depend on cloexec.
64469 2010-03-29  Bruno Haible  <bruno@clisp.org>
64471         Remove vestiges of fts-lgpl module.
64472         * lib/fts_.h: Assume GNULIB_FTS is 1.
64473         * lib/fts.c: Likewise.
64474         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
64476 2010-03-28  Bruno Haible  <bruno@clisp.org>
64478         Fix definition of tests witness macro.
64479         * gnulib-tool (func_import): Fix definition of witness macro.
64481 2010-03-28  Bruno Haible  <bruno@clisp.org>
64483         Fix ioctl's protoype on glibc systems.
64484         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
64485         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
64486         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
64487         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
64488         signature. If not, arrange to replace the ioctl function.
64489         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
64490         REPLACE_IOCTL.
64491         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
64492         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
64493         Reported by Ludovic Courtès <ludo@gnu.org>.
64495 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
64497         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
64498         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
64499         made it so grep -r --include=GLOB* ... did not work.
64501 2010-03-26  Jim Meyering  <meyering@redhat.com>
64502             Eric Blake  <eblake@redhat.com>
64504         maint.mk: prohibit use of test's -o and -a operators
64505         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
64507 2010-03-28  Bruno Haible  <bruno@clisp.org>
64509         Remove unused GNULIB_XYZ macro definitions.
64510         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
64511         invocation.
64513 2010-03-28  Bruno Haible  <bruno@clisp.org>
64515         Mark privileged tests modules.
64516         * modules/idpriv-drop-tests (Status): New section.
64517         * modules/idpriv-droptemp-tests (Status): New section.
64519 2010-03-28  Bruno Haible  <bruno@clisp.org>
64521         Split C++ tests into separate tests modules.
64522         * modules/dirent-c++-tests: New file, extracted from
64523         modules/dirent-tests.
64524         * modules/dirent-tests: Depend on it.
64525         * modules/fcntl-h-c++-tests: New file, extracted from
64526         modules/fcntl-h-tests.
64527         * modules/fcntl-h-tests: Depend on it.
64528         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
64529         * modules/glob-tests: Depend on it.
64530         * modules/iconv-h-c++-tests: New file, extracted from
64531         modules/iconv-h-tests.
64532         * modules/iconv-h-tests: Depend on it.
64533         * modules/langinfo-c++-tests: New file, extracted from
64534         modules/langinfo-tests.
64535         * modules/langinfo-tests: Depend on it.
64536         * modules/locale-c++-tests: New file, extracted from
64537         modules/locale-tests.
64538         * modules/locale-tests: Depend on it.
64539         * modules/math-c++-tests: New file, extracted from modules/math-tests.
64540         * modules/math-tests: Depend on it.
64541         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
64542         * modules/pty-tests: Depend on it.
64543         * modules/search-c++-tests: New file, extracted from
64544         modules/search-tests.
64545         * modules/search-tests: Depend on it.
64546         * modules/signal-c++-tests: New file, extracted from
64547         modules/signal-tests.
64548         * modules/signal-tests: Depend on it.
64549         * modules/spawn-c++-tests: New file, extracted from
64550         modules/spawn-tests.
64551         * modules/spawn-tests: Depend on it.
64552         * modules/stdio-c++-tests: New file, extracted from
64553         modules/stdio-tests.
64554         * modules/stdio-tests: Depend on it.
64555         * modules/stdlib-c++-tests: New file, extracted from
64556         modules/stdlib-tests.
64557         * modules/stdlib-tests: Depend on it.
64558         * modules/string-c++-tests: New file, extracted from
64559         modules/string-tests.
64560         * modules/string-tests: Depend on it.
64561         * modules/sys_ioctl-c++-tests: New file, extracted from
64562         modules/sys_ioctl-tests.
64563         * modules/sys_ioctl-tests: Depend on it.
64564         * modules/sys_select-c++-tests: New file, extracted from
64565         modules/sys_select-tests.
64566         * modules/sys_select-tests: Depend on it.
64567         * modules/sys_socket-c++-tests: New file, extracted from
64568         modules/sys_socket-tests.
64569         * modules/sys_socket-tests: Depend on it.
64570         * modules/sys_stat-c++-tests: New file, extracted from
64571         modules/sys_stat-tests.
64572         * modules/sys_stat-tests: Depend on it.
64573         * modules/sys_time-c++-tests: New file, extracted from
64574         modules/sys_time-tests.
64575         * modules/sys_time-tests: Depend on it.
64576         * modules/time-c++-tests: New file, extracted from modules/time-tests.
64577         * modules/time-tests: Depend on it.
64578         * modules/unistd-c++-tests: New file, extracted from
64579         modules/unistd-tests.
64580         * modules/unistd-tests: Depend on it.
64581         * modules/wchar-c++-tests: New file, extracted from
64582         modules/wchar-tests.
64583         * modules/wchar-tests: Depend on it.
64584         * modules/wctype-c++-tests: New file, extracted from
64585         modules/wctype-tests.
64586         * modules/wctype-tests: Depend on it.
64587         Reported by Simon Josefsson.
64589 2010-03-28  Bruno Haible  <bruno@clisp.org>
64591         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
64592         * gnulib-tool (func_exists_module): New function, extracted from
64593         func_verify_module.
64594         (func_verify_module): Use it.
64595         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
64596         'foo' only if 'foo' exists.
64597         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
64598         module.
64600 2010-03-28  Bruno Haible  <bruno@clisp.org>
64602         gnulib-tool: Add support for special categories of tests.
64603         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
64604         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
64605         (func_usage): Document them.
64606         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
64607         inc_unportable_tests, inc_all_tests): New variables.
64608         (func_acceptable): Consider these variables.
64609         (func_modules_transitive_closure): Make it work when the 'Status' field
64610         consists of multiple words.
64611         (func_import): Store and restore the values of inc_cxx_tests,
64612         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
64613         inc_all_tests in gnulib-comp.m4.
64614         (func_create_testdir): Set inc_all_tests to true.
64615         * doc/gnulib.texi (Extra tests modules): New section.
64616         Suggested by Jim Meyering.
64618 2010-03-28  Bruno Haible  <bruno@clisp.org>
64620         ansi-c++-opt: Allow turning off the C++ build by default.
64621         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
64622         gl_CXX_CHOICE_DEFAULT_NO is defined.
64623         Requested by Eric Blake.
64625 2010-03-28  Bruno Haible  <bruno@clisp.org>
64627         unistd: Avoid #define replacements in C++ mode.
64628         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
64629         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
64630         setsockopt, shutdown, select): In C++, attach a warning to the function
64631         if possible, rather than #defining the symbol to a dysfunctional alias.
64632         Reported by John W. Eaton <jwe@gnu.org>.
64634 2010-03-28  Bruno Haible  <bruno@clisp.org>
64636         Fix link errors on mingw.
64637         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
64638         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
64639         $(LIBSOCKET).
64640         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
64641         $(LIBSOCKET).
64643 2010-03-28  Bruno Haible  <bruno@clisp.org>
64644             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64646         lib-ignore: Determine different options for different compilers.
64647         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
64648         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
64649         Add comments.
64650         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
64651         * NEWS: Mention the change.
64653 2010-03-27  Bruno Haible  <bruno@clisp.org>
64655         Remove unused GNULIB_XYZ macro definitions.
64656         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
64657         * modules/fseek (configure.ac): Likewise.
64658         * modules/ioctl (configure.ac): Likewise.
64659         * modules/open (configure.ac): Likewise.
64660         * modules/stdlib-safer (configure.ac): Likewise.
64662 2010-03-27  Bruno Haible  <bruno@clisp.org>
64664         Add a remark about certain modules.
64665         * modules/malloc (Comment): New section.
64666         * modules/realloc (Comment): Likewise.
64667         * modules/sigpipe (Comment): Likewise.
64669 2010-03-27  Bruno Haible  <bruno@clisp.org>
64671         Resolve conflict between the two kinds of module indicators.
64672         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
64673         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
64674         * modules/canonicalize (configure.ac): Invoke
64675         gl_MODULE_INDICATOR_FOR_TESTS.
64676         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
64677         GNULIB_XYZ.
64678         * tests/test-dirent-c++.cc: Likewise.
64679         * tests/test-dirent-safer.c: Likewise.
64680         * tests/test-dup2.c: Likewise.
64681         * tests/test-fchdir.c: Likewise.
64682         * tests/test-fcntl-h-c++.cc: Likewise.
64683         * tests/test-getopt.c: Likewise.
64684         * tests/test-getopt.h: Likewise.
64685         * tests/test-langinfo-c++.cc: Likewise.
64686         * tests/test-locale-c++.cc: Likewise.
64687         * tests/test-math-c++.cc: Likewise.
64688         * tests/test-pty-c++.cc: Likewise.
64689         * tests/test-search-c++.cc: Likewise.
64690         * tests/test-signal-c++.cc: Likewise.
64691         * tests/test-spawn-c++.cc: Likewise.
64692         * tests/test-stdio-c++.cc: Likewise.
64693         * tests/test-stdlib-c++.cc: Likewise.
64694         * tests/test-string-c++.cc: Likewise.
64695         * tests/test-sys_ioctl-c++.cc: Likewise.
64696         * tests/test-sys_select-c++.cc: Likewise.
64697         * tests/test-sys_socket-c++.cc: Likewise.
64698         * tests/test-sys_stat-c++.cc: Likewise.
64699         * tests/test-sys_time-c++.cc: Likewise.
64700         * tests/test-time-c++.cc: Likewise.
64701         * tests/test-unistd-c++.cc: Likewise.
64702         * tests/test-wchar-c++.cc: Likewise.
64703         * tests/uninorm/test-u8-nfc.c: Likewise.
64704         * tests/uninorm/test-u8-nfd.c: Likewise.
64705         * tests/uninorm/test-u8-nfkc.c: Likewise.
64706         * tests/uninorm/test-u8-nfkd.c: Likewise.
64707         * tests/uninorm/test-u16-nfc.c: Likewise.
64708         * tests/uninorm/test-u16-nfd.c: Likewise.
64709         * tests/uninorm/test-u16-nfkc.c: Likewise.
64710         * tests/uninorm/test-u16-nfkd.c: Likewise.
64711         * tests/uninorm/test-u32-nfc.c: Likewise.
64712         * tests/uninorm/test-u32-nfc-big.c: Likewise.
64713         * tests/uninorm/test-u32-nfd.c: Likewise.
64714         * tests/uninorm/test-u32-nfd-big.c: Likewise.
64715         * tests/uninorm/test-u32-nfkc.c: Likewise.
64716         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
64717         * tests/uninorm/test-u32-nfkd.c: Likewise.
64718         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
64719         * tests/uninorm/test-u32-normalize-big.c: Likewise.
64721 2010-03-27  Bruno Haible  <bruno@clisp.org>
64723         Distinguish two kinds of module indicators.
64724         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
64725         gl_MODULE_INDICATOR.
64726         (gl_MODULE_INDICATOR): New macro.
64727         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
64728         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
64729         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
64730         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
64731         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
64732         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
64733         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
64734         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
64735         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
64736         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
64737         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
64738         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
64739         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
64740         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
64741         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
64742         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
64743         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
64744         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
64745         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
64746         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
64747         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
64748         * modules/cloexec (configure.ac): Likewise.
64749         * modules/getopt-gnu (configure.ac): Likewise.
64750         * modules/uninorm/u8-normalize (configure.ac): Likewise.
64751         * modules/uninorm/u16-normalize (configure.ac): Likewise.
64752         * modules/uninorm/u32-normalize (configure.ac): Likewise.
64753         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
64755 2010-03-27  Bruno Haible  <bruno@clisp.org>
64757         New module description field 'Comment'.
64758         * gnulib-tool: New option --extract-comment.
64759         (func_usage): Document it.
64760         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
64761         (func_get_comment): New function.
64762         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
64764 2010-03-27  Bruno Haible  <bruno@clisp.org>
64766         Addendum to 2010-02-07 commit.
64767         * gnulib-tool (func_usage): Document --extract-applicability option.
64769 2010-03-27  Bruno Haible  <bruno@clisp.org>
64771         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
64772         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
64773         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
64774         rather than link errors.
64776 2010-03-27  Bruno Haible  <bruno@clisp.org>
64778         Avoid side effects from tests-related modules on the compilation of lib.
64779         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
64780         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
64781         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
64782         parameter. Emit into AM_CPPFLAGS a definition of the designated C
64783         macro.
64784         (func_import): Define a witness macro. Assign it a value that depends
64785         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
64786         tests-related modules.
64787         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
64788         Reported by Jim Meyering.
64790 2010-03-27  Bruno Haible  <bruno@clisp.org>
64792         Factorize common .m4 code.
64793         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
64794         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
64795         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
64796         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
64797         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
64798         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
64799         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
64800         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
64801         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
64802         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
64803         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
64804         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
64805         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
64806         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
64807         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
64808         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
64809         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
64810         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
64811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
64812         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
64813         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
64814         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
64815         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
64816         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
64817         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
64818         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
64819         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
64820         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
64821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
64822         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
64823         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
64824         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
64826 2010-03-27  Bruno Haible  <bruno@clisp.org>
64828         Fix a compilation error on Cygwin with g++ >= 4.3.
64829         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
64830         if it is undefined or if we alias it to chmod.
64831         (lstat): Don't warn about the use of this function if it is undefined
64832         or if we alias it to stat.
64833         Reported by Simon Josefsson.
64835 2010-03-27  Bruno Haible  <bruno@clisp.org>
64837         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
64838         * modules/getlogin (configure.ac): Update.
64840         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
64841         * modules/getlogin_r (configure.ac): Update.
64843         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
64844         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
64845         * modules/inet_ntop (configure.ac): Update.
64847         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
64848         * modules/inet_pton (configure.ac): Update.
64850         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
64851         * modules/mbslen (configure.ac): Update.
64853         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
64854         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
64855         * modules/forkpty (configure.ac): Update.
64856         * modules/openpty (configure.ac): Update.
64858 2010-03-26  Simon Josefsson  <simon@josefsson.org>
64860         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
64861         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
64863 2010-03-25  Eric Blake  <eblake@redhat.com>
64865         maint: use pragma consistently across replacement headers
64866         * lib/ctype.in.h (system_header): Hoist for consistent placement.
64867         * lib/dirent.in.h (system_header): Likewise.
64868         * lib/errno.in.h (system_header): Likewise.
64869         * lib/float.in.h (system_header): Likewise.
64870         * lib/getopt.in.h (system_header): Likewise.
64871         * lib/iconv.in.h (system_header): Likewise.
64872         * lib/inttypes.in.h (system_header): Likewise.
64873         * lib/langinfo.in.h (system_header): Likewise.
64874         * lib/locale.in.h (system_header): Likewise.
64875         * lib/math.in.h (system_header): Likewise.
64876         * lib/netdb.in.h (system_header): Likewise.
64877         * lib/netinet_in.in.h (system_header): Likewise.
64878         * lib/pty.in.h (system_header): Likewise.
64879         * lib/sched.in.h (system_header): Likewise.
64880         * lib/se-selinux.in.h (system_header): Likewise.
64881         * lib/search.in.h (system_header): Likewise.
64882         * lib/spawn.in.h (system_header): Likewise.
64883         * lib/stdarg.in.h (system_header): Likewise.
64884         * lib/stdint.in.h (system_header): Likewise.
64885         * lib/string.in.h (system_header): Likewise.
64886         * lib/strings.in.h (system_header): Likewise.
64887         * lib/sys_file.in.h (system_header): Likewise.
64888         * lib/sys_ioctl.in.h (system_header): Likewise.
64889         * lib/sys_socket.in.h (system_header): Likewise.
64890         * lib/sys_times.in.h (system_header): Likewise.
64891         * lib/sys_utsname.in.h (system_header): Likewise.
64892         * lib/sys_wait.in.h (system_header): Likewise.
64893         * lib/sysexits.in.h (system_header): Likewise.
64894         * lib/unistd.in.h (system_header): Likewise.
64895         * lib/wctype.in.h (system_header): Likewise.
64897         arpa/inet: fix mingw compilation warning
64898         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
64899         Reported by Matthew Bolte.
64901 2010-03-25  Bruno Haible  <bruno@clisp.org>
64903         Avoid collision between gnulib wrapper and libintl wrapper.
64904         * lib/printf.c (printf): Don't define if a printf wrapper is already
64905         defined in intl/printf.c.
64906         Reported by Michel Boaventura <michel@michelboaventura.com>.
64908 2010-03-25  Bruno Haible  <bruno@clisp.org>
64910         Use ANSI C.
64911         * lib/readutmp.h (getutent): Provide ANSI C prototype.
64913 2010-03-25  Bruno Haible  <bruno@clisp.org>
64915         Minor formatting changes.
64916         * lib/acosl.c: Insert space before function argument list.
64917         * lib/argz.c: Likewise.
64918         * lib/asinl.c: Likewise.
64919         * lib/expl.c: Likewise.
64920         * lib/gen-uni-tables.c: Likewise.
64921         * lib/gettext.h: Likewise.
64922         * lib/glthread/lock.h: Likewise.
64923         * lib/tanl.c: Likewise.
64924         * lib/uniname/uniname.c: Likewise.
64925         * tests/test-idpriv-drop.c: Likewise.
64926         * tests/test-idpriv-droptemp.c: Likewise.
64927         * tests/test-lock.c: Likewise.
64928         * tests/test-tls.c: Likewise.
64929         * lib/argp-help.c: Insert space before function-like macro argument
64930         list.
64931         * lib/memcmp.c: Likewise.
64932         * tests/test-base64.c: Likewise.
64933         * lib/localename.c: Insert space before sizeof's argument list.
64934         * lib/safe-alloc.h: Likewise.
64935         * lib/file-set.h: Insert space before macro argument list.
64936         * tests/test-argp.c: Likewise.
64937         * lib/argp-namefrob.h: Insert space before function parameter list.
64938         * lib/getaddrinfo.c: Likewise.
64939         * lib/netdb.in.h: Likewise.
64940         * lib/parse-duration.h: Likewise.
64941         * lib/parse-duration.c: Likewise.
64942         * lib/poll.c: Likewise.
64943         * lib/select.c: Likewise.
64944         * lib/trim.h: Likewise.
64945         * tests/test-usleep.c: Likewise.
64946         * lib/ldexpl.c: Insert space before function parameter list and before
64947         function argument list.
64948         * lib/logl.c: Likewise.
64949         * lib/sqrtl.c: Likewise.
64950         * lib/trim.c: Likewise.
64951         * lib/cosl.c: Use GNU style indentation. Insert space before function
64952         argument list.
64953         * lib/sinl.c: Likewise.
64954         * lib/tsearch.c: Insert space after 'for'.
64955         Reported by Jim Meyering.
64957 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
64959         * maint.mk (sc_Wundef_boolean): Check for the presence of the
64960         config header before grepping, as it's not present before
64961         autoreconf/configure are run.  Reported by Simon Josefsson.
64963 2010-03-23  Bruno Haible  <bruno@clisp.org>
64965         pt_chown: Make it work with automake < 1.11.
64966         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
64967         Reported by Simon Josefsson.
64969 2010-03-23  Bruno Haible  <bruno@clisp.org>
64971         pt_chown: Don't depend on GPLed modules.
64972         * lib/pt_chown.c: Don't include idpriv.h.
64973         (main): Don't drop privileges.
64974         * modules/pt_chown (Depends-on): Remove idpriv-drop.
64975         Reported by Simon Josefsson.
64977 2010-03-24  Simon Josefsson  <simon@josefsson.org>
64979         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
64980         suggestions from karl@freefriends.org (Karl Berry).
64982 2010-03-22  Eric Blake  <eblake@redhat.com>
64984         gethostname: further tweaks
64985         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
64986         are overriding gethostname.
64987         Suggested by Bruno Haible.
64989 2010-03-21  Bruno Haible  <bruno@clisp.org>
64991         Fix comments.
64992         * lib/forkpty.c (rpl_forkpty): Fix comment.
64993         * lib/openpty.c (rpl_openpty): Likewise.
64994         Reported by Eric Blake.
64996 2010-03-22  Eric Blake  <eblake@redhat.com>
64998         gethostname: fix build on mingw
64999         * lib/unistd.in.h (includes): Work around fact that mingw
65000         <winsock2.h> re-includes <unistd.h>, by avoiding any
65001         redeclarations if we are being included by <winsock2.h>.
65002         Reported by Matthias Bolte.
65004 2010-03-21  Bruno Haible  <bruno@clisp.org>
65006         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
65007         * lib/forkpty.c (forkpty): New replacement function, from glibc with
65008         modifications.
65009         * lib/pty.in.h (forkpty): Update declaration. Add comments.
65010         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
65011         provide the replacement.
65012         * modules/forkpty (Depends-on): Add openpty, login_tty.
65013         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
65014         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
65015         * doc/glibc-functions/forkpty.texi: More supported platforms.
65016         * config/srclist.txt: Add forkpty.c (commented).
65018 2010-03-21  Bruno Haible  <bruno@clisp.org>
65020         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
65021         (Makefile.am): Verify that PTY_LIB is defined.
65023         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
65025 2010-03-21  Bruno Haible  <bruno@clisp.org>
65027         Tests for module 'login_tty'.
65028         * modules/login_tty-tests: New file.
65029         * tests/test-login_tty.c: New file.
65031         New module 'login_tty'.
65032         * lib/login_tty.c: New file.
65033         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
65034         * modules/login_tty: New file.
65035         * doc/glibc-functions/login_tty.texi: Mention the new module.
65037 2010-03-21  Bruno Haible  <bruno@clisp.org>
65039         login_tty: Documentation.
65040         * doc/glibc-functions/login_tty.texi: New file.
65041         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
65043 2010-03-21  Bruno Haible  <bruno@clisp.org>
65045         pty: Consistent macro naming.
65046         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
65047         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
65048         * modules/pty (configure.ac): Update.
65050 2010-03-21  Bruno Haible  <bruno@clisp.org>
65052         Tests for openpty: Make stricter.
65053         * tests/test-openpty.c (main): Add test of canonical processing and
65054         erase.
65055         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
65057         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
65058         * lib/openpty.c (openpty): New replacement function.
65059         * lib/pty.in.h: Include <termios.h>.
65060         (openpty): Update declaration. Add comments.
65061         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
65062         is not declared, arrange to provide the replacement. Check for _getpty
65063         and posix_openpt.
65064         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
65065         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
65066         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
65067         * modules/pty-tests (test_pty_c___LDADD): New variable.
65068         * doc/glibc-functions/openpty.texi: More supported platforms.
65070 2010-03-21  Bruno Haible  <bruno@clisp.org>
65072         setenv: Tweaks.
65073         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
65074         the test program.
65075         * doc/posix-functions/setenv.texi: Update platforms list.
65077 2010-03-21  Bruno Haible  <bruno@clisp.org>
65079         New module 'unlockpt'.
65080         * lib/unlockpt.c: New file, from glibc with modifications.
65081         * m4/unlockpt.m4: New file.
65082         * modules/unlockpt: New file.
65083         * lib/stdlib.in.h (unlockpt): New declaration.
65084         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
65085         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
65086         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
65087         HAVE_UNLOCKPT.
65088         * doc/posix-functions/unlockpt.texi: Mention the new module.
65089         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
65090         * config/srclist.txt: Add unlockpt.c (commented).
65092 2010-03-21  Jim Meyering  <meyering@redhat.com>
65094         maint.mk: prohibit inclusion of "intprops.h" without use
65095         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
65097 2010-03-21  Bruno Haible  <bruno@clisp.org>
65099         New module 'grantpt'.
65100         * lib/grantpt.c: New file, from glibc with modifications.
65101         * m4/grantpt.m4: New file.
65102         * modules/grantpt: New file.
65103         * lib/stdlib.in.h (grantpt): New declaration.
65104         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
65105         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
65106         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
65107         HAVE_GRANTPT.
65108         * doc/posix-functions/grantpt.texi: Mention the new module.
65109         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
65110         * config/srclist.txt: Add grantpt.c (commented).
65112 2010-03-21  Bruno Haible  <bruno@clisp.org>
65114         New module 'pt_chown'.
65115         * lib/pt_chown.c: New file, from glibc with modifications.
65116         * lib/pty-private.h: New file, from glibc with modifications.
65117         * modules/pt_chown: New file.
65118         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
65120 2010-03-21  Bruno Haible  <bruno@clisp.org>
65122         Tests for module 'ptsname'.
65123         * modules/ptsname-tests: New file.
65124         * tests/test-ptsname.c: New file.
65126         New module 'ptsname'.
65127         * lib/ptsname.c: New file, from glibc with modifications.
65128         * m4/ptsname.m4: New file.
65129         * modules/ptsname: New file.
65130         * lib/stdlib.in.h (ptsname): New declaration.
65131         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
65132         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
65133         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
65134         HAVE_PTSNAME.
65135         * doc/posix-functions/ptsname.texi: Mention the new module.
65136         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
65137         * config/srclist.txt: Add ptsname.c (commented).
65139 2010-03-21  Bruno Haible  <bruno@clisp.org>
65141         Tests for module 'ttyname_r'.
65142         * modules/ttyname_r-tests: New file.
65143         * tests/test-ttyname_r.c: New file.
65145         New module 'ttyname_r'.
65146         * lib/ttyname_r.c: New file.
65147         * m4/ttyname_r.m4: New file.
65148         * modules/ttyname_r: New file.
65149         * lib/unistd.in.h (ttyname_r): New declaration.
65150         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
65151         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
65152         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
65153         HAVE_TTYNAME_R.
65154         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
65155         * doc/posix-functions/ttyname_r.texi: Mention the new module.
65157 2010-03-20  Bruno Haible  <bruno@clisp.org>
65159         signal: Undefine macro definitions in C++ mode.
65160         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
65161         sigfillset): Undefine macro definitions from the system header in C++
65162         mode.
65163         Reported by John W. Eaton <jwe@gnu.org>.
65165 2010-03-20  Bruno Haible  <bruno@clisp.org>
65167         Ensure no #include statements inside extern "C" { ... }.
65168         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
65169         contain #include statements.
65170         * lib/time.in.h: Likewise.
65172 2010-03-20  Bruno Haible  <bruno@clisp.org>
65174         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
65175         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
65176         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
65177         Reported by John W. Eaton <jwe@gnu.org>.
65179 2010-03-20  Bruno Haible  <bruno@clisp.org>
65181         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
65182         Reported by Jim Meyering.
65184 2010-03-20  Bruno Haible  <bruno@clisp.org>
65186         pipe: Set errno upon failure.
65187         * lib/pipe.h: Specify that when -1 is returned, errno is set.
65188         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
65189         errno value in error message.
65191 2010-03-20  Bruno Haible  <bruno@clisp.org>
65192             Jim Meyering  <meyering@redhat.com>
65194         lchown: Avoid "unused variable" warning.
65195         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
65197 2010-03-20  Bruno Haible  <bruno@clisp.org>
65199         Work around unlink() bug on MacOS X 10.5.6.
65200         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
65201         attempting to unlink a parent directory.
65202         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
65203         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
65204         activate for the replacement function.
65205         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
65207 2010-03-20  Bruno Haible  <bruno@clisp.org>
65209         Fix link errors on Solaris 8.
65210         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
65211         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
65213 2010-03-19  Jim Meyering  <meyering@redhat.com>
65215         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
65216         The _LIBC implementation of build_range_exp correctly honors the
65217         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
65218         However, the non-_LIBC implementation would ignore that syntax-bit
65219         flag and return REG_ERANGE unconditionally.
65220         This change makes it honor that flag.
65221         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
65222         Make two pointer parameters "const".
65223         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
65224         (parse_bracket_exp): Update caller.
65226         regex.m4: correct the reversed range endpoint ([b-a]) test
65227         * m4/regex.m4: When requiring that [b-a] evoke failure,
65228         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
65229         test pass once again for x86-based systems.
65231 2010-03-19  Bruno Haible  <bruno@clisp.org>
65233         scandir: Fix link error on Solaris 8.
65234         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
65235         macros.
65237 2010-03-19  Bruno Haible  <bruno@clisp.org>
65239         getusershell: Fix documentation.
65240         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
65241         module.
65242         * doc/glibc-functions/setusershell.texi: Likewise.
65244         getusershell: Provide declaration, missing on Solaris 9.
65245         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
65246         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
65247         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
65248         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
65249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65250         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
65251         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
65252         HAVE_GETUSERSHELL.
65253         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
65255 2010-03-19  Bruno Haible  <bruno@clisp.org>
65257         wctype: Provide iswblank function.
65258         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
65259         exists and is fine.
65260         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
65261         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
65262         * tests/test-wctype.c (main): Re-enable the iswblank tests.
65263         * doc/posix-functions/iswblank.texi: Update.
65265 2010-03-19  Bruno Haible  <bruno@clisp.org>
65267         Tests of module 'pty' in C++ mode.
65268         * modules/pty-tests: New file.
65269         * tests/test-pty-c++.cc: New file.
65270         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
65272 2010-03-19  Eric Blake  <eblake@redhat.com>
65274         logb: fix documentation
65275         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
65276         1.5 declaration bug.
65278         forkpty, openpty: prefer glibc's const-safe prototype
65279         * lib/forkpty.c (rpl_forkpty): New file.
65280         * lib/openpty.c (rpl_openpty): Likewise.
65281         * modules/forkpty (Files): Distribute it.
65282         * modules/openpty (Files): Likewise.
65283         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
65284         check...
65285         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
65286         replacement for non-const BSD signature.
65287         * modules/pty (Makefile.am): Substitute witnesses.
65288         * lib/pty.in.h (forkpty, openpty): Declare replacements.
65289         * tests/test-forkpty.c: Update signature check.
65290         * tests/test-openpty.c: Likewise.
65291         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
65292         * doc/glibc-functions/openpty.texi (openpty): Likewise.
65294         forkpty, openpty: split functions into new modules
65295         * modules/pty (Makefile.am): Substitute new witnesses.
65296         (Libraries): Move library detection...
65297         * modules/forkpty: ...into new module.
65298         * modules/openpty: Another new module.
65299         * modules/pty-tests: Rename and split...
65300         * modules/forkpty-tests: ...to this...
65301         * modules/openpty-tests: ...and this.
65302         * tests/test-pty.c: Rename and split...
65303         * tests/test-forkpty.c: ...to this...
65304         * tests/test-openpty.c: ...and this.
65305         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
65306         (gl_PTY): Split library searching...
65307         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
65308         (gl_FORKPTY, gl_OPENPTY): New macros.
65309         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
65310         * NEWS: Mention the split.
65311         * MODULES.html.sh (Misc): Document the modules.
65312         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
65313         * doc/glibc-functions/openpty.texi (openpty): Likewise.
65315         pty: improve replacement header
65316         * lib/pty.in.h: New file.
65317         * modules/pty (Files): Ship it.
65318         (Makefile.am): Always build replacement.
65319         * m4/pty.m4: Rename...
65320         * m4/pty_h.m4: ...to this.
65321         (gl_PTY): Modernize setting of witness macros; update check of
65322         forkpty to take proper advantage of cache.
65323         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
65325         getopt: avoid compiler warning
65326         * lib/getopt.c (attribute_hidden): Remove unused macro.
65328 2010-03-18  Bruno Haible  <bruno@clisp.org>
65330         Fix link errors on Solaris 8.
65331         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
65332         * modules/search-tests (test_search_c___LDADD): Likewise.
65333         * modules/signal-tests (test_signal_c___LDADD): Likewise.
65334         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
65335         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
65336         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
65337         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
65338         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
65339         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
65341 2010-03-18  Bruno Haible  <bruno@clisp.org>
65343         Fix bug introduced on 2010-03-14.
65344         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
65345         (gl_SPAWN_H): Require it.
65346         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
65347         Reported by Simon Josefsson.
65349 2010-03-18  Bruno Haible  <bruno@clisp.org>
65351         Fix typo introduced on 2009-12-31.
65352         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
65353         posix_spawn_file_actions_adddup2.
65355 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
65356         and Eric Blake  <eblake@redhat.com>
65358         test-vc-list-files-git: make more robust
65359         * tests/test-vc-list-files-git.sh: Unset problematic environment
65360         variables.  Chain commands together.
65362 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
65364         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
65365         `AC_CHECK_DECL' invocation.
65367 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
65369         * lib/inttostr.c (inttostr): Make sure the invocation of verify
65370         appears before executable statements. Suggested by Petr Sumbera
65371         <Petr.Sumbera@Sun.COM>.
65373 2010-03-14  Bruno Haible  <bruno@clisp.org>
65375         * tests/test-flock.c (test_exclusive): Comment out a test that causes
65376         portability problems. Instead use a simpler test.
65377         (main): Check that invalid arguments are rejected only on Linux.
65379 2010-03-14  Bruno Haible  <bruno@clisp.org>
65381         Fix bug introduced on 2009-12-31.
65382         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
65383         gl_PREREQ_SYS_H_WINSOCK2 always.
65384         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
65385         SYS_SOCKET_H variable.
65386         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
65387         Update comments.
65388         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
65389         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
65390         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
65391         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
65392         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
65394 2010-03-14  Bruno Haible  <bruno@clisp.org>
65396         Fix values returned by sinl, cosl.
65397         * lib/trigl.h: Add specification comments.
65398         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
65399         that combines the values from the precomputed table with the values of
65400         the Chebyshev polynomials.
65402 2010-03-14  Bruno Haible  <bruno@clisp.org>
65404         Fix compilation error when modules 'posix_spawn[p]' are not used.
65405         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
65406         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
65408 2010-03-14  Bruno Haible  <bruno@clisp.org>
65410         Fix compilation error on mingw when module 'time_r' is not used.
65411         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
65412         is 1.
65413         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
65414         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
65415         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
65416         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
65418 2010-03-14  Bruno Haible  <bruno@clisp.org>
65420         Fix compilation error with Sun C.
65421         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
65422         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
65423         instead of GCC specific ULONG_LONG_MAX.
65424         * lib/xstrtoll.c: Likewise.
65425         * lib/xstrtoull.c: Likewise.
65427 2010-03-13  Bruno Haible  <bruno@clisp.org>
65429         Allow the user to disable C++ code and tests.
65430         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
65431         (gl_PROG_ANSI_CXX): Require it.
65433 2010-03-13  Bruno Haible  <bruno@clisp.org>
65435         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
65436         cases.
65438 2010-03-13  Bruno Haible  <bruno@clisp.org>
65440         Test that gnulib does not break the standard C++ headers.
65441         * tests/test-locale-c++2.cc: New file.
65442         * modules/locale-tests (Files): Add it.
65443         (Makefile.am): Compile it for test-locale-c++.
65444         * tests/test-math-c++2.cc: New file.
65445         * modules/math-tests (Files): Add it.
65446         (Makefile.am): Compile it for test-math-c++.
65447         * tests/test-signal-c++2.cc: New file.
65448         * modules/signal-tests (Files): Add it.
65449         (Makefile.am): Compile it for test-signal-c++.
65450         * tests/test-stdio-c++2.cc: New file.
65451         * modules/stdio-tests (Files): Add it.
65452         (Makefile.am): Compile it for test-stdio-c++.
65453         * tests/test-stdlib-c++2.cc: New file.
65454         * modules/stdlib-tests (Files): Add it.
65455         (Makefile.am): Compile it for test-stdlib-c++.
65456         * tests/test-string-c++2.cc: New file.
65457         * modules/string-tests (Files): Add it.
65458         (Makefile.am): Compile it for test-string-c++.
65459         * tests/test-time-c++2.cc: New file.
65460         * modules/time-tests (Files): Add it.
65461         (Makefile.am): Compile it for test-time-c++.
65462         Reported by John W. Eaton <jwe@gnu.org>.
65464 2010-03-13  Bruno Haible  <bruno@clisp.org>
65466         * gnulib-tool (func_usage): Clarify which options are available for
65467         --create-testdir and --create-megatestdir.
65469 2010-03-13  Bruno Haible  <bruno@clisp.org>
65471         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
65472         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
65473         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
65474         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
65475         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
65476         when appropriate.
65477         Reported by Jim Meyering.
65479 2010-03-12  Simon Josefsson  <simon@josefsson.org>
65481         * gnulib-tool (func_import): Explain origin of code.
65483 2010-03-12  Bruno Haible  <bruno@clisp.org>
65485         Fix problem with automake's definition of CXXLINK.
65486         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
65487         Reported by Simon Josefsson and Ludovic Courtès.
65489 2010-03-12  Bruno Haible  <bruno@clisp.org>
65491         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
65492         stable releases.
65494 2010-03-11  Bruno Haible  <bruno@clisp.org>
65496         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
65497         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
65498         whether the system provides one variant or multiple variants of the
65499         function.
65500         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
65501         C++ compilers.
65502         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
65503         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
65504         Reported by Jim Meyering.
65506 2010-03-09  Simon Josefsson  <simon@josefsson.org>
65508         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
65510 2010-03-08  Bruno Haible  <bruno@clisp.org>
65512         gnulib-tool: Add support for --libtool in --create-testdir.
65513         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
65514         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
65516 2010-03-08  Eric Blake  <eblake@redhat.com>
65518         gnulib-tool.texi: mention possibility of git submodule
65519         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
65520         submodules.
65521         * doc/.gitignore: Ignore another generated file.
65523 2010-03-08  Karl Berry  <karl@gnu.org>
65525         * doc/gnulib-tool.texi (VCS Issues): Mention third option
65526         of committing gnulib files while skipping others.
65528 2010-03-07  Bruno Haible  <bruno@clisp.org>
65530         Tests of module 'wctype' in C++ mode.
65531         * tests/test-wctype-c++.cc: New file.
65532         * modules/wctype-tests (Files): Add it and tests/signature.h.
65533         (Depends-on): Add ansi-c++-opt.
65534         (Makefile.am): Arrange to compile and run test-wctype-c++.
65536         Tests of module 'wchar' in C++ mode.
65537         * tests/test-wchar-c++.cc: New file.
65538         * modules/wchar-tests (Files): Add it and tests/signature.h.
65539         (Depends-on): Add ansi-c++-opt.
65540         (Makefile.am): Arrange to compile and run test-wchar-c++.
65541         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
65542         gl_MODULE_INDICATOR.
65544         Tests of module 'unistd' in C++ mode.
65545         * tests/test-unistd-c++.cc: New file.
65546         * modules/unistd-tests (Files): Add it and tests/signature.h.
65547         (Depends-on): Add ansi-c++-opt.
65548         (Makefile.am): Arrange to compile and run test-unistd-c++.
65549         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
65550         gl_MODULE_INDICATOR.
65552         Tests of module 'time' in C++ mode.
65553         * tests/test-time-c++.cc: New file.
65554         * modules/time-tests (Files): Add it and tests/signature.h.
65555         (Depends-on): Add ansi-c++-opt.
65556         (Makefile.am): Arrange to compile and run test-time-c++.
65557         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
65559         Tests of module 'sys_time' in C++ mode.
65560         * tests/test-sys_time-c++.cc: New file.
65561         * modules/sys_time-tests (Files): Add it and tests/signature.h.
65562         (Depends-on): Add ansi-c++-opt.
65563         (Makefile.am): Arrange to compile and run test-sys_time-c++.
65564         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
65565         gl_MODULE_INDICATOR.
65567         Tests of module 'sys_stat' in C++ mode.
65568         * tests/test-sys_stat-c++.cc: New file.
65569         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
65570         (Depends-on): Add ansi-c++-opt.
65571         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
65572         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
65573         gl_MODULE_INDICATOR.
65575         Tests of module 'sys_socket' in C++ mode.
65576         * tests/test-sys_socket-c++.cc: New file.
65577         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
65578         (Depends-on): Add ansi-c++-opt.
65579         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
65580         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
65581         gl_MODULE_INDICATOR.
65583         Tests of module 'sys_select' in C++ mode.
65584         * tests/test-sys_select-c++.cc: New file.
65585         * modules/sys_select-tests (Files): Add it and tests/signature.h.
65586         (Depends-on): Add ansi-c++-opt.
65587         (Makefile.am): Arrange to compile and run test-sys_select-c++.
65588         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
65589         gl_MODULE_INDICATOR.
65591         Tests of module 'sys_ioctl' in C++ mode.
65592         * tests/test-sys_ioctl-c++.cc: New file.
65593         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
65594         (Depends-on): Add ansi-c++-opt.
65595         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
65596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
65597         gl_MODULE_INDICATOR.
65599         Tests of module 'string' in C++ mode.
65600         * tests/test-string-c++.cc: New file.
65601         * modules/string-tests (Files): Add it and tests/signature.h.
65602         (Depends-on): Add ansi-c++-opt.
65603         (Makefile.am): Arrange to compile and run test-string-c++.
65604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
65605         gl_MODULE_INDICATOR.
65607         Tests of module 'stdlib' in C++ mode.
65608         * tests/test-stdlib-c++.cc: New file.
65609         * modules/stdlib-tests (Files): Add it and tests/signature.h.
65610         (Depends-on): Add ansi-c++-opt.
65611         (Makefile.am): Arrange to compile and run test-stdlib-c++.
65612         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
65613         gl_MODULE_INDICATOR.
65615         Tests of module 'stdio' in C++ mode.
65616         * tests/test-stdio-c++.cc: New file.
65617         * modules/stdio-tests (Files): Add it and tests/signature.h.
65618         (Depends-on): Add ansi-c++-opt.
65619         (Makefile.am): Arrange to compile and run test-stdio-c++.
65620         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
65621         gl_MODULE_INDICATOR.
65623         Tests of module 'spawn' in C++ mode.
65624         * tests/test-spawn-c++.cc: New file.
65625         * modules/spawn-tests (Files): Add it and tests/signature.h.
65626         (Depends-on): Add ansi-c++-opt.
65627         (Makefile.am): Arrange to compile and run test-spawn-c++.
65628         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
65629         gl_MODULE_INDICATOR.
65631         Tests of module 'signal' in C++ mode.
65632         * tests/test-signal-c++.cc: New file.
65633         * modules/signal-tests (Files): Add it and tests/signature.h.
65634         (Depends-on): Add ansi-c++-opt.
65635         (Makefile.am): Arrange to compile and run test-signal-c++.
65636         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
65637         gl_MODULE_INDICATOR.
65639         Tests of module 'search' in C++ mode.
65640         * tests/test-search-c++.cc: New file.
65641         * modules/search-tests (Files): Add it and tests/signature.h.
65642         (Depends-on): Add ansi-c++-opt.
65643         (Makefile.am): Arrange to compile and run test-search-c++.
65644         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
65645         gl_MODULE_INDICATOR.
65647         Tests of module 'math' in C++ mode.
65648         * tests/test-math-c++.cc: New file.
65649         * modules/math-tests (Files): Add it and tests/signature.h.
65650         (Depends-on): Add ansi-c++-opt.
65651         (Makefile.am): Arrange to compile and run test-math-c++.
65652         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
65654         Tests of module 'locale' in C++ mode.
65655         * tests/test-locale-c++.cc: New file.
65656         * modules/locale-tests (Files): Add it and tests/signature.h.
65657         (Depends-on): Add ansi-c++-opt.
65658         (Makefile.am): Arrange to compile and run test-locale-c++.
65659         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
65660         gl_MODULE_INDICATOR.
65662         Tests of module 'langinfo' in C++ mode.
65663         * tests/test-langinfo-c++.cc: New file.
65664         * modules/langinfo-tests (Files): Add it and tests/signature.h.
65665         (Depends-on): Add ansi-c++-opt.
65666         (Makefile.am): Arrange to compile and run test-langinfo-c++.
65667         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
65668         gl_MODULE_INDICATOR.
65670         Tests of module 'iconv-h' in C++ mode.
65671         * tests/test-iconv-h-c++.cc: New file.
65672         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
65673         (Depends-on): Add ansi-c++-opt.
65674         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
65676         Tests of module 'glob' in C++ mode.
65677         * tests/test-glob-c++.cc: New file.
65678         * modules/glob-tests (Files): Add it.
65679         (Depends-on): Add ansi-c++-opt.
65680         (Makefile.am): Arrange to compile and run test-glob-c++.
65682         Tests of module 'fcntl-h' in C++ mode.
65683         * tests/test-fcntl-h-c++.cc: New file.
65684         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
65685         (Depends-on): Add ansi-c++-opt.
65686         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
65687         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
65688         gl_MODULE_INDICATOR.
65690         Tests of module 'dirent' in C++ mode.
65691         * tests/test-dirent-c++.cc: New file.
65692         * modules/dirent-tests (Files): Add it and tests/signature.h.
65693         (Depends-on): Add ansi-c++-opt.
65694         (Makefile.am): Arrange to compile and run test-dirent-c++.
65695         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
65696         gl_MODULE_INDICATOR.
65698         New module 'ansi-c++-opt'.
65699         * modules/ansi-c++-opt: New file.
65700         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
65702         Document C++ namespace mode.
65703         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
65705         wctype: Avoid #define replacements in C++ mode.
65706         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
65707         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
65708         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
65709         In C++, define a namespaced alias symbol.
65710         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
65711         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
65712         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
65713         rule.
65715         wchar: Avoid #define replacements in C++ mode.
65716         * lib/wchar.in.h: Include c++defs.h.
65717         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
65718         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
65719         symbol.
65720         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
65721         * modules/wchar (Depends-on): Add c++defs.
65722         (Makefile.am): Update wchar.h rule.
65724         unistd: Avoid #define replacements in C++ mode.
65725         * lib/unistd.in.h: Include c++defs.h.
65726         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
65727         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
65728         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
65729         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
65730         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
65731         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
65732         symbol.
65733         (environ): Update.
65734         * modules/unistd (Depends-on): Add c++defs.
65735         (Makefile.am): Update unistd.h rule.
65737         time: Avoid #define replacements in C++ mode.
65738         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
65739         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
65740         define a namespaced alias symbol.
65741         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
65742         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
65743         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
65744         * modules/time (Depends-on): Add c++defs, warn-on-use.
65745         (Makefile.am): Update time.h rule.
65746         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
65747         * modules/nanosleep (configure.ac): Likewise.
65748         * modules/strptime (configure.ac): Likewise.
65749         * modules/timegm (configure.ac): Likewise.
65751         sys_time: Avoid #define replacements in C++ mode.
65752         * lib/sys_time.in.h: Include c++defs.h.
65753         (gettimeofday): In C++, define a namespaced alias symbol.
65754         * modules/sys_time (Depends-on): Add c++defs.
65755         (Makefile.am): Update sys/time.h rule.
65757         sys_stat: Avoid #define replacements in C++ mode.
65758         * lib/sys_stat.in.h: Include c++defs.h.
65759         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
65760         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
65761         namespaced alias symbol.
65762         In C++, define a namespaced alias symbol.
65763         * modules/sys_stat (Depends-on): Add c++defs.
65764         (Makefile.am): Update sys/stat.h rule.
65766         sys_socket: Avoid #define replacements in C++ mode.
65767         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
65768         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
65769         definitions also when the system has a <sys/socket.h>.
65770         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
65771         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
65772         In C++, define a namespaced alias symbol.
65773         * modules/sys_socket (Depends-on): Add c++defs.
65774         (Makefile.am): Update sys/socket.h rule.
65776         sys_select: Avoid #define replacements in C++ mode.
65777         * lib/sys_select.in.h: Include c++defs.h. Enable the function
65778         definitions also when the system has a <sys/select.h>.
65779         (select): In C++, define a namespaced alias symbol.
65780         * modules/sys_select (Depends-on): Add c++defs.
65781         (Makefile.am): Update sys/select.h rule.
65783         sys_ioctl: Avoid #define replacements in C++ mode.
65784         * lib/sys_ioctl.in.h: Include c++defs.h.
65785         (ioctl): In C++, define a namespaced alias symbol.
65786         * modules/sys_ioctl (Depends-on): Add c++defs.
65787         (Makefile.am): Update sys/ioctl.h rule.
65789         string: Avoid #define replacements in C++ mode.
65790         * lib/string.in.h: Include c++defs.h.
65791         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
65792         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
65793         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
65794         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
65795         strsignal, strverscmp): In C++, define a namespaced alias symbol.
65796         * modules/string (Depends-on): Add c++defs.
65797         (Makefile.am): Update string.h rule.
65799         stdlib: Avoid #define replacements in C++ mode.
65800         * lib/stdlib.in.h: Include c++defs.h.
65801         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
65802         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
65803         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
65804         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
65805         symbol.
65806         * modules/stdlib (Depends-on): Add c++defs.
65807         (Makefile.am): Update stdlib.h rule.
65809         stdio: Avoid #define replacements in C++ mode.
65810         * lib/stdio.in.h: Include c++defs.h.
65811         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
65812         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
65813         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
65814         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
65815         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
65816         namespaced alias symbol.
65817         * modules/stdio (Depends-on): Add c++defs.
65818         (Makefile.am): Update stdio.h rule.
65820         spawn: Avoid #define replacements in C++ mode.
65821         * lib/spawn.in.h: Include c++defs.h.
65822         (posix_spawn, posix_spawnp, posix_spawnattr_init,
65823         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
65824         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
65825         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
65826         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
65827         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
65828         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
65829         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
65830         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
65831         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
65832         In C++, define a namespaced alias symbol.
65833         * modules/spawn (Depends-on): Add c++defs.
65834         (Makefile.am): Update spawn.h rule.
65836         signal: Avoid #define replacements in C++ mode.
65837         * lib/signal.in.h: Include c++defs.h.
65838         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
65839         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
65840         namespaced alias symbol.
65841         * modules/signal (Depends-on): Add c++defs.
65842         (Makefile.am): Update signal.h rule.
65844         search: Avoid #define replacements in C++ mode.
65845         * lib/search.in.h: Include c++defs.h.
65846         (_gl_search_compar_fn, _gl_search_action_fn): New types.
65847         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
65848         symbol.
65849         * modules/search (Depends-on): Add c++defs.
65850         (Makefile.am): Update search.h rule.
65852         math: Avoid #define replacements in C++ mode.
65853         * lib/math.in.h: Include c++defs.h.
65854         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
65855         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
65856         trunc, truncl): In C++, define a namespaced alias symbol.
65857         * modules/math (Depends-on): Add c++defs.
65858         (Makefile.am): Update math.h rule.
65860         locale: Avoid #define replacements in C++ mode.
65861         * lib/locale.in.h: Include c++defs.h.
65862         (duplocale): In C++, define a namespaced alias symbol.
65863         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
65864         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
65865         * modules/locale (Depends-on): Add c++defs.
65866         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
65868         langinfo: Avoid #define replacements in C++ mode.
65869         * lib/langinfo.in.h: Include c++defs.h.
65870         (nl_langinfo): In C++, define a namespaced alias symbol.
65871         * modules/langinfo (Depends-on): Add c++defs.
65872         (Makefile.am): Update langinfo.h rule.
65874         iconv-h: Avoid #define replacements in C++ mode.
65875         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
65876         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
65877         symbol.
65878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
65879         whenever iconv is present.
65880         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
65881         (Makefile.am): Update iconv.h rule.
65883         glob: Avoid #define replacements in C++ mode.
65884         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
65885         (_gl_glob_errfunc_fn): New type.
65886         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
65887         symbol.
65888         * modules/glob (Depends-on): Add c++defs, warn-on-use.
65889         (Makefile.am): Update glob.h rule.
65891         fcntl-h: Avoid #define replacements in C++ mode.
65892         * lib/fcntl.in.h: Include c++defs.h.
65893         (fcntl, open, openat): In C++, define a namespaced alias symbol.
65894         * modules/fcntl-h (Depends-on): Add c++defs.
65895         (Makefile.am): Update fcntl.h rule.
65897         dirent: Avoid #define replacements in C++ mode.
65898         * lib/dirent.in.h: Include c++defs.h.
65899         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
65900         namespaced alias symbol.
65901         (dirfd): Update declaration.
65902         * modules/dirent (Depends-on): Add c++defs.
65903         (Makefile.am): Update dirent.h rule.
65905         ctype: Make it usable in C++ code.
65906         * lib/ctype.in.h: Include c++defs.h.
65907         (isblank): Declare as extern "C".
65908         * modules/ctype (Depends-on): Add c++defs.
65909         (Makefile.am): Update ctype.h rule.
65911         New module 'c++defs'.
65912         * modules/c++defs: New file.
65913         * build-aux/c++defs.h: New file.
65914         Reported by John W. Eaton <jwe@gnu.org>.
65916 2010-03-07  Bruno Haible  <bruno@clisp.org>
65918         logb: Provide missing declaration for Cygwin.
65919         * lib/math.in.h (logb): New declaration.
65920         * m4/logb.m4: New file.
65921         * modules/logb (Files): Add m4/logb.m4.
65922         (Depends-on): Add math.
65923         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
65924         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
65925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
65926         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
65927         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
65929 2010-03-07  Bruno Haible  <bruno@clisp.org>
65931         Fix test-cond link error.
65932         * tests/test-cond.c: Include <stdio.h>.
65934 2010-03-07  Bruno Haible  <bruno@clisp.org>
65936         Fix test-dirent-safer link error.
65937         * modules/dirent-safer-tests (Makefile.am): Define
65938         test_dirent_safer_LDADD.
65940 2010-03-07  Bruno Haible  <bruno@clisp.org>
65942         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
65943         among default module list.
65945 2010-03-07  Bruno Haible  <bruno@clisp.org>
65947         Fix link error on platforms with GNU libiconv.
65948         * modules/unistr/u8-strcoll-tests (Makefile): Define
65949         test_u8_strcoll_LDADD.
65950         * modules/unistr/u16-strcoll-tests (Makefile): Define
65951         test_u16_strcoll_LDADD.
65952         * modules/unistr/u32-strcoll-tests (Makefile): Define
65953         test_u32_strcoll_LDADD.
65955 2010-03-07  Bruno Haible  <bruno@clisp.org>
65957         Use POSIX declarations for socket functions.
65958         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
65959         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
65960         rpl_sendto): Change declaration to match POSIX.
65961         * lib/connect.c (rpl_connect): Likewise.
65962         * lib/accept.c (rpl_accept): Likewise.
65963         * lib/bind.c (rpl_bind): Likewise.
65964         * lib/getpeername.c (rpl_getpeername): Likewise.
65965         * lib/getsockname.c (rpl_getsockname): Likewise.
65966         * lib/recv.c (rpl_recv): Likewise.
65967         * lib/send.c (rpl_send): Likewise.
65968         * lib/recvfrom.c (rpl_recvfrom): Likewise.
65969         * lib/sendto.c (rpl_sendto): Likewise.
65971 2010-03-06  Bruno Haible  <bruno@clisp.org>
65973         Clarify access, euidaccess, faccessat.
65974         * doc/posix-functions/faccessat.texi: Mention security problem under
65975         "Other problems", not "Portability problems".
65976         * doc/posix-functions/access.texi: Likewise. Mention a related security
65977         problem.
65978         * doc/glibc-functions/euidaccess.texi: Mention security problems.
65979         * lib/euidaccess.c: Add comments about platforms.
65980         * lib/unistd.in.h (access, euidaccess): Add warnings.
65982 2010-03-07  Bruno Haible  <bruno@clisp.org>
65984         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
65985         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
65986         (POSIX_SPAWN_SETSCHEDULER): Likewise.
65987         (POSIX_SPAWN_USEVFORK): Define in a way that works when
65988         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
65989         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
65990         declare when POSIX_SPAWN_SETSCHEDULER is zero.
65991         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
65992         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
65993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
65994         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
65995         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
65996         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
65997         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
65998         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
65999         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
66000         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
66001         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
66002         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
66003         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
66004         Likewise.
66005         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
66006         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
66007         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
66008         Likewise.
66009         * tests/test-spawn.c (main): Make it work when
66010         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
66012 2010-03-07  Bruno Haible  <bruno@clisp.org>
66014         Fix incorrect Makefile.am generation in German locale.
66015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66016         Execute sed command with character range in C locale.
66018 2010-03-06  Bruno Haible  <bruno@clisp.org>
66020         Tests for module 'iconv-h'.
66021         * modules/iconv-h-tests: New file.
66022         * tests/test-iconv-h.c: New file.
66024         New module 'iconv-h'.
66025         * modules/iconv-h: New file.
66026         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
66027         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
66028         (configure.ac): Remove gl_ICONV_H.
66029         (Makefile.am): Remove rule for iconv.h.
66031 2010-03-06  Bruno Haible  <bruno@clisp.org>
66033         More consistent naming of *.m4 files.
66034         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
66035         * modules/wctype (Files): Update.
66037         More consistent naming of *.m4 files.
66038         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
66039         * modules/wchar (Files): Update.
66041 2010-03-06  Jim Meyering  <meyering@redhat.com>
66043         euidaccess: relax license to LGPLv2+
66044         * modules/euidaccess (License): Relax to LGPLv2+.
66046 2010-03-06  Bruno Haible  <bruno@clisp.org>
66048         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
66049         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
66050         (Makefile.am): Augment lib_SOURCES instead.
66052 2010-03-04  Jim Meyering  <meyering@redhat.com>
66054         utime: remove obsolete module
66055         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
66056         unnecessary for years, and has been marked as obsolete for 10 months.
66057         * modules/utime: Remove file.
66058         * lib/utime.c: Remove file.
66059         * m4/utime.m4: Remove file.
66060         * m4/utimes-null.m4: Remove file.
66061         * doc/posix-functions/utime.texi (utime): Remove reference to
66062         the module.  Move the sole "fixed by gnulib" item into the
66063         "problems not fixed by Gnulib" list.
66064         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
66066 2010-03-05  Simon Josefsson  <simon@josefsson.org>
66068         * modules/exit (License): Relax license to LGPLv2+.
66069         (Status): Mark as obsolete.
66070         * NEWS: Mention deprecated 'exit' module.
66071         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
66072         of now obsolete 'exit'.
66074 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66076         fts-lgpl: remove unused module
66077         * modules/fts-lgpl: Remove.
66078         * MODULES.html.sh (func_all_modules): Adjust.
66079         * check-module (find_included_lib_files): Adjust.
66080         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
66082 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
66084         copy-acl: enhance Solaris ACL error handling
66085         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
66086         * lib/set-mode-acl.c (qset_acl): Likewise.
66088 2010-03-02  Bruno Haible  <bruno@clisp.org>
66090         spawn: Don't override the system defined values on FreeBSD 8.
66091         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
66092         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
66093         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
66094         if HAVE_POSIX_SPAWN is 1.
66095         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
66097 2010-03-01  Bruno Haible  <bruno@clisp.org>
66099         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
66100         regarding Automake.
66102 2010-02-25  Bruno Haible  <bruno@clisp.org>
66104         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
66105         * gnulib-tool: Define 'echo' as a function only before the ksh alias
66106         setting, not afterwards.
66107         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
66109 2010-02-24  Eric Blake  <eblake@redhat.com>
66111         bootstrap, git-version-gen: use timestamp
66112         * build-aux/git-version-gen (scriptversion): Force UTC.
66113         * build-aux/bootstrap (scriptversion): New variable.
66115         bootstrap: allow older git
66116         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
66117         older than 1.6.4.  Requested by the libvirt project.
66119 2010-02-23  Eric Blake  <eblake@redhat.com>
66121         warn-on-use: work with old autoconf
66122         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
66123         AS_VAR semantics of autoconf 2.60.
66124         Reported by Bruno Haible.
66126         bootstrap: improve some comments
66127         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
66128         clarification comments.
66130         gettimeofday: provide correct function
66131         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
66132         when replacement is declared, otherwise provide gettimeofday.
66133         Reported by Michael Goffioul.
66135 2010-02-23  Jim Meyering  <meyering@redhat.com>
66137         lib-ignore: relax license to "unlimited", not LGPLv2+
66138         * modules/lib-ignore (License): Relax to "unlimited".
66140 2010-02-23  Jim Meyering  <meyering@redhat.com>
66142         lib-ignore: relax license to LGPLv2+
66143         * modules/lib-ignore (License): Relax to LGPLv2+.
66145 2010-02-22  Eric Blake  <eblake@redhat.com>
66147         lseek: avoid bash 3.2 broken pipe bug
66148         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
66149         warning from bash 3.2.
66150         Reported by Ben Pfaff, with analysis from Bruno Haible.
66152         bootstrap: support non-FSF copyright holder
66153         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
66154         bootstrap.conf override of COPYRIGHT_HOLDER.
66155         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
66157         bootstrap: interoperate with gettext 0.14.1
66158         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
66160         bootstrap: allow for alternate submodule location
66161         * build-aux/bootstrap (gnulib_path): New variable; use instead of
66162         hardcoding submodule location.
66163         (gnulib_mk): Allow direct use of Makefile.am.
66165         bootstrap: use GNULIB_SRCDIR to reduce disk usage
66166         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
66167         rather than reconfiguring where the submodule points.
66169         gettimeofday: restore support for platforms that lack function
66170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
66171         replacement if function is missing.
66172         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
66173         * modules/sys_time (Makefile.am): Substitute it.
66174         * lib/sys_time.in.h (gettimeofday): Check it.
66175         Reported by Michael Goffioul.
66177 2010-02-21  Bruno Haible  <bruno@clisp.org>
66179         * lib/stdio.in.h (obstack_printf): Fix typo.
66181 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
66183         vc-list-files: use bzr ls's -R option
66184         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
66185         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
66187 2010-02-21  Jim Meyering  <meyering@redhat.com>
66189         init.sh: fix EXEEXT shims to work also for names like test-prog
66190         * tests/init.sh: Re-exec a better shell, when needed.
66191         If the current shell lacks support for posix $(...), an init.sh-using
66192         test will now try to find a shell that supports that.  If EXEEXT is
66193         nonempty, we also require support for hyphen-in-alias-name and shell
66194         substitutions like ${var#glob}.  Failure to find such a shell results
66195         in a skipped test.
66197 2010-02-21  Bruno Haible  <bruno@clisp.org>
66199         Really work around "broken pipe" error message from bash 3.2.
66200         * gnulib-tool (func_reset_sigpipe): Remove function.
66201         (echo): In bash 3.2, define to a function that uses printf.
66202         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
66204 2010-02-20  Bruno Haible  <bruno@clisp.org>
66206         Restore support for automake 1.9.6 with autoconf 2.61.
66207         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
66208         Reported by James Youngman <jay@gnu.org>.
66210 2010-02-20  Bruno Haible  <bruno@clisp.org>
66212         Improve *printf warning condition.
66213         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
66214         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
66215         and the function is overridden due to SIGPIPE emulation.
66217 2010-02-20  Bruno Haible  <bruno@clisp.org>
66219         * lib/stdio.in.h: Tweak comments.
66221 2010-02-19  Bruno Haible  <bruno@clisp.org>
66223         Make it easier to find modules. New gnulib-tool option '--find'.
66224         * gnulib-tool: New option --find.
66225         (func_usage): Document it.
66226         (func_sanitize_modulelist): New function, extracted from
66227         func_all_modules.
66228         (func_all_modules): Invoke it.
66229         * doc/gnulib-tool.texi (Which modules?): New node.
66231 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
66233         * lib/sys_select.in.h: Provide select replacement even if
66234         sys/select.h exists on a system, for Interix.
66236 2010-02-18  Jim Meyering  <meyering@redhat.com>
66238         init.sh: don't use $(...) just yet
66239         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
66240         to accommodate e.g., Solaris' /bin/sh.
66242 2010-02-17  Bruno Haible  <bruno@clisp.org>
66244         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
66245         Reported by Ludovic Courtès <ludo@gnu.org>.
66247 2010-02-16  Simon Josefsson  <simon@josefsson.org>
66249         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
66250         linking with -lintl.
66252 2010-02-17  Simon Josefsson  <simon@josefsson.org>
66254         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
66255         if not provided by the system's netdb.h.  Reported by
66256         ludo@gnu.org (Ludovic Courtès).
66258 2010-02-15  Jim Meyering  <meyering@redhat.com>
66260         init.sh: improve portability and efficiency
66261         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
66262         "dummy" in a for loop.
66263         Use '!', not '^' to select the complement of a character set used
66264         in a "case" statement.
66265         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
66266         Suggestions from Eric Blake.
66268         init.sh: automatically accommodate programs with the .exe suffix
66269         Automatically arrange for an invocation of "prog" to execute the
66270         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
66271         may use the simpler "prog", yet still work when built on a system
66272         that requires specifying the added suffix.
66273         Do this by constructing a function named "prog" that invokes
66274         "prog.exe" for each .exe file in selected directories.
66275         * tests/init.sh (find_exe_basenames_): New function.
66276         (create_exe_shim_functions_): New function.
66277         (path_prepend_): Use it.
66279         maint.mk: mark syntax-check sc_*.m rules as .PHONY
66280         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
66281         "make -t syntax-check" doesn't create a ton of sc_*.m files.
66283 2010-02-14  Jim Meyering  <meyering@redhat.com>
66285         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
66286         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
66287         (sc_prohibit_hash_pjw_without_use): New rule.
66289         maint.mk: allow the default upload destination dir to be overridden
66290         * top/maint.mk (upload_dest_dir_): Define with a default that
66291         preserves the status quo.
66292         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
66293         Reported by Peter Simons.
66295         maint.mk: prohibit inclusion of "hash.h" without_use
66296         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
66298 2010-02-10  Jim Meyering  <meyering@redhat.com>
66300         maint.mk: prohibit inclusion of "ignore-value.h" without_use
66301         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
66303 2010-02-09  Eric Blake  <ebb9@byu.net>
66304         and Bruno Haible  <bruno@clisp.org>
66306         obstack-printf-posix: ensure declaration
66307         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
66308         extracted from gl_FUNC_OBSTACK_PRINTF.
66309         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
66310         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
66311         Likewise.
66312         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
66313         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
66314         0.
66316 2010-02-08  Bruno Haible  <bruno@clisp.org>
66318         gnulib-tool: Fix typo in 2010-02-07 commit.
66319         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
66320         Reported by Eric Blake.
66322 2010-02-07  Bruno Haible  <bruno@clisp.org>
66324         gnulib-tool: Fix up caching patches.
66325         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
66326         option --no-cache. Use associative arrays when supported by the shell.
66327         (sed_comments): New variable.
66328         (modcache): Renamed from do_cache.
66329         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
66330         abbreviate unnecessarily.
66331         (have_associative): New variable.
66332         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
66333         way also for ksh and zsh.
66334         (func_init_sed_convert_to_cache_statements): New function, extracted
66335         from func_cache_lookup_module. Add support for associative arrays.
66336         Don't set the c_MODULE_cached variable here. Ignore all lines before
66337         the first field header. Remove only the final newline, not all trailing
66338         newlines. Support empty fields correctly. Limit the use of 'eval' to
66339         assignments.
66340         (func_get_description, func_get_status, func_get_notice,
66341         func_get_applicability, func_get_filelist, func_get_dependencies,
66342         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
66343         func_get_automake_snippet, func_get_include_directive,
66344         func_get_link_directive, func_get_license, func_get_maintainer):
66345         Update documentation. List the unoptimized code first. Add support for
66346         associative arrays. Limit the use of 'eval' to assignments.
66347         (func_get_applicability): Undo stylistic pessimisations.
66348         (func_get_automake_snippet, func_get_include_directive): Reduce code
66349         duplication.
66350         (func_modules_transitive_closure, func_modules_add_dummy,
66351         func_modules_notice, func_modules_to_filelist, func_add_file,
66352         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
66353         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
66354         func_create_testdir, func_create_megatestdir): Update documentation.
66356 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66358         * gnulib-tool (func_cache_lookup_module): Store the module name
66359         belonging to the cache variable; error out if two different
66360         module names map to the same cache variable name.
66362 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66364         gnulib-tool: Make caching optional.
66365         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
66366         Update matching short versions of --no-changelog.
66367         (func_usage): Update.
66368         (sed_extract_cache_prog): Renamed from ...
66369         (sed_extract_prog): ... this; revert to old extraction script.
66370         (func_get_description, func_get_status)
66371         (func_get_notice, func_get_applicability, func_get_filelist)
66372         (func_get_dependencies, func_get_autoconf_early_snippet)
66373         (func_get_autoconf_snippet, func_get_automake_snippet)
66374         (func_get_include_directive, func_get_link_directive)
66375         (func_get_license, func_get_maintainer): If $do_cache is false,
66376         use old, non-caching extraction scripts.
66377         Suggestion by Bruno Haible.
66379 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66381         gnulib-tool: cache module metainformation.
66382         * gnulib-tool (sed_extract_prog): Match newline before each
66383         header, and rewrite header to a shell variable suffix.
66384         (func_cache_var, func_cache_lookup_module): New functions,
66385         to turn a module name into a cache variable prefix, and to
66386         look up and cache module metainformation.
66387         (func_get_description, func_get_status)
66388         (func_get_notice, func_get_applicability, func_get_filelist)
66389         (func_get_dependencies, func_get_autoconf_early_snippet)
66390         (func_get_autoconf_snippet, func_get_automake_snippet)
66391         (func_get_include_directive, func_get_link_directive)
66392         (func_get_license, func_get_maintainer): Use
66393         func_cache_lookup_module.
66395 2010-02-07  Bruno Haible  <bruno@clisp.org>
66397         fnctl: Fix missing dependency.
66398         * modules/fcntl (Depends-on): Add getdtablesize.
66399         Reported by John W. Eaton <jwe@gnu.org>.
66401 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66403         Argp: fix recognition of short alias options.
66405         * lib/argp-parse.c (convert_options): Fix improper use of
66406         `|' between character values.
66407         * tests/test-argp.c (group1_option): New alias option
66408         --read (-r).
66409         (group1_parser): Special handling for 'r'.
66410         (test15): New test case.
66411         (test_fun): Add test15.
66412         * tests/test-argp-2.sh: Update expected --help and --usage
66413         outputs.
66415 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66417         * tests/test-argp.c: Fix indentation.
66419 2010-02-04  Eric Blake  <ebb9@byu.net>
66421         gettimeofday: expose type of second argument
66422         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
66423         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
66424         * tests/test-gettimeofday.c: Use it to silence warning.
66425         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
66426         the issue.
66428 2010-02-03  Jim Meyering  <meyering@redhat.com>
66430         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
66431         * lib/regcomp.c (TYPE_SIGNED): Define.
66432         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
66434         regcomp.c: avoid a new -Wshadow warning
66435         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
66437 2010-02-01  Jim Meyering  <meyering@redhat.com>
66439         removing useless parentheses in cpp #define directives
66440         For motivation, see commit c0221df4, "define STREQ(a,b)
66441         consistently, removing useless parentheses"
66442         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
66443         * lib/mountlist.c (MNT_IGNORE): Likewise.
66444         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
66446 2010-02-01  Eric Blake  <ebb9@byu.net>
66448         sys_time: use link-warning
66449         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
66450         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
66451         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
66452         * modules/sys_time (Depends-on): Add warn-on-use.
66453         (Makefile.am): Always build replacement.
66454         (configure.ac): Update substitutions.
66455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
66456         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
66457         bother with SYS_TIME_H.
66458         * modules/gettimeofday (configure.ac): Declare indicator.
66459         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
66460         in use.
66462         closein-tests: silence compiler warning
66463         * tests/test-closein.c (main): Ignore fread result.
66464         * modules/closein-tests (Depends-on): Add ignore-value.
66466         tests: silence warning about system return
66467         * tests/test-areadlink-with-size.c (main): Ignore system result.
66468         * tests/test-areadlink.c (main): Likewise.
66469         * tests/test-areadlinkat-with-size.c (main): Likewise.
66470         * tests/test-areadlinkat.c (main): Likewise.
66471         * tests/test-canonicalize-lgpl.c (main): Likewise.
66472         * tests/test-canonicalize.c (main): Likewise.
66473         * tests/test-chown.c (main): Likewise.
66474         * tests/test-fchownat.c (main): Likewise.
66475         * tests/test-fdutimensat.c (main): Likewise.
66476         * tests/test-fstatat.c (main): Likewise.
66477         * tests/test-futimens.c (main): Likewise.
66478         * tests/test-lchown.c (main): Likewise.
66479         * tests/test-link.c (main): Likewise.
66480         * tests/test-linkat.c (main): Likewise.
66481         * tests/test-lstat.c (main): Likewise.
66482         * tests/test-mkdir.c (main): Likewise.
66483         * tests/test-mkdirat.c (main): Likewise.
66484         * tests/test-mkfifo.c (main): Likewise.
66485         * tests/test-mkfifoat.c (main): Likewise.
66486         * tests/test-mknod.c (main): Likewise.
66487         * tests/test-readlink.c (main): Likewise.
66488         * tests/test-remove.c (main): Likewise.
66489         * tests/test-rename.c (main): Likewise.
66490         * tests/test-renameat.c (main): Likewise.
66491         * tests/test-rmdir.c (main): Likewise.
66492         * tests/test-symlink.c (main): Likewise.
66493         * tests/test-symlinkat.c (main): Likewise.
66494         * tests/test-unlink.c (main): Likewise.
66495         * tests/test-unlinkat.c (main): Likewise.
66496         * tests/test-utimens.c (main): Likewise.
66497         * tests/test-utimensat.c (main): Likewise.
66498         * modules/areadlink-tests (Depends-on): Add ignore-value.
66499         * modules/areadlink-with-size-tests (Depends-on): Likewise.
66500         * modules/areadlinkat-tests (Depends-on): Likewise.
66501         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
66502         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
66503         * modules/canonicalize-tests (Depends-on): Likewise.
66504         * modules/chown-tests (Depends-on): Likewise.
66505         * modules/fdutimensat-tests (Depends-on): Likewise.
66506         * modules/futimens-tests (Depends-on): Likewise.
66507         * modules/lchown-tests (Depends-on): Likewise.
66508         * modules/link-tests (Depends-on): Likewise.
66509         * modules/linkat-tests (Depends-on): Likewise.
66510         * modules/lstat-tests (Depends-on): Likewise.
66511         * modules/mkdir-tests (Depends-on): Likewise.
66512         * modules/mkfifo-tests (Depends-on): Likewise.
66513         * modules/mkfifoat-tests (Depends-on): Likewise.
66514         * modules/mknod-tests (Depends-on): Likewise.
66515         * modules/openat-tests (Depends-on): Likewise.
66516         * modules/readlink-tests (Depends-on): Likewise.
66517         * modules/remove-tests (Depends-on): Likewise.
66518         * modules/rename-tests (Depends-on): Likewise.
66519         * modules/renameat-tests (Depends-on): Likewise.
66520         * modules/rmdir-tests (Depends-on): Likewise.
66521         * modules/symlink-tests (Depends-on): Likewise.
66522         * modules/symlinkat-tests (Depends-on): Likewise.
66523         * modules/unlink-tests (Depends-on): Likewise.
66524         * modules/utimens-tests (Depends-on): Likewise.
66525         * modules/utimensat-tests (Depends-on): Likewise.
66527 2010-01-31  Bruno Haible  <bruno@clisp.org>
66529         Perform the same test for many <math.h> functions.
66530         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
66531         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
66532         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
66533         of gl_MATHFUNC.
66534         * modules/acos (configure.ac): Likewise.
66535         * modules/asin (configure.ac): Likewise.
66536         * modules/atan (configure.ac): Likewise.
66537         * modules/atan2 (configure.ac): Likewise.
66538         * modules/cbrt (configure.ac): Likewise.
66539         * modules/copysign (configure.ac): Likewise.
66540         * modules/cos (configure.ac): Likewise.
66541         * modules/cosh (configure.ac): Likewise.
66542         * modules/erf (configure.ac): Likewise.
66543         * modules/erfc (configure.ac): Likewise.
66544         * modules/exp (configure.ac): Likewise.
66545         * modules/fmod (configure.ac): Likewise.
66546         * modules/hypot (configure.ac): Likewise.
66547         * modules/j0 (configure.ac): Likewise.
66548         * modules/j1 (configure.ac): Likewise.
66549         * modules/jn (configure.ac): Likewise.
66550         * modules/lgamma (configure.ac): Likewise.
66551         * modules/log (configure.ac): Likewise.
66552         * modules/log10 (configure.ac): Likewise.
66553         * modules/log1p (configure.ac): Likewise.
66554         * modules/pow (configure.ac): Likewise.
66555         * modules/remainder (configure.ac): Likewise.
66556         * modules/sin (configure.ac): Likewise.
66557         * modules/sinh (configure.ac): Likewise.
66558         * modules/tan (configure.ac): Likewise.
66559         * modules/tanh (configure.ac): Likewise.
66560         * modules/y0 (configure.ac): Likewise.
66561         * modules/y1 (configure.ac): Likewise.
66562         * modules/yn (configure.ac): Likewise.
66563         Suggested by Paolo Bonzini.
66565 2010-01-31  Bruno Haible  <bruno@clisp.org>
66567         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
66569 2010-01-31  Bruno Haible  <bruno@clisp.org>
66571         Work around getdelim() bug on FreeBSD 8.0.
66572         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
66573         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
66574         not work.
66575         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
66576         is 1.
66577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
66578         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
66579         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
66580         a non-zero size.
66581         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
66583 2010-01-31  Bruno Haible  <bruno@clisp.org>
66585         Work around getline() bug on FreeBSD 8.0.
66586         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
66587         and a non-zero size.
66588         * tests/test-getline.c (main): Likewise.
66589         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
66590         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
66592 2010-01-28  Eric Blake  <ebb9@byu.net>
66594         regex: fix build failure
66595         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
66596         platforms.
66598 2010-01-28  Jim Meyering  <meyering@redhat.com>
66600         regex: do not ignore memory allocation failure
66601         * lib/regex_internal.c (create_cd_newstate): Detect
66602         re_node_set_init_copy failure.   Extracted from glibc commit
66603         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
66605         regex: sync more white-space changes from libc
66606         * lib/regex_internal.c: White-space only changes.
66607         * lib/regexec.c: Likewise.
66609         regex: add many uses of __attribute_warn_unused_result__
66610         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
66611         * lib/regexec.c: Likewise.
66612         Extracted from a messy glibc commit.
66614         regcomp.c: spelling and merge-artifact from glibc
66615         * lib/regcomp.c: Merge remainder of glibc's
66616         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
66618         regcomp.c: sync white-space changes from glibc
66619         * lib/regcomp.c: Merge to accommodate white space
66620         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
66622         regcomp.c: do not ignore internal return values
66623         * lib/regcomp.c: Do not ignore internal return values.
66624         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
66625         but without its white-space changes and spelling fixes.
66627         regex_internal.h: define __attribute_warn_unused_result__
66628         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
66630         maint: add a syntax-check rule to check for vulnerable Makefile.in
66631         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
66633 2010-01-27  Jim Meyering  <meyering@redhat.com>
66635         ncftpput-ftp: clean up spaces
66636         * build-aux/ncftpput-ftp: Make Copyright line consistent.
66637         Remove trailing blanks.
66639 2010-01-27  Simon Josefsson  <simon@josefsson.org>
66641         * build-aux/git-version-gen: Fix copyright statement.
66642         * build-aux/gnupload: Likewise.
66643         * tests/test-arcfour.c: Likewise.
66644         * tests/test-arctwo.c: Likewise.
66645         * tests/test-count-one-bits.c: Likewise.
66646         * tests/test-crc.c: Likewise.
66647         * tests/test-des.c: Likewise.
66648         * tests/test-gc-arcfour.c: Likewise.
66649         * tests/test-gc-arctwo.c: Likewise.
66650         * tests/test-gc-des.c: Likewise.
66651         * tests/test-gc-hmac-md5.c: Likewise.
66652         * tests/test-gc-hmac-sha1.c: Likewise.
66653         * tests/test-gc-md2.c: Likewise.
66654         * tests/test-gc-md4.c: Likewise.
66655         * tests/test-gc-md5.c: Likewise.
66656         * tests/test-gc-pbkdf2-sha1.c: Likewise.
66657         * tests/test-gc-rijndael.c: Likewise.
66658         * tests/test-gc-sha1.c: Likewise.
66659         * tests/test-gc.c: Likewise.
66660         * tests/test-gethostname.c: Likewise.
66661         * tests/test-gettimeofday.c: Likewise.
66662         * tests/test-hash.c: Likewise.
66663         * tests/test-hmac-md5.c: Likewise.
66664         * tests/test-hmac-sha1.c: Likewise.
66665         * tests/test-md2.c: Likewise.
66666         * tests/test-md4.c: Likewise.
66667         * tests/test-md5.c: Likewise.
66668         * tests/test-memchr.c: Likewise.
66669         * tests/test-memchr2.c: Likewise.
66670         * tests/test-memcmp.c: Likewise.
66671         * tests/test-memmem.c: Likewise.
66672         * tests/test-memrchr.c: Likewise.
66673         * tests/test-rawmemchr.c: Likewise.
66674         * tests/test-read-file.c: Likewise.
66675         * tests/test-rijndael.c: Likewise.
66676         * tests/test-sockets.c: Likewise.
66677         * tests/test-strchrnul.c: Likewise.
66678         * tests/test-strstr.c: Likewise.
66679         * tests/test-strtod.c: Likewise.
66680         * build-aux/ncftpput-ftp: Likewise.
66682 2010-01-26  Eric Blake  <ebb9@byu.net>
66684         ignore-value: update recommended header name
66685         * modules/ignore-value (Include): Only use <> for headers that
66686         exist in glibc.
66688 2010-01-26  Jim Meyering  <meyering@redhat.com>
66690         test-userspec.c: avoid compiler warnings
66691         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
66692         and "initialization discards qualifiers..." warnings.
66693         Put the first "uid" in its own scope, and make char* members "const".
66695 2010-01-25  Bruno Haible  <bruno@clisp.org>
66697         gnulib-tool: Make warning diagnostics consistent.
66698         * gnulib-tool (func_warning): New function.
66699         Use it everywhere where gnulib-tool produces output to stderr and it is
66700         not a fatal error.
66702 2010-01-25  Bruno Haible  <bruno@clisp.org>
66704         Fix test dependencies.
66705         * modules/xstrtol-tests (Depends-on): Add inttypes.
66706         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
66708 2010-01-25  Pádraig Brady  <P@draigBrady.com>
66710         syntax-check: detect incorrect boolean macro values in config.h
66711         * modules/maintainer-makefile (configure.ac): Parameterize the location
66712         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
66713         The logic is from Eric Blake and the location indicated by Jim Meyering.
66714         Note the more natural CONFIG_HEADER name is prohibited by automake
66715         for backwards compatibility reasons.
66716         * top/maint.mk (sc_Wundef_boolean): New rule.
66718 2010-01-25  Jim Meyering  <meyering@redhat.com>
66720         bootstrap: detect MacOS 10.6's shasum, too
66721         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
66722         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
66724 2010-01-23  Jim Meyering  <meyering@redhat.com>
66726         xstrtoll: new module
66727         * modules/xstrtoll: New file.
66728         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
66729         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
66730         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
66731         ./configure fails if you use this module and lack "long long".
66732         * modules/xstrtoll-tests: New module.
66733         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
66734         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
66735         new init.sh-based test framework.
66737 2010-01-24  Bruno Haible  <bruno@clisp.org>
66739         Tests for module 'yn'.
66740         * modules/yn-tests: New file.
66741         * tests/test-yn.c: New file.
66743         Tests for module 'y1'.
66744         * modules/y1-tests: New file.
66745         * tests/test-y1.c: New file.
66747         Tests for module 'y0'.
66748         * modules/y0-tests: New file.
66749         * tests/test-y0.c: New file.
66751         Tests for module 'tanh'.
66752         * modules/tanh-tests: New file.
66753         * tests/test-tanh.c: New file.
66755         Tests for module 'tan'.
66756         * modules/tan-tests: New file.
66757         * tests/test-tan.c: New file.
66759         Tests for module 'sqrt'.
66760         * modules/sqrt-tests: New file.
66761         * tests/test-sqrt.c: New file.
66763         Tests for module 'sinh'.
66764         * modules/sinh-tests: New file.
66765         * tests/test-sinh.c: New file.
66767         Tests for module 'sin'.
66768         * modules/sin-tests: New file.
66769         * tests/test-sin.c: New file.
66771         Tests for module 'rint'.
66772         * modules/rint-tests: New file.
66773         * tests/test-rint.c: New file.
66775         Tests for module 'remainder'.
66776         * modules/remainder-tests: New file.
66777         * tests/test-remainder.c: New file.
66779         Tests for module 'pow'.
66780         * modules/pow-tests: New file.
66781         * tests/test-pow.c: New file.
66783         Tests for module 'nextafter'.
66784         * modules/nextafter-tests: New file.
66785         * tests/test-nextafter.c: New file.
66787         Tests for module 'modf'.
66788         * modules/modf-tests: New file.
66789         * tests/test-modf.c: New file.
66791         Tests for module 'logb'.
66792         * modules/logb-tests: New file.
66793         * tests/test-logb.c: New file.
66795         Tests for module 'log1p'.
66796         * modules/log1p-tests: New file.
66797         * tests/test-log1p.c: New file.
66799         Tests for module 'log10'.
66800         * modules/log10-tests: New file.
66801         * tests/test-log10.c: New file.
66803         Tests for module 'log'.
66804         * modules/log-tests: New file.
66805         * tests/test-log.c: New file.
66807         Tests for module 'lgamma'.
66808         * modules/lgamma-tests: New file.
66809         * tests/test-lgamma.c: New file.
66811         Tests for module 'ldexp'.
66812         * modules/ldexp-tests: New file.
66813         * tests/test-ldexp.c: New file.
66815         Tests for module 'jn'.
66816         * modules/jn-tests: New file.
66817         * tests/test-jn.c: New file.
66819         Tests for module 'j1'.
66820         * modules/j1-tests: New file.
66821         * tests/test-j1.c: New file.
66823         Tests for module 'j0'.
66824         * modules/j0-tests: New file.
66825         * tests/test-j0.c: New file.
66827         Tests for module 'hypot'.
66828         * modules/hypot-tests: New file.
66829         * tests/test-hypot.c: New file.
66831         Tests for module 'fmod'.
66832         * modules/fmod-tests: New file.
66833         * tests/test-fmod.c: New file.
66835         Tests for module 'fabs'.
66836         * modules/fabs-tests: New file.
66837         * tests/test-fabs.c: New file.
66839         Tests for module 'exp'.
66840         * modules/exp-tests: New file.
66841         * tests/test-exp.c: New file.
66843         Tests for module 'erfc'.
66844         * modules/erfc-tests: New file.
66845         * tests/test-erfc.c: New file.
66847         Tests for module 'erf'.
66848         * modules/erf-tests: New file.
66849         * tests/test-erf.c: New file.
66851         Tests for module 'cosh'.
66852         * modules/cosh-tests: New file.
66853         * tests/test-cosh.c: New file.
66855         Tests for module 'cos'.
66856         * modules/cos-tests: New file.
66857         * tests/test-cos.c: New file.
66859         Tests for module 'copysign'.
66860         * modules/copysign-tests: New file.
66861         * tests/test-copysign.c: New file.
66863         Tests for module 'cbrt'.
66864         * modules/cbrt-tests: New file.
66865         * tests/test-cbrt.c: New file.
66867         Tests for module 'atan2'.
66868         * modules/atan2-tests: New file.
66869         * tests/test-atan2.c: New file.
66871         Tests for module 'atan'.
66872         * modules/atan-tests: New file.
66873         * tests/test-atan.c: New file.
66875         Tests for module 'asin'.
66876         * modules/asin-tests: New file.
66877         * tests/test-asin.c: New file.
66879         Tests for module 'acos'.
66880         * modules/acos-tests: New file.
66881         * tests/test-acos.c: New file.
66883 2010-01-24  Bruno Haible  <bruno@clisp.org>
66885         Fix tests for common <math.h> functions.
66886         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
66887         code snippet that references the function pointer, rather than merely
66888         calling the function. Substitute the FUNC_LIBM variable.
66889         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
66890         * modules/acos (configure.ac): Likewise.
66891         * modules/asin (configure.ac): Likewise.
66892         * modules/atan (configure.ac): Likewise.
66893         * modules/atan2 (configure.ac): Likewise.
66894         * modules/cbrt (configure.ac): Likewise.
66895         * modules/copysign (configure.ac): Likewise.
66896         * modules/cos (configure.ac): Likewise.
66897         * modules/cosh (configure.ac): Likewise.
66898         * modules/erf (configure.ac): Likewise.
66899         * modules/erfc (configure.ac): Likewise.
66900         * modules/exp (configure.ac): Likewise.
66901         * modules/fabs (configure.ac): Likewise.
66902         * modules/fmod (configure.ac): Likewise.
66903         * modules/hypot (configure.ac): Likewise.
66904         * modules/j0 (configure.ac): Likewise.
66905         * modules/j1 (configure.ac): Likewise.
66906         * modules/jn (configure.ac): Likewise.
66907         * modules/ldexp (configure.ac): Likewise.
66908         * modules/lgamma (configure.ac): Likewise.
66909         * modules/log (configure.ac): Likewise.
66910         * modules/log10 (configure.ac): Likewise.
66911         * modules/log1p (configure.ac): Likewise.
66912         * modules/logb (configure.ac): Likewise.
66913         * modules/modf (configure.ac): Likewise.
66914         * modules/nextafter (configure.ac): Likewise.
66915         * modules/pow (configure.ac): Likewise.
66916         * modules/remainder (configure.ac): Likewise.
66917         * modules/rint (configure.ac): Likewise.
66918         * modules/sin (configure.ac): Likewise.
66919         * modules/sinh (configure.ac): Likewise.
66920         * modules/tan (configure.ac): Likewise.
66921         * modules/tanh (configure.ac): Likewise.
66922         * modules/y0 (configure.ac): Likewise.
66923         * modules/y1 (configure.ac): Likewise.
66924         * modules/yn (configure.ac): Likewise.
66926 2010-01-24  Bruno Haible  <bruno@clisp.org>
66928         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
66929         * tests/test-acosl.c (x): New variable.
66930         (main): Store argument in x and fetch it from x.
66931         * tests/test-asinl.c (x): New variable.
66932         (main): Store argument in x and fetch it from x.
66933         * tests/test-atanl.c (x): New variable.
66934         (main): Store argument in x and fetch it from x.
66935         * tests/test-cosl.c (x): New variable.
66936         (main): Store argument in x and fetch it from x.
66937         * tests/test-expl.c (x): New variable.
66938         (main): Store argument in x and fetch it from x.
66939         * tests/test-logl.c (x): New variable.
66940         (main): Store argument in x and fetch it from x.
66941         * tests/test-sinl.c (x): New variable.
66942         (main): Store argument in x and fetch it from x.
66943         * tests/test-sqrtl.c (x): New variable.
66944         (main): Store argument in x and fetch it from x.
66945         * tests/test-tanl.c (x): New variable.
66946         (main): Store argument in x and fetch it from x.
66948 2010-01-24  Bruno Haible  <bruno@clisp.org>
66950         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
66951         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
66952         assignments to the initial TESTS_ENVIRONMENT.
66953         * doc/gnulib.texi (Unit test modules): Document it.
66954         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
66955         TESTS_ENVIRONMENT.
66956         * modules/btowc-tests (Makefile.am): Likewise.
66957         * modules/c-stack-tests (Makefile.am): Likewise.
66958         * modules/c-strcase-tests (Makefile.am): Likewise.
66959         * modules/copy-file-tests (Makefile.am): Likewise.
66960         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
66961         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
66962         * modules/mbrtowc-tests (Makefile.am): Likewise.
66963         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66964         * modules/mbscasestr-tests (Makefile.am): Likewise.
66965         * modules/mbschr-tests (Makefile.am): Likewise.
66966         * modules/mbscspn-tests (Makefile.am): Likewise.
66967         * modules/mbsinit-tests (Makefile.am): Likewise.
66968         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66969         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
66970         * modules/mbspbrk-tests (Makefile.am): Likewise.
66971         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66972         * modules/mbsrchr-tests (Makefile.am): Likewise.
66973         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
66974         * modules/mbsspn-tests (Makefile.am): Likewise.
66975         * modules/mbsstr-tests (Makefile.am): Likewise.
66976         * modules/nl_langinfo-tests (Makefile.am): Likewise.
66977         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
66978         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66979         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66980         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66981         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66982         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
66983         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66984         * modules/wcrtomb-tests (Makefile.am): Likewise.
66985         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
66986         * modules/wcsrtombs-tests (Makefile.am): Likewise.
66987         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
66988         assignments from TESTS_ENVIRONMENT.
66989         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
66990         augmentation.
66991         * modules/argp-version-etc-tests (Makefile.am): Likewise.
66992         * modules/atexit-tests (Makefile.am): Likewise.
66993         * modules/binary-io-tests (Makefile.am): Likewise.
66994         * modules/closein-tests (Makefile.am): Likewise.
66995         * modules/dprintf-posix-tests (Makefile.am): Likewise.
66996         * modules/exclude-tests (Makefile.am): Likewise.
66997         * modules/fflush-tests (Makefile.am): Likewise.
66998         * modules/fpending-tests (Makefile.am): Likewise.
66999         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67000         * modules/freadahead-tests (Makefile.am): Likewise.
67001         * modules/freadptr-tests (Makefile.am): Likewise.
67002         * modules/freadseek-tests (Makefile.am): Likewise.
67003         * modules/fseek-tests (Makefile.am): Likewise.
67004         * modules/fseeko-tests (Makefile.am): Likewise.
67005         * modules/ftell-tests (Makefile.am): Likewise.
67006         * modules/ftello-tests (Makefile.am): Likewise.
67007         * modules/idpriv-drop-tests (Makefile.am): Likewise.
67008         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
67009         * modules/lseek-tests (Makefile.am): Likewise.
67010         * modules/parse-duration-tests (Makefile.am): Likewise.
67011         * modules/perror-tests (Makefile.am): Likewise.
67012         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
67013         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
67014         * modules/pipe-tests (Makefile.am): Likewise.
67015         * modules/pread-tests (Makefile.am): Likewise.
67016         * modules/printf-posix-tests (Makefile.am): Likewise.
67017         * modules/select-tests (Makefile.am): Likewise.
67018         * modules/sigpipe-tests (Makefile.am): Likewise.
67019         * modules/tsearch-tests (Makefile.am): Likewise.
67020         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
67021         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
67022         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67023         * modules/uniwidth/width-tests (Makefile.am): Likewise.
67024         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
67025         * modules/version-etc-tests (Makefile.am): Likewise.
67026         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67027         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67028         * modules/xalloc-die-tests (Makefile.am): Likewise.
67029         * modules/xprintf-posix-tests (Makefile.am): Likewise.
67030         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67031         * modules/xstrtol-tests (Makefile.am): Likewise.
67032         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67033         * modules/yesno-tests (Makefile.am): Likewise.
67034         Suggested by Jim Meyering.
67036 2010-01-24  Bruno Haible  <bruno@clisp.org>
67038         More documentation.
67039         * doc/gnulib.texi (Writing modules): New chapter.
67040         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
67041         the new chapter.
67043 2010-01-24  Jim Meyering  <meyering@redhat.com>
67045         maint.mk: do not prepend "./" after filtering
67046         * top/maint.mk (_prepend_srcdir_prefix): New variable
67047         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
67048         "./" when $(srcdir) is ".".
67050         define STREQ(a,b) consistently, removing useless parentheses
67051         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
67052         since the only risk is that "a" or "b" contains an unparenthesized
67053         comma, but if either did that, STREQ would have 3 or more arguments.
67054         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
67055         * lib/fts.c (STREQ): Remove unnecessary parentheses.
67056         * lib/hash-triple.c (STREQ): Likewise.
67057         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
67058         * lib/getugroups.c (STREQ): Likewise.
67060 2010-01-23  Jim Meyering  <meyering@redhat.com>
67062         maint.mk: fix syntax-check in a non-srcdir build directory
67063         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
67064         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
67066 2010-01-22  Jim Meyering  <meyering@redhat.com>
67068         userspec: add unit tests
67069         * tests/test-userspec.c: New file.
67070         * modules/userspec-tests: Likewise.
67072 2010-01-21  Jim Meyering  <meyering@redhat.com>
67074         maint.mk: handle source file names containing "." robustly
67075         * top/maint.mk (_dot_escaped_srcdir): Define.
67076         (VC_LIST): Use it in LHS of sed substitution.
67078 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
67080         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
67081         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
67082         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
67083         from a non-srcdir build.
67085 2010-01-20  Eric Blake  <ebb9@byu.net>
67087         warn-on-use: use instead of link-warning
67088         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
67089         * modules/unistd (Depends-on, Makefile.am): Likewise.
67090         * modules/arpa_inet (Depends-on): Replace link-warning with
67091         warn-on-use.
67092         (Makefile.am): Update rules accordingly.
67093         * modules/ctype (Depends-on, Makefile.am): Likewise.
67094         * modules/dirent (Depends-on, Makefile.am): Likewise.
67095         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
67096         * modules/inttypes (Depends-on, Makefile.am): Likewise.
67097         * modules/langinfo (Depends-on, Makefile.am): Likewise.
67098         * modules/locale (Depends-on, Makefile.am): Likewise.
67099         * modules/math (Depends-on, Makefile.am): Likewise.
67100         * modules/search (Depends-on, Makefile.am): Likewise.
67101         * modules/signal (Depends-on, Makefile.am): Likewise.
67102         * modules/spawn (Depends-on, Makefile.am): Likewise.
67103         * modules/stdlib (Depends-on, Makefile.am): Likewise.
67104         * modules/string (Depends-on, Makefile.am): Likewise.
67105         * modules/strings (Depends-on, Makefile.am): Likewise.
67106         * modules/sys_file (Depends-on, Makefile.am): Likewise.
67107         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
67108         * modules/sys_select (Depends-on, Makefile.am): Likewise.
67109         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
67110         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
67111         * modules/sys_times (Depends-on, Makefile.am): Likewise.
67112         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
67113         * modules/wchar (Depends-on, Makefile.am): Likewise.
67114         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
67115         should be poisoned.
67116         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
67117         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
67118         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
67119         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67120         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67121         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67122         * m4/math_h.m4 (gl_MATH_H): Likewise.
67123         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67124         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67125         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
67126         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67127         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67128         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67129         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
67130         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
67131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
67132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67135         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67137         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67138         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67139         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
67140         GL_LINK_WARNING.
67141         * lib/ctype.in.h: Likewise.
67142         * lib/dirent.in.h: Likewise.
67143         * lib/fcntl.in.h: Likewise.
67144         * lib/inttypes.in.h: Likewise.
67145         * lib/langinfo.in.h: Likewise.
67146         * lib/locale.in.h: Likewise.
67147         * lib/math.in.h: Likewise.
67148         * lib/search.in.h: Likewise.
67149         * lib/signal.in.h: Likewise.
67150         * lib/spawn.in.h: Likewise.
67151         * lib/stdio.in.h: Likewise.
67152         * lib/stdlib.in.h: Likewise.
67153         * lib/string.in.h: Likewise.
67154         * lib/strings.in.h: Likewise.
67155         * lib/sys_file.in.h: Likewise.
67156         * lib/sys_ioctl.in.h: Likewise.
67157         * lib/sys_select.in.h: Likewise.
67158         * lib/sys_socket.in.h: Likewise.
67159         * lib/sys_stat.in.h: Likewise.
67160         * lib/sys_times.in.h: Likewise.
67161         * lib/sys_utsname.in.h: Likewise.
67162         * lib/unistd.in.h: Likewise.
67163         * lib/wchar.in.h: Likewise.
67165 2010-01-20  Bruno Haible  <bruno@clisp.org>
67167         Avoid duplicate -lm.
67168         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
67169         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
67170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
67171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
67172         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
67173         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
67174         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
67175         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
67176         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
67177         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
67178         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
67179         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
67180         Reported by Paolo Bonzini.
67182 2010-01-19  Bruno Haible  <bruno@clisp.org>
67184         langinfo, nl_langinfo: Relicense under LGPLv2+.
67185         * modules/langinfo (License): Change to LGPLv2+.
67186         * modules/nl_langinfo (License): Likewise.
67187         Patch by David Lutterkort <lutter@redhat.com>.
67189 2010-01-19  Bruno Haible  <bruno@clisp.org>
67191         Avoid compilation error with cc on OSF/1 5.1.
67192         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
67193         statement, not before.
67194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67196 2010-01-18  Bruno Haible  <bruno@clisp.org>
67198         Avoid a link error due to the __printf__ symbol.
67199         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
67200         and 2.6.x.
67201         (__format__, __printf__): Remove definitions.
67202         * lib/argp-fmtstream.h: Likewise.
67203         * lib/argp.h: Likewise.
67204         * lib/error.h: Likewise.
67205         * lib/vasnprintf.h: Likewise.
67206         * lib/xprintf.h: Likewise.
67207         * lib/xvasprintf.h: Likewise.
67208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67210 2010-01-18  Bruno Haible  <bruno@clisp.org>
67212         Tests for module 'tanl'.
67213         * modules/tanl-tests: New file.
67214         * tests/test-tanl.c: New file.
67216         Tests for module 'sqrtl'.
67217         * modules/sqrtl-tests: New file.
67218         * tests/test-sqrtl.c: New file.
67220         Tests for module 'sinl'.
67221         * modules/sinl-tests: New file.
67222         * tests/test-sinl.c: New file.
67224         Tests for module 'logl'.
67225         * modules/logl-tests: New file.
67226         * tests/test-logl.c: New file.
67228         Tests for module 'expl'.
67229         * modules/expl-tests: New file.
67230         * tests/test-expl.c: New file.
67232         Tests for module 'cosl'.
67233         * modules/cosl-tests: New file.
67234         * tests/test-cosl.c: New file.
67236         Tests for module 'atanl'.
67237         * modules/atanl-tests: New file.
67238         * tests/test-atanl.c: New file.
67240         Tests for module 'asinl'.
67241         * modules/asinl-tests: New file.
67242         * tests/test-asinl.c: New file.
67244         Tests for module 'acosl'.
67245         * modules/acosl-tests: New file.
67246         * tests/test-acosl.c: New file.
67248         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
67249         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
67250         tanl): Use the standard gnulib idiom.
67251         * lib/cosl.c: Don't include trigl.c and sincosl.c.
67252         * lib/sinl.c: Likewise.
67253         * lib/tanl.c: Don't include trigl.c.
67254         (kernel_tanl): Make static.
67255         * lib/sincosl.c: Include trigl.h first.
67256         * lib/trigl.c: Likewise.
67257         * m4/acosl.m4: New file.
67258         * m4/asinl.m4: New file.
67259         * m4/atanl.m4: New file.
67260         * m4/cosl.m4: New file.
67261         * m4/expl.m4: New file.
67262         * m4/logl.m4: New file.
67263         * m4/sinl.m4: New file.
67264         * m4/sqrtl.m4: New file.
67265         * m4/tanl.m4: New file.
67266         * m4/mathl.m4: Remove file.
67267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
67268         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
67269         Don't initialize GNULIB_MATHL.
67270         * modules/acosl: New file.
67271         * modules/asinl: New file.
67272         * modules/atanl: New file.
67273         * modules/cosl: New file.
67274         * modules/expl: New file.
67275         * modules/logl: New file.
67276         * modules/sinl: New file.
67277         * modules/sqrtl: New file.
67278         * modules/tanl: New file.
67279         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
67280         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
67281         substitute GNULIB_MATHL.
67282         * modules/mathl: Rewritten.
67283         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
67284         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
67285         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
67286         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
67287         * doc/posix-functions/expl.texi: Mention the 'expl' module.
67288         * doc/posix-functions/logl.texi: Mention the 'logl' module.
67289         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
67290         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
67291         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
67293 2010-01-18  Bruno Haible  <bruno@clisp.org>
67295         sqrt: Make gl_FUNC_SQRT requirable.
67296         * m4/sqrt.m4: New file.
67297         * modules/sqrt (Files): Add it.
67298         (configure.ac): Invoke gl_FUNC_SQRT.
67300 2010-01-18  Bruno Haible  <bruno@clisp.org>
67302         New modules for common <math.h> functions.
67303         * m4/mathfunc.m4: New file.
67304         * modules/acos: New file.
67305         * modules/asin: New file.
67306         * modules/atan: New file.
67307         * modules/atan2: New file.
67308         * modules/cbrt: New file.
67309         * modules/copysign: New file.
67310         * modules/cos: New file.
67311         * modules/cosh: New file.
67312         * modules/erf: New file.
67313         * modules/erfc: New file.
67314         * modules/exp: New file.
67315         * modules/fabs: New file.
67316         * modules/fmod: New file.
67317         * modules/hypot: New file.
67318         * modules/j0: New file.
67319         * modules/j1: New file.
67320         * modules/jn: New file.
67321         * modules/ldexp: New file.
67322         * modules/lgamma: New file.
67323         * modules/log: New file.
67324         * modules/log10: New file.
67325         * modules/log1p: New file.
67326         * modules/logb: New file.
67327         * modules/modf: New file.
67328         * modules/nextafter: New file.
67329         * modules/pow: New file.
67330         * modules/remainder: New file.
67331         * modules/rint: New file.
67332         * modules/sin: New file.
67333         * modules/sinh: New file.
67334         * modules/sqrt: New file.
67335         * modules/tan: New file.
67336         * modules/tanh: New file.
67337         * modules/y0: New file.
67338         * modules/y1: New file.
67339         * modules/yn: New file.
67340         * doc/posix-functions/acos.texi: Mention the 'acos' module.
67341         * doc/posix-functions/asin.texi: Mention the 'asin' module.
67342         * doc/posix-functions/atan.texi: Mention the 'atan' module.
67343         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
67344         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
67345         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
67346         * doc/posix-functions/cos.texi: Mention the 'cos' module.
67347         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
67348         * doc/posix-functions/erf.texi: Mention the 'erf' module.
67349         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
67350         * doc/posix-functions/exp.texi: Mention the 'exp' module.
67351         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
67352         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
67353         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
67354         * doc/posix-functions/j0.texi: Mention the 'j0' module.
67355         * doc/posix-functions/j1.texi: Mention the 'j1' module.
67356         * doc/posix-functions/jn.texi: Mention the 'jn' module.
67357         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
67358         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
67359         * doc/posix-functions/log.texi: Mention the 'log' module.
67360         * doc/posix-functions/log10.texi: Mention the 'log10' module.
67361         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
67362         * doc/posix-functions/logb.texi: Mention the 'logb' module.
67363         * doc/posix-functions/modf.texi: Mention the 'modf' module.
67364         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
67365         * doc/posix-functions/pow.texi: Mention the 'pow' module.
67366         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
67367         * doc/posix-functions/rint.texi: Mention the 'rint' module.
67368         * doc/posix-functions/sin.texi: Mention the 'sin' module.
67369         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
67370         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
67371         * doc/posix-functions/tan.texi: Mention the 'tan' module.
67372         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
67373         * doc/posix-functions/y0.texi: Mention the 'y0' module.
67374         * doc/posix-functions/y1.texi: Mention the 'y1' module.
67375         * doc/posix-functions/yn.texi: Mention the 'yn' module.
67377 2010-01-18  Jim Meyering  <meyering@redhat.com>
67379         ignore-value: relax license to LGPLv2+
67380         * modules/ignore-value (License): Relax to LGPLv2+.
67382         getdate: don't leak when TZ contains two or more '"'s
67383         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
67384         double quote in TZ after the first one.
67386         readtokens: do not leak internal token_lengths buffer
67387         * lib/readtokens.c (readtokens): Free the local, lengths,
67388         when the supplied "token_lengths" parameter is NULL.
67390 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67392         Fix a couple of missing LIBTHREAD link failures on AIX.
67393         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
67394         $(LIBTHREAD).
67395         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
67397         Link test-poll against INET_PTON_LIB.
67398         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
67399         for inet_pton on Solaris 10.
67401 2010-01-17  Bruno Haible  <bruno@clisp.org>
67403         unistdio/*-sprintf: Fix typo in module description.
67404         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
67405         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
67406         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
67407         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
67408         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
67409         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
67410         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
67411         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67413 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67415         gnulib-tool: fix filelist for AIX, HP-UX ksh.
67416         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
67417         variables in shell case patterns, for AIX and HP-UX ksh.
67419         Split large sed scripts, for HP-UX sed.
67420         * modules/stdio: Split sed scripts around 50 sed commands,
67421         to avoid HP-UX limit of 99 commands, in the near future.
67422         * modules/string: Likewise.
67423         * modules/unistd: Likewise.
67425         gnulib-tool: avoid writing in the current directory.
67426         * gnulib-tool (func_emit_lib_Makefile_am)
67427         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
67428         not in the current directory, so concurrent gnulib-tool
67429         instances do not interfere.
67431 2010-01-16  Jim Meyering  <meyering@redhat.com>
67433         doc: update users.txt
67434         * users.txt: Add grep.
67435         (diffutils, gzip): Update URLs.
67437 2010-01-12  Bruno Haible  <bruno@clisp.org>
67439         posix_spawn: Avoid test failure on Cygwin.
67440         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
67441         characters.
67442         Reported by Simon Josefsson.
67444 2010-01-12  Bruno Haible  <bruno@clisp.org>
67446         * tests/test-cond.c (main): When skipping the test, show the reason.
67448 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67450         * lib/striconv.c (str_cd_iconv): Avoid if before free.
67452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67454         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
67455         VC_LIST_ALWAYS_EXCLUDE_REGEX.
67457 2010-01-12  Eric Blake  <ebb9@byu.net>
67459         build: guarantee AS_VAR_IF
67460         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
67461         (gl_AS_VAR_IF): Move...
67462         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
67463         Reported by Simon Josefsson.
67465 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67467         * lib/stdio.in.h: Fix typo.
67469 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67471         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
67472         libgpg-error.
67474 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67476         * tests/test-xalloc-die.sh: Use $EXEEXT.
67478 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67479             Bruno Haible  <bruno@clisp.org>
67481         getlogin, getlogin_r: Avoid test failure.
67482         * tests/test-getlogin.c: Include <stdio.h>.
67483         (main): Skip the test when the function fails because stdin is not a
67484         tty.
67485         * tests/test-getlogin_r.c: Include <stdio.h>.
67486         (main): Skip the test when the function fails because stdin is not a
67487         tty.
67489 2010-01-11  Eric Blake  <ebb9@byu.net>
67491         tests: avoid more large file warnings
67492         * tests/test-fflush.c: Avoid warning about ftell use.
67493         * tests/test-fseek.c: Avoid warning about fseek use.
67495 2010-01-10  Bruno Haible  <bruno@clisp.org>
67497         nproc: Work better on Linux when /proc and /sys are not mounted.
67498         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
67499         as lower bound when, on glibc/Linux systems,
67500         sysconf (_SC_NPROCESSORS_CONF) returns 1.
67501         Suggested by Pádraig Brady <P@draigbrady.com>.
67502         Reported by Dmitry V. Levin <ldv@altlinux.org>.
67504         nproc: Refactor.
67505         * lib/nproc.c (num_processors_via_affinity_mask): New function,
67506         extracted from num_processors.
67507         (num_processors): Call it.
67509 2010-01-11  Jim Meyering  <meyering@redhat.com>
67511         utimecmp: avoid new warning from upcoming gcc-4.5.0
67512         * lib/utimecmp.c (BILLION): Define using #define rather than an
67513         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
67515 2010-01-11  Eric Blake  <ebb9@byu.net>
67517         math: add portability warnings for classification macros
67518         * modules/math (Depends-on): Add warn-on-use.
67519         (Makefile.am): Provide new substitutions.
67520         * m4/math_h.m4 (gl_MATH_H): Require inline.
67521         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
67522         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
67523         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
67524         implement warnings.
67526         unistd: warn on use of environ without module
67527         * modules/unistd (Depends-on): Add warn-on-use.
67528         (Makefile.am): Provide new substitutions.
67529         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
67530         * lib/unistd.in.h (environ): Wrap with a warning helper function.
67532         stdio: warn on suspicious uses
67533         * modules/stdio (Depends-on): Add warn-on-use.
67534         (Makefile.am): Provide new substitutions.
67535         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
67536         fseeko.
67537         * lib/stdio.in.h (gets): Always warn on use.
67538         (fseek, ftell): Adjust when warnings are issued, and honor
67539         _GL_NO_LARGE_FILES as a way to silence the warning.
67540         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
67541         any warning about large file offsets.
67542         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
67543         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
67544         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
67545         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
67546         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
67547         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
67548         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
67549         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
67551         warn-on-use: new module
67552         * modules/warn-on-use: New file.
67553         * build-aux/warn-on-use.h: Likewise.
67554         * m4/warn-on-use.m4: Likewise.
67555         * MODULES.html.sh (Support for building): Mention it.
67557 2010-01-10  Bruno Haible  <bruno@clisp.org>
67559         Tests for module 'unistr/u32-strdup'.
67560         * modules/unistr/u32-strdup-tests: New file.
67561         * tests/unistr/test-u32-strdup.c: New file.
67563         Tests for module 'unistr/u16-strdup'.
67564         * modules/unistr/u16-strdup-tests: New file.
67565         * tests/unistr/test-u16-strdup.c: New file.
67567         Tests for module 'unistr/u8-strdup'.
67568         * modules/unistr/u8-strdup-tests: New file.
67569         * tests/unistr/test-u8-strdup.c: New file.
67570         * tests/unistr/test-strdup.h: New file.
67572         Tests for module 'unistr/u32-strncmp'.
67573         * modules/unistr/u32-strncmp-tests: New file.
67574         * tests/unistr/test-u32-strncmp.c: New file.
67576         Tests for module 'unistr/u16-strncmp'.
67577         * modules/unistr/u16-strncmp-tests: New file.
67578         * tests/unistr/test-u16-strncmp.c: New file.
67580         Tests for module 'unistr/u8-strncmp'.
67581         * modules/unistr/u8-strncmp-tests: New file.
67582         * tests/unistr/test-u8-strncmp.c: New file.
67583         * tests/unistr/test-strncmp.h: New file.
67585         Tests for module 'unistr/u32-strcoll'.
67586         * modules/unistr/u32-strcoll-tests: New file.
67587         * tests/unistr/test-u32-strcoll.c: New file.
67589         Tests for module 'unistr/u16-strcoll'.
67590         * modules/unistr/u16-strcoll-tests: New file.
67591         * tests/unistr/test-u16-strcoll.c: New file.
67593         Tests for module 'unistr/u8-strcoll'.
67594         * modules/unistr/u8-strcoll-tests: New file.
67595         * tests/unistr/test-u8-strcoll.c: New file.
67597         Tests for module 'unistr/u32-strcmp'.
67598         * modules/unistr/u32-strcmp-tests: New file.
67599         * tests/unistr/test-u32-strcmp.c: New file.
67600         * tests/unistr/test-u32-strcmp.h: New file.
67602         Tests for module 'unistr/u16-strcmp'.
67603         * modules/unistr/u16-strcmp-tests: New file.
67604         * tests/unistr/test-u16-strcmp.c: New file.
67605         * tests/unistr/test-u16-strcmp.h: New file.
67607         Tests for module 'unistr/u8-strcmp'.
67608         * modules/unistr/u8-strcmp-tests: New file.
67609         * tests/unistr/test-u8-strcmp.c: New file.
67610         * tests/unistr/test-u8-strcmp.h: New file.
67611         * tests/unistr/test-strcmp.h: New file.
67613         Tests for module 'unistr/u32-strncat'.
67614         * modules/unistr/u32-strncat-tests: New file.
67615         * tests/unistr/test-u32-strncat.c: New file.
67617         Tests for module 'unistr/u16-strncat'.
67618         * modules/unistr/u16-strncat-tests: New file.
67619         * tests/unistr/test-u16-strncat.c: New file.
67621         Tests for module 'unistr/u8-strncat'.
67622         * modules/unistr/u8-strncat-tests: New file.
67623         * tests/unistr/test-u8-strncat.c: New file.
67624         * tests/unistr/test-strncat.h: New file.
67626         Tests for module 'unistr/u32-strcat'.
67627         * modules/unistr/u32-strcat-tests: New file.
67628         * tests/unistr/test-u32-strcat.c: New file.
67630         Tests for module 'unistr/u16-strcat'.
67631         * modules/unistr/u16-strcat-tests: New file.
67632         * tests/unistr/test-u16-strcat.c: New file.
67634         Tests for module 'unistr/u8-strcat'.
67635         * modules/unistr/u8-strcat-tests: New file.
67636         * tests/unistr/test-u8-strcat.c: New file.
67637         * tests/unistr/test-strcat.h: New file.
67639         Tests for module 'unistr/u32-stpncpy'.
67640         * modules/unistr/u32-stpncpy-tests: New file.
67641         * tests/unistr/test-u32-stpncpy.c: New file.
67643         Tests for module 'unistr/u16-stpncpy'.
67644         * modules/unistr/u16-stpncpy-tests: New file.
67645         * tests/unistr/test-u16-stpncpy.c: New file.
67647         Tests for module 'unistr/u8-stpncpy'.
67648         * modules/unistr/u8-stpncpy-tests: New file.
67649         * tests/unistr/test-u8-stpncpy.c: New file.
67650         * tests/unistr/test-stpncpy.h: New file.
67652         Tests for module 'unistr/u32-strncpy'.
67653         * modules/unistr/u32-strncpy-tests: New file.
67654         * tests/unistr/test-u32-strncpy.c: New file.
67656         Tests for module 'unistr/u16-strncpy'.
67657         * modules/unistr/u16-strncpy-tests: New file.
67658         * tests/unistr/test-u16-strncpy.c: New file.
67660         Tests for module 'unistr/u8-strncpy'.
67661         * modules/unistr/u8-strncpy-tests: New file.
67662         * tests/unistr/test-u8-strncpy.c: New file.
67663         * tests/unistr/test-strncpy.h: New file.
67665         Tests for module 'unistr/u32-stpcpy'.
67666         * modules/unistr/u32-stpcpy-tests: New file.
67667         * tests/unistr/test-u32-stpcpy.c: New file.
67669         Tests for module 'unistr/u16-stpcpy'.
67670         * modules/unistr/u16-stpcpy-tests: New file.
67671         * tests/unistr/test-u16-stpcpy.c: New file.
67673         Tests for module 'unistr/u8-stpcpy'.
67674         * modules/unistr/u8-stpcpy-tests: New file.
67675         * tests/unistr/test-u8-stpcpy.c: New file.
67676         * tests/unistr/test-stpcpy.h: New file.
67678         Tests for module 'unistr/u32-strcpy'.
67679         * modules/unistr/u32-strcpy-tests: New file.
67680         * tests/unistr/test-u32-strcpy.c: New file.
67682         Tests for module 'unistr/u16-strcpy'.
67683         * modules/unistr/u16-strcpy-tests: New file.
67684         * tests/unistr/test-u16-strcpy.c: New file.
67686         Tests for module 'unistr/u8-strcpy'.
67687         * modules/unistr/u8-strcpy-tests: New file.
67688         * tests/unistr/test-u8-strcpy.c: New file.
67689         * tests/unistr/test-strcpy.h: New file.
67691         Tests for module 'unistr/u32-strnlen'.
67692         * modules/unistr/u32-strnlen-tests: New file.
67693         * tests/unistr/test-u32-strnlen.c: New file.
67695         Tests for module 'unistr/u16-strnlen'.
67696         * modules/unistr/u16-strnlen-tests: New file.
67697         * tests/unistr/test-u16-strnlen.c: New file.
67699         Tests for module 'unistr/u8-strnlen'.
67700         * modules/unistr/u8-strnlen-tests: New file.
67701         * tests/unistr/test-u8-strnlen.c: New file.
67702         * tests/unistr/test-strnlen.h: New file.
67704         Tests for module 'unistr/u32-strlen'.
67705         * modules/unistr/u32-strlen-tests: New file.
67706         * tests/unistr/test-u32-strlen.c: New file.
67708         Tests for module 'unistr/u16-strlen'.
67709         * modules/unistr/u16-strlen-tests: New file.
67710         * tests/unistr/test-u16-strlen.c: New file.
67712         Tests for module 'unistr/u8-strlen'.
67713         * modules/unistr/u8-strlen-tests: New file.
67714         * tests/unistr/test-u8-strlen.c: New file.
67716         Tests for module 'unistr/u32-prev'.
67717         * modules/unistr/u32-prev-tests: New file.
67718         * tests/unistr/test-u32-prev.c: New file.
67720         Tests for module 'unistr/u16-prev'.
67721         * modules/unistr/u16-prev-tests: New file.
67722         * tests/unistr/test-u16-prev.c: New file.
67724         Tests for module 'unistr/u8-prev'.
67725         * modules/unistr/u8-prev-tests: New file.
67726         * tests/unistr/test-u8-prev.c: New file.
67728         Tests for module 'unistr/u32-next'.
67729         * modules/unistr/u32-next-tests: New file.
67730         * tests/unistr/test-u32-next.c: New file.
67732         Tests for module 'unistr/u16-next'.
67733         * modules/unistr/u16-next-tests: New file.
67734         * tests/unistr/test-u16-next.c: New file.
67736         Tests for module 'unistr/u8-next'.
67737         * modules/unistr/u8-next-tests: New file.
67738         * tests/unistr/test-u8-next.c: New file.
67740         Tests for module 'unistr/u32-strmbtouc'.
67741         * modules/unistr/u32-strmbtouc-tests: New file.
67742         * tests/unistr/test-u32-strmbtouc.c: New file.
67744         Tests for module 'unistr/u16-strmbtouc'.
67745         * modules/unistr/u16-strmbtouc-tests: New file.
67746         * tests/unistr/test-u16-strmbtouc.c: New file.
67748         Tests for module 'unistr/u8-strmbtouc'.
67749         * modules/unistr/u8-strmbtouc-tests: New file.
67750         * tests/unistr/test-u8-strmbtouc.c: New file.
67752         Tests for module 'unistr/u32-strmblen'.
67753         * modules/unistr/u32-strmblen-tests: New file.
67754         * tests/unistr/test-u32-strmblen.c: New file.
67756         Tests for module 'unistr/u16-strmblen'.
67757         * modules/unistr/u16-strmblen-tests: New file.
67758         * tests/unistr/test-u16-strmblen.c: New file.
67760         Tests for module 'unistr/u8-strmblen'.
67761         * modules/unistr/u8-strmblen-tests: New file.
67762         * tests/unistr/test-u8-strmblen.c: New file.
67764         Tests for module 'unistr/u32-cpy-alloc'.
67765         * modules/unistr/u32-cpy-alloc-tests: New file.
67766         * tests/unistr/test-u32-cpy-alloc.c: New file.
67768         Tests for module 'unistr/u16-cpy-alloc'.
67769         * modules/unistr/u16-cpy-alloc-tests: New file.
67770         * tests/unistr/test-u16-cpy-alloc.c: New file.
67772         Tests for module 'unistr/u8-cpy-alloc'.
67773         * modules/unistr/u8-cpy-alloc-tests: New file.
67774         * tests/unistr/test-u8-cpy-alloc.c: New file.
67775         * tests/unistr/test-cpy-alloc.h: New file.
67777         Tests for module 'unistr/u32-mbsnlen'.
67778         * modules/unistr/u32-mbsnlen-tests: New file.
67779         * tests/unistr/test-u32-mbsnlen.c: New file.
67781         Tests for module 'unistr/u16-mbsnlen'.
67782         * modules/unistr/u16-mbsnlen-tests: New file.
67783         * tests/unistr/test-u16-mbsnlen.c: New file.
67785         Tests for module 'unistr/u8-mbsnlen'.
67786         * modules/unistr/u8-mbsnlen-tests: New file.
67787         * tests/unistr/test-u8-mbsnlen.c: New file.
67789         Tests for module 'unistr/u32-chr'.
67790         * modules/unistr/u32-chr-tests: New file.
67791         * tests/unistr/test-u32-chr.c: New file.
67793         Tests for module 'unistr/u16-chr'.
67794         * modules/unistr/u16-chr-tests: New file.
67795         * tests/unistr/test-u16-chr.c: New file.
67797         Tests for module 'unistr/u8-chr'.
67798         * modules/unistr/u8-chr-tests: New file.
67799         * tests/unistr/test-u8-chr.c: New file.
67800         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
67802         Tests for module 'unistr/u32-cmp2'.
67803         * modules/unistr/u32-cmp2-tests: New file.
67804         * tests/unistr/test-u32-cmp2.c: New file.
67806         Tests for module 'unistr/u16-cmp2'.
67807         * modules/unistr/u16-cmp2-tests: New file.
67808         * tests/unistr/test-u16-cmp2.c: New file.
67810         Tests for module 'unistr/u8-cmp2'.
67811         * modules/unistr/u8-cmp2-tests: New file.
67812         * tests/unistr/test-u8-cmp2.c: New file.
67813         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
67815         Tests for module 'unistr/u32-cmp'.
67816         * modules/unistr/u32-cmp-tests: New file.
67817         * tests/unistr/test-u32-cmp.c: New file.
67819         Tests for module 'unistr/u16-cmp'.
67820         * modules/unistr/u16-cmp-tests: New file.
67821         * tests/unistr/test-u16-cmp.c: New file.
67823         Tests for module 'unistr/u8-cmp'.
67824         * modules/unistr/u8-cmp-tests: New file.
67825         * tests/unistr/test-u8-cmp.c: New file.
67826         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
67828         Tests for module 'unistr/u32-set'.
67829         * modules/unistr/u32-set-tests: New file.
67830         * tests/unistr/test-u32-set.c: New file.
67832         Tests for module 'unistr/u16-set'.
67833         * modules/unistr/u16-set-tests: New file.
67834         * tests/unistr/test-u16-set.c: New file.
67836         Tests for module 'unistr/u8-set'.
67837         * modules/unistr/u8-set-tests: New file.
67838         * tests/unistr/test-u8-set.c: New file.
67839         * tests/unistr/test-set.h: New file.
67841         Tests for module 'unistr/u32-move'.
67842         * modules/unistr/u32-move-tests: New file.
67843         * tests/unistr/test-u32-move.c: New file.
67845         Tests for module 'unistr/u16-move'.
67846         * modules/unistr/u16-move-tests: New file.
67847         * tests/unistr/test-u16-move.c: New file.
67849         Tests for module 'unistr/u8-move'.
67850         * modules/unistr/u8-move-tests: New file.
67851         * tests/unistr/test-u8-move.c: New file.
67852         * tests/unistr/test-move.h: New file.
67854         Tests for module 'unistr/u32-cpy'.
67855         * modules/unistr/u32-cpy-tests: New file.
67856         * tests/unistr/test-u32-cpy.c: New file.
67858         Tests for module 'unistr/u16-cpy'.
67859         * modules/unistr/u16-cpy-tests: New file.
67860         * tests/unistr/test-u16-cpy.c: New file.
67862         Tests for module 'unistr/u8-cpy'.
67863         * modules/unistr/u8-cpy-tests: New file.
67864         * tests/unistr/test-u8-cpy.c: New file.
67865         * tests/unistr/test-cpy.h: New file.
67867 2010-01-09  Bruno Haible  <bruno@clisp.org>
67869         Tests for module 'unistr/u32-uctomb'.
67870         * modules/unistr/u32-uctomb-tests: New file.
67871         * tests/unistr/test-u32-uctomb.c: New file.
67873         Tests for module 'unistr/u16-uctomb'.
67874         * modules/unistr/u16-uctomb-tests: New file.
67875         * tests/unistr/test-u16-uctomb.c: New file.
67877         Tests for module 'unistr/u8-uctomb'.
67878         * modules/unistr/u8-uctomb-tests: New file.
67879         * tests/unistr/test-u8-uctomb.c: New file.
67881         Tests for module 'unistr/u32-mbtoucr'.
67882         * modules/unistr/u32-mbtoucr-tests: New file.
67883         * tests/unistr/test-u32-mbtoucr.c: New file.
67885         Tests for module 'unistr/u16-mbtoucr'.
67886         * modules/unistr/u16-mbtoucr-tests: New file.
67887         * tests/unistr/test-u16-mbtoucr.c: New file.
67889         Tests for module 'unistr/u8-mbtoucr'.
67890         * modules/unistr/u8-mbtoucr-tests: New file.
67891         * tests/unistr/test-u8-mbtoucr.c: New file.
67893         Tests for module 'unistr/u32-mbtouc'.
67894         * modules/unistr/u32-mbtouc-tests: New file.
67895         * tests/unistr/test-u32-mbtouc.c: New file.
67897         Tests for module 'unistr/u16-mbtouc'.
67898         * modules/unistr/u16-mbtouc-tests: New file.
67899         * tests/unistr/test-u16-mbtouc.c: New file.
67901         Tests for module 'unistr/u8-mbtouc'.
67902         * modules/unistr/u8-mbtouc-tests: New file.
67903         * tests/unistr/test-u8-mbtouc.c: New file.
67905         Tests for module 'unistr/u32-mbtouc-unsafe'.
67906         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
67907         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
67908         * tests/unistr/test-u32-mbtouc.h: New file.
67910         Tests for module 'unistr/u16-mbtouc-unsafe'.
67911         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
67912         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
67913         * tests/unistr/test-u16-mbtouc.h: New file.
67915         Tests for module 'unistr/u8-mbtouc-unsafe'.
67916         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
67917         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
67918         * tests/unistr/test-u8-mbtouc.h: New file.
67920         Tests for module 'unistr/u32-mblen'.
67921         * modules/unistr/u32-mblen-tests: New file.
67922         * tests/unistr/test-u32-mblen.c: New file.
67924         Tests for module 'unistr/u16-mblen'.
67925         * modules/unistr/u16-mblen-tests: New file.
67926         * tests/unistr/test-u16-mblen.c: New file.
67928         Tests for module 'unistr/u8-mblen'.
67929         * modules/unistr/u8-mblen-tests: New file.
67930         * tests/unistr/test-u8-mblen.c: New file.
67932         Tests for module 'unistr/u32-to-u16'.
67933         * modules/unistr/u32-to-u16-tests: New file.
67934         * tests/unistr/test-u32-to-u16.c: New file.
67936         Tests for module 'unistr/u32-to-u8'.
67937         * modules/unistr/u32-to-u8-tests: New file.
67938         * tests/unistr/test-u32-to-u8.c: New file.
67940         Tests for module 'unistr/u16-to-u32'.
67941         * modules/unistr/u16-to-u32-tests: New file.
67942         * tests/unistr/test-u16-to-u32.c: New file.
67944         Tests for module 'unistr/u16-to-u8'.
67945         * modules/unistr/u16-to-u8-tests: New file.
67946         * tests/unistr/test-u16-to-u8.c: New file.
67948         Tests for module 'unistr/u8-to-u32'.
67949         * modules/unistr/u8-to-u32-tests: New file.
67950         * tests/unistr/test-u8-to-u32.c: New file.
67952         Tests for module 'unistr/u8-to-u16'.
67953         * modules/unistr/u8-to-u16-tests: New file.
67954         * tests/unistr/test-u8-to-u16.c: New file.
67956         Tests for module 'unistr/u32-check'.
67957         * modules/unistr/u32-check-tests: New file.
67958         * tests/unistr/test-u32-check.c: New file.
67960         Tests for module 'unistr/u16-check'.
67961         * modules/unistr/u16-check-tests: New file.
67962         * tests/unistr/test-u16-check.c: New file.
67964         Tests for module 'unistr/u8-check'.
67965         * modules/unistr/u8-check-tests: New file.
67966         * tests/unistr/test-u8-check.c: New file.
67968         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
67969         (category_equals): New function.
67970         (main): Add more tests.
67971         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
67973         * tests/unictype/test-bidi_byname.c (main): Add more tests.
67975 2010-01-10  Bruno Haible  <bruno@clisp.org>
67977         unistr/u*-strcoll: Try harder to distinguish different strings.
67978         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
67979         compare s1 and s2 to see if they are different.
67981 2010-01-10  Bruno Haible  <bruno@clisp.org>
67983         unistr/u*-stpncpy: Fix the return value.
67984         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
67985         description of the return value consistent with stpncpy in glibc.
67986         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
67987         written non-NUL unit.
67989 2010-01-10  Bruno Haible  <bruno@clisp.org>
67991         unistr/u*-next: Add missing dependencies.
67992         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
67993         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
67994         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
67996 2010-01-10  Bruno Haible  <bruno@clisp.org>
67998         unistr/u8-mbsnlen: Fix return value for incomplete character.
67999         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
68000         u8_mblen.
68001         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
68002         Remove unistr/u8-mblen.
68003         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
68004         u16_mblen.
68005         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
68006         Remove unistr/u16-mblen.
68008 2010-01-10  Bruno Haible  <bruno@clisp.org>
68010         wchar: Fix compilation error when <wchar.h> is used from coreutils.
68011         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
68012         Reported by Brian Gough <bjg@gnu.org> and
68013         Chris Clayton <chris2553@googlemail.com> via
68014         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
68016 2010-01-09  Bruno Haible  <bruno@clisp.org>
68018         unistr/u16-to-u32: Reject invalid input.
68019         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
68020         u16_mbtouc.
68021         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
68022         Remove unistr/u16-mbtouc.
68024         unistr/u16-to-u8: Reject invalid input.
68025         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
68026         u16_mbtouc.
68027         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
68028         Remove unistr/u16-mbtouc.
68030         unistr/u8-to-u32: Reject invalid input.
68031         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
68032         u8_mbtouc.
68033         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
68034         Remove unistr/u8-mbtouc.
68036         unistr/u8-to-u16: Reject invalid input.
68037         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
68038         u8_mbtouc.
68039         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
68040         Remove unistr/u8-mbtouc.
68042 2010-01-09  Bruno Haible  <bruno@clisp.org>
68044         Tests for module 'getlogin'.
68045         * modules/getlogin-tests: New file.
68046         * tests/test-getlogin.c: New file.
68048         New module 'getlogin'.
68049         * lib/unistd.in.h (getlogin): New declaration.
68050         * lib/getlogin.c: New file.
68051         * m4/getlogin.m4: New file.
68052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
68053         HAVE_GETLOGIN.
68054         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
68055         HAVE_GETLOGIN.
68056         * modules/getlogin: New file.
68057         * doc/posix-functions/getlogin.texi: Mention the new module.
68058         Reported by John W. Eaton <jwe@gnu.org>.
68060 2010-01-09  Bruno Haible  <bruno@clisp.org>
68062         getlogin_r: Support for native Windows.
68063         * lib/getlogin_r.c: Include <windows.h>
68064         (getlogin_r): Implement for native Windows.
68065         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
68066         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
68067         via John W. Eaton <jwe@gnu.org>.
68069 2010-01-09  Bruno Haible  <bruno@clisp.org>
68071         getlogin_r: Small fixes.
68072         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
68073         succeeds.
68074         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
68075         before testing whether getlogin_r is declared. No need to set
68076         HAVE_DECL_GETLOGIN_R to 1.
68077         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
68079 2010-01-09  Bruno Haible  <bruno@clisp.org>
68081         * lib/unistd.in.h (getlogin_r): Add comment.
68083 2010-01-09  Bruno Haible  <bruno@clisp.org>
68085         Tests for module 'getlogin_r'.
68086         * modules/getlogin_r-tests: New file.
68087         * tests/test-getlogin_r.c: New file.
68089 2010-01-09  Jim Meyering  <meyering@redhat.com>
68091         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
68092         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
68093         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
68095 2010-01-08  Simon Josefsson  <simon@josefsson.org>
68097         * lib/dup2.c (rpl_dup2): Improve comment.
68099 2010-01-08  Eric Blake  <ebb9@byu.net>
68101         maint.mk: allow packages to add makefile @@ exceptions
68102         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
68103         (sc_makefile_check): Rename...
68104         (sc_makefile_at_at_check): ...to this, and use hook.
68106         dup2: work around mingw bug
68107         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
68108         Reported by Simon Josefsson.
68110 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
68112         glob: Fix C++ compilation.
68113         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
68114         C++.
68116 2010-01-07  Bruno Haible  <bruno@clisp.org>
68118         Fix indentation of wctype.in.h, broken since 2007-01-06.
68119         * lib/wctype.in.h: Fix indentation of preprocessor directives.
68121 2010-01-07  Bruno Haible  <bruno@clisp.org>
68123         mbslen: Avoid collision with system function.
68124         * lib/string.in.h [MirBSD]: Include <wchar.h>.
68125         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
68126         * m4/mbslen.m4: New file.
68127         * modules/mbslen (Files): Add it.
68128         (configure.ac): Invoke gl_MBSLEN.
68129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
68130         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
68131         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
68132         via Ian Beckwith <ianb@erislabs.net>.
68134 2010-01-07  Bruno Haible  <bruno@clisp.org>
68136         dirent: Document the last fix.
68137         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
68139 2010-01-07  Bruno Haible  <bruno@clisp.org>
68141         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
68142         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
68143         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
68144         va_list are defined.
68145         * doc/posix-headers/stdio.texi: Document the bug of missing types.
68146         Reported by Eric Blake.
68148 2010-01-07  Bruno Haible  <bruno@clisp.org>
68150         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
68151         * modules/xlist (Depends-on): Add 'list',
68152         * modules/xoset (Depends-on): Add 'oset'.
68153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68155 2010-01-07  Bruno Haible  <bruno@clisp.org>
68157         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
68158         * doc/posix-functions/strncasecmp.texi: Likewise.
68160 2010-01-07  Bruno Haible  <bruno@clisp.org>
68162         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
68164 2010-01-07  John W. Eaton  <jwe@octave.org>
68166         wctype: allow C++ use
68167         * lib/wctype.in.h: Add extern "C" block for C++.
68169 2010-01-06  Eric Blake  <ebb9@byu.net>
68171         maint.mk: detect incorrect GFDL usage
68172         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
68174 2010-01-06  Jim Meyering  <meyering@redhat.com>
68175         and Eric Blake  <ebb9@byu.net>
68177         maint.mk: ignore multi-line copyright in NEWS
68178         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
68180 2010-01-06  Eric Blake  <ebb9@byu.net>
68182         select: add missing dependency
68183         * modules/select-tests (Depends-on): Move sockets dependency...
68184         * modules/select (Depends-on): ...here.
68185         Reported by Ian Beckwith.
68187         doc: regenerate INSTALL
68188         * doc/INSTALL: Reflect recent autoconf update.
68189         * doc/INSTALL.ISO: Likewise.
68190         * doc/INSTALL.UTF-8: Likewise.
68192         pread: fix compilation on glibc
68193         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
68194         Reported by Ralf Wildenhues.
68196         dirent: fix test failure
68197         * lib/dirent.in.h (includes): Guarantee ino_t.
68198         Reported by Ralf Wildenhues.
68200 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
68202         linkat, renameat: avoid bad free
68203         * lib/at-func2.c (at_func2): Fix typo.
68204         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
68206 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68208         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
68209         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
68210         to avoid failure of symlink test later.
68212 2010-01-06  Eric Blake  <ebb9@byu.net>
68214         stdio, unistd: guarantee ssize_t
68215         * lib/unistd.in.h (includes): Ensure that types required by POSIX
68216         2008 are exposed when needed.
68217         * lib/stdio.in.h (includes): Likewise.
68218         Reported by Ralf Wildenhues.
68220 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
68222         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
68223         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
68224         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
68226 2010-01-06  Jim Meyering  <meyering@redhat.com>
68228         readtokens: this module *does* require xalloc.h
68229         It uses only functions that were omitted by the old syntax-check rule.
68230         * lib/readtokens.c: Include "xalloc.h" once again.
68231         * modules/readtokens (Depends-on): Add xalloc.
68232         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
68234 2010-01-05  Eric Blake  <ebb9@byu.net>
68236         maint: support 'make announcement' from a VPATH build
68237         * top/maint.mk (announcement): Look for correct NEWS file.
68239 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
68241         utimens (fdutimens): ignore a negative FD, per contract
68242         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
68243         when we have a valid file descriptor.  Otherwise, using a brand
68244         new glibc (with just-patched futimens that now fails with EBADF)
68245         would cause this function to fail with ENOSYS.
68246         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
68247         See also http://bugzilla.redhat.com/552320.
68249 2010-01-05  Eric Blake  <ebb9@byu.net>
68251         strcase: document what it provides
68252         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
68253         gnulib module.
68254         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
68255         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
68257 2010-01-05  Jim Meyering  <meyering@redhat.com>
68259         maint: remove useless inclusions of "xalloc.h"
68260         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
68261         * lib/readtokens.c: Likewise.
68262         * lib/same.c: Likewise.
68263         * modules/getloadavg (Depends-on): Remove xalloc.
68264         * modules/readtokens: Likewise.
68265         * modules/same: Likewise.
68267         maint.mk: include 4 more function names in alloca.h-checking regexp
68268         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
68269         regexp.  Before, we would give a false-positive (saying alloca.h
68270         is included unnecessarily) when the only uses involved omitted symbols.
68272         xalloc.h: use consistent formatting
68273         * lib/xalloc.h: Move declarations to start in the first column.
68275 2010-01-05  Eric Blake  <ebb9@byu.net>
68277         mkdir: avoid xalloc
68278         * lib/mkdir.c (includes): Drop unused header.
68279         Reported by John W. Eaton.
68281 2010-01-04  Jim Meyering  <meyering@redhat.com>
68283         nl_langinfo: avoid configure-time syntax error
68284         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
68285         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
68286         the empty string.  Don't let that provoke a shell syntax error.
68288         regcomp, regexec, fnmatch: avoid array bounds read error
68289         * lib/regcomp.c (build_equiv_class): From glibc:
68290         Use only the low 24 bits of a findidx return value as an index
68291         into the weights array.  Patch by Ulrich Drepper:
68292         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
68293         * lib/regexec.c (check_node_accept_bytes): Likewise.
68294         * lib/fnmatch_loop.c (FCT): Likewise.
68296         regcomp: skip collseq lookup when there are no rules
68297         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
68298         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
68300         regcomp: recognize ill-formed { } expressions
68301         * lib/regcomp.c (parse_dup_op): From glibc:
68302         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
68304         regcomp: fix typo in comment
68305         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
68306         s/satisfy/satisfies/.
68308         regcomp: sync from glibc: remove dead store
68309         * lib/regcomp.c (duplicate_node_closure): Remove useless
68310         search_duplicated_node call and dead store.
68312         regcomp: sync from glibc; always use nl_langinfo
68313         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
68314         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
68315         * modules/regex (Depends-on): Add nl_langinfo.
68317 2010-01-04  Eric Blake  <ebb9@byu.net>
68319         fdopendir: fix configure test
68320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
68322 2010-01-01  Bruno Haible  <bruno@clisp.org>
68324         wchar: Remove unused configure check.
68325         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
68327 2010-01-01  Eric Blake  <ebb9@byu.net>
68329         headers: make check of system header explicit
68330         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
68331         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
68332         ourselves.
68333         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68336         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
68337         internals.
68338         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
68339         missing.
68340         Suggested by Bruno Haible.
68342 2010-01-01  Jim Meyering  <meyering@redhat.com>
68344         ChangeLog: tweak to eliminate unnecessary copyright line
68345         * ChangeLog: Remove a copyright line that was mistakenly updated
68346         by today's update-copyright run.  Reported by Eric Blake.
68348         test-update-copyright: don't let envvar setting cause test failure
68349         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
68351 2010-01-01  Bruno Haible  <bruno@clisp.org>
68353         localename: Avoid gcc warning.
68354         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
68355         function if it is not used.
68357 2010-01-01  Jim Meyering  <meyering@redhat.com>
68359         update nearly all FSF copyright year lists to include 2010
68360         Use the same procedure as for 2009, outlined in
68361         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
68363         version-etc: set COPYRIGHT_YEAR to 2010
68364         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
68366 2009-12-31  Eric Blake  <ebb9@byu.net>
68368         doc: correct availability of cygwin 1.5.x getopt
68369         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
68370         variables.
68371         * doc/posix-functions/opterr.texi (opterr): Likewise.
68372         * doc/posix-functions/optind.texi (optind): Likewise.
68373         * doc/posix-functions/optopt.texi (optopt): Likewise.
68374         * doc/posix-functions/tzname.texi (tzname): Likewise.
68376         openat: update maintainer
68377         * modules/openat (Maintainer): Add myself.
68379         utimens: avoid shadowing warning
68380         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
68381         buffers into one, to avoid shadowing, as well as avoiding a
68382         redundant stat.
68383         Reported by Jim Meyering.
68385         test-dup2: avoid compiler warning
68386         * tests/test-dup2.c (is_inheritable): Only define if used.
68388 2010-01-01  Bruno Haible  <bruno@clisp.org>
68390         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
68391         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
68392         defined, use wctomb instead of wcrtomb.
68394 2010-01-01  Bruno Haible  <bruno@clisp.org>
68396         iconv: Reject native Solaris iconv.
68397         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
68398         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
68400 2009-12-31  Bruno Haible  <bruno@clisp.org>
68402         * tests/test-signal.c (main): Remove test of 'SIG'.
68404 2009-12-31  Bruno Haible  <bruno@clisp.org>
68406         spawn: Fix incomplete fix.
68407         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
68408         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
68409         warnings for GNULIB_POSIXCHECK again.
68410         Reported by Eric Blake.
68412 2009-12-31  Bruno Haible  <bruno@clisp.org>
68414         Avoid namespace pollution on glibc systems.
68415         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
68416         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
68417         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
68418         glibc systems.
68420 2009-12-31  Bruno Haible  <bruno@clisp.org>
68422         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
68423         (gl_REPLACE_WCHAR_H): Turn into a no-op.
68424         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
68425         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
68426         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
68427         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
68428         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
68430 2009-12-31  Bruno Haible  <bruno@clisp.org>
68432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
68433         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
68434         afterwards.
68436 2009-12-31  Bruno Haible  <bruno@clisp.org>
68438         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
68439         SYS_UTSNAME_H.
68441 2009-12-31  Bruno Haible  <bruno@clisp.org>
68443         spawn: Fix misapplied patch.
68444         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
68445         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
68446         warnings for GNULIB_POSIXCHECK.
68448 2009-12-31  Bruno Haible  <bruno@clisp.org>
68450         times: Update after sys_times changed.
68451         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
68452         * modules/times (Files): Add it.
68453         (configure.ac): Invoke gl_FUNC_TIMES.
68455 2009-12-31  Bruno Haible  <bruno@clisp.org>
68457         Use AC_C_INLINE where necessary.
68458         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
68459         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
68460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68461         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68462         * m4/mbfile.m4 (gl_MBFILE): Likewise.
68463         * m4/mbiter.m4 (gl_MBITER): Likewise.
68464         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68465         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
68466         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
68467         * modules/u64 (configure.ac): Likewise.
68469 2009-12-31  Bruno Haible  <bruno@clisp.org>
68471         Use AC_C_INLINE instead of module 'inline' where possible.
68472         * modules/inline (Description): Clarify purpose.
68473         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
68474         * modules/count-one-bits (Depends-on): Remove inline.
68475         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
68476         * modules/openat (Depends-on): Remove inline.
68477         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
68478         instead of depending on module 'inline'.
68479         * modules/filevercmp (Depends-on, configure.ac): Likewise.
68480         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
68481         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
68482         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
68483         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
68484         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
68485         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
68486         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
68487         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
68488         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
68489         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
68490         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
68491         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
68492         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
68493         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
68494         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
68495         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
68496         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
68497         Likewise.
68498         * modules/unictype/property-ascii-hex-digit (Depends-on,
68499         configure.ac): Likewise.
68500         * modules/unictype/property-bidi-arabic-digit (Depends-on,
68501         configure.ac): Likewise.
68502         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
68503         configure.ac): Likewise.
68504         * modules/unictype/property-bidi-block-separator (Depends-on,
68505         configure.ac): Likewise.
68506         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
68507         configure.ac): Likewise.
68508         * modules/unictype/property-bidi-common-separator (Depends-on,
68509         configure.ac): Likewise.
68510         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
68511         Likewise.
68512         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
68513         configure.ac): Likewise.
68514         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
68515         configure.ac): Likewise.
68516         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
68517         configure.ac): Likewise.
68518         * modules/unictype/property-bidi-european-digit (Depends-on,
68519         configure.ac): Likewise.
68520         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
68521         configure.ac): Likewise.
68522         * modules/unictype/property-bidi-left-to-right (Depends-on,
68523         configure.ac): Likewise.
68524         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
68525         configure.ac): Likewise.
68526         * modules/unictype/property-bidi-other-neutral (Depends-on,
68527         configure.ac): Likewise.
68528         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
68529         Likewise.
68530         * modules/unictype/property-bidi-segment-separator (Depends-on,
68531         configure.ac): Likewise.
68532         * modules/unictype/property-bidi-whitespace (Depends-on,
68533         configure.ac): Likewise.
68534         * modules/unictype/property-combining (Depends-on, configure.ac):
68535         Likewise.
68536         * modules/unictype/property-composite (Depends-on, configure.ac):
68537         Likewise.
68538         * modules/unictype/property-currency-symbol (Depends-on,
68539         configure.ac): Likewise.
68540         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
68541         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
68542         Likewise.
68543         * modules/unictype/property-default-ignorable-code-point (Depends-on,
68544         configure.ac): Likewise.
68545         * modules/unictype/property-deprecated (Depends-on, configure.ac):
68546         Likewise.
68547         * modules/unictype/property-diacritic (Depends-on, configure.ac):
68548         Likewise.
68549         * modules/unictype/property-extender (Depends-on, configure.ac):
68550         Likewise.
68551         * modules/unictype/property-format-control (Depends-on, configure.ac):
68552         Likewise.
68553         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
68554         Likewise.
68555         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
68556         Likewise.
68557         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
68558         Likewise.
68559         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
68560         Likewise.
68561         * modules/unictype/property-hyphen (Depends-on, configure.ac):
68562         Likewise.
68563         * modules/unictype/property-id-continue (Depends-on, configure.ac):
68564         Likewise.
68565         * modules/unictype/property-id-start (Depends-on, configure.ac):
68566         Likewise.
68567         * modules/unictype/property-ideographic (Depends-on, configure.ac):
68568         Likewise.
68569         * modules/unictype/property-ids-binary-operator (Depends-on,
68570         configure.ac): Likewise.
68571         * modules/unictype/property-ids-trinary-operator (Depends-on,
68572         configure.ac): Likewise.
68573         * modules/unictype/property-ignorable-control (Depends-on,
68574         configure.ac): Likewise.
68575         * modules/unictype/property-iso-control (Depends-on, configure.ac):
68576         Likewise.
68577         * modules/unictype/property-join-control (Depends-on, configure.ac):
68578         Likewise.
68579         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
68580         Likewise.
68581         * modules/unictype/property-line-separator (Depends-on, configure.ac):
68582         Likewise.
68583         * modules/unictype/property-logical-order-exception (Depends-on,
68584         configure.ac): Likewise.
68585         * modules/unictype/property-lowercase (Depends-on, configure.ac):
68586         Likewise.
68587         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
68588         * modules/unictype/property-non-break (Depends-on, configure.ac):
68589         Likewise.
68590         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
68591         Likewise.
68592         * modules/unictype/property-numeric (Depends-on, configure.ac):
68593         Likewise.
68594         * modules/unictype/property-other-alphabetic (Depends-on,
68595         configure.ac): Likewise.
68596         * modules/unictype/property-other-default-ignorable-code-point
68597         (Depends-on, configure.ac): Likewise.
68598         * modules/unictype/property-other-grapheme-extend (Depends-on,
68599         configure.ac): Likewise.
68600         * modules/unictype/property-other-id-continue (Depends-on,
68601         configure.ac): Likewise.
68602         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
68603         Likewise.
68604         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
68605         Likewise.
68606         * modules/unictype/property-other-math (Depends-on, configure.ac):
68607         Likewise.
68608         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
68609         Likewise.
68610         * modules/unictype/property-paired-punctuation (Depends-on,
68611         configure.ac): Likewise.
68612         * modules/unictype/property-paragraph-separator (Depends-on,
68613         configure.ac): Likewise.
68614         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
68615         Likewise.
68616         * modules/unictype/property-pattern-white-space (Depends-on,
68617         configure.ac): Likewise.
68618         * modules/unictype/property-private-use (Depends-on, configure.ac):
68619         Likewise.
68620         * modules/unictype/property-punctuation (Depends-on, configure.ac):
68621         Likewise.
68622         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
68623         Likewise.
68624         * modules/unictype/property-radical (Depends-on, configure.ac):
68625         Likewise.
68626         * modules/unictype/property-sentence-terminal (Depends-on,
68627         configure.ac): Likewise.
68628         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
68629         Likewise.
68630         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
68631         * modules/unictype/property-terminal-punctuation (Depends-on,
68632         configure.ac): Likewise.
68633         * modules/unictype/property-titlecase (Depends-on, configure.ac):
68634         Likewise.
68635         * modules/unictype/property-unassigned-code-value (Depends-on,
68636         configure.ac): Likewise.
68637         * modules/unictype/property-unified-ideograph (Depends-on,
68638         configure.ac): Likewise.
68639         * modules/unictype/property-uppercase (Depends-on, configure.ac):
68640         Likewise.
68641         * modules/unictype/property-variation-selector (Depends-on,
68642         configure.ac): Likewise.
68643         * modules/unictype/property-white-space (Depends-on, configure.ac):
68644         Likewise.
68645         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
68646         Likewise.
68647         * modules/unictype/property-xid-start (Depends-on, configure.ac):
68648         Likewise.
68649         * modules/unictype/property-zero-width (Depends-on, configure.ac):
68650         Likewise.
68651         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
68652         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
68653         Likewise.
68655 2009-12-31  Bruno Haible  <bruno@clisp.org>
68657         Remove unnecessary AC_C_INLINE invocation.
68658         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
68659         since 2009-08-21.
68661 2009-12-31  Jim Meyering  <meyering@redhat.com>
68663         maint.mk: don't require explicit gpg_key_ID in cfg.mk
68664         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
68665         With this change, we can all remove the gpg_key_ID = ... definition
68666         from our respective cfg.mk files.
68668         maint.mk: create announcement template in ~/, not in /tmp
68669         * top/maint.mk (emit_upload_commands): Adjust.
68670         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
68671         Remove temporary file, .ci-msg.
68673 2009-12-31  Eric Blake  <ebb9@byu.net>
68675         link-warning: always build headers with link warnings
68676         * modules/arpa_inet (Makefile.am): Always build replacement
68677         header.
68678         * modules/ctype (Makefile.am): Likewise.
68679         * modules/dirent (Makefile.am): Likewise.
68680         * modules/inttypes (Makefile.am): Likewise.
68681         * modules/langinfo (Makefile.am): Likewise.
68682         * modules/locale (Makefile.am): Likewise.
68683         * modules/spawn (Makefile.am): Likewise.
68684         * modules/sys_file (Makefile.am): Likewise.
68685         * modules/sys_ioctl (Makefile.am): Likewise.
68686         * modules/sys_select (Makefile.am): Likewise.
68687         * modules/sys_socket (Makefile.am): Likewise.
68688         * modules/sys_times (Makefile.am): Likewise.
68689         * modules/sys_utsname (Makefile.am): Likewise.
68690         * modules/sys_wait (Makefile.am): Likewise.
68691         * modules/wchar (Makefile.am): Likewise.
68692         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
68693         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
68694         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
68695         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
68696         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
68697         Likewise.
68698         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68699         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68700         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
68701         Likewise.
68702         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
68703         Likewise.
68704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
68705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
68706         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
68707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68708         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68709         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
68710         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
68711         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
68712         (gl_WCHAR_H_DEFAULTS): Likewise.
68714 2009-12-31  Eric Blake  <ebb9@byu.net>
68716         signal, spawn: use link warnings
68717         * lib/signal.in.h (sigset_t): Make unconditional.
68718         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
68719         (sigpending, sigprocmask, sigaction): Add link warnings.
68720         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
68721         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
68722         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
68723         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
68724         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
68725         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
68726         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
68727         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
68728         (posix_spawn_file_actions_destroy)
68729         (posix_spawn_file_actions_addopen)
68730         (posix_spawn_file_actions_addclose)
68731         (posix_spawn_file_actions_adddup2): Likewise.
68732         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
68733         * tests/test-signal.c (main): Enhance test.
68735         spawn: improve wrapper support
68736         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
68737         (gl_SPAWN_H_DEFAULTS): New defaults.
68738         * modules/spawn (Makefile.am): Substitute them.
68739         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
68740         Only declare if missing or broken.
68742         sys_times, sys_utsname: use include_next
68743         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
68744         header.
68745         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
68746         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
68747         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
68748         * modules/sys_times (Depends-on): Add include_next.
68749         (Makefile.am): Substitute additional values.
68750         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68751         * lib/sys_times.in.h (includes): Include native header, if
68752         available.
68753         * lib/sys_utsname.in.h (includes): Likewise.
68754         * tests/test-sys_times.c (main): Enhance test.
68756         fdutimensat: revert prior patch
68757         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
68758         utimens.h.
68759         Reported by Bruno Haible.
68761 2009-12-30  Eric Blake  <ebb9@byu.net>
68763         sys_wait: drop link-warning dependency
68764         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
68765         link-warning efforts.
68766         * lib/sys_wait.in.h: Likewise.
68768         fdutimensat: remove bogus dependency
68769         * modules/fdutimensat (Depends-on): Drop inline.
68771         unistd: fix typo
68772         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
68774 2009-12-30  Bruno Haible  <bruno@clisp.org>
68776         Fix compilation error with Solaris cc.
68777         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
68778         * lib/unicase/u16-is-invariant.c: Likewise.
68779         * lib/unicase/u32-is-invariant.c: Likewise.
68780         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68782 2009-12-30  Bruno Haible  <bruno@clisp.org>
68784         Fix test crash.
68785         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
68786         locales.
68787         Reported by Simon Josefsson <simon@josefsson.org>.
68789 2009-12-30  Bruno Haible  <bruno@clisp.org>
68791         Fix compilation error on most platforms.
68792         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
68793         Reported by Simon Josefsson <simon@josefsson.org>
68794         and Nelson H. F. Beebe <beebe@math.utah.edu>.
68796 2009-12-30  Eric Blake  <ebb9@byu.net>
68798         futimens, utimensat: work around ntfs-3g bug
68799         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
68800         a ctime bug is present, and expand workaround to cover ntfs-3g.
68801         * lib/utimens.c (fdutimens, lutimens): Likewise.
68802         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
68803         (validate_timespec): Adjust return value.
68804         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
68805         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
68806         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
68808 2009-12-29  Eric Blake  <ebb9@byu.net>
68810         link-warning: make usage consistent
68811         * modules/ctype (Depends-on): Add link-warning.
68812         (Makefile.am): Update rules accordingly.
68813         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68814         * modules/locale (Depends-on, Makefile.am): Likewise.
68815         * modules/sys_file (Makefile.am): Likewise.
68816         * modules/getopt-posix (Makefile.am): Delete unused link warning
68817         efforts.
68818         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
68819         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
68820         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
68821         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
68823         stdio: remove unused variables
68824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
68825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
68826         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
68828         tests: test more substitute headers
68829         * modules/ctype-tests: New file.
68830         * modules/dirent-tests: Likewise.
68831         * modules/spawn-tests: Likewise.
68832         * modules/sys_file-tests: Likewise.
68833         * modules/sys_ioctl-tests: Likewise.
68834         * modules/sys_wait-tests: Likewise.
68835         * tests/test-ctype.c: Likewise.
68836         * tests/test-dirent.c: Likewise.
68837         * tests/test-spawn.c: Likewise.
68838         * tests/test-sys_file.c: Likewise.
68839         * tests/test-sys_ioctl.c: Likewise.
68840         * tests/test-sys_wait.c: Likewise.
68841         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
68842         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
68843         whether or not flock is in use.
68845         tests: remove License section from module
68846         * modules/arpa_inet-tests: Remove unneeded section.
68847         * modules/byteswap-tests: Likewise.
68848         * modules/ceilf-tests: Likewise.
68849         * modules/ceill-tests: Likewise.
68850         * modules/crypto/des-tests: Likewise.
68851         * modules/crypto/gc-arcfour-tests: Likewise.
68852         * modules/crypto/gc-arctwo-tests: Likewise.
68853         * modules/crypto/gc-des-tests: Likewise.
68854         * modules/crypto/gc-hmac-md5-tests: Likewise.
68855         * modules/crypto/gc-hmac-sha1-tests: Likewise.
68856         * modules/crypto/gc-md2-tests: Likewise.
68857         * modules/crypto/gc-md4-tests: Likewise.
68858         * modules/crypto/gc-md5-tests: Likewise.
68859         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
68860         * modules/crypto/gc-rijndael-tests: Likewise.
68861         * modules/crypto/gc-sha1-tests: Likewise.
68862         * modules/crypto/gc-tests: Likewise.
68863         * modules/crypto/md2-tests: Likewise.
68864         * modules/crypto/md4-tests: Likewise.
68865         * modules/fcntl-h-tests: Likewise.
68866         * modules/floorf-tests: Likewise.
68867         * modules/floorl-tests: Likewise.
68868         * modules/frexp-nolibm-tests: Likewise.
68869         * modules/frexp-tests: Likewise.
68870         * modules/frexpl-nolibm-tests: Likewise.
68871         * modules/frexpl-tests: Likewise.
68872         * modules/getaddrinfo-tests: Likewise.
68873         * modules/inttypes-tests: Likewise.
68874         * modules/isfinite-tests: Likewise.
68875         * modules/isinf-tests: Likewise.
68876         * modules/ldexpl-tests: Likewise.
68877         * modules/locale-tests: Likewise.
68878         * modules/math-tests: Likewise.
68879         * modules/netdb-tests: Likewise.
68880         * modules/netinet_in-tests: Likewise.
68881         * modules/printf-frexp-tests: Likewise.
68882         * modules/printf-frexpl-tests: Likewise.
68883         * modules/priv-set-tests: Likewise.
68884         * modules/random_r-tests: Likewise.
68885         * modules/round-tests: Likewise.
68886         * modules/roundf-tests: Likewise.
68887         * modules/roundl-tests: Likewise.
68888         * modules/search-tests: Likewise.
68889         * modules/select-tests: Likewise.
68890         * modules/signal-tests: Likewise.
68891         * modules/stdbool-tests: Likewise.
68892         * modules/stddef-tests: Likewise.
68893         * modules/stdint-tests: Likewise.
68894         * modules/stdio-tests: Likewise.
68895         * modules/stdlib-tests: Likewise.
68896         * modules/string-tests: Likewise.
68897         * modules/strings-tests: Likewise.
68898         * modules/sys_select-tests: Likewise.
68899         * modules/sys_socket-tests: Likewise.
68900         * modules/sys_stat-tests: Likewise.
68901         * modules/sys_time-tests: Likewise.
68902         * modules/sys_utsname-tests: Likewise.
68903         * modules/sysexits-tests: Likewise.
68904         * modules/time-tests: Likewise.
68905         * modules/trunc-tests: Likewise.
68906         * modules/truncf-tests: Likewise.
68907         * modules/truncl-tests: Likewise.
68908         * modules/tsearch-tests: Likewise.
68909         * modules/unistd-tests: Likewise.
68910         * modules/wchar-tests: Likewise.
68911         * modules/wctype-tests: Likewise.
68913         tests: fix license on several tests
68914         * tests/test-des.c: Update to GPLv3+.
68915         * tests/test-flock.c: Likewise.
68916         * tests/test-fsync.c: Likewise.
68917         * tests/test-futimens.h: Likewise.
68918         * tests/test-gc-arcfour.c: Likewise.
68919         * tests/test-gc-arctwo.c: Likewise.
68920         * tests/test-gc-des.c: Likewise.
68921         * tests/test-gc-hmac-md5.c: Likewise.
68922         * tests/test-gc-hmac-sha1.c: Likewise.
68923         * tests/test-gc-md2.c: Likewise.
68924         * tests/test-gc-md4.c: Likewise.
68925         * tests/test-gc-md5.c: Likewise.
68926         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68927         * tests/test-gc-rijndael.c: Likewise.
68928         * tests/test-gc-sha1.c: Likewise.
68929         * tests/test-gc.c: Likewise.
68930         * tests/test-getcwd.c: Likewise.
68931         * tests/test-link.c: Likewise.
68932         * tests/test-link.h: Likewise.
68933         * tests/test-lutimens.h: Likewise.
68934         * tests/test-md2.c: Likewise.
68935         * tests/test-md4.c: Likewise.
68936         * tests/test-mkdir.h: Likewise.
68937         * tests/test-rename.c: Likewise.
68938         * tests/test-rename.h: Likewise.
68939         * tests/test-safe-alloc.c: Likewise.
68940         * tests/test-utimens-common.h: Likewise.
68941         * tests/test-utimens.h: Likewise.
68943         maint: sync license texts
68944         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
68945         * doc/gpl-3.0.texi: Revert copyright year update.
68946         * doc/lgpl-3.0.texi: Likewise.
68948 2009-12-29  Jim Meyering  <meyering@redhat.com>
68950         update nearly all FSF copyright year lists to include 2009
68951         The files named by the following are exempted:
68952             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
68953               test -f "$dst" && { echo "$dst"; continue; }
68954               test -d "$dst" || continue
68955               echo "$dst"/$(basename "$src")
68956             done > exempt
68957             git ls-files tests/unictype >> exempt
68958         In the remaining files, convert to all-interval notation if
68959         - there is already at least one year interval like 2000-2003
68960         - the file is maintained by me
68961         - the file is in lib/uni*/, where that style already prevails
68962         Otherwise, use update-copyright's default.
68964 2009-12-29  Simon Josefsson  <simon@josefsson.org>
68965         and Eric Blake  <ebb9@byu.net>
68967         tests: don't require debug system() to pass
68968         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
68969         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68970         * tests/test-unlink.h (test_unlink_func): Likewise.
68971         * tests/test-fstatat.c (main): ...into callers.
68972         * tests/test-lstat.c (main): Likewise.
68973         * tests/test-rmdir.c (main): Likewise.
68974         * tests/test-unlink.c (main): Likewise.
68975         * tests/test-unlinkat.c (main): Likewise.
68976         * tests/test-areadlink-with-size.c (main): Don't require a
68977         debug-only system call to pass, aiding cross-testing to mingw.
68978         * tests/test-areadlink.c (main): Likewise.
68979         * tests/test-areadlinkat-with-size.c (main): Likewise.
68980         * tests/test-areadlinkat.c (main): Likewise.
68981         * tests/test-canonicalize-lgpl.c (main): Likewise.
68982         * tests/test-canonicalize.c (main): Likewise.
68983         * tests/test-chown.c (main): Likewise.
68984         * tests/test-fchownat.c (main): Likewise.
68985         * tests/test-lchown.c (main): Likewise.
68986         * tests/test-fdutimensat.c (main): Likewise.
68987         * tests/test-futimens.c (main): Likewise.
68988         * tests/test-link.c (main): Likewise.
68989         * tests/test-linkat.c (main): Likewise.
68990         * tests/test-mkdir.c (main): Likewise.
68991         * tests/test-mkdirat.c (main): Likewise.
68992         * tests/test-mkfifo.c (main): Likewise.
68993         * tests/test-mkfifoat.c (main): Likewise.
68994         * tests/test-mknod.c (main): Likewise.
68995         * tests/test-readlink.c (main): Likewise.
68996         * tests/test-remove.c (main): Likewise.
68997         * tests/test-rename.c (main): Likewise.
68998         * tests/test-renameat.c (main): Likewise.
68999         * tests/test-symlink.c (main): Likewise.
69000         * tests/test-symlinkat.c (main): Likewise.
69001         * tests/test-utimens.c (main): Likewise.
69002         * tests/test-utimensat.c (main): Likewise.
69004 2009-12-29  Simon Josefsson  <simon@josefsson.org>
69006         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
69007         on $(UNUSED_PARAMETER_H) to avoid build failure.
69009 2009-12-28  Jim Meyering  <meyering@redhat.com>
69011         update-copyright: you may specify a max. line length other than 72
69012         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
69014         maint: use consistent FSF copyright line syntax
69015         * lib/posixtm.c: Add missing comma in FSF copyright line.
69016         * lib/posixtm.h: Likewise.
69017         * lib/getugroups.c: Add missing ", Inc.".
69019         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
69020         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
69021         FSF copyright line.  Remove trailing blanks.
69023 2009-12-28  Eric Blake  <ebb9@byu.net>
69025         test-dup2: reduce dependencies
69026         * modules/cloexec (Configure.ac): Set witness.
69027         * modules/dup2-tests (Depends-on): Drop cloexec.
69028         * tests/test-dup2.c (main): Skip portion of test if cloexec module
69029         not present.
69030         Suggested by Bruno Haible.
69032 2009-12-26  Bruno Haible  <bruno@clisp.org>
69034         Remove an unneeded dependency.
69035         * modules/fseterr (Depends-on): Remove dup2.
69037 2009-12-26  Eric Blake  <ebb9@byu.net>
69039         tests: use macros.h in more places
69040         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
69041         (ASSERT_STREAM): Provide default of stderr.
69042         * tests/test-dirent-safer.c: Include macros.h, using alternate
69043         stream for assertions.
69044         * tests/test-dup-safer.c: Likewise.
69045         * tests/test-freopen-safer.c: Likewise.
69046         * tests/test-getopt.c: Likewise.
69047         * tests/test-openat-safer.c: Likewise.
69048         * tests/test-pipe.c: Likewise.
69049         * tests/test-popen-safer.c: Likewise.
69050         * modules/dirent-safer-tests (Files): Include macros.h.
69051         * modules/unistd-safer-tests (Files): Likewise.
69052         * modules/freopen-safer-tests (Files): Likewise.
69053         * modules/getopt-posix-tests (Files): Likewise.
69054         * modules/openat-safer-tests (Files): Likewise.
69055         * modules/pipe-tests (Files): Likewise.
69057 2009-12-26  Bruno Haible  <bruno@clisp.org>
69059         javacomp-script: Portability fix.
69060         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
69061         that it also works on Solaris.
69063 2009-12-26  Bruno Haible  <bruno@clisp.org>
69065         localename: Fix storage allocation of gl_locale_name_thread's result.
69066         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
69067         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
69068         all platforms that have 'uselocale'.
69069         (gl_locale_name_thread_unsafe): New function, extracted from
69070         gl_locale_name_thread.
69071         (gl_locale_name_thread): Call struniq on all platforms that have
69072         'uselocale'.
69073         * tests/test-localename.c (test_locale_name_thread): Check that the
69074         resulting strings are permanently allocated.
69075         * modules/localename-tests (Depends-on): Add strdup.
69077 2009-12-26  Bruno Haible  <bruno@clisp.org>
69079         * tests/test-localename.c (categories): Fill in the strings.
69081 2009-12-26  Jim Meyering  <meyering@redhat.com>
69083         isdir: complete the removal of m4/isdir.m4
69084         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
69086         isdir: clean up, since at least grep still uses it
69087         * lib/isdir.c: Include "isdir.h".
69088         (S_ISDIR): Remove now-unneeded definition.
69089         * modules/isdir (Files): Add lib/isdir.h.
69090         * lib/isdir.h: New file, with declaration.
69091         * m4/isdir.m4: Remove file -- unneeded.
69093 2009-12-25  Bruno Haible  <bruno@clisp.org>
69095         selinux-h: Make generated .h files standalone.
69096         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
69097         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
69098         * lib/se-selinux.in.h: Likewise.
69099         * modules/selinux-h (Depends-on): Add unused-parameter.
69100         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
69101         selinux/selinux.h and selinux/context.h.
69102         Suggested by Eric Blake.
69104 2009-12-25  Bruno Haible  <bruno@clisp.org>
69106         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
69107         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
69108         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
69109         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
69110         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
69112 2009-12-24  Bruno Haible  <bruno@clisp.org>
69114         openat: Fix warning.
69115         * lib/openat-proc.c: Include <unistd.h>.
69117 2009-12-24  Bruno Haible  <bruno@clisp.org>
69119         New module 'unused-parameter'.
69120         * build-aux/unused-parameter.h: New file, extracted from earlier
69121         gnulib-common.m4.
69122         * modules/unused-parameter: New file.
69123         * lib/unistr.h: Include unused-parameter.h.
69124         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
69125         _GL_UNUSED.
69126         * modules/unistr/base (Depends-on): Add unused-parameter.
69128 2009-12-24  Bruno Haible  <bruno@clisp.org>
69130         Add missing dependencies to 'extensions' module.
69131         * m4/extensions.m4: Add comment.
69132         * modules/accept4 (Depends-on): Add extensions.
69133         * modules/dup3 (Depends-on): Likewise.
69134         * modules/fcntl (Depends-on): Likewise.
69135         * modules/futimens (Depends-on): Likewise.
69136         * modules/mknod (Depends-on): Likewise.
69137         * modules/pipe2 (Depends-on): Likewise.
69138         * modules/stat-time (Depends-on): Likewise.
69139         * modules/strcasestr-simple (Depends-on): Likewise.
69140         * modules/strsignal (Depends-on): Likewise.
69141         * modules/utimensat (Depends-on): Likewise.
69142         * modules/localcharset (Depends-on): Likewise. Needed because of
69143         gl_FCNTL_O_FLAGS.
69144         * modules/wcrtomb (Depends-on): Likewise. Needed because of
69145         AC_TYPE_MBSTATE_T.
69146         * modules/wcsnrtombs (Depends-on): Likewise.
69147         * modules/wcsrtombs (Depends-on): Likewise.
69149 2009-12-24  Bruno Haible  <bruno@clisp.org>
69151         binary-io: Avoid gcc warning due to SET_BINARY.
69152         * lib/binary-io.h (SET_BINARY): Cast the result to void.
69153         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
69155 2009-12-24  Bruno Haible  <bruno@clisp.org>
69157         Avoid future namespace pollution on glibc systems.
69158         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
69159         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
69160         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
69161         glibc systems.
69163 2009-12-24  Bruno Haible  <bruno@clisp.org>
69165         Refactor common macros used in tests.
69166         * tests/macros.h: New file.
69167         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
69168         and/or <stdlib.h>, if appropriate.
69169         (ASSERT, SIZEOF): Remove macros.
69170         * tests/test-areadlink-with-size.c: Likewise.
69171         * tests/test-areadlinkat.c: Likewise.
69172         * tests/test-areadlinkat-with-size.c: Likewise.
69173         * tests/test-argmatch.c: Likewise.
69174         * tests/test-argv-iter.c: Likewise.
69175         * tests/test-array-mergesort.c: Likewise.
69176         * tests/test-array_list.c: Likewise.
69177         * tests/test-array_oset.c: Likewise.
69178         * tests/test-avltree_list.c: Likewise.
69179         * tests/test-avltree_oset.c: Likewise.
69180         * tests/test-avltreehash_list.c: Likewise.
69181         * tests/test-base64.c: Likewise.
69182         * tests/test-binary-io.c: Likewise.
69183         * tests/test-bitrotate.c: Likewise.
69184         * tests/test-btowc.c: Likewise.
69185         * tests/test-byteswap.c: Likewise.
69186         * tests/test-c-ctype.c: Likewise.
69187         * tests/test-c-stack.c: Likewise.
69188         * tests/test-c-strcasecmp.c: Likewise.
69189         * tests/test-c-strcasestr.c: Likewise.
69190         * tests/test-c-strncasecmp.c: Likewise.
69191         * tests/test-c-strstr.c: Likewise.
69192         * tests/test-canonicalize-lgpl.c: Likewise.
69193         * tests/test-canonicalize.c: Likewise.
69194         * tests/test-carray_list.c: Likewise.
69195         * tests/test-ceilf1.c: Likewise.
69196         * tests/test-ceilf2.c: Likewise.
69197         * tests/test-ceill.c: Likewise.
69198         * tests/test-chown.c: Likewise.
69199         * tests/test-cloexec.c: Likewise.
69200         * tests/test-copy-acl.c: Likewise.
69201         * tests/test-copy-file.c: Likewise.
69202         * tests/test-count-one-bits.c: Likewise.
69203         * tests/test-dprintf-posix.c: Likewise.
69204         * tests/test-dup2.c: Likewise.
69205         * tests/test-dup3.c: Likewise.
69206         * tests/test-duplocale.c: Likewise.
69207         * tests/test-fbufmode.c: Likewise.
69208         * tests/test-fchdir.c: Likewise.
69209         * tests/test-fchownat.c: Likewise.
69210         * tests/test-fcntl-safer.c: Likewise.
69211         * tests/test-fcntl.c: Likewise.
69212         * tests/test-fdopendir.c: Likewise.
69213         * tests/test-fdutimensat.c: Likewise.
69214         * tests/test-fflush2.c: Likewise.
69215         * tests/test-file-has-acl.c: Likewise.
69216         * tests/test-filevercmp.c: Likewise.
69217         * tests/test-flock.c: Likewise.
69218         * tests/test-floorf1.c: Likewise.
69219         * tests/test-floorf2.c: Likewise.
69220         * tests/test-floorl.c: Likewise.
69221         * tests/test-fnmatch.c: Likewise.
69222         * tests/test-fopen.h: Likewise.
69223         * tests/test-fpending.c: Likewise.
69224         * tests/test-fprintf-posix.c: Likewise.
69225         * tests/test-fpurge.c: Likewise.
69226         * tests/test-freadable.c: Likewise.
69227         * tests/test-freadahead.c: Likewise.
69228         * tests/test-freading.c: Likewise.
69229         * tests/test-freadptr.c: Likewise.
69230         * tests/test-freadptr2.c: Likewise.
69231         * tests/test-freadseek.c: Likewise.
69232         * tests/test-freopen.c: Likewise.
69233         * tests/test-frexp.c: Likewise.
69234         * tests/test-frexpl.c: Likewise.
69235         * tests/test-fseek.c: Likewise.
69236         * tests/test-fseeko.c: Likewise.
69237         * tests/test-fstatat.c: Likewise.
69238         * tests/test-fstrcmp.c: Likewise.
69239         * tests/test-fsync.c: Likewise.
69240         * tests/test-ftell.c: Likewise.
69241         * tests/test-ftello.c: Likewise.
69242         * tests/test-func.c: Likewise.
69243         * tests/test-futimens.c: Likewise.
69244         * tests/test-fwritable.c: Likewise.
69245         * tests/test-fwriting.c: Likewise.
69246         * tests/test-getcwd.c: Likewise.
69247         * tests/test-getdate.c: Likewise.
69248         * tests/test-getdelim.c: Likewise.
69249         * tests/test-getdtablesize.c: Likewise.
69250         * tests/test-getgroups.c: Likewise.
69251         * tests/test-getline.c: Likewise.
69252         * tests/test-getndelim2.c: Likewise.
69253         * tests/test-glob.c: Likewise.
69254         * tests/test-hash.c: Likewise.
69255         * tests/test-i-ring.c: Likewise.
69256         * tests/test-iconv-utf.c: Likewise.
69257         * tests/test-iconv.c: Likewise.
69258         * tests/test-idpriv-drop.c: Likewise.
69259         * tests/test-idpriv-droptemp.c: Likewise.
69260         * tests/test-inet_ntop.c: Likewise.
69261         * tests/test-inet_pton.c: Likewise.
69262         * tests/test-isblank.c: Likewise.
69263         * tests/test-isfinite.c: Likewise.
69264         * tests/test-isinf.c: Likewise.
69265         * tests/test-isnan.c: Likewise.
69266         * tests/test-isnand.h: Likewise.
69267         * tests/test-isnanf.h: Likewise.
69268         * tests/test-isnanl.h: Likewise.
69269         * tests/test-lchown.c: Likewise.
69270         * tests/test-ldexpl.c: Likewise.
69271         * tests/test-link.c: Likewise.
69272         * tests/test-linkat.c: Likewise.
69273         * tests/test-linked_list.c: Likewise.
69274         * tests/test-linkedhash_list.c: Likewise.
69275         * tests/test-localename.c: Likewise.
69276         * tests/test-lseek.c: Likewise.
69277         * tests/test-lstat.c: Likewise.
69278         * tests/test-mbmemcasecmp.c: Likewise.
69279         * tests/test-mbmemcasecoll.c: Likewise.
69280         * tests/test-mbrtowc.c: Likewise.
69281         * tests/test-mbscasecmp.c: Likewise.
69282         * tests/test-mbscasestr1.c: Likewise.
69283         * tests/test-mbscasestr2.c: Likewise.
69284         * tests/test-mbscasestr3.c: Likewise.
69285         * tests/test-mbscasestr4.c: Likewise.
69286         * tests/test-mbschr.c: Likewise.
69287         * tests/test-mbscspn.c: Likewise.
69288         * tests/test-mbsinit.c: Likewise.
69289         * tests/test-mbsncasecmp.c: Likewise.
69290         * tests/test-mbsnrtowcs.c: Likewise.
69291         * tests/test-mbspbrk.c: Likewise.
69292         * tests/test-mbspcasecmp.c: Likewise.
69293         * tests/test-mbsrchr.c: Likewise.
69294         * tests/test-mbsrtowcs.c: Likewise.
69295         * tests/test-mbsspn.c: Likewise.
69296         * tests/test-mbsstr1.c: Likewise.
69297         * tests/test-mbsstr2.c: Likewise.
69298         * tests/test-mbsstr3.c: Likewise.
69299         * tests/test-memchr.c: Likewise.
69300         * tests/test-memchr2.c: Likewise.
69301         * tests/test-memcmp.c: Likewise.
69302         * tests/test-memmem.c: Likewise.
69303         * tests/test-memrchr.c: Likewise.
69304         * tests/test-mkdir.c: Likewise.
69305         * tests/test-mkdirat.c: Likewise.
69306         * tests/test-mkfifo.c: Likewise.
69307         * tests/test-mkfifoat.c: Likewise.
69308         * tests/test-mknod.c: Likewise.
69309         * tests/test-nanosleep.c: Likewise.
69310         * tests/test-nl_langinfo.c: Likewise.
69311         * tests/test-obstack-printf.c: Likewise.
69312         * tests/test-open.c: Likewise.
69313         * tests/test-openat.c: Likewise.
69314         * tests/test-pipe-filter-gi1.c: Likewise.
69315         * tests/test-pipe-filter-gi2-main.c: Likewise.
69316         * tests/test-pipe-filter-ii1.c: Likewise.
69317         * tests/test-pipe-filter-ii2-main.c: Likewise.
69318         * tests/test-pipe2.c: Likewise.
69319         * tests/test-popen.h: Likewise.
69320         * tests/test-posixtm.c: Likewise.
69321         * tests/test-pread.c: Likewise.
69322         * tests/test-printf-frexp.c: Likewise.
69323         * tests/test-printf-frexpl.c: Likewise.
69324         * tests/test-printf-posix.c: Likewise.
69325         * tests/test-priv-set.c: Likewise.
69326         * tests/test-quotearg.c: Likewise.
69327         * tests/test-random_r.c: Likewise.
69328         * tests/test-rawmemchr.c: Likewise.
69329         * tests/test-rbtree_list.c: Likewise.
69330         * tests/test-rbtree_oset.c: Likewise.
69331         * tests/test-rbtreehash_list.c: Likewise.
69332         * tests/test-readlink.c: Likewise.
69333         * tests/test-remove.c: Likewise.
69334         * tests/test-rename.c: Likewise.
69335         * tests/test-renameat.c: Likewise.
69336         * tests/test-rmdir.c: Likewise.
69337         * tests/test-round1.c: Likewise.
69338         * tests/test-roundf1.c: Likewise.
69339         * tests/test-roundl.c: Likewise.
69340         * tests/test-safe-alloc.c: Likewise.
69341         * tests/test-sameacls.c: Likewise.
69342         * tests/test-set-mode-acl.c: Likewise.
69343         * tests/test-setenv.c: Likewise.
69344         * tests/test-sigaction.c: Likewise.
69345         * tests/test-signbit.c: Likewise.
69346         * tests/test-sleep.c: Likewise.
69347         * tests/test-snprintf-posix.c: Likewise.
69348         * tests/test-snprintf.c: Likewise.
69349         * tests/test-sprintf-posix.c: Likewise.
69350         * tests/test-stat-time.c: Likewise.
69351         * tests/test-stat.c: Likewise.
69352         * tests/test-strcasestr.c: Likewise.
69353         * tests/test-strchrnul.c: Likewise.
69354         * tests/test-strerror.c: Likewise.
69355         * tests/test-striconv.c: Likewise.
69356         * tests/test-striconveh.c: Likewise.
69357         * tests/test-striconveha.c: Likewise.
69358         * tests/test-strsignal.c: Likewise.
69359         * tests/test-strstr.c: Likewise.
69360         * tests/test-strtod.c: Likewise.
69361         * tests/test-strverscmp.c: Likewise.
69362         * tests/test-symlink.c: Likewise.
69363         * tests/test-symlinkat.c: Likewise.
69364         * tests/test-trunc1.c: Likewise.
69365         * tests/test-trunc2.c: Likewise.
69366         * tests/test-truncf1.c: Likewise.
69367         * tests/test-truncf2.c: Likewise.
69368         * tests/test-truncl.c: Likewise.
69369         * tests/test-uname.c: Likewise.
69370         * tests/test-unlink.c: Likewise.
69371         * tests/test-unlinkat.c: Likewise.
69372         * tests/test-unsetenv.c: Likewise.
69373         * tests/test-usleep.c: Likewise.
69374         * tests/test-utimens.c: Likewise.
69375         * tests/test-utimensat.c: Likewise.
69376         * tests/test-vasnprintf-posix.c: Likewise.
69377         * tests/test-vasnprintf-posix2.c: Likewise.
69378         * tests/test-vasnprintf.c: Likewise.
69379         * tests/test-vasprintf-posix.c: Likewise.
69380         * tests/test-vasprintf.c: Likewise.
69381         * tests/test-vdprintf-posix.c: Likewise.
69382         * tests/test-vfprintf-posix.c: Likewise.
69383         * tests/test-vprintf-posix.c: Likewise.
69384         * tests/test-vsnprintf-posix.c: Likewise.
69385         * tests/test-vsnprintf.c: Likewise.
69386         * tests/test-vsprintf-posix.c: Likewise.
69387         * tests/test-wcrtomb.c: Likewise.
69388         * tests/test-wcsnrtombs.c: Likewise.
69389         * tests/test-wcsrtombs.c: Likewise.
69390         * tests/test-wctype.c: Likewise.
69391         * tests/test-wcwidth.c: Likewise.
69392         * tests/test-xfprintf-posix.c: Likewise.
69393         * tests/test-xmemdup0.c: Likewise.
69394         * tests/test-xprintf-posix.c: Likewise.
69395         * tests/test-xvasprintf.c: Likewise.
69396         * tests/unicase/test-locale-language.c: Likewise.
69397         * tests/unicase/test-mapping-part1.h: Likewise.
69398         * tests/unicase/test-predicate-part1.h: Likewise.
69399         * tests/unicase/test-u8-casecmp.c: Likewise.
69400         * tests/unicase/test-u8-casecoll.c: Likewise.
69401         * tests/unicase/test-u8-casefold.c: Likewise.
69402         * tests/unicase/test-u8-is-cased.c: Likewise.
69403         * tests/unicase/test-u8-is-casefolded.c: Likewise.
69404         * tests/unicase/test-u8-is-lowercase.c: Likewise.
69405         * tests/unicase/test-u8-is-titlecase.c: Likewise.
69406         * tests/unicase/test-u8-is-uppercase.c: Likewise.
69407         * tests/unicase/test-u8-tolower.c: Likewise.
69408         * tests/unicase/test-u8-totitle.c: Likewise.
69409         * tests/unicase/test-u8-toupper.c: Likewise.
69410         * tests/unicase/test-u16-casecmp.c: Likewise.
69411         * tests/unicase/test-u16-casecoll.c: Likewise.
69412         * tests/unicase/test-u16-casefold.c: Likewise.
69413         * tests/unicase/test-u16-is-cased.c: Likewise.
69414         * tests/unicase/test-u16-is-casefolded.c: Likewise.
69415         * tests/unicase/test-u16-is-lowercase.c: Likewise.
69416         * tests/unicase/test-u16-is-titlecase.c: Likewise.
69417         * tests/unicase/test-u16-is-uppercase.c: Likewise.
69418         * tests/unicase/test-u16-tolower.c: Likewise.
69419         * tests/unicase/test-u16-totitle.c: Likewise.
69420         * tests/unicase/test-u16-toupper.c: Likewise.
69421         * tests/unicase/test-u32-casecmp.c: Likewise.
69422         * tests/unicase/test-u32-casecoll.c: Likewise.
69423         * tests/unicase/test-u32-casefold.c: Likewise.
69424         * tests/unicase/test-u32-is-cased.c: Likewise.
69425         * tests/unicase/test-u32-is-casefolded.c: Likewise.
69426         * tests/unicase/test-u32-is-lowercase.c: Likewise.
69427         * tests/unicase/test-u32-is-titlecase.c: Likewise.
69428         * tests/unicase/test-u32-is-uppercase.c: Likewise.
69429         * tests/unicase/test-u32-tolower.c: Likewise.
69430         * tests/unicase/test-u32-totitle.c: Likewise.
69431         * tests/unicase/test-u32-toupper.c: Likewise.
69432         * tests/unicase/test-ulc-casecmp.c: Likewise.
69433         * tests/unicase/test-ulc-casecoll.c: Likewise.
69434         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69435         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
69436         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69437         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69438         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
69439         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
69440         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69441         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69442         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69443         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
69444         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69445         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69446         * tests/unictype/test-bidi_byname.c: Likewise.
69447         * tests/unictype/test-bidi_name.c: Likewise.
69448         * tests/unictype/test-bidi_of.c: Likewise.
69449         * tests/unictype/test-bidi_test.c: Likewise.
69450         * tests/unictype/test-block_list.c: Likewise.
69451         * tests/unictype/test-block_of.c: Likewise.
69452         * tests/unictype/test-block_test.c: Likewise.
69453         * tests/unictype/test-categ_and.c: Likewise.
69454         * tests/unictype/test-categ_and_not.c: Likewise.
69455         * tests/unictype/test-categ_byname.c: Likewise.
69456         * tests/unictype/test-categ_name.c: Likewise.
69457         * tests/unictype/test-categ_none.c: Likewise.
69458         * tests/unictype/test-categ_of.c: Likewise.
69459         * tests/unictype/test-categ_or.c: Likewise.
69460         * tests/unictype/test-categ_test_withtable.c: Likewise.
69461         * tests/unictype/test-combining.c: Likewise.
69462         * tests/unictype/test-decdigit.c: Likewise.
69463         * tests/unictype/test-digit.c: Likewise.
69464         * tests/unictype/test-mirror.c: Likewise.
69465         * tests/unictype/test-numeric.c: Likewise.
69466         * tests/unictype/test-pr_byname.c: Likewise.
69467         * tests/unictype/test-pr_test.c: Likewise.
69468         * tests/unictype/test-predicate-part1.h: Likewise.
69469         * tests/unictype/test-scripts.c: Likewise.
69470         * tests/unictype/test-sy_c_ident.c: Likewise.
69471         * tests/unictype/test-sy_java_ident.c: Likewise.
69472         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
69473         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
69474         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
69475         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
69476         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
69477         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
69478         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
69479         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
69480         * tests/uninorm/test-canonical-decomposition.c: Likewise.
69481         * tests/uninorm/test-compat-decomposition.c: Likewise.
69482         * tests/uninorm/test-composition.c: Likewise.
69483         * tests/uninorm/test-decomposing-form.c: Likewise.
69484         * tests/uninorm/test-decomposition.c: Likewise.
69485         * tests/uninorm/test-u8-nfc.c: Likewise.
69486         * tests/uninorm/test-u8-nfd.c: Likewise.
69487         * tests/uninorm/test-u8-nfkc.c: Likewise.
69488         * tests/uninorm/test-u8-nfkd.c: Likewise.
69489         * tests/uninorm/test-u8-normcmp.c: Likewise.
69490         * tests/uninorm/test-u8-normcoll.c: Likewise.
69491         * tests/uninorm/test-u16-nfc.c: Likewise.
69492         * tests/uninorm/test-u16-nfd.c: Likewise.
69493         * tests/uninorm/test-u16-nfkc.c: Likewise.
69494         * tests/uninorm/test-u16-nfkd.c: Likewise.
69495         * tests/uninorm/test-u16-normcmp.c: Likewise.
69496         * tests/uninorm/test-u16-normcoll.c: Likewise.
69497         * tests/uninorm/test-u32-nfc.c: Likewise.
69498         * tests/uninorm/test-u32-nfd.c: Likewise.
69499         * tests/uninorm/test-u32-nfkc.c: Likewise.
69500         * tests/uninorm/test-u32-nfkd.c: Likewise.
69501         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69502         * tests/uninorm/test-u32-normcmp.c: Likewise.
69503         * tests/uninorm/test-u32-normcoll.c: Likewise.
69504         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
69505         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
69506         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
69507         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
69508         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
69509         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
69510         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
69511         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
69512         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
69513         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
69514         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
69515         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
69516         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
69517         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
69518         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
69519         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
69520         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
69521         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
69522         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
69523         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
69524         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
69525         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
69526         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
69527         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
69528         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
69529         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
69530         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
69531         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
69532         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
69533         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
69534         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
69535         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
69536         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
69537         * tests/uniwidth/test-u8-strwidth.c: Likewise.
69538         * tests/uniwidth/test-u8-width.c: Likewise.
69539         * tests/uniwidth/test-u16-strwidth.c: Likewise.
69540         * tests/uniwidth/test-u16-width.c: Likewise.
69541         * tests/uniwidth/test-u32-strwidth.c: Likewise.
69542         * tests/uniwidth/test-u32-width.c: Likewise.
69543         * tests/uniwidth/test-uc_width.c: Likewise.
69544         * tests/uniwidth/test-uc_width2.c: Likewise.
69545         * modules/acl-tests (Files): Add tests/macros.h.
69546         * modules/areadlink-tests (Files): Likewise.
69547         * modules/areadlink-with-size-tests (Files): Likewise.
69548         * modules/areadlinkat-tests (Files): Likewise.
69549         * modules/areadlinkat-with-size-tests (Files): Likewise.
69550         * modules/argmatch-tests (Files): Likewise.
69551         * modules/argv-iter-tests (Files): Likewise.
69552         * modules/array-list-tests (Files): Likewise.
69553         * modules/array-mergesort-tests (Files): Likewise.
69554         * modules/array-oset-tests (Files): Likewise.
69555         * modules/avltree-list-tests (Files): Likewise.
69556         * modules/avltree-oset-tests (Files): Likewise.
69557         * modules/avltreehash-list-tests (Files): Likewise.
69558         * modules/base64-tests (Files): Likewise.
69559         * modules/binary-io-tests (Files): Likewise.
69560         * modules/bitrotate-tests (Files): Likewise.
69561         * modules/btowc-tests (Files): Likewise.
69562         * modules/byteswap-tests (Files): Likewise.
69563         * modules/c-ctype-tests (Files): Likewise.
69564         * modules/c-stack-tests (Files): Likewise.
69565         * modules/c-strcase-tests (Files): Likewise.
69566         * modules/c-strcasestr-tests (Files): Likewise.
69567         * modules/c-strstr-tests (Files): Likewise.
69568         * modules/canonicalize-lgpl-tests (Files): Likewise.
69569         * modules/canonicalize-tests (Files): Likewise.
69570         * modules/carray-list-tests (Files): Likewise.
69571         * modules/ceilf-tests (Files): Likewise.
69572         * modules/ceill-tests (Files): Likewise.
69573         * modules/chown-tests (Files): Likewise.
69574         * modules/cloexec-tests (Files): Likewise.
69575         * modules/copy-file-tests (Files): Likewise.
69576         * modules/count-one-bits-tests (Files): Likewise.
69577         * modules/dprintf-posix-tests (Files): Likewise.
69578         * modules/dup2-tests (Files): Likewise.
69579         * modules/dup3-tests (Files): Likewise.
69580         * modules/duplocale-tests (Files): Likewise.
69581         * modules/fbufmode-tests (Files): Likewise.
69582         * modules/fchdir-tests (Files): Likewise.
69583         * modules/fcntl-safer-tests (Files): Likewise.
69584         * modules/fcntl-tests (Files): Likewise.
69585         * modules/fdopendir-tests (Files): Likewise.
69586         * modules/fdutimensat-tests (Files): Likewise.
69587         * modules/fflush-tests (Files): Likewise.
69588         * modules/filevercmp-tests (Files): Likewise.
69589         * modules/flock-tests (Files): Likewise.
69590         * modules/floorf-tests (Files): Likewise.
69591         * modules/floorl-tests (Files): Likewise.
69592         * modules/fnmatch-tests (Files): Likewise.
69593         * modules/fopen-safer-tests (Files): Likewise.
69594         * modules/fopen-tests (Files): Likewise.
69595         * modules/fpending-tests (Files): Likewise.
69596         * modules/fprintf-posix-tests (Files): Likewise.
69597         * modules/fpurge-tests (Files): Likewise.
69598         * modules/freadable-tests (Files): Likewise.
69599         * modules/freadahead-tests (Files): Likewise.
69600         * modules/freading-tests (Files): Likewise.
69601         * modules/freadptr-tests (Files): Likewise.
69602         * modules/freadseek-tests (Files): Likewise.
69603         * modules/freopen-tests (Files): Likewise.
69604         * modules/frexp-nolibm-tests (Files): Likewise.
69605         * modules/frexp-tests (Files): Likewise.
69606         * modules/frexpl-nolibm-tests (Files): Likewise.
69607         * modules/frexpl-tests (Files): Likewise.
69608         * modules/fseek-tests (Files): Likewise.
69609         * modules/fseeko-tests (Files): Likewise.
69610         * modules/fstrcmp-tests (Files): Likewise.
69611         * modules/fsync-tests (Files): Likewise.
69612         * modules/ftell-tests (Files): Likewise.
69613         * modules/ftello-tests (Files): Likewise.
69614         * modules/func-tests (Files): Likewise.
69615         * modules/futimens-tests (Files): Likewise.
69616         * modules/fwritable-tests (Files): Likewise.
69617         * modules/fwriting-tests (Files): Likewise.
69618         * modules/getcwd-tests (Files): Likewise.
69619         * modules/getdate-tests (Files): Likewise.
69620         * modules/getdelim-tests (Files): Likewise.
69621         * modules/getdtablesize-tests (Files): Likewise.
69622         * modules/getgroups-tests (Files): Likewise.
69623         * modules/getline-tests (Files): Likewise.
69624         * modules/getndelim2-tests (Files): Likewise.
69625         * modules/glob-tests (Files): Likewise.
69626         * modules/hash-tests (Files): Likewise.
69627         * modules/i-ring-tests (Files): Likewise.
69628         * modules/iconv-tests (Files): Likewise.
69629         * modules/iconv_open-utf-tests (Files): Likewise.
69630         * modules/idpriv-drop-tests (Files): Likewise.
69631         * modules/idpriv-droptemp-tests (Files): Likewise.
69632         * modules/inet_ntop-tests (Files): Likewise.
69633         * modules/inet_pton-tests (Files): Likewise.
69634         * modules/isblank-tests (Files): Likewise.
69635         * modules/isfinite-tests (Files): Likewise.
69636         * modules/isinf-tests (Files): Likewise.
69637         * modules/isnan-tests (Files): Likewise.
69638         * modules/isnand-nolibm-tests (Files): Likewise.
69639         * modules/isnand-tests (Files): Likewise.
69640         * modules/isnanf-nolibm-tests (Files): Likewise.
69641         * modules/isnanf-tests (Files): Likewise.
69642         * modules/isnanl-nolibm-tests (Files): Likewise.
69643         * modules/isnanl-tests (Files): Likewise.
69644         * modules/lchown-tests (Files): Likewise.
69645         * modules/ldexpl-tests (Files): Likewise.
69646         * modules/link-tests (Files): Likewise.
69647         * modules/linkat-tests (Files): Likewise.
69648         * modules/linked-list-tests (Files): Likewise.
69649         * modules/linkedhash-list-tests (Files): Likewise.
69650         * modules/localename-tests (Files): Likewise.
69651         * modules/lseek-tests (Files): Likewise.
69652         * modules/lstat-tests (Files): Likewise.
69653         * modules/mbmemcasecmp-tests (Files): Likewise.
69654         * modules/mbmemcasecoll-tests (Files): Likewise.
69655         * modules/mbrtowc-tests (Files): Likewise.
69656         * modules/mbscasecmp-tests (Files): Likewise.
69657         * modules/mbscasestr-tests (Files): Likewise.
69658         * modules/mbschr-tests (Files): Likewise.
69659         * modules/mbscspn-tests (Files): Likewise.
69660         * modules/mbsinit-tests (Files): Likewise.
69661         * modules/mbsncasecmp-tests (Files): Likewise.
69662         * modules/mbsnrtowcs-tests (Files): Likewise.
69663         * modules/mbspbrk-tests (Files): Likewise.
69664         * modules/mbspcasecmp-tests (Files): Likewise.
69665         * modules/mbsrchr-tests (Files): Likewise.
69666         * modules/mbsrtowcs-tests (Files): Likewise.
69667         * modules/mbsspn-tests (Files): Likewise.
69668         * modules/mbsstr-tests (Files): Likewise.
69669         * modules/memchr-tests (Files): Likewise.
69670         * modules/memchr2-tests (Files): Likewise.
69671         * modules/memcmp-tests (Files): Likewise.
69672         * modules/memmem-tests (Files): Likewise.
69673         * modules/memrchr-tests (Files): Likewise.
69674         * modules/mkdir-tests (Files): Likewise.
69675         * modules/mkfifo-tests (Files): Likewise.
69676         * modules/mkfifoat-tests (Files): Likewise.
69677         * modules/mknod-tests (Files): Likewise.
69678         * modules/nanosleep-tests (Files): Likewise.
69679         * modules/nl_langinfo-tests (Files): Likewise.
69680         * modules/obstack-printf-tests (Files): Likewise.
69681         * modules/open-tests (Files): Likewise.
69682         * modules/openat-tests (Files): Likewise.
69683         * modules/pipe-filter-gi-tests (Files): Likewise.
69684         * modules/pipe-filter-ii-tests (Files): Likewise.
69685         * modules/pipe2-tests (Files): Likewise.
69686         * modules/popen-safer-tests (Files): Likewise.
69687         * modules/popen-tests (Files): Likewise.
69688         * modules/posixtm-tests (Files): Likewise.
69689         * modules/pread-tests (Files): Likewise.
69690         * modules/printf-frexp-tests (Files): Likewise.
69691         * modules/printf-frexpl-tests (Files): Likewise.
69692         * modules/printf-posix-tests (Files): Likewise.
69693         * modules/priv-set-tests (Files): Likewise.
69694         * modules/quotearg-tests (Files): Likewise.
69695         * modules/random_r-tests (Files): Likewise.
69696         * modules/rawmemchr-tests (Files): Likewise.
69697         * modules/rbtree-list-tests (Files): Likewise.
69698         * modules/rbtree-oset-tests (Files): Likewise.
69699         * modules/rbtreehash-list-tests (Files): Likewise.
69700         * modules/readlink-tests (Files): Likewise.
69701         * modules/remove-tests (Files): Likewise.
69702         * modules/rename-tests (Files): Likewise.
69703         * modules/renameat-tests (Files): Likewise.
69704         * modules/rmdir-tests (Files): Likewise.
69705         * modules/round-tests (Files): Likewise.
69706         * modules/roundf-tests (Files): Likewise.
69707         * modules/roundl-tests (Files): Likewise.
69708         * modules/safe-alloc-tests (Files): Likewise.
69709         * modules/setenv-tests (Files): Likewise.
69710         * modules/sigaction-tests (Files): Likewise.
69711         * modules/signbit-tests (Files): Likewise.
69712         * modules/sleep-tests (Files): Likewise.
69713         * modules/snprintf-posix-tests (Files): Likewise.
69714         * modules/snprintf-tests (Files): Likewise.
69715         * modules/sprintf-posix-tests (Files): Likewise.
69716         * modules/stat-tests (Files): Likewise.
69717         * modules/stat-time-tests (Files): Likewise.
69718         * modules/strcasestr-tests (Files): Likewise.
69719         * modules/strchrnul-tests (Files): Likewise.
69720         * modules/strerror-tests (Files): Likewise.
69721         * modules/striconv-tests (Files): Likewise.
69722         * modules/striconveh-tests (Files): Likewise.
69723         * modules/striconveha-tests (Files): Likewise.
69724         * modules/strsignal-tests (Files): Likewise.
69725         * modules/strstr-tests (Files): Likewise.
69726         * modules/strtod-tests (Files): Likewise.
69727         * modules/strverscmp-tests (Files): Likewise.
69728         * modules/symlink-tests (Files): Likewise.
69729         * modules/symlinkat-tests (Files): Likewise.
69730         * modules/trunc-tests (Files): Likewise.
69731         * modules/truncf-tests (Files): Likewise.
69732         * modules/truncl-tests (Files): Likewise.
69733         * modules/uname-tests (Files): Likewise.
69734         * modules/unicase/cased-tests (Files): Likewise.
69735         * modules/unicase/ignorable-tests (Files): Likewise.
69736         * modules/unicase/locale-language-tests (Files): Likewise.
69737         * modules/unicase/tolower-tests (Files): Likewise.
69738         * modules/unicase/totitle-tests (Files): Likewise.
69739         * modules/unicase/toupper-tests (Files): Likewise.
69740         * modules/unicase/u8-casecmp-tests (Files): Likewise.
69741         * modules/unicase/u8-casecoll-tests (Files): Likewise.
69742         * modules/unicase/u8-casefold-tests (Files): Likewise.
69743         * modules/unicase/u8-is-cased-tests (Files): Likewise.
69744         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
69745         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
69746         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
69747         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
69748         * modules/unicase/u8-tolower-tests (Files): Likewise.
69749         * modules/unicase/u8-totitle-tests (Files): Likewise.
69750         * modules/unicase/u8-toupper-tests (Files): Likewise.
69751         * modules/unicase/u16-casecmp-tests (Files): Likewise.
69752         * modules/unicase/u16-casecoll-tests (Files): Likewise.
69753         * modules/unicase/u16-casefold-tests (Files): Likewise.
69754         * modules/unicase/u16-is-cased-tests (Files): Likewise.
69755         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
69756         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
69757         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
69758         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
69759         * modules/unicase/u16-tolower-tests (Files): Likewise.
69760         * modules/unicase/u16-totitle-tests (Files): Likewise.
69761         * modules/unicase/u16-toupper-tests (Files): Likewise.
69762         * modules/unicase/u32-casecmp-tests (Files): Likewise.
69763         * modules/unicase/u32-casecoll-tests (Files): Likewise.
69764         * modules/unicase/u32-casefold-tests (Files): Likewise.
69765         * modules/unicase/u32-is-cased-tests (Files): Likewise.
69766         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
69767         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
69768         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
69769         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
69770         * modules/unicase/u32-tolower-tests (Files): Likewise.
69771         * modules/unicase/u32-totitle-tests (Files): Likewise.
69772         * modules/unicase/u32-toupper-tests (Files): Likewise.
69773         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
69774         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
69775         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
69776         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
69777         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
69778         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
69779         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
69780         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
69781         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
69782         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
69783         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
69784         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
69785         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
69786         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
69787         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
69788         * modules/unictype/bidicategory-name-tests (Files): Likewise.
69789         * modules/unictype/bidicategory-of-tests (Files): Likewise.
69790         * modules/unictype/bidicategory-test-tests (Files): Likewise.
69791         * modules/unictype/block-list-tests (Files): Likewise.
69792         * modules/unictype/block-of-tests (Files): Likewise.
69793         * modules/unictype/block-test-tests (Files): Likewise.
69794         * modules/unictype/category-C-tests (Files): Likewise.
69795         * modules/unictype/category-Cc-tests (Files): Likewise.
69796         * modules/unictype/category-Cf-tests (Files): Likewise.
69797         * modules/unictype/category-Cn-tests (Files): Likewise.
69798         * modules/unictype/category-Co-tests (Files): Likewise.
69799         * modules/unictype/category-Cs-tests (Files): Likewise.
69800         * modules/unictype/category-L-tests (Files): Likewise.
69801         * modules/unictype/category-Ll-tests (Files): Likewise.
69802         * modules/unictype/category-Lm-tests (Files): Likewise.
69803         * modules/unictype/category-Lo-tests (Files): Likewise.
69804         * modules/unictype/category-Lt-tests (Files): Likewise.
69805         * modules/unictype/category-Lu-tests (Files): Likewise.
69806         * modules/unictype/category-M-tests (Files): Likewise.
69807         * modules/unictype/category-Mc-tests (Files): Likewise.
69808         * modules/unictype/category-Me-tests (Files): Likewise.
69809         * modules/unictype/category-Mn-tests (Files): Likewise.
69810         * modules/unictype/category-N-tests (Files): Likewise.
69811         * modules/unictype/category-Nd-tests (Files): Likewise.
69812         * modules/unictype/category-Nl-tests (Files): Likewise.
69813         * modules/unictype/category-No-tests (Files): Likewise.
69814         * modules/unictype/category-P-tests (Files): Likewise.
69815         * modules/unictype/category-Pc-tests (Files): Likewise.
69816         * modules/unictype/category-Pd-tests (Files): Likewise.
69817         * modules/unictype/category-Pe-tests (Files): Likewise.
69818         * modules/unictype/category-Pf-tests (Files): Likewise.
69819         * modules/unictype/category-Pi-tests (Files): Likewise.
69820         * modules/unictype/category-Po-tests (Files): Likewise.
69821         * modules/unictype/category-Ps-tests (Files): Likewise.
69822         * modules/unictype/category-S-tests (Files): Likewise.
69823         * modules/unictype/category-Sc-tests (Files): Likewise.
69824         * modules/unictype/category-Sk-tests (Files): Likewise.
69825         * modules/unictype/category-Sm-tests (Files): Likewise.
69826         * modules/unictype/category-So-tests (Files): Likewise.
69827         * modules/unictype/category-Z-tests (Files): Likewise.
69828         * modules/unictype/category-Zl-tests (Files): Likewise.
69829         * modules/unictype/category-Zp-tests (Files): Likewise.
69830         * modules/unictype/category-Zs-tests (Files): Likewise.
69831         * modules/unictype/category-and-not-tests (Files): Likewise.
69832         * modules/unictype/category-and-tests (Files): Likewise.
69833         * modules/unictype/category-byname-tests (Files): Likewise.
69834         * modules/unictype/category-name-tests (Files): Likewise.
69835         * modules/unictype/category-none-tests (Files): Likewise.
69836         * modules/unictype/category-of-tests (Files): Likewise.
69837         * modules/unictype/category-or-tests (Files): Likewise.
69838         * modules/unictype/category-test-withtable-tests (Files): Likewise.
69839         * modules/unictype/combining-class-tests (Files): Likewise.
69840         * modules/unictype/ctype-alnum-tests (Files): Likewise.
69841         * modules/unictype/ctype-alpha-tests (Files): Likewise.
69842         * modules/unictype/ctype-blank-tests (Files): Likewise.
69843         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
69844         * modules/unictype/ctype-digit-tests (Files): Likewise.
69845         * modules/unictype/ctype-graph-tests (Files): Likewise.
69846         * modules/unictype/ctype-lower-tests (Files): Likewise.
69847         * modules/unictype/ctype-print-tests (Files): Likewise.
69848         * modules/unictype/ctype-punct-tests (Files): Likewise.
69849         * modules/unictype/ctype-space-tests (Files): Likewise.
69850         * modules/unictype/ctype-upper-tests (Files): Likewise.
69851         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
69852         * modules/unictype/decimal-digit-tests (Files): Likewise.
69853         * modules/unictype/digit-tests (Files): Likewise.
69854         * modules/unictype/mirror-tests (Files): Likewise.
69855         * modules/unictype/numeric-tests (Files): Likewise.
69856         * modules/unictype/property-alphabetic-tests (Files): Likewise.
69857         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
69858         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
69859         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
69860         Likewise.
69861         * modules/unictype/property-bidi-block-separator-tests (Files):
69862         Likewise.
69863         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
69864         Likewise.
69865         * modules/unictype/property-bidi-common-separator-tests (Files):
69866         Likewise.
69867         * modules/unictype/property-bidi-control-tests (Files): Likewise.
69868         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
69869         Likewise.
69870         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
69871         Likewise.
69872         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
69873         Likewise.
69874         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
69875         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
69876         Likewise.
69877         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
69878         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
69879         Likewise.
69880         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
69881         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
69882         * modules/unictype/property-bidi-segment-separator-tests (Files):
69883         Likewise.
69884         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
69885         * modules/unictype/property-byname-tests (Files): Likewise.
69886         * modules/unictype/property-combining-tests (Files): Likewise.
69887         * modules/unictype/property-composite-tests (Files): Likewise.
69888         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
69889         * modules/unictype/property-dash-tests (Files): Likewise.
69890         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
69891         * modules/unictype/property-default-ignorable-code-point-tests (Files):
69892         Likewise.
69893         * modules/unictype/property-deprecated-tests (Files): Likewise.
69894         * modules/unictype/property-diacritic-tests (Files): Likewise.
69895         * modules/unictype/property-extender-tests (Files): Likewise.
69896         * modules/unictype/property-format-control-tests (Files): Likewise.
69897         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
69898         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
69899         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
69900         * modules/unictype/property-hex-digit-tests (Files): Likewise.
69901         * modules/unictype/property-hyphen-tests (Files): Likewise.
69902         * modules/unictype/property-id-continue-tests (Files): Likewise.
69903         * modules/unictype/property-id-start-tests (Files): Likewise.
69904         * modules/unictype/property-ideographic-tests (Files): Likewise.
69905         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
69906         * modules/unictype/property-ids-trinary-operator-tests (Files):
69907         Likewise.
69908         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
69909         * modules/unictype/property-iso-control-tests (Files): Likewise.
69910         * modules/unictype/property-join-control-tests (Files): Likewise.
69911         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
69912         * modules/unictype/property-line-separator-tests (Files): Likewise.
69913         * modules/unictype/property-logical-order-exception-tests (Files):
69914         Likewise.
69915         * modules/unictype/property-lowercase-tests (Files): Likewise.
69916         * modules/unictype/property-math-tests (Files): Likewise.
69917         * modules/unictype/property-non-break-tests (Files): Likewise.
69918         * modules/unictype/property-not-a-character-tests (Files): Likewise.
69919         * modules/unictype/property-numeric-tests (Files): Likewise.
69920         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
69921         * modules/unictype/property-other-default-ignorable-code-point-tests
69922         (Files): Likewise.
69923         * modules/unictype/property-other-grapheme-extend-tests (Files):
69924         Likewise.
69925         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
69926         * modules/unictype/property-other-id-start-tests (Files): Likewise.
69927         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
69928         * modules/unictype/property-other-math-tests (Files): Likewise.
69929         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
69930         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
69931         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
69932         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
69933         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
69934         * modules/unictype/property-private-use-tests (Files): Likewise.
69935         * modules/unictype/property-punctuation-tests (Files): Likewise.
69936         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
69937         * modules/unictype/property-radical-tests (Files): Likewise.
69938         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
69939         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
69940         * modules/unictype/property-space-tests (Files): Likewise.
69941         * modules/unictype/property-terminal-punctuation-tests (Files):
69942         Likewise.
69943         * modules/unictype/property-test-tests (Files): Likewise.
69944         * modules/unictype/property-titlecase-tests (Files): Likewise.
69945         * modules/unictype/property-unassigned-code-value-tests (Files):
69946         Likewise.
69947         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
69948         * modules/unictype/property-uppercase-tests (Files): Likewise.
69949         * modules/unictype/property-variation-selector-tests (Files): Likewise.
69950         * modules/unictype/property-white-space-tests (Files): Likewise.
69951         * modules/unictype/property-xid-continue-tests (Files): Likewise.
69952         * modules/unictype/property-xid-start-tests (Files): Likewise.
69953         * modules/unictype/property-zero-width-tests (Files): Likewise.
69954         * modules/unictype/scripts-tests (Files): Likewise.
69955         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
69956         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
69957         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
69958         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
69959         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
69960         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
69961         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
69962         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
69963         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
69964         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
69965         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
69966         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
69967         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
69968         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
69969         * modules/uninorm/composition-tests (Files): Likewise.
69970         * modules/uninorm/decomposing-form-tests (Files): Likewise.
69971         * modules/uninorm/decomposition-tests (Files): Likewise.
69972         * modules/uninorm/filter-tests (Files): Likewise.
69973         * modules/uninorm/nfc-tests (Files): Likewise.
69974         * modules/uninorm/nfd-tests (Files): Likewise.
69975         * modules/uninorm/nfkc-tests (Files): Likewise.
69976         * modules/uninorm/nfkd-tests (Files): Likewise.
69977         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
69978         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
69979         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
69980         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
69981         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
69982         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
69983         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
69984         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69985         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
69986         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
69987         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
69988         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
69989         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69990         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
69991         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
69992         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
69993         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
69994         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69995         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
69996         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
69997         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
69998         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
69999         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
70000         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
70001         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
70002         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
70003         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
70004         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
70005         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
70006         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
70007         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
70008         * modules/uniwidth/u8-width-tests (Files): Likewise.
70009         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
70010         * modules/uniwidth/u16-width-tests (Files): Likewise.
70011         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
70012         * modules/uniwidth/u32-width-tests (Files): Likewise.
70013         * modules/uniwidth/width-tests (Files): Likewise.
70014         * modules/unlink-tests (Files): Likewise.
70015         * modules/unsetenv-tests (Files): Likewise.
70016         * modules/usleep-tests (Files): Likewise.
70017         * modules/utimens-tests (Files): Likewise.
70018         * modules/utimensat-tests (Files): Likewise.
70019         * modules/vasnprintf-posix-tests (Files): Likewise.
70020         * modules/vasnprintf-tests (Files): Likewise.
70021         * modules/vasprintf-posix-tests (Files): Likewise.
70022         * modules/vasprintf-tests (Files): Likewise.
70023         * modules/vdprintf-posix-tests (Files): Likewise.
70024         * modules/vfprintf-posix-tests (Files): Likewise.
70025         * modules/vprintf-posix-tests (Files): Likewise.
70026         * modules/vsnprintf-posix-tests (Files): Likewise.
70027         * modules/vsnprintf-tests (Files): Likewise.
70028         * modules/vsprintf-posix-tests (Files): Likewise.
70029         * modules/wcrtomb-tests (Files): Likewise.
70030         * modules/wcsnrtombs-tests (Files): Likewise.
70031         * modules/wcsrtombs-tests (Files): Likewise.
70032         * modules/wctype-tests (Files): Likewise.
70033         * modules/wcwidth-tests (Files): Likewise.
70034         * modules/xmemdup0-tests (Files): Likewise.
70035         * modules/xprintf-posix-tests (Files): Likewise.
70036         * modules/xvasprintf-tests (Files): Likewise.
70038 2009-12-24  Eric Blake  <ebb9@byu.net>
70040         test-nanosleep: fix typo
70041         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
70042         patch.
70043         Reported by Bruno Haible.
70045 2009-12-24  Bruno Haible  <bruno@clisp.org>
70047         Reduce namespace pollution on glibc systems.
70048         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
70049         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
70050         systems.
70051         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
70052         <getopt.h> on glibc systems.
70053         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
70054         systems.
70055         * lib/fcntl.c: Include <unistd.h> here instead.
70057 2009-12-24  Bruno Haible  <bruno@clisp.org>
70059         * lib/stdlib.in.h (includes): Fix typo in today's commit.
70061 2009-12-24  Eric Blake  <ebb9@byu.net>
70063         tests: add signature checks
70064         * tests/signature.h (SIGNATURE_CHECK): New file.
70065         * modules/atexit-tests (Files): Use it.
70066         * modules/btowc-tests (Files): Likewise.
70067         * modules/canonicalize-lgpl-tests (Files): Likewise.
70068         * modules/ceilf-tests (Files): Likewise.
70069         * modules/ceill-tests (Files): Likewise.
70070         * modules/chown-tests (Files): Likewise.
70071         * modules/dprintf-posix-tests (Files): Likewise.
70072         * modules/dup2-tests (Files): Likewise.
70073         * modules/dup3-tests (Files): Likewise.
70074         * modules/duplocale-tests (Files): Likewise.
70075         * modules/fchdir-tests (Files): Likewise.
70076         * modules/fcntl-tests (Files): Likewise.
70077         * modules/fdopendir-tests (Files): Likewise.
70078         * modules/fflush-tests (Files): Likewise.
70079         * modules/flock-tests (Files): Likewise.
70080         * modules/floorf-tests (Files): Likewise.
70081         * modules/floorl-tests (Files): Likewise.
70082         * modules/fnmatch-tests (Files): Likewise.
70083         * modules/fopen-tests (Files): Likewise.
70084         * modules/fprintf-posix-tests (Files): Likewise.
70085         * modules/freopen-tests (Files): Likewise.
70086         * modules/frexp-nolibm-tests (Files): Likewise.
70087         * modules/frexp-tests (Files): Likewise.
70088         * modules/frexpl-nolibm-tests (Files): Likewise.
70089         * modules/frexpl-tests (Files): Likewise.
70090         * modules/fseek-tests (Files): Likewise.
70091         * modules/fseeko-tests (Files): Likewise.
70092         * modules/fsync-tests (Files): Likewise.
70093         * modules/ftell-tests (Files): Likewise.
70094         * modules/ftello-tests (Files): Likewise.
70095         * modules/futimens-tests (Files): Likewise.
70096         * modules/getaddrinfo-tests (Files): Likewise.
70097         * modules/getcwd-tests (Files): Likewise.
70098         * modules/getdelim-tests (Files): Likewise.
70099         * modules/getdtablesize-tests (Files): Likewise.
70100         * modules/getgroups-tests (Files): Likewise.
70101         * modules/gethostname-tests (Files): Likewise.
70102         * modules/getline-tests (Files): Likewise.
70103         * modules/getopt-posix-tests (Files): Likewise.
70104         * modules/gettimeofday-tests (Files): Likewise.
70105         * modules/glob-tests (Files): Likewise.
70106         * modules/iconv-tests (Files): Likewise.
70107         * modules/inet_ntop-tests (Files): Likewise.
70108         * modules/inet_pton-tests (Files): Likewise.
70109         * modules/isblank-tests (Files): Likewise.
70110         * modules/lchown-tests (Files): Likewise.
70111         * modules/ldexpl-tests (Files): Likewise.
70112         * modules/link-tests (Files): Likewise.
70113         * modules/linkat-tests (Files): Likewise.
70114         * modules/lseek-tests (Files): Likewise.
70115         * modules/lstat-tests (Files): Likewise.
70116         * modules/mbrtowc-tests (Files): Likewise.
70117         * modules/mbsinit-tests (Files): Likewise.
70118         * modules/mbsnrtowcs-tests (Files): Likewise.
70119         * modules/mbsrtowcs-tests (Files): Likewise.
70120         * modules/memchr-tests (Files): Likewise.
70121         * modules/memcmp-tests (Files): Likewise.
70122         * modules/memmem-tests (Files): Likewise.
70123         * modules/memrchr-tests (Files): Likewise.
70124         * modules/mkdir-tests (Files): Likewise.
70125         * modules/mkfifo-tests (Files): Likewise.
70126         * modules/mkfifoat-tests (Files): Likewise.
70127         * modules/mknod-tests (Files): Likewise.
70128         * modules/nanosleep-tests (Files): Likewise.
70129         * modules/nl_langinfo-tests (Files): Likewise.
70130         * modules/obstack-printf-tests (Files): Likewise.
70131         * modules/open-tests (Files): Likewise.
70132         * modules/openat-tests (Files): Likewise.
70133         * modules/perror-tests (Files): Likewise.
70134         * modules/pipe2-tests (Files): Likewise.
70135         * modules/poll-tests (Files): Likewise.
70136         * modules/popen-tests (Files): Likewise.
70137         * modules/posix_spawn-tests (Files): Likewise.
70138         * modules/posix_spawnp-tests (Files): Likewise.
70139         * modules/pread-tests (Files): Likewise.
70140         * modules/printf-posix-tests (Files): Likewise.
70141         * modules/pty-tests (Files): Likewise.
70142         * modules/random_r-tests (Files): Likewise.
70143         * modules/rawmemchr-tests (Files): Likewise.
70144         * modules/readlink-tests (Files): Likewise.
70145         * modules/remove-tests (Files): Likewise.
70146         * modules/rename-tests (Files): Likewise.
70147         * modules/renameat-tests (Files): Likewise.
70148         * modules/rmdir-tests (Files): Likewise.
70149         * modules/round-tests (Files): Likewise.
70150         * modules/roundf-tests (Files): Likewise.
70151         * modules/roundl-tests (Files): Likewise.
70152         * modules/select-tests (Files): Likewise.
70153         * modules/setenv-tests (Files): Likewise.
70154         * modules/sigaction-tests (Files): Likewise.
70155         * modules/sleep-tests (Files): Likewise.
70156         * modules/snprintf-posix-tests (Files): Likewise.
70157         * modules/snprintf-tests (Files): Likewise.
70158         * modules/sprintf-posix-tests (Files): Likewise.
70159         * modules/stat-tests (Files): Likewise.
70160         * modules/strcasestr-tests (Files): Likewise.
70161         * modules/strchrnul-tests (Files): Likewise.
70162         * modules/strerror-tests (Files): Likewise.
70163         * modules/strsignal-tests (Files): Likewise.
70164         * modules/strstr-tests (Files): Likewise.
70165         * modules/strtod-tests (Files): Likewise.
70166         * modules/strverscmp-tests (Files): Likewise.
70167         * modules/symlink-tests (Files): Likewise.
70168         * modules/symlinkat-tests (Files): Likewise.
70169         * modules/times-tests (Files): Likewise.
70170         * modules/trunc-tests (Files): Likewise.
70171         * modules/truncf-tests (Files): Likewise.
70172         * modules/truncl-tests (Files): Likewise.
70173         * modules/tsearch-tests (Files): Likewise.
70174         * modules/uname-tests (Files): Likewise.
70175         * modules/unlink-tests (Files): Likewise.
70176         * modules/unsetenv-tests (Files): Likewise.
70177         * modules/usleep-tests (Files): Likewise.
70178         * modules/utimensat-tests (Files): Likewise.
70179         * modules/vasprintf-tests (Files): Likewise.
70180         * modules/vdprintf-posix-tests (Files): Likewise.
70181         * modules/vfprintf-posix-tests (Files): Likewise.
70182         * modules/vprintf-posix-tests (Files): Likewise.
70183         * modules/vsnprintf-posix-tests (Files): Likewise.
70184         * modules/vsnprintf-tests (Files): Likewise.
70185         * modules/vsprintf-posix-tests (Files): Likewise.
70186         * modules/wcrtomb-tests (Files): Likewise.
70187         * modules/wcsnrtombs-tests (Files): Likewise.
70188         * modules/wcsrtombs-tests (Files): Likewise.
70189         * modules/wcwidth-tests (Files): Likewise.
70190         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
70191         * tests/test-isinf.c (isinf): Likewise.
70192         * tests/test-isnan.c (isnan): Likewise.
70193         * tests/test-signbit.c (signbit): Likewise.
70194         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
70195         declaration, either as macro or with correct signature.
70196         (select): Ensure function under test is declared with correct
70197         signature in correct header.
70198         * tests/test-atexit.c (atexit): Likewise.
70199         * tests/test-btowc.c (btowc): Likewise.
70200         * tests/test-canonicalize-lgpl.c (realpath)
70201         (canonicalize_file_name): Likewise.
70202         * tests/test-ceilf1.c (ceilf): Likewise.
70203         * tests/test-ceill.c (ceill): Likewise.
70204         * tests/test-chown.c (chown): Likewise.
70205         * tests/test-dprintf-posix.c (dprintf): Likewise.
70206         * tests/test-dup2.c (dup2): Likewise.
70207         * tests/test-dup3.c (dup3): Likewise.
70208         * tests/test-duplocale.c (duplocale): Likewise.
70209         * tests/test-fchdir.c (fchdir): Likewise.
70210         * tests/test-fchownat.c (fchownat): Likewise.
70211         * tests/test-fcntl.c (fcntl): Likewise.
70212         * tests/test-fdopendir.c (fdopendir): Likewise.
70213         * tests/test-fflush.c (fflush): Likewise.
70214         * tests/test-flock.c (flock): Likewise.
70215         * tests/test-floorf1.c (floorf): Likewise.
70216         * tests/test-floorl.c (floorl): Likewise.
70217         * tests/test-fnmatch.c (fnmatch): Likewise.
70218         * tests/test-fopen.c (fopen): Likewise.
70219         * tests/test-fprintf-posix.c (fprintf): Likewise.
70220         * tests/test-freopen.c (freopen): Likewise.
70221         * tests/test-frexp.c (frexp): Likewise.
70222         * tests/test-frexpl.c (frexpl): Likewise.
70223         * tests/test-fseek.c (fseek): Likewise.
70224         * tests/test-fseeko.c (fseeko): Likewise.
70225         * tests/test-fstatat.c (fstatat): Likewise.
70226         * tests/test-fsync.c (fsync): Likewise.
70227         * tests/test-ftell.c (ftell): Likewise.
70228         * tests/test-ftello.c (ftello): Likewise.
70229         * tests/test-futimens.c (futimens): Likewise.
70230         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
70231         (gai_strerror): Likewise.
70232         * tests/test-getcwd.c (getcwd): Likewise.
70233         * tests/test-getdelim.c (getdelim): Likewise.
70234         * tests/test-getdtablesize.c (getdtablesize): Likewise.
70235         * tests/test-getgroups.c (getgroups): Likewise.
70236         * tests/test-gethostname.c (gethostname): Likewise.
70237         * tests/test-getline.c (getline): Likewise.
70238         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
70239         Likewise.
70240         * tests/test-gettimeofday.c (gettimeofday): Likewise.
70241         * tests/test-glob.c (glob, globfree): Likewise.
70242         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
70243         * tests/test-inet_ntop.c (inet_ntop): Likewise.
70244         * tests/test-inet_pton.c (inet_pton): Likewise.
70245         * tests/test-isblank.c (isblank): Likewise.
70246         * tests/test-lchown.c (lchown): Likewise.
70247         * tests/test-ldexpl.c (ldexpl): Likewise.
70248         * tests/test-link.c (link): Likewise.
70249         * tests/test-linkat.c (linkat): Likewise.
70250         * tests/test-lseek.c (lseek): Likewise.
70251         * tests/test-lstat.c (lstat): Likewise.
70252         * tests/test-mbrtowc.c (mbrtowc): Likewise.
70253         * tests/test-mbsinit.c (mbsinit): Likewise.
70254         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
70255         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
70256         * tests/test-memchr.c (memchr): Likewise.
70257         * tests/test-memcmp.c (memcmp): Likewise.
70258         * tests/test-memmem.c (memmem): Likewise.
70259         * tests/test-memrchr.c (memrchr): Likewise.
70260         * tests/test-mkdir.c (mkdir): Likewise.
70261         * tests/test-mkdirat.c (mkdirat): Likewise.
70262         * tests/test-mkfifo.c (mkfifo): Likewise.
70263         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
70264         * tests/test-mknod.c (mknod): Likewise.
70265         * tests/test-nanosleep.c (nanosleep): Likewise.
70266         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
70267         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
70268         Likewise.
70269         * tests/test-open.c (open): Likewise.
70270         * tests/test-openat.c (openat): Likewise.
70271         * tests/test-perror.c (perror): Likewise.
70272         * tests/test-pipe2.c (pipe2): Likewise.
70273         * tests/test-poll.c (poll): Likewise.
70274         * tests/test-popen.c (popen, pclose): Likewise.
70275         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
70276         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
70277         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
70278         (posix_spawn_file_actions_destroy)
70279         (posix_spawn_file_actions_addclose)
70280         (posix_spawn_file_actions_addopen)
70281         (posix_spawn_file_actions_adddup2): Likewise.
70282         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
70283         * tests/test-pread.c (pread): Likewise.
70284         * tests/test-printf-posix.c (printf): Likewise.
70285         * tests/test-pty.c (openpty, forkpty): Likewise.
70286         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
70287         (random_r): Likewise.
70288         * tests/test-rawmemchr.c (rawmemchr): Likewise.
70289         * tests/test-readlink.c (readlink): Likewise.
70290         * tests/test-remove.c (remove): Likewise.
70291         * tests/test-rename.c (rename): Likewise.
70292         * tests/test-renameat.c (renameat): Likewise.
70293         * tests/test-rmdir.c (rmdir): Likewise.
70294         * tests/test-round1.c (round): Likewise.
70295         * tests/test-roundf1.c (roundf): Likewise.
70296         * tests/test-roundl.c (roundl): Likewise.
70297         * tests/test-setenv.c (setenv): Likewise.
70298         * tests/test-sigaction.c (sigaction): Likewise.
70299         * tests/test-sleep.c (sleep): Likewise.
70300         * tests/test-snprintf.c (snprintf): Likewise.
70301         * tests/test-sprintf-posix.c (sprintf): Likewise.
70302         * tests/test-stat.c (stat): Likewise.
70303         * tests/test-stpncpy.c (stpncpy): Likewise.
70304         * tests/test-strcasestr.c (strcasestr): Likewise.
70305         * tests/test-strchrnul.c (strchrnul): Likewise.
70306         * tests/test-strerror.c (strerror): Likewise.
70307         * tests/test-strsignal.c (strsignal): Likewise.
70308         * tests/test-strstr.c (strstr): Likewise.
70309         * tests/test-strtod.c (strtod): Likewise.
70310         * tests/test-strverscmp.c (strverscmp): Likewise.
70311         * tests/test-symlink.c (symlink): Likewise.
70312         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
70313         * tests/test-times.c (times): Likewise.
70314         * tests/test-trunc1.c (trunc): Likewise.
70315         * tests/test-truncf1.c (truncf): Likewise.
70316         * tests/test-truncl.c (truncl): Likewise.
70317         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
70318         Likewise.
70319         * tests/test-uname.c (uname): Likewise.
70320         * tests/test-unlink.c (unlink): Likewise.
70321         * tests/test-unlinkat.c (unlinkat): Likewise.
70322         * tests/test-unsetenv.c (unsetenv): Likewise.
70323         * tests/test-usleep.c (usleep): Likewise.
70324         * tests/test-utimensat.c (utimensat): Likewise.
70325         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
70326         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
70327         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
70328         * tests/test-vprintf-posix.c (vprintf): Likewise.
70329         * tests/test-vsnprintf.c (vsnprintf): Likewise.
70330         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
70331         * tests/test-wcrtomb.c (wcrtomb): Likewise.
70332         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
70333         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
70334         * tests/test-wcwidth.c (wcwidth): Likewise.
70336         build: pull in conditional headers during GNULIB_POSIXCHECK
70337         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
70338         definitions from any conditionally-included headers.
70339         * lib/stdlib.in.h (includes): Likewise.
70340         * lib/unistd.in.h (includes): Likewise.
70342 2009-12-24  Bruno Haible  <bruno@clisp.org>
70344         * tests/test-argv-iter.c: Include header file being tested immediately
70345         after config.h.
70346         * tests/test-base64.c: Likewise.
70347         * tests/test-flock.c: Likewise.
70348         * tests/test-fsync.c: Likewise.
70349         * tests/test-getdate.c: Likewise.
70350         * tests/test-getndelim2.c: Likewise.
70351         * tests/test-isfinite.c: Likewise.
70352         * tests/test-isinf.c: Likewise.
70353         * tests/test-strerror.c: Likewise.
70354         * tests/test-strsignal.c: Likewise.
70356 2009-12-23  Eric Blake  <ebb9@byu.net>
70358         unistd: work around cygwin bug
70359         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
70360         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
70361         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
70363 2009-12-23  Bruno Haible  <bruno@clisp.org>
70365         localename: More tests.
70366         * tests/test-localename.c (SIZEOF): New macro.
70367         (categories): New variable.
70368         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
70369         test_locale_name_default): Add test w.r.t. thread locale.
70370         (test_locale_name_thread): New function.
70371         (main): Invoke it.
70373         localename: Make aware of thread locale.
70374         * lib/localename.h (gl_locale_name_thread): New declaration.
70375         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
70376         behaviour with respect to thread locale.
70377         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
70378         <langinfo.h>, glthread/lock.h.
70379         (SIZE_BITS): New macro.
70380         (string_hash): New function.
70381         (struct hash_node): New type.
70382         (HASH_TABLE_SIZE): New macro.
70383         (struniq_hash_table, struniq_lock): New variables.
70384         (struniq): New function.
70385         (gl_locale_name_thread): New function.
70386         (gl_locale_name): Invoke it.
70387         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
70388         * modules/localename (Depends-on): Add lock.
70389         Reported by Mike Gran <spk121@yahoo.com>.
70391 2009-12-23  Eric Blake  <ebb9@byu.net>
70393         va-args: new module
70394         * modules/va-args: New file.
70395         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
70396         * MODULES.html.sh (Core language properties): Mention it.
70398         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
70399         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
70400         named alias for __attribute__((__unused__)).
70401         * lib/chown.c: Update client.
70402         * lib/fchmodat.c: Likewise.
70403         * lib/fts.c: Likewise.
70404         * lib/getdate.y: Likewise.
70405         * lib/getgroups.c: Likewise.
70406         * lib/getopt.c: Likewise.
70407         * lib/getugroups.c: Likewise.
70408         * lib/mkdir.c: Likewise.
70409         * lib/mkfifo.c: Likewise.
70410         * lib/mkfifoat.c: Likewise.
70411         * lib/mknod.c: Likewise.
70412         * lib/mknodat.c: Likewise.
70413         * lib/readlink.c: Likewise.
70414         * lib/se-context.in.h: Likewise.
70415         * lib/se-selinux.in.h: Likewise.
70416         * lib/sockets.c: Likewise.
70417         * lib/symlink.c: Likewise.
70418         * lib/symlinkat.c: Likewise.
70419         * lib/unicodeio.c: Likewise.
70420         * lib/unistr.h: Likewise.
70421         * tests/test-areadlink.c: Likewise.
70422         * tests/test-areadlinkat.c: Likewise.
70423         * tests/test-filenamecat.c: Likewise.
70424         * tests/test-fseeko.c: Likewise.
70425         * tests/test-ftello.c: Likewise.
70426         * tests/test-getdate.c: Likewise.
70427         * tests/test-getgroups.c: Likewise.
70428         * tests/test-gethostname.c: Likewise.
70429         * tests/test-quotearg.c: Likewise.
70430         * tests/test-version-etc.c: Likewise.
70431         * tests/test-xalloc-die.c: Likewise.
70432         * tests/test-xfprintf-posix.c: Likewise.
70433         * tests/test-xprintf-posix.c: Likewise.
70434         * tests/test-xvasprintf.c: Likewise.
70436         tests: avoid compiler warnings
70437         * tests/test-fcntl.c (main): Delete unused parameters.
70438         * tests/test-freopen-safer.c (main): Likewise.
70439         * tests/test-xalloc-die.c (main): Mark unused parameters.
70440         * tests/test-fseeko.c (main): Likewise.
70441         * tests/test-ftello.c (main): Likewise.
70442         * tests/test-nanosleep.c (main): Avoid declaration warning.
70443         * tests/test-sleep.c (main): Likewise.
70444         * tests/test-unsetenv.c (main): Silence warning about string
70445         literal.
70446         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
70448 2009-12-23  Bruno Haible  <bruno@clisp.org>
70450         * tests/test-localename.c (test_locale_name): New function, extracted
70451         from main. Also test mixed situations.
70452         (test_locale_name_posix, test_locale_name_environ,
70453         test_locale_name_default): New functions.
70454         (main): Invoke them all.
70455         * modules/localename-tests (configure.ac): Test for newlocale.
70457 2009-12-23  Bruno Haible  <bruno@clisp.org>
70459         unistd: Ensure getcwd gets declared before being overridden.
70460         * lib/unistd.in.h: Conditionally include <io.h>.
70462 2009-12-22  Bruno Haible  <bruno@clisp.org>
70464         wchar: Diagnose broken combination of glibc and gcc versions and flags.
70465         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
70466         (gl_WCHAR_H): Invoke it.
70467         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
70468         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
70469         Reported by Karl Berry <karl@freefriends.org>.
70471 2009-12-22  Eric Blake  <ebb9@byu.net>
70473         math, unistd: avoid redundant includes
70474         * lib/math.in.h (isnan): No need to re-include <math.h>.
70475         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
70477         getsubopt: work around cygwin bug
70478         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
70479         avoid conflicting with system getsubopt.
70480         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
70481         bug.
70483         getopt: synchronize from glibc
70484         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
70485         parameter order.  Adjust all callers.
70486         (_getopt_internal_r, main): Adjust quoting in error messages.
70487         Drop considerations for outdated POSIX 1003.2 error message.
70488         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
70489         callers.
70490         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
70492         test-getopt: test stderr behavior
70493         * modules/getopt-posix-tests (Depends-on): Add dup2.
70494         * tests/test-getopt.c (ASSERT): Avoid stderr.
70495         (main): Move stderr to a temporary file.
70496         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
70497         Instead, add parameter to inform caller if output occurred.
70498         (test_getopt): Adjust all existing tests to expect silence, and
70499         add new tests of leading ":".
70500         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
70501         glibc shortcomings with leading "-:" or "+:" in optstring.
70502         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70503         Likewise.
70504         * doc/posix-functions/getopt.texi (getopt): Likewise.
70506         test-getopt: enhance test
70507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
70508         supports optind=0.
70509         * tests/test-getopt.c (OPTIND_MIN): Move...
70510         * tests/test-getopt.h (OPTIND_MIN): ...here.
70511         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
70512         Require that optind=0 works, since modern BSD supports it in
70513         addition to optreset, and since coreutils expects it.
70514         (test_getopt_long_only): New test.
70515         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
70516         glibc shortcomings with 'W;', and enforcement of optind=0.
70517         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70518         Likewise.
70520 2009-12-21  Bruno Haible  <bruno@clisp.org>
70522         localename: Improvements for MacOS X and Cygwin.
70523         * lib/localename.h (gl_locale_name_environ): New declaration.
70524         * lib/localename.c (gl_locale_name_environ): New function, extracted from
70525         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
70526         (gl_locale_name_posix): Invoke it.
70527         (gl_locale_name_default): Add comments. Use Windows native API also on
70528         Cygwin.
70530 2009-12-21  Bruno Haible  <bruno@clisp.org>
70532         Update list of Win32 locale ids.
70533         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
70534         (LANG_SAMI): Renamed from LANG_SAAMI.
70535         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
70536         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
70537         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
70538         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
70539         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
70540         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
70541         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
70542         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
70543         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
70544         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
70545         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
70546         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
70547         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
70548         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
70549         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
70550         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
70551         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
70552         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
70553         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
70554         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
70555         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
70556         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
70557         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
70558         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
70559         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
70560         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
70561         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
70562         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
70563         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
70564         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
70565         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
70566         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
70567         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
70568         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
70569         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
70570         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
70571         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
70572         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
70573         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
70574         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
70575         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
70576         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
70577         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
70578         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
70579         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
70580         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
70581         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
70582         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
70583         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
70584         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
70585         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
70586         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
70587         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
70588         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
70589         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
70590         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
70591         Add more languages and countries for Sami, Sorbian. Add more countries
70592         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
70593         for Pashto. Change country for Syriac, Tswana.
70595 2009-12-21  Eric Blake  <ebb9@byu.net>
70597         test-utimens: avoid spurious failure
70598         * tests/test-chown.h (nap): Factor...
70599         * tests/nap.h: ...into new file.
70600         * tests/test-lchown.h (nap): Avoid duplication.
70601         * tests/test-utimens-common.h (nap): Use shared implementation,
70602         necessary on file systems with 1-second resolution.
70603         * modules/chown-tests (Files): Include new file.
70604         * modules/fdutimensat-tests (Files): Likewise.
70605         * modules/futimens-tests (Files): Likewise.
70606         * modules/lchown-tests (Files): Likewise.
70607         * modules/openat-tests (Files): Likewise.
70608         * modules/utimens-tests (Files): Likewise.
70609         * modules/utimensat-tests (Files): Likewise.
70611 2009-12-19  Eric Blake  <ebb9@byu.net>
70613         futimens, utimensat: work around Linux bug
70614         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
70615         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70616         * lib/utimensat.c (rpl_utimensat): Work around it.
70617         * lib/futimens.c (rpl_futimens): Adjust comment.
70619         utimens: work around Linux ctime bug
70620         * lib/utimens.c (detect_ctime_bug): New helper function.
70621         (update_timespec): Differentiate between workaround needed for
70622         this bug vs. what is needed for systems that lack utimensat.
70623         (fdutimens, lutimens): Work around bug.
70625         utimens: check for ctime update
70626         * tests/test-utimens-common.h (check_ctime): Define.
70627         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
70628         * tests/test-futimens.h (test_futimens): Likewise.
70629         * tests/test-lutimens.h (test_lutimens): Likewise.
70630         * doc/posix-functions/futimens.texi (futimens): Document the bug.
70631         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70633 2009-12-19  Bruno Haible  <bruno@clisp.org>
70635         dprintf-posix: Check against memory leak fixed on 2009-12-15.
70636         * tests/test-dprintf-posix2.sh: New file.
70637         * tests/test-dprintf-posix2.c: New file.
70638         * modules/dprintf-posix-tests (Files): Add them.
70639         (configure.ac): Check for getrlimit and setrlimit.
70640         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
70642 2009-12-19  Bruno Haible  <bruno@clisp.org>
70644         fprintf-posix: Check against memory leak fixed on 2009-12-15.
70645         * tests/test-fprintf-posix3.sh: New file.
70646         * tests/test-fprintf-posix3.c: New file.
70647         * modules/fprintf-posix-tests (Files): Add them.
70648         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
70650 2009-12-19  Eric Blake  <ebb9@byu.net>
70652         dirfd: fix prototype
70653         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
70654         * lib/dirfd.c (dirfd): Likewise.
70656         canonicalize: reduce memory usage
70657         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
70658         allocation to size.
70659         Reported by Solar Designer <solar@openwall.com>.
70661 2009-12-19  Bruno Haible  <bruno@clisp.org>
70663         New module attribute 'Applicability'.
70664         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
70665         * gnulib-tool: New option --extract-applicability.
70666         (func_usage): Document it.
70667         (sed_extract_prog): Recognize it.
70668         (func_get_applicability): New function.
70669         (func_import): Generalize handling of 'link-warning' module.
70670         * modules/link-warning (Applicability): New section.
70671         * modules/arg-nonnull (Applicability): New section.
70672         Repoted by Simon Josefsson <simon@josefsson.org>.
70674 2009-12-19  Bruno Haible  <bruno@clisp.org>
70676         fflush: tweak
70677         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
70678         * lib/fseeko.c (rpl_fseeko): Likewise.
70680 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
70682         * lib/gl_list.h: Fix typo in comment.
70684 2009-12-16  Eric Blake  <ebb9@byu.net>
70686         fcntl: use to simplify other modules
70687         * modules/cloexec (Depends-on): Add fcntl.
70688         * modules/fchdir (Depends-on): Likewise.
70689         * modules/fd-safer-flag (Depends-on): Likewise.
70690         * modules/unistd-safer (Depends-on): Likewise.
70691         * modules/dup3 (configure.ac): Set module indicator.
70692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
70693         missing.
70694         * lib/fchdir.c (_gl_register_dup): Fix comment.
70695         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
70696         * lib/dup-safer.c (dup_safer): Likewise.
70697         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
70698         * lib/dup3.c (dup3): Likewise.
70699         * tests/test-fchdir.c (main): Enhance test.
70700         Fixes a dup_cloexec bug reported by Ondřej Vašík.
70702         fcntl: port portions of fcntl to mingw
70703         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
70704         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
70705         replacement for mingw.
70706         * modules/fcntl (Description): Update.
70707         (Depends-on): Add dup2.
70708         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
70709         * modules/fcntl-h (Makefile.am): Substitute it.
70710         * lib/fcntl.in.h (fcntl): Update declaration.
70711         (F_DUPFD, F_GETFD): New macros, when needed.
70712         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
70713         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
70714         * tests/test-fcntl.c (check_flags, main): Enhance test for items
70715         we now guarantee.
70717         fcntl: work around cygwin bug in F_DUPFD
70718         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
70719         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
70720         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
70721         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
70722         * doc/posix-functions/fcntl.texi (fcntl): Document it.
70724         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
70725         * modules/fcntl (Files): List new files.
70726         (configure.ac): Run a test.
70727         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
70728         * lib/fcntl.c (rpl_fcntl): Likewise.
70729         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
70730         (gl_FCNTL_H): Always replace fcntl.h.
70731         * modules/fcntl-h (Makefile.am): Substitute witnesses.
70732         * lib/fcntl.in.h (fcntl): Declare replacement.
70733         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
70734         needed, plus a witness.
70735         * doc/posix-functions/fcntl.texi (fcntl): Document this.
70736         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
70737         * tests/test-fcntl.c: New file.
70738         * modules/fcntl-tests: Likewise.
70740         binary-io: avoid potential compilation warning
70741         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
70742         directives.
70744         fflush: avoid compilation error on NetBSD
70745         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
70746         between off_t and fpos_t, since the latter is sometimes a struct.
70747         * lib/fseeko.c (rpl_fseeko): Likewise.
70748         Reported by Alexander Nasonov <alnsn@yandex.ru>.
70750 2009-12-15  Eric Blake  <ebb9@byu.net>
70752         fcntl-h, stdio, sys_ioctl: fix declarations
70753         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
70754         function must not take arguments.
70755         * lib/sys_ioctl.in.h (ioctl): Likewise.
70756         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
70757         (open): Add a link warning.
70759 2009-12-15  Jim Meyering  <meyering@redhat.com>
70761         areadlink, areadlink-with-size: relax license to LGPLv2+
70762         * modules/areadlink (License): Relax to LGPLv2+.
70763         * modules/areadlink-with-size (License): Likewise.
70765 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
70766             Bruno Haible  <bruno@clisp.org>
70768         *printf: Fix memory leak.
70769         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
70770         * lib/vfprintf.c (vfprintf): Likewise.
70771         * lib/dprintf.c (dprintf): Likewise.
70772         * lib/vdprintf.c (vdprintf): Likewise.
70774 2009-12-14  Eric Blake  <ebb9@byu.net>
70776         accept4: adjust module dependencies
70777         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
70779         utimens: one more try at avoiding compiler warning
70780         * lib/utimens.c (lutimens): Lower scope of result.
70782 2009-12-13  Bruno Haible  <bruno@clisp.org>
70784         Move the malloc checking from module 'list' to new module 'xlist'.
70785         * modules/xlist: New file.
70786         * lib/gl_xlist.h: New file.
70787         * lib/gl_xlist.c: New file.
70788         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
70789         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
70790         gl_list_add_last, gl_list_add_before, gl_list_add_after,
70791         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
70792         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
70793         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
70794         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
70795         gl_sortedlist_nx_add): New declarations.
70796         (struct gl_list_implementation): Rename and change methods accordingly.
70797         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
70798         (gl_list_nx_create): Renamed from gl_list_create.
70799         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
70800         (gl_list_nx_set_at): Renamed from gl_list_set_at.
70801         (gl_list_nx_add_first): Renamed from gl_list_add_first.
70802         (gl_list_nx_add_last): Renamed from gl_list_add_last.
70803         (gl_list_nx_add_before): Renamed from gl_list_add_before.
70804         (gl_list_nx_add_after): Renamed from gl_list_add_after.
70805         (gl_list_nx_add_at): Renamed from gl_list_add_at.
70806         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
70807         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
70808         gl_list_create_empty.
70809         (gl_list_nx_create): Renamed from gl_list_create.
70810         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
70811         (gl_list_nx_set_at): Renamed from gl_list_set_at.
70812         (gl_list_nx_add_first): Renamed from gl_list_add_first.
70813         (gl_list_nx_add_last): Renamed from gl_list_add_last.
70814         (gl_list_nx_add_before): Renamed from gl_list_add_before.
70815         (gl_list_nx_add_after): Renamed from gl_list_add_after.
70816         (gl_list_nx_add_at): Renamed from gl_list_add_at.
70817         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
70818         * lib/gl_array_list.c: Don't include xalloc.h.
70819         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
70820         NULL upon out-of-memory.
70821         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
70822         out-of-memory.
70823         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
70824         Change return type to 'int'.
70825         (gl_array_nx_set_at): Renamed from gl_array_set_at.
70826         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
70827         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
70828         upon out-of-memory.
70829         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
70830         upon out-of-memory.
70831         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
70832         upon out-of-memory.
70833         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
70834         upon out-of-memory.
70835         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
70836         out-of-memory.
70837         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
70838         Update.
70839         (gl_array_list_implementation): Update.
70840         * lib/gl_carray_list.c: Don't include xalloc.h.
70841         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
70842         Return NULL upon out-of-memory.
70843         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
70844         out-of-memory.
70845         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
70846         Change return type to 'int'.
70847         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
70848         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
70849         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
70850         upon out-of-memory.
70851         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
70852         upon out-of-memory.
70853         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
70854         out-of-memory.
70855         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
70856         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
70857         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
70858         Update.
70859         (gl_carray_list_implementation): Update.
70860         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
70861         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
70862         gl_linked_create_empty. Return NULL upon out-of-memory.
70863         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
70864         out-of-memory.
70865         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
70866         Change return type to 'int'. Return -1 upon out-of-memory.
70867         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
70868         out-of-memory.
70869         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
70870         upon out-of-memory.
70871         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
70872         upon out-of-memory.
70873         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
70874         NULL upon out-of-memory.
70875         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
70876         upon out-of-memory.
70877         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
70878         out-of-memory.
70879         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
70880         Update.
70881         * lib/gl_linked_list.c: Don't include xalloc.h.
70882         (gl_linked_list_implementation): Update.
70883         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
70884         (add_to_bucket): Change return type to 'int'.
70885         (gl_linkedhash_list_implementation): Update.
70886         * lib/gl_anytree_list1.h (free_subtree): New function.
70887         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
70888         gl_tree_create_empty. Return NULL upon out-of-memory.
70889         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
70890         Change return type to 'int'. Return -1 upon out-of-memory.
70891         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
70892         out-of-memory.
70893         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
70894         (gl_tree_remove_node): New function, moved here from
70895         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
70896         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
70897         Update.
70898         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
70899         malloc, not xmalloc. Return NULL upon out-of-memory.
70900         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
70901         out-of-memory.
70902         (gl_tree_remove_node_from_tree): New function, extracted from
70903         gl_tree_remove_node.
70904         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
70905         upon out-of-memory.
70906         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
70907         out-of-memory.
70908         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
70909         upon out-of-memory.
70910         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
70911         upon out-of-memory.
70912         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
70913         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
70914         not xmalloc. Return NULL upon out-of-memory.
70915         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
70916         out-of-memory.
70917         (gl_tree_remove_node_from_tree): New function, extracted from
70918         gl_tree_remove_node.
70919         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
70920         upon out-of-memory.
70921         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
70922         out-of-memory.
70923         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
70924         upon out-of-memory.
70925         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
70926         upon out-of-memory.
70927         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
70928         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
70929         gl_anytree_list1.h before gl_anyavltree_list2.h.
70930         (gl_avltree_list_implementation): Update.
70931         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
70932         gl_anytree_list1.h before gl_anyavltree_list2.h.
70933         (gl_rbtree_list_implementation): Update.
70934         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
70935         Change return type to 'int'. Return -1 upon out-of-memory. Use
70936         __builtin_expect.
70937         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
70938         (gl_avltreehash_list_implementation): Update.
70939         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
70940         (gl_rbtreehash_list_implementation): Update.
70941         * modules/array-list (Depends-on): Remove xalloc.
70942         * modules/carray-list (Depends-on): Likewise.
70943         * modules/linked-list (Depends-on): Likewise.
70944         * modules/linkedhash-list (Depends-on): Likewise.
70945         * modules/avltree-list (Depends-on): Likewise.
70946         * modules/rbtree-list (Depends-on): Likewise.
70947         * modules/avltreehash-list (Depends-on): Likewise.
70948         * modules/rbtreehash-list (Depends-on): Likewise.
70950         * modules/xsublist: New file.
70951         * lib/gl_xsublist.h: New file.
70952         * lib/gl_xsublist.c: New file.
70953         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
70954         (gl_sublist_nx_create): New declaration.
70955         * lib/gl_sublist.c: Don't include xalloc.h.
70956         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
70957         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
70958         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
70959         Change return type to 'int'. Return -1 upon out-of-memory.
70960         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
70961         upon out-of-memory.
70962         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
70963         NULL upon out-of-memory.
70964         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
70965         upon out-of-memory.
70966         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
70967         NULL upon out-of-memory.
70968         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
70969         NULL upon out-of-memory.
70970         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
70971         upon out-of-memory.
70972         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
70973         (gl_sublist_list_implementation): Update.
70974         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
70975         upon out-of-memory.
70976         * modules/sublist (Depends-on): Remove xalloc.
70978         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
70979         * tests/test-carray_list.c: Likewise.
70980         * tests/test-linked_list.c: Likewise.
70981         * tests/test-linkedhash_list.c: Likewise.
70982         * tests/test-avltree_list.c: Likewise.
70983         * tests/test-rbtree_list.c: Likewise.
70984         * tests/test-avltreehash_list.c: Likewise.
70985         * tests/test-rbtreehash_list.c: Likewise.
70986         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
70987         * modules/carray-list-tests (Makefile.am): Likewise.
70988         * modules/linked-list-tests (Makefile.am): Likewise.
70989         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70990         * modules/avltree-list-tests (Makefile.am): Likewise.
70991         * modules/rbtree-list-tests (Makefile.am): Likewise.
70992         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70993         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70995         * NEWS: Mention the changes.
70997         * lib/clean-temp.c: Include gl_xlist.h.
70998         * modules/clean-temp (Depends-on): Add xlist.
71000         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
71001         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
71003         * tests/test-array_oset.c: Include gl_xlist.h.
71004         * modules/array-oset-tests (Depends-on): Add xlist.
71006         Reported by José E. Marchesi <jemarch@gnu.org>.
71008 2009-12-13  Bruno Haible  <bruno@clisp.org>
71010         Move the malloc checking from module 'oset' to new module 'xoset'.
71011         * modules/xoset: New file.
71012         * lib/gl_xoset.h: New file.
71013         * lib/gl_xoset.c: New file.
71014         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
71015         declarations.
71016         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
71017         (struct gl_oset_implementation): Rename and change methods accordingly.
71018         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
71019         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
71020         'int'. Mark as __warn_unused_result__.
71021         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
71022         gl_oset_create_empty.
71023         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
71024         'int'.
71025         * lib/gl_array_oset.c: Don't include xalloc.h.
71026         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
71027         malloc, not xmalloc.
71028         (grow): Change return type to 'int'. Don't call xalloc_die.
71029         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
71030         to 'int'.
71031         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
71032         'int'.
71033         (gl_array_oset_implementation): Update.
71034         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
71035         gl_tree_create_empty.
71036         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
71037         'int'.
71038         * lib/gl_avltree_oset.c: Don't include xalloc.h.
71039         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
71040         xmalloc.
71041         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
71042         not xmalloc.
71043         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
71044         xmalloc.
71045         (gl_avltree_oset_implementation): Update.
71046         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
71047         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
71048         xmalloc.
71049         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
71050         not xmalloc.
71051         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
71052         xmalloc.
71053         (gl_rbtree_oset_implementation): Update.
71054         * modules/array-oset (Depends-on): Remove xalloc.
71055         * modules/avltree-oset (Depends-on): Likewise.
71056         * modules/rbtree-oset (Depends-on): Likewise.
71057         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
71058         * tests/test-avltree_oset.c: Likewise.
71059         * tests/test-rbtree_oset.c: Likewise.
71060         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71061         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
71062         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71063         * NEWS: Mention the change.
71065 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
71067         maint.mk: allow a project to override release-prep commands
71068         * top/maint.mk (alpha, beta, stable): Move release-preparatory
71069         commands into a new rule.
71070         (release-prep): New rule.
71071         (release-prep-hook): New overridable variable.
71073 2009-12-13  Bruno Haible  <bruno@clisp.org>
71075         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
71077 2009-12-13  Jim Meyering  <meyering@redhat.com>
71079         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
71080         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
71082 2009-12-12  Bruno Haible  <bruno@clisp.org>
71084         duplocale: Tweak.
71085         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
71087 2009-12-12  Karl Berry  <karl@gnu.org>
71089         * config/srclist.txt (strtoll.c): tab changes, no more sync.
71091 2009-12-12  Bruno Haible  <bruno@clisp.org>
71093         * m4/po.m4: Undo incorrect untabification.
71095 2009-12-12  Bruno Haible  <bruno@clisp.org>
71097         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
71098         * modules/c-strtod (Depends-on): Add locale.
71099         * modules/c-strtold (Depends-on): Likewise.
71101 2009-12-12  Bruno Haible  <bruno@clisp.org>
71103         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
71105 2009-12-11  Eric Blake  <ebb9@byu.net>
71107         setenv: relax requirement in light of POSIX ruling
71108         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
71109         not NULL.
71110         * tests/test-setenv.c (main): Relax test.
71111         * tests/test-unsetenv.c (main): Likewise.
71112         * doc/posix-functions/setenv.texi (setenv): Document this.
71113         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
71115 2009-12-11  Bruno Haible  <bruno@clisp.org>
71117         New module 'fd-safer-flag'.
71118         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
71119         * lib/dup-safer.c (dup_safer_flag): Remove function.
71120         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
71121         * lib/fd-safer.c (fd_safer_flag): Remove function.
71122         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
71123         * modules/cloexec (configure.ac): Drop indicator macro.
71124         * modules/fd-safer-flag: New file.
71125         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
71126         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
71127         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
71129 2009-12-11  Bruno Haible  <bruno@clisp.org>
71131         Tests for module 'nl_langinfo'.
71132         * modules/nl_langinfo-tests: New file.
71133         * tests/test-nl_langinfo.sh: New file.
71134         * tests/test-nl_langinfo.c: New file.
71136         New module 'nl_langinfo'.
71137         * lib/nl_langinfo.c: New file.
71138         * m4/nl_langinfo.m4: New file.
71139         * modules/nl_langinfo: New file.
71140         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
71142 2009-12-11  Bruno Haible  <bruno@clisp.org>
71144         Tests for module 'langinfo'.
71145         * modules/langinfo-tests: New file.
71146         * tests/test-langinfo.c: New file.
71148         New module 'langinfo'.
71149         * lib/langinfo.in.h: New file.
71150         * m4/langinfo_h.m4: New file.
71151         * modules/langinfo: New file.
71152         * doc/posix-headers/langinfo.texi: Mention the new module.
71154 2009-12-11  Bruno Haible  <bruno@clisp.org>
71156         * lib/config.charset: Untabify.
71158 2009-12-11  Bruno Haible  <bruno@clisp.org>
71160         * modules/unistd-safer (configure.ac): Drop indicator macro.
71162 2009-12-11  Bruno Haible  <bruno@clisp.org>
71164         Move pipe2-safer code to its own file.
71165         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
71166         * lib/pipe-safer.c (pipe2_safer): Remove function.
71167         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
71168         (Makefile.am): Add it to lib_SOURCES.
71170 2009-12-10  Bruno Haible  <bruno@clisp.org>
71172         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
71174 2009-12-10  Bruno Haible  <bruno@clisp.org>
71176         Declare which arguments expect non-NULL values, for GCC and clang.
71177         * build-aux/arg-nonnull.h: New file.
71178         * modules/arg-nonnull: New file.
71179         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
71180         (inet_ntop, inet_pton): Use it.
71181         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
71182         (closedir, dirfd, opendir, scandir, alphasort): Use it.
71183         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
71184         (open, openat): Use it.
71185         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
71186         (fnmatch): Use it.
71187         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
71188         (getopt, getopt_long, getopt_long_only): Use it.
71189         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
71190         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
71191         Use it.
71192         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
71193         (iconv_open): Use it.
71194         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
71195         (strtoimax, strtoumax): Use it.
71196         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
71197         (duplocale): Use it.
71198         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
71199         (frexp, frexpl): Use it.
71200         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
71201         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
71202         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
71203         (tsearch, tfind, tdelete, twalk): Use it.
71204         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
71205         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71206         sigpending): Use it.
71207         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
71208         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71209         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71210         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71211         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71212         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71213         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71214         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71215         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71216         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71217         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71218         Use it.
71219         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
71220         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
71221         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
71222         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
71223         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
71224         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
71225         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
71226         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
71227         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
71228         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
71229         strtoull, unsetenv): Use it.
71230         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
71231         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71232         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71233         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
71234         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
71235         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
71236         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
71237         (strcasecmp, strncasecmp): Use it.
71238         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
71239         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
71240         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
71241         rpl_setsockopt): Use it.
71242         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
71243         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
71244         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
71245         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
71246         (gettimeofday): Use it.
71247         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
71248         (times): Use it.
71249         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
71250         (uname): Use it.
71251         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
71252         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
71253         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
71254         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
71255         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
71256         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
71257         unlinkat, write): Use it.
71258         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
71259         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
71260         * lib/argv-iter.h: Include arg-nonnull.h.
71261         (_ATTRIBUTE_NONNULL_): Remove macro.
71262         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
71263         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
71264         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
71265         optimization.
71266         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
71267         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
71268         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
71269         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
71270         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
71271         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
71272         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
71273         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
71274         * modules/arpa_inet (Depends-on): Add arg-nonnull.
71275         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
71276         * modules/dirent (Depends-on): Add arg-nonnull.
71277         (Makefile.am): Insert arg-nonnull.h into dirent.h.
71278         * modules/fcntl-h (Depends-on): Add arg-nonnull.
71279         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
71280         * modules/fnmatch (Depends-on): Add arg-nonnull.
71281         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
71282         * modules/getopt-posix (Depends-on): Add arg-nonnull.
71283         (Makefile.am): Insert arg-nonnull.h into getopt.h.
71284         * modules/glob (Depends-on): Add arg-nonnull.
71285         (Makefile.am): Insert arg-nonnull.h into glob.h.
71286         * modules/iconv_open (Depends-on): Add arg-nonnull.
71287         (Makefile.am): Insert arg-nonnull.h into iconv.h.
71288         * modules/inttypes (Depends-on): Add arg-nonnull.
71289         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
71290         * modules/locale (Depends-on): Add arg-nonnull.
71291         (Makefile.am): Insert arg-nonnull.h into locale.h.
71292         * modules/math (Depends-on): Add arg-nonnull.
71293         (Makefile.am): Insert arg-nonnull.h into math.h.
71294         * modules/netdb (Depends-on): Add arg-nonnull.
71295         (Makefile.am): Insert arg-nonnull.h into netdb.h.
71296         * modules/search (Depends-on): Add arg-nonnull.
71297         (Makefile.am): Insert arg-nonnull.h into search.h.
71298         * modules/signal (Depends-on): Add arg-nonnull.
71299         (Makefile.am): Insert arg-nonnull.h into signal.h.
71300         * modules/spawn (Depends-on): Add arg-nonnull.
71301         (Makefile.am): Insert arg-nonnull.h into spawn.h.
71302         * modules/stdio (Depends-on): Add arg-nonnull.
71303         (Makefile.am): Insert arg-nonnull.h into stdio.h.
71304         * modules/stdlib (Depends-on): Add arg-nonnull.
71305         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
71306         * modules/string (Depends-on): Add arg-nonnull.
71307         (Makefile.am): Insert arg-nonnull.h into string.h.
71308         * modules/strings (Depends-on): Add arg-nonnull.
71309         (Makefile.am): Insert arg-nonnull.h into strings.h.
71310         * modules/sys_socket (Depends-on): Add arg-nonnull.
71311         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
71312         * modules/sys_stat (Depends-on): Add arg-nonnull.
71313         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
71314         * modules/sys_time (Depends-on): Add arg-nonnull.
71315         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
71316         * modules/sys_times (Depends-on): Add arg-nonnull.
71317         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
71318         * modules/sys_utsname (Depends-on): Add arg-nonnull.
71319         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
71320         * modules/time (Depends-on): Add arg-nonnull.
71321         (Makefile.am): Insert arg-nonnull.h into time.h.
71322         * modules/unistd (Depends-on): Add arg-nonnull.
71323         (Makefile.am): Insert arg-nonnull.h into unistd.h.
71324         * modules/wchar (Depends-on): Add arg-nonnull.
71325         (Makefile.am): Insert arg-nonnull.h into wchar.h.
71326         * modules/argv-iter (Depends-on): Add arg-nonnull.
71327         * tests/test-canonicalize.c (null_ptr): New function.
71328         (main): Use it.
71329         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
71330         (main): Use it.
71331         * tests/test-memmem.c (null_ptr): New function.
71332         (main): Use it.
71333         Reported by Jim Meyering.
71335 2009-12-10  Bruno Haible  <bruno@clisp.org>
71337         Use spaces for indentation, not tabs.
71338         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
71339         * m4/*.m4: Untabify.
71340         * build-aux/*.h: Untabify.
71341         * tests/**/*.[hc]: Untabify.
71342         * README: New section "Indent with spaces, not TABs", based on
71343         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
71344         * NEWS: Mention the change.
71346 2009-12-10  Bruno Haible  <bruno@clisp.org>
71348         pty test: Fix link error.
71349         * modules/pty-tests (Makefile.am): Add the default LDADD value to
71350         test_pty_LDADD.
71352 2009-12-07  Simon Josefsson  <simon@josefsson.org>
71354         * modules/pty: New file.
71355         * modules/pty-tests: New file.
71356         * m4/pty.m4: New file.
71357         * tests/test-pty.c: New file.
71358         * doc/glibc-headers/pty.texi: Modified.
71359         * doc/glibc-functions/forkpty.texi: Modified.
71360         * doc/glibc-functions/openpty.texi: Modified.
71362 2009-12-10  Bruno Haible  <bruno@clisp.org>
71364         Avoid syntax error in C++ mode.
71365         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
71367 2009-12-10  Bruno Haible  <bruno@clisp.org>
71369         Use sed with option -e.
71370         * gnulib-tool (func_version, func_emit_copyright_notice,
71371         func_emit_initmacro_end, func_import, func_create_testdir): Pass
71372         option -e to sed.
71373         * modules/link-warning (Makefile.am): Likewise.
71375 2009-12-10  Jim Meyering  <meyering@redhat.com>
71377         mgetgroups: do not write bytes beyond end of malloc'd buffer
71378         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
71379         username, we call getgroups with a one-element-shorter buffer,
71380         but still told it the length was original, max_n_groups.
71382 2009-12-09  Eric Blake  <ebb9@byu.net>
71384         cloexec: relax license
71385         * modules/cloexec (Maintainer): Add myself.
71386         (License): Use LGPL, not GPL.
71388         link-warning: optimize generation
71389         * modules/link-warning (Makefile.am): Reduce process usage.
71391 2009-12-09  Bruno Haible  <bruno@clisp.org>
71393         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
71394         workaround was added on 2009-11-17.
71396 2009-12-09  Jim Meyering  <meyering@redhat.com>
71397             Bruno Haible  <bruno@clisp.org>
71399         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
71400         * modules/link-warning (Makefile.am): Make the comment-removing sed
71401         command more robust in the face of bootstrap-prepended comment lines.
71403 2009-12-09  Bruno Haible  <bruno@clisp.org>
71405         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
71406         most one group.
71408 2009-12-09  Simon Josefsson  <simon@josefsson.org>
71409             Bruno Haible  <bruno@clisp.org>
71411         * build-aux/link-warning.h: Add copyright notice.
71412         * modules/link-warning (Makefile.am): Generate link-warning.h from
71413         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
71414         * NEWS: Mention change in link-warning module.
71415         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
71416         * modules/dirent (Makefile.am): Add dependency to dirent.h.
71417         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
71418         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
71419         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
71420         * modules/math (Makefile.am): Add dependency to math.h.
71421         * modules/search (Makefile.am): Add dependency to search.h.
71422         * modules/signal (Makefile.am): Add dependency to signal.h.
71423         * modules/spawn (Makefile.am): Add dependency to spawn.h.
71424         * modules/stdio (Makefile.am): Add dependency to stdio.h.
71425         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
71426         * modules/string (Makefile.am): Add dependency to string.h.
71427         * modules/strings (Makefile.am): Add dependency to strings.h.
71428         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
71429         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
71430         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
71431         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
71432         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
71433         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
71434         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
71435         * modules/unistd (Makefile.am): Add dependency to unistd.h.
71436         * modules/wchar (Makefile.am): Add dependency to wchar.h.
71438 2009-12-09  Bruno Haible  <bruno@clisp.org>
71440         fchdir: Optimize away rpl_fstat when possible.
71441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
71442         REPLACE_OPEN_DIRECTORY.
71443         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
71445 2009-12-09  Bruno Haible  <bruno@clisp.org>
71447         * lib/fchdir.c: Update comment.
71449 2009-12-09  Bruno Haible  <bruno@clisp.org>
71451         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
71453 2009-12-08  Eric Blake  <ebb9@byu.net>
71455         fchdir: avoid memory leak on re-registration.
71456         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
71458 2009-12-08  Jim Meyering  <meyering@redhat.com>
71460         init.sh: avoid Solaris 10 /bin/sh portability problem
71461         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
71462         sourced script:
71463           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
71464           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
71465           bar
71466         tests/init.sh relied on that, accepting a --set-path=DIR argument,
71467         and two tests used that idiom.
71468         * tests/init.sh: Update suggested usage comments.
71469         (path_prepend_): New function, to be used in place
71470         of the --src-path=DIR option.
71471         (setup_): Move PATH-prepending code into path_prepend_.
71472         * tests/test-pread.sh: Adapt to new usage.
71473         * tests/test-xalloc-die.sh: Likewise.
71475 2009-12-08  Simon Josefsson  <simon@josefsson.org>
71477         * doc/gnulib.texi (Glibc pty.h): Add.
71478         * doc/glibc-functions/forkpty.texi: Add.
71479         * doc/glibc-functions/openpty.texi: Add.
71480         Suggested by Bruno Haible.
71482 2009-12-08  Eric Blake  <ebb9@byu.net>
71484         fchdir: fix logic bugs
71485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
71486         * tests/test-fchdir.c (main): Enhance test.
71487         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
71488         is in use.
71490         dup2: fix logic bugs
71491         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
71492         REPLACE_DUP2 to decide when rpl_dup2 is needed.
71493         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
71494         exists.
71495         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
71497 2009-12-07  Eric Blake  <ebb9@byu.net>
71499         unlink: fix m4 detection
71500         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
71502         unistd-safer: add unit test
71503         * modules/unistd-safer-tests: New file.
71504         * tests/test-dup-safer.c: Likewise.
71505         * tests/test-cloexec.c (setmode): Avoid compiler warning.
71506         * tests/test-dup2.c (setmode): Likewise.
71507         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
71509         cloexec: preserve text vs. binary across dup_cloexec
71510         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
71511         mode.
71512         * modules/dup2-tests (Depends-on): Add binary-io.
71513         * modules/cloexec-tests (Depends-on): Likewise.
71514         * tests/test-dup2.c (setmode, is_mode): New helpers.
71515         (main): Add tests that translation mode is preserved.
71516         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
71517         Reported by Bruno Haible.
71519         mgetgroups: reduce duplicate listings
71520         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
71521         resulting array.
71522         * tests/test-chown.h (test_chown): Simplify client.
71523         * tests/test-lchown.h (test_lchown): Likewise.
71525 2009-12-06  Bruno Haible  <bruno@clisp.org>
71527         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
71528         value.
71530 2009-12-06  Bruno Haible  <bruno@clisp.org>
71532         * lib/progname.c: Include stdio.h, stdlib.h.
71533         (set_program_name): Reject a NULL argument.
71535 2009-12-05  Eric Blake  <ebb9@byu.net>
71537         pipe2-safer: new module
71538         * modules/pipe2-safer: New file.
71539         * lib/unistd-safer.h (pipe2_safer): New prototype.
71540         * lib/unistd--.h (pipe2): New wrapper.
71541         * lib/pipe-safer.c (pipe2_safer): New function.
71542         * modules/pipe (Depends-on): Add pipe2-safer.
71543         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
71545         stdlib-safer: preserve cloexec flag for mkostemp[s]
71546         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
71547         fd_safer_flag.
71549         unistd-safer: allow preservation of cloexec status via flag
71550         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
71551         prototypes.
71552         * lib/dup-safer.c (dup_safer_flag): New function.
71553         * lib/fd-safer.c (fd_safer_flag): Likewise.
71554         * modules/cloexec (configure.ac): Set witness.
71556         test-dup2: enhance test
71557         * modules/dup2-tests (Depends-on): Add cloexec.
71558         * tests/test-dup2.c (main): Enhance test.
71560         cloexec: add dup_cloexec
71561         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
71562         header and comments.
71563         * lib/cloexec.c (set_cloexec_flag): Add comments.
71564         (dup_cloexec): New function, with mingw implementation borrowed
71565         from...
71566         * lib/w32spawn.h (dup_noinherit): ...here.
71567         * modules/execute (Depends-on): Add cloexec.
71568         * modules/pipe (Depends-on): Likewise.
71569         * modules/cloexec (Depends-on): Add dup2.
71570         * modules/cloexec-tests (Files): New file.
71571         * tests/test-cloexec.c: Likewise.
71573         test-xalloc-die: fix test for mingw
71574         * modules/xalloc-die-tests (Files): Add tests/init.sh.
71575         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
71576         directory and .exe suffix off argv[0] output.
71578         test-fseeko: fix test for mingw
71579         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
71580         than undefining fseek, so test will pass on mingw.
71582 2009-12-05  Bruno Haible  <bruno@clisp.org>
71584         * lib/progname.h (set_program_name): Clarify specification.
71585         * lib/progname.c (set_program_name): Likewise.
71586         Reported by Jim Meyering.
71588 2009-12-05  Jim Meyering  <meyering@redhat.com>
71590         maint.mk: backslash-escape parens in default regexp
71591         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
71592         backslash-escape the literal parentheses.
71594         maint.mk: news-date-check: use grep -E
71595         * top/maint.mk (today): Define a Make variable, not a...
71596         (news-date-check): ...shell variable.
71597         (news-date-regexp): Use the Make variable.
71598         Use grep's -E option.  Change the failing diagnostic to mention
71599         the variable, $(news-date-regexp).
71601 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
71603         maintainer-makefile: allow customization of NEWS entry format
71604         * top/maint.mk (news-date-regexp): New overridable variable.
71605         (news-date-check): Use it.
71607 2009-12-04  Eric Blake  <ebb9@byu.net>
71609         mgetgroups: add xgetgroups, and avoid ENOSYS failures
71610         * lib/mgetgroups.h (xgetgroups): New prototype.
71611         * lib/mgetgroups.c (xgetgroups): New wrapper.
71612         (mgetgroups): Handle ENOSYS.
71613         * modules/mgetgroups (Depends-on): Add realloc.
71614         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
71616         mgetgroups: avoid argument promotion issues with -1
71617         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
71618         for invalid gid_t.
71619         * tests/test-chown.h (getegid, test_chown): Likewise.
71620         * tests/test-lchown.h (getegid, test_lchown): Likewise.
71622 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
71624         exclude: Fix header file problems.
71625         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
71627 2009-12-01  Jim Meyering  <meyering@redhat.com>
71629         fts: fts_open: do not let an empty string cause immediate failure
71630         This is required in support of GNU rm, for which the command
71631         "rm A '' B" must process and remove both A and B, in spite of
71632         the empty string argument.
71633         * lib/fts.c (fts_open): Do not let the presence of an empty string
71634         cause fts_open to fail immediately.  Most fts-using tools must be
71635         able to process all arguments, in order, and can be expected to
71636         diagnose such arguments themselves.
71638 2009-11-30  Eric Blake  <ebb9@byu.net>
71640         utimens: fix compilation error
71641         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
71642         Declare variable at right scope.
71644 2009-11-29  Jim Meyering  <meyering@redhat.com>
71646         bootstrap: handle perl-5.11's changed --version output
71647         * build-aux/bootstrap (get_version): Handle perl separately,
71648         since perl-5.11's --version output is different.
71650 2009-11-28  Jim Meyering  <meyering@redhat.com>
71652         userspec: depend on the inttostr module, too
71653         * modules/userspec (Depends-on): Add inttostr.
71655         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
71656         * lib/userspec.c (parse_with_separator): Do not accept a user ID
71657         number of MAXUID when it evaluates to (uid_t) -1.
71658         Likewise for group ID.  Reported by Matt McCutchen in
71659         <http://savannah.gnu.org/bugs/?28113>
71661         userspec: reformat to use spaces, not TABs
71662         * lib/userspec.c: Expand TABs to spaces.
71663         Add Emacs' "indent-tabs-mode: nil" hint.
71665 2009-11-27  Eric Blake  <ebb9@byu.net>
71667         getopt-gnu: flush out another BSD bug
71668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
71669         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
71670         flush out BSD bug.
71671         * tests/test-getopt.h (test_getopt): End lists with NULL.
71672         * tests/test-getopt_long.h (test_getopt_long): Likewise.
71673         (test_getopt_long_posix): Enhance test.
71674         * modules/getopt-posix-tests (Depends-on): Add stdbool.
71675         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
71676         getopt-gnu.
71677         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71678         Likewise.
71680 2009-11-27  Simon Josefsson  <simon@josefsson.org>
71682         * modules/idpriv-droptemp-tests (Notice): Fix text.
71684 2009-11-27  Jim Meyering  <meyering@redhat.com>
71686         test-xalloc-die: avoid spurious failure due to libtool argv difference
71687         In a libtool-enabled project, this test would fail due to a difference
71688         in the emitted program name, e.g.,
71689         -test-xalloc-die: memory exhausted
71690         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
71691         Use program to avoid that.
71692         * modules/xalloc-die-tests (Depends-on): Add progname.
71693         * tests/test-xalloc-die.c: Include progname.h".
71694         (program_name): Remove decl.
71695         (main): Call set_program_name.
71696         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
71698 2009-11-26  Richard Jones  <rjones@redhat.com>
71700         w32sock: leave win32 error in place.
71701         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
71703 2009-11-26  Eric Blake  <ebb9@byu.net>
71705         init.sh: suggest to use skip_ and fail_ functions in comments
71706         * tests/init.sh: Add a sentence.
71708 2009-11-25  Bruno Haible  <bruno@clisp.org>
71710         init.sh: add documentation in comments
71711         * tests/init.sh: Add some developer and user documentation.
71713 2009-11-26  Jim Meyering  <meyering@redhat.com>
71715         init.sh: accommodate even those who specify bogus srcdir manually
71716         * tests/init.sh: Normally, srcdir is guaranteed by automake and
71717         configure-time tests to be sanitized, so that there is no need to
71718         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
71719         (with no double quotes) suffices.  However, since tests may be
71720         invoked manually, and since you may explicitly set srcdir to the
71721         name of a directory containing spaces, do quote its uses here.
71722         * tests/test-pread.sh: Likewise.
71723         Suggested by Bruno Haible.
71725         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
71726         * tests/test-pread.sh: Write no data into the pipe, because
71727         test-pread actually reads none.  This avoids a diagnostic,
71728         "bash: echo: write error: Broken pipe", that arises in the unusual
71729         event something is ignoring SIGPIPE, and might be interpreted
71730         as some sort of failure.  Reported by Bruno Haible.
71732 2009-11-25  Jim Meyering  <meyering@redhat.com>
71734         test-pread: cover failure with ESPIPE and EINVAL
71735         * tests/test-pread.c (main): Test for failure, too.
71736         * tests/test-pread.sh: Invoke with stdin on a pipe.
71737         Suggested by Eric Blake.
71739         pread: improvement and fix
71740         * modules/pread (Depends-on): Depend on lseek, for portability to
71741         e.g., mingw.  Suggested by Eric Blake.
71742         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
71744         unistd.in.h: correct declaration of pread
71745         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
71746         Reported by Richard W.M. Jones.
71748         test-pread.sh: distribute the test script
71749         * modules/pread-tests (Files): Include test-pread.sh.
71751         test-pread.sh: clean up
71752         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
71753         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
71754         That is unnecessary, since it's always ".".
71755         Suggestion from Eric Blake.
71757         test-pread.sh: make executable
71758         * tests/test-pread.sh: Set executable bit.
71759         Reported by Eric Blake.
71761         correct typo in test-pread.sh
71762         * tests/test-pread.sh: Add #! line.
71764         test pread
71765         * tests/test-pread.c: New file.
71766         * tests/test-pread.sh: Likewise.
71767         * modules/pread-tests: Likewise.
71769         pread: new module
71770         * modules/pread: New file.
71771         * lib/unistd.in.h (pread): Define/declare.
71772         * lib/pread.c (pread): New file.
71773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
71774         * modules/unistd (Makefile.am): Substitute witnesses.
71775         * doc/posix-functions/pread.texi (pread): Update.
71776         * MODULES.html.sh: Add pread.
71778 2009-11-25  Jim Meyering  <meyering@redhat.com>
71780         tests/init.sh: new file to be used via most *.sh tests
71781         * tests/init.sh: New file.
71783 2009-11-25  Eric Blake  <ebb9@byu.net>
71785         utimens: work around older Linux failure with symlinks
71786         * lib/utimens.c (lutimensat_works_really): New variable.
71787         (fdutimens, lutimens): Use it to manage kernels that support
71788         nanosecond times on files, but not on symlinks.
71789         Reported by Ondřej Vašík.
71791         utimes: fix configure grammar
71792         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
71794 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
71796         regex: Fix fastmap for multibyte character ranges.
71797         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
71798         characters when a multibyte character range is included.
71800 2009-11-22  Andy Wingo  <wingo@pobox.com>
71802         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
71803         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
71805 2009-11-24  Bruno Haible  <bruno@clisp.org>
71807         doc: Most *_l functions exist in MacOS X 10.5.
71808         * doc/posix-functions/duplocale.texi: Update platforms list.
71809         * doc/posix-functions/freelocale.texi: Likewise.
71810         * doc/posix-functions/newlocale.texi: Likewise.
71811         * doc/posix-functions/uselocale.texi: Likewise.
71812         * doc/posix-functions/isalnum_l.texi: Likewise.
71813         * doc/posix-functions/isalpha_l.texi: Likewise.
71814         * doc/posix-functions/isblank_l.texi: Likewise.
71815         * doc/posix-functions/iscntrl_l.texi: Likewise.
71816         * doc/posix-functions/isdigit_l.texi: Likewise.
71817         * doc/posix-functions/isgraph_l.texi: Likewise.
71818         * doc/posix-functions/islower_l.texi: Likewise.
71819         * doc/posix-functions/isprint_l.texi: Likewise.
71820         * doc/posix-functions/ispunct_l.texi: Likewise.
71821         * doc/posix-functions/isspace_l.texi: Likewise.
71822         * doc/posix-functions/isupper_l.texi: Likewise.
71823         * doc/posix-functions/iswalnum_l.texi: Likewise.
71824         * doc/posix-functions/iswalpha_l.texi: Likewise.
71825         * doc/posix-functions/iswblank_l.texi: Likewise.
71826         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71827         * doc/posix-functions/iswctype_l.texi: Likewise.
71828         * doc/posix-functions/iswdigit_l.texi: Likewise.
71829         * doc/posix-functions/iswgraph_l.texi: Likewise.
71830         * doc/posix-functions/iswlower_l.texi: Likewise.
71831         * doc/posix-functions/iswprint_l.texi: Likewise.
71832         * doc/posix-functions/iswpunct_l.texi: Likewise.
71833         * doc/posix-functions/iswspace_l.texi: Likewise.
71834         * doc/posix-functions/iswupper_l.texi: Likewise.
71835         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71836         * doc/posix-functions/isxdigit_l.texi: Likewise.
71837         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
71838         * doc/posix-functions/strcasecmp_l.texi: Likewise.
71839         * doc/posix-functions/strcoll_l.texi: Likewise.
71840         * doc/posix-functions/strfmon_l.texi: Likewise.
71841         * doc/posix-functions/strftime_l.texi: Likewise.
71842         * doc/posix-functions/strncasecmp_l.texi: Likewise.
71843         * doc/posix-functions/strxfrm_l.texi: Likewise.
71844         * doc/posix-functions/tolower_l.texi: Likewise.
71845         * doc/posix-functions/toupper_l.texi: Likewise.
71846         * doc/posix-functions/towctrans_l.texi: Likewise.
71847         * doc/posix-functions/towlower_l.texi: Likewise.
71848         * doc/posix-functions/towupper_l.texi: Likewise.
71849         * doc/posix-functions/wcscoll_l.texi: Likewise.
71850         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71851         * doc/posix-functions/wctrans_l.texi: Likewise.
71852         * doc/posix-functions/wctype_l.texi: Likewise.
71853         * doc/glibc-functions/strptime_l.texi: Likewise.
71854         * doc/glibc-functions/strtod_l.texi: Likewise.
71855         * doc/glibc-functions/strtof_l.texi: Likewise.
71856         * doc/glibc-functions/strtol_l.texi: Likewise.
71857         * doc/glibc-functions/strtold_l.texi: Likewise.
71858         * doc/glibc-functions/strtoll_l.texi: Likewise.
71859         * doc/glibc-functions/strtoul_l.texi: Likewise.
71860         * doc/glibc-functions/strtoull_l.texi: Likewise.
71861         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71862         * doc/glibc-functions/wcstod_l.texi: Likewise.
71863         * doc/glibc-functions/wcstof_l.texi: Likewise.
71864         * doc/glibc-functions/wcstol_l.texi: Likewise.
71865         * doc/glibc-functions/wcstold_l.texi: Likewise.
71866         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71867         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71868         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71870 2009-11-24  Bruno Haible  <bruno@clisp.org>
71872         duplocale: Fix logic bug.
71873         * lib/duplocale.c: Don't include <langinfo.h>.
71874         (_NL_LOCALE_NAME): Remove macro.
71875         (rpl_duplocale): Use setlocale instead of nl_langinfo.
71876         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
71878 2009-11-23  Jim Meyering  <meyering@redhat.com>
71880         test-update-copyright: don't hard-code /usr/bin/perl
71881         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
71882         perl to print the current year.  Gilles Espinasse reported that
71883         the replaced use of perl was hard-coded as /usr/bin/perl.
71885 2009-11-23  Bruno Haible  <bruno@clisp.org>
71887         duplocale: Add support for glibc 2.3.x.
71888         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
71890 2009-11-22  Bruno Haible  <bruno@clisp.org>
71892         vasnprintf: Tiny optimization.
71893         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
71894         MacOS X.
71896 2009-11-22  Bruno Haible  <bruno@clisp.org>
71898         Tests for module 'duplocale'.
71899         * modules/duplocale-tests: New file.
71900         * tests/test-duplocale.c: New file.
71902         New module 'duplocale'.
71903         * m4/duplocale.m4: New file.
71904         * lib/locale.in.h (duplocale): New declaration.
71905         * lib/duplocale.c: New file.
71906         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
71907         gl_LOCALE_H_DEFAULTS): New macros.
71908         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
71909         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
71910         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
71911         REPLACE_DUPLOCALE.
71912         * modules/duplocale: New file.
71913         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
71915 2009-11-22  Bruno Haible  <bruno@clisp.org>
71917         * modules/locale-tests (configure.ac): Test for newlocale function.
71918         * tests/test-locale.c: When the system has extended locale functions,
71919         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
71921         locale: Make locale_t available when possible.
71922         * lib/locale.in.h: Include <xlocale.h> when it exists.
71923         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
71924         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
71925         * modules/locale (Depends-on): Add extensions.
71926         (Makefile.am): Also substitute HAVE_XLOCALE_H.
71927         * doc/posix-headers/locale.texi: Document the problem with locale_t.
71929 2009-11-22  Bruno Haible  <bruno@clisp.org>
71931         Add comments.
71932         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
71933         invocation.
71934         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
71935         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71936         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71938 2009-11-22  Bruno Haible  <bruno@clisp.org>
71940         error: account for the possibility of freopen (stdout).
71941         * lib/error.c: Include <unistd.h>.
71942         (flush_stdout): New function, extracted from error and error_at_line.
71943         Determine stdout's fd dynamically.
71944         (error, error_at_line): Invoke flush_stdout.
71945         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
71946         * modules/error (Depends-on): Add unistd.
71948 2009-11-22  Bruno Haible  <bruno@clisp.org>
71950         diffseq: Add comment.
71951         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
71953 2009-11-22  Jim Meyering  <meyering@redhat.com>
71955         c-stack: avoid defining an unused static function
71956         * lib/c-stack.c (find_stack_direction): Do not define this function
71957         when it will not be used.
71959         diffseq: avoid spurious gcc warnings
71960         * lib/diffseq.h (IF_LINT2): Define.
71961         (compareseq): Use it to initialize two members of "part".
71962         This avoids two used-uninitialized warnings.
71964 2009-11-21  Jim Meyering  <meyering@redhat.com>
71966         c-stack: avoid "ignoring return value of `write'" warning
71967         * lib/c-stack.c: Include "ignore-value.h".
71968         (die): Explicitly ignore each write return value.
71969         * modules/c-stack (Depends-on): Add ignore-value.
71971 2009-11-21  Bruno Haible  <bruno@clisp.org>
71973         diffseq: reduce scope of variable 'best'.
71974         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
71975         variable, earlier used for two different purposes.
71977 2009-11-21  Jim Meyering  <meyering@redhat.com>
71979         diffseq: remove useless assignment to "best"
71980         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
71981         assignment.  At that point "best" is already guaranteed to be zero.
71983 2009-11-20  Eric Blake  <ebb9@byu.net>
71985         build: mention ftp redirector in release announcements
71986         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
71987         values that used to come from cfg.mk; mention FTP redirect URL.
71988         * build-aux/announce-gen: Mention the mirror list.
71989         Suggested by Karl Berry.
71991         nanosleep: improve port to mingw
71992         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
71993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
71994         LIB_NANOSLEEP, but only when needed.
71995         * modules/select (Link): Document LIBSOCKET.
71996         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
71997         enough.
71999         nanosleep: work around cygwin bug
72000         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
72001         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
72002         bug.
72003         (getnow): Delete, not needed.
72004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
72005         LIB_CLOCK_GETTIME.
72006         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
72007         clock-time, gettime.
72008         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
72009         bug.
72010         * modules/nanosleep-tests: New test.
72011         * tests/test-nanosleep.c: New file.
72013         sleep: work around cygwin bug
72014         * lib/sleep.c (rpl_sleep): Work around the bug.
72015         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
72016         (gl_PREREQ_SLEEP): Delete unused macro.
72017         * modules/sleep (Depends-on): Add verify.
72018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
72019         * modules/unistd (Makefile.am): Substitute witness.
72020         * lib/unistd.in.h (sleep): Update prototype.
72021         * doc/posix-functions/sleep.texi (sleep): Document the bug.
72022         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
72023         * modules/sleep-tests (Depends-on): Check for alarm.
72025 2009-11-20  Jim Meyering  <meyering@redhat.com>
72027         maint.mk: improve sc_prohibit_magic_number_exit
72028         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
72029         so it does not match uses like System.exit(1).
72030         Add comments showing how to correct all offenders.
72032 2009-11-19  Eric Blake  <ebb9@byu.net>
72034         xalloc-die-tests: add missing library
72035         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
72037         test-xvasprintf: silence compiler warnings
72038         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
72039         empty string from gcc.
72041 2009-11-19  Jim Meyering  <meyering@redhat.com>
72043         xfreopen: new module, from coreutils
72044         * modules/xfreopen: New module.
72045         * lib/xfreopen.c: New file.
72046         * lib/xfreopen.h: New file.
72047         * MODULES.html.sh (File stream based Input/Output"): Add it.
72049 2009-11-19  Eric Blake  <ebb9@byu.net>
72051         manywarnings: depend on warnings
72052         * modules/manywarnings (Depends-on): Add warnings.
72054         build: avoid compiler warnings
72055         * lib/select.c (rpl_select): Delete unused variable.
72056         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
72058 2009-11-18  Eric Blake  <ebb9@byu.net>
72060         tests: avoid false negative with --with-packager
72061         * tests/test-version-etc.sh: Discard packager information.
72062         * tests/test-argp-version-etc-1.sh: Likewise.
72063         Reported by Mike Frysinger.
72065         utimens: fix regression on Solaris
72066         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
72067         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
72068         can only change fd timestamps via futimesat.  Instead, use an
72069         additional witness macro to avoid BSD bug.
72070         Reported by Jim Meyering.
72072 2009-11-17  Eric Blake  <ebb9@byu.net>
72074         usleep: use it to simplify tests
72075         * modules/stat-time-tests (Depends-on): Add usleep.
72076         (configure.ac): Drop usleep check.
72077         * modules/chown-tests (Depends-on, configure.ac): Likewise.
72078         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
72079         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
72080         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
72081         * modules/openat-tests (Depends-on, configure.ac): Likewise.
72082         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
72083         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
72084         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
72085         Likewise.
72086         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
72087         * tests/test-lchown.h (nap): Likewise.
72088         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
72089         * tests/test-stat-time.c (nap): Likewise.
72090         * tests/test-utimens-common.h (nap): Update comments.
72092         usleep: new module
72093         * modules/usleep: New file.
72094         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
72095         * lib/usleep.c (usleep): Likewise.
72096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
72097         * modules/unistd (Makefile.am): Substitute witnesses.
72098         * lib/unistd.in.h (usleep): Add declaration.
72099         * doc/pastposix-functions/usleep.texi (usleep): Document this.
72100         * MODULES.html.sh (Date and time): Likewise.
72101         * modules/usleep-tests (Depends-on): New test.
72102         * tests/test-usleep.c: New file.
72104         chown: work around OpenBSD bug
72105         * lib/chown.c (rpl_chown): Work around the bug.
72106         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
72107         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
72108         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
72109         * modules/chown (Depends-on): Add stdbool.
72110         * modules/lchown (Depends-on): Likewise.
72111         * doc/posix-functions/chown.texi (chown): Document the bug.
72112         * doc/posix-functions/lchown.texi (lchown): Likewise.
72113         * tests/test-lchown.h (test_chown): Relax test.
72115         mkstemp: avoid conflict with C++ keyword template
72116         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
72117         * lib/mkostemp.c (mkostemp): Likewise.
72118         * lib/mkostemps.c (mkostemps): Likewise.
72119         * lib/mkstemp.c (mkstemp): Likewise.
72120         * lib/mkstemps.c (mkstemps): Likewise.
72122         xalloc-die-tests: optimize
72123         * tests/test-xalloc-die.sh: Reduce number of processes.
72125 2009-11-17  Simon Josefsson  <simon@josefsson.org>
72127         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
72128         patch from ludo@gnu.org (Ludovic Courtès).
72130 2009-11-17  Jim Meyering  <meyering@redhat.com>
72132         version-etc: use proper license string
72133         * modules/version-etc (License): Use LGPL, not LGPLv3+.
72134         * modules/version-etc-fsf: Likewise.
72136 2009-11-17  Simon Josefsson  <simon@josefsson.org>
72138         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
72139         printed to stdout.  Deal with EOL differences.
72141 2009-11-17  Eric Blake  <ebb9@byu.net>
72143         unsetenv: work around Solaris bug
72144         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
72145         * lib/unsetenv.c (rpl_unsetenv): Work around it.
72146         Reported by Jim Meyering.
72148         vasnprintf: avoid compiler warnings
72149         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
72150         variables.
72151         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
72153 2009-11-17  Simon Josefsson  <simon@josefsson.org>
72155         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
72156         settings since xalloc-die is no longer the self test,
72157         xalloc-die.sh is.
72159 2009-11-17  Jim Meyering  <meyering@redhat.com>
72161         test-xalloc-die.sh: make the code agree with the commit log
72162         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
72163         at the end, just in case you happen to have a test-xalloc-die
72164         program in some other PATH directory.
72166         test-xalloc-die.sh: fix a portability bug
72167         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
72168         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
72169         Otherwise, argv[0] (as often seen in diagnostics) would be too
72170         system-dependent, sometimes with, and sometimes without the leading "./".
72172         version-etc-fsf: relax license to LGPLv3+
72173         * modules/version-etc-fsf (License): Relax license.
72175 2009-11-16  Eric Blake  <ebb9@byu.net>
72177         xalloc-die-tests: avoid printing null pointer
72178         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
72179         shell script.
72180         * tests/test-xalloc-die.c (program_name): Declare.
72181         * tests/test-xalloc-die.sh (tmpfiles): New file.
72183         setenv, unsetenv: work around various bugs
72184         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
72185         (setenv) [HAVE_SETENV]: Work around bugs.
72186         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
72187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
72188         for bugs.
72189         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
72190         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
72191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
72192         * modules/stdlib (Makefile.am): Update substitutions.
72193         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
72194         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
72195         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72196         * modules/setenv-tests: New test.
72197         * modules/unsetenv-tests: Likewise.
72198         * tests/test-setenv.c: New file.
72199         * tests/test-unsetenv.c: Likewise.
72201 2009-11-16  Jim Meyering  <meyering@redhat.com>
72203         version-etc: relax license to LGPLv3+
72204         * modules/version-etc (License): Relax license.
72206         better AC_REQUIRE expanded-before-required-warning avoidance
72207         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
72208         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
72209         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
72210         which is no longer needed.
72212 2009-11-16  Eric Blake  <ebb9@byu.net>
72214         test-freading: clean up temporary file
72215         * tests/test-freading.c (main): Remove file on success, and use
72216         ASSERT more liberally.
72217         Reported by Jim Meyering.
72219 2009-11-16  Jim Meyering  <meyering@redhat.com>
72221         avoid new AC_REQUIRE expanded-before-required warnings
72222         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
72223         merely using it.
72224         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
72225         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
72227 2009-11-15  Simon Josefsson  <simon@josefsson.org>
72229         * tests/test-xalloc-die.c: New file.
72230         * modules/xalloc-die-tests: New file.
72231         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
72232         XFAIL_TESTS so it can be appended by modules.
72234 2009-11-15  Simon Josefsson  <simon@josefsson.org>
72236         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
72237         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
72239 2009-11-14  Eric Blake  <ebb9@byu.net>
72241         fnmatch: avoid compiler warning
72242         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
72243         to silence compiler warning about mismatch signedness in ?:.
72244         Reported by Robert Millan.
72246         intprops: add double-inclusion guard
72247         * lib/intprops.h: Allow idempotent includes.
72248         Suggested by Bruce Korb.
72250         openat: detect Solaris fchownat bug
72251         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
72252         penalizing glibc chownat when only lchownat is broken.
72253         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
72254         trailing slash bugs.
72255         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
72256         * modules/openat-tests (Files): Include more files.
72257         (Depends-on): Add mgetgroups, sleep, stat-time.
72258         (configure.ac): Add additional checks.
72259         (Makefile.am): Build new test.
72260         * tests/test-fchownat.c: New file.
72262         lchown: detect Solaris and FreeBSD bug
72263         * lib/lchown.c (rpl_lchown): Work around bug.
72264         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
72265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72266         * modules/unistd (Makefile.am): Populate it.
72267         * lib/unistd.in.h (lchown): Update declaration.
72268         * doc/posix-functions/lchown.texi (lchown): Document the bug.
72269         * modules/lchown-tests: New file.
72270         * tests/test-lchown.h (test_lchown): Likewise.
72271         * tests/test-lchown.c (main): Likewise.
72273         chown: detect Solaris and FreeBSD bug
72274         * lib/chown.c (rpl_chown): Work around bug.
72275         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
72276         (gl_PREREQ_CHOWN): Delete.
72277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72278         * modules/unistd (Makefile.am): Populate it.
72279         * lib/unistd.in.h (chown): Update declaration.
72280         * lib/lchown.c (chown): Update client.
72281         * modules/lchown (Depends-on): Add lstat.
72282         * doc/posix-functions/chown.texi (chown): Document the bug.
72283         * doc/posix-functions/getgroups.texi (getgroups): Document
72284         getgroups pitfall.
72285         * modules/chown-tests: New file.
72286         * tests/test-chown.h (test_chown): Likewise.
72287         * tests/test-chown.c (main): Likewise.
72289 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
72291         gnulib-tool: correctly detect absence of m4 directories
72292         * gnulib-tool: Avoid extra newline on data passed to wc -l.
72294 2009-11-14  Jim Meyering  <meyering@redhat.com>
72296         maint.mk: Prohibit inclusion of "xalloc.h" without use.
72297         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
72299 2009-11-14  John W. Eaton  <jwe@gnu.org>
72301         strftime.h: wrap function declaration in extern "C" block
72302         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
72304 2009-11-13  Eric Blake  <ebb9@byu.net>
72306         getgroups: avoid compiler warning
72307         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
72309         getgroups: work around FreeBSD bug
72310         * lib/getgroups.c (rpl_getgroups): Work around the bug.
72311         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
72312         * doc/posix-functions/getgroups.texi (getgroups): Document it.
72313         * tests/test-getgroups.c (main): Fix buffer overrun.
72315         getgroups: avoid compilation failure
72316         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
72317         * modules/getgroups (Depends-on): Add stdint.
72319 2009-11-13  Jim Meyering  <meyering@redhat.com>
72321         test-getgroups: avoid compilation failure
72322         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
72324 2009-11-13  Eric Blake  <ebb9@byu.net>
72326         mgetgroups: new module, taken from coreutils
72327         * modules/mgetgroups: New file.
72328         * lib/mgetgroups.h: Likewise.
72329         * lib/mgetgroups.c (mgetgroups): Likewise.
72330         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
72331         * MODULES.html.sh (Users and groups): Mention it.
72333         getgroups: don't expose GETGROUPS_T to user
72334         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
72335         an element at a time if GETGROUPS_T is wrong size.
72336         * lib/getugroups.h (getugroups): Change signature.
72337         * lib/unistd.in.h (getgroups): Likewise.
72338         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
72339         signature needs fixing.
72340         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
72341         AC_TYPE_GETGROUPS.
72342         * modules/group-member (Depends-on): Add getgroups.
72343         * lib/group-member.c (group_info, get_group_info): Use gid_t.
72344         (group_member): Rely on getgroups replacement.
72345         * lib/getugroups.c (getugroups): Use gid_t.
72346         * tests/test-getgroups.c (main): Likewise.
72347         * NEWS: Mention the signature change.
72348         * doc/posix-functions/getgroups.texi (getgroups): Mention the
72349         problem with signature.
72350         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
72351         GETGROUPS_T is still useful for setgroups.
72353         getgroups, getugroups: provide stubs for mingw
72354         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
72355         * lib/getugroups.c (getugroups): Likewise.
72356         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
72357         function.  Modernize replacement scheme.
72358         (gl_PREREQ_GETGROUPS): Delete.
72359         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
72360         * modules/getgroups (configure.ac): Declare witness.
72361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
72362         * modules/unistd (Depends-on): Substitute witness.
72363         * lib/unistd.in.h (getgroups): Declare replacement.
72365         getgroups: avoid calling exit
72366         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
72367         drop xalloc.
72368         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
72369         dependencies.
72370         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
72371         exiting, in the rare case of malloc failure.
72373         getgroups: fix logic error
72374         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
72375         has more than 20 groups.
72376         * modules/getgroups-tests: New test.
72377         * tests/test-getgroups.c: New file.
72379 2009-11-13  Simon Josefsson  <simon@josefsson.org>
72381         * tests/test-base64.c: Improve.
72383 2009-11-13  Simon Josefsson  <simon@josefsson.org>
72385         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
72386         Blake <ebb9@byu.net>.
72388 2009-11-13  Simon Josefsson  <simon@josefsson.org>
72390         * tests/test-xvasprintf.c: Add %s%s related checks.
72392 2009-11-12  Eric Blake  <ebb9@byu.net>
72394         version-etc: match standards.texi style
72395         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
72396         and use <> only for URLs.
72398 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
72400         fts: do not fail on a submount during traversal
72401         * lib/fts.c (fts_build): Read the stat info again after opening
72402         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
72403         Original report at http://bugzilla.redhat.com/501848.
72405 2009-11-12  Jim Meyering  <meyering@redhat.com>
72407         bootstrap: sync from coreutils
72408         * build-aux/bootstrap (bootstrap_epilogue): New function.
72409         Use git_modules_config in one more place.  This make bootstrap's
72410         --gnulib-srcdir option more useful for testing.
72412         bootstrap: generalize autoheader check
72413         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
72414         AC_CONFIG_HEADERS.
72416 2009-11-11  Eric Blake  <ebb9@byu.net>
72418         mkfifoat: use new modules for Solaris and BSD bugs
72419         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
72420         * lib/mkfifoat.c (mknodat): Split...
72421         * lib/mknodat.c (mknodat): ...into new file.
72422         * modules/mkfifoat (Files): Ship new file.
72423         (Depends-on): Add mkfifo, mknod.
72424         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
72425         (Depends-on): Add symlink.
72426         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
72427         redundant with test_mkfifo.h.
72428         (do_mkfifoat, do_mknodat): New helpers.
72430         mknod: new module
72431         * modules/mknod: New file.
72432         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
72433         * lib/mknod.c (mknod): Likewise.
72434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
72435         defaults.
72436         * modules/sys_stat (Makefile.am): Substitute them.
72437         * lib/sys_stat.in.h (mknod): Declare replacement.
72438         * MODULES.html.sh (Support for systems lacking POSIX:2008):
72439         Document it.
72440         * doc/posix-functions/mknod.texi (mknod): Likewise.
72441         * modules/mknod-tests: New test.
72442         * tests/test-mknod.c: Likewise.
72444         mkfifo: new module
72445         * modules/mkfifo: New file.
72446         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
72447         * lib/mkfifo.c (mkfifo): Likewise.
72448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
72449         defaults.
72450         * modules/sys_stat (Makefile.am): Substitute them.
72451         * lib/sys_stat.in.h (mkfifo): Declare replacement.
72452         * MODULES.html.sh (Support for systems lacking POSIX:2008):
72453         Document it.
72454         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
72455         * modules/mkfifo-tests: New test.
72456         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
72457         from test-mkfifoat.c.
72458         * tests/test-mkfifo.c: New file.
72460         readlink: detect FreeBSD bug
72461         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
72462         slash on symlink.
72463         * doc/posix-functions/readlink.texi (readlink): Document the bug.
72464         * tests/test-readlink.h (test_readlink): Enhance test.
72466         symlink: detect FreeBSD bug
72467         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
72468         slash on symlink.
72469         * doc/posix-functions/symlink.texi (symlink): Document the bug.
72470         * tests/test-symlink.h (test_symlink): Enhance test.
72472 2009-11-10  Eric Blake  <ebb9@byu.net>
72474         link: detect FreeBSD bug
72475         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
72476         symlink.
72477         * doc/posix-functions/link.texi (link): Document the bug.
72478         * tests/test-link.h (test_link): Enhance test.
72479         * tests/test-linkat.c (main): Update caller.
72481         unlink, remove: detect FreeBSD bug
72482         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
72483         slash on symlink.
72484         * doc/posix-functions/unlink.texi (unlink): Document the bug.
72485         * doc/posix-functions/remove.texi (remove): Likewise.
72486         * tests/test-unlink.h (test_unlink): Enhance test.
72487         * tests/test-remove.c (main): Likewise.
72489 2009-11-09  Eric Blake  <ebb9@byu.net>
72491         rename: detect FreeBSD bug
72492         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
72493         slash on symlink.
72494         * modules/renameat-tests (Depends-on): Add filenamecat.
72495         * tests/test-rename.h (test_rename): Allow one more errno.
72496         * tests/test-renameat.c (main): Likewise.
72497         * doc/posix-functions/rename.texi (rename): Document the bug.
72499         open: detect FreeBSD bug
72500         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
72501         symlink.
72502         * doc/posix-functions/open.texi (open): Document the bug.
72503         * doc/posix-functions/utimes.texi (utimes): Likewise.
72504         * tests/test-open.h (test_open): Add parameters, and test symlink
72505         handling.
72506         * tests/test-open.c (main): Adjust caller.
72507         * tests/test-fcntl-safer.c (main): Likewise.
72508         * modules/open-tests (Depends-on): Add stdbool, symlink.
72509         * modules/fcntl-safer-tests (Depends-on): Likewise.
72510         * tests/test-openat.c (main): Add test-open tests.
72512         stat: detect FreeBSD bug
72513         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
72514         symlink.
72515         * doc/posix-functions/stat.texi (stat): Document the bug.
72516         * tests/test-stat.h (test_stat_func): Add argument.
72517         * tests/test-stat.c (main): Adjust caller.
72518         * tests/test-fstatat.c (main): Likewise.
72519         * modules/stat-tests (Depends-on): Add stdbool, symlink.
72520         Reported by Jim Meyering.
72522 2009-11-09  James Youngman  <jay@gnu.org>
72524         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
72525         * lib/strftime.c: Correct placement of #include "ignore-value.h".
72527 2009-11-08  Jim Meyering  <meyering@redhat.com>
72529         utimens: remove invalid futimesat call
72530         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
72531         It used the file descriptor of the target file as the DIR_FD
72532         parameter and NULL as the file name.  That caused failure with
72533         errno == EFAULT on FreeBSD-8.0-rc2
72535 2009-11-07  Eric Blake  <ebb9@byu.net>
72537         fflush, freadseek: use fseeko, not fseek
72538         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
72539         (clear_ungetc_buffer): Avoid potential problems on large files.
72540         * lib/freadseek.c (freadseek): Likewise.
72541         * modules/freadseek (Depends-on): Add fseeko.
72542         * modules/fseek (configure.ac): Set a witness.
72543         * tests/test-fflush.c (main): Use fseeko.
72544         * tests/test-fpurge.c (fseek): Disable link warning.
72545         * tests/test-freadable.c (fseek): Likewise.
72546         * tests/test-freading.c (fseek): Likewise.
72547         * tests/test-fseeko.c (fseek): Likewise.
72548         * tests/test-ftell.c (fseek): Likewise.
72549         * tests/test-ftello.c (fseek): Likewise.
72550         * tests/test-fwritable.c (fseek): Likewise.
72551         * tests/test-fwriting.c (fseek): Likewise.
72553 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72555         * modules/memchr (Depends-on): Drop getpagesize dependency.
72557 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72559         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
72560         Reported by Ludovic Courtès.
72561         * build-aux/pmccabe2html: Improve example usage.
72562         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
72564 2009-11-06  Jim Meyering  <meyering@redhat.com>
72566         do-release-commit-and-tag: New module.
72567         Automate the release-commit and tag process.
72568         * build-aux/do-release-commit-and-tag: New script, from coreutils.
72569         * modules/do-release-commit-and-tag: New file.
72570         * MODULES.html.sh (Support for maintaining and releasing): Add it.
72572 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72574         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
72575         because test-select.c uses inet_pton.
72577 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72579         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
72580         GETADDRINFO_LIB.  Bump serial number.
72581         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
72582         Suggested by Eric Blake <ebb9@byu.net>.
72584 2009-11-05  Eric Blake  <ebb9@byu.net>
72586         strtod: detect darwin bug
72587         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
72588         Reported by Leo Davis.
72590         freopen-safer: new module
72591         * modules/freopen-safer: New module.
72592         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
72593         * lib/freopen-safer.c (freopen_safer): New file.
72594         * lib/stdio-safer.h (freopen_safer): New declaration.
72595         * lib/stdio--.h (freopen): New override.
72596         * MODULES.html.sh (File stream based Input/Output): Mention it.
72597         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
72598         freopen-safer module.
72599         * doc/posix-functions/stderr.texi (stderr): Likewise.
72600         * doc/posix-functions/stdin.texi (stdin): Likewise.
72601         * doc/posix-functions/stdout.texi (stdout): Likewise.
72602         * modules/freopen-safer-tests: New test.
72603         * tests/test-reopen-safer.c: New file.
72605 2009-11-05  Jim Meyering  <meyering@redhat.com>
72607         maint.mk: Prohibit inclusion of "close-stream.h" without use.
72608         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
72610 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72612         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
72614 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72616         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
72618 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72620         Fix link error.
72621         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
72622         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72624 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72626         * tests/test-func.c: Also test value of __func__.
72628 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72630         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
72631         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
72633 2009-11-05  Bruno Haible  <bruno@clisp.org>
72635         Fix link error.
72636         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
72637         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72638         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
72640 2009-11-05  Bruno Haible  <bruno@clisp.org>
72642         Tests for module 'inet_pton'.
72643         * modules/inet_pton-tests: New file.
72644         * tests/test-inet_pton.c: New file.
72646 2009-11-05  Bruno Haible  <bruno@clisp.org>
72648         Tests for module 'inet_ntop'.
72649         * modules/inet_ntop-tests: New file.
72650         * tests/test-inet_ntop.c: New file.
72652 2009-11-04  Eric Blake  <ebb9@byu.net>
72654         stdlib-safer: wrap all mkstemp variants
72655         * modules/mkostemp (configure.ac): Set witness.
72656         * modules/mkostemps (configure.ac): Likewise.
72657         * modules/mkstemps (configure.ac): Likewise.
72658         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
72659         (mkstemps_safer): Wrap more functions.
72660         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
72661         wrapping.
72662         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
72663         (mkstemps_safer): Implement the wrappers.
72665         mkstemps, mkostemps: new modules
72666         * modules/mkostemps: New module.
72667         * modules/mkstemps: Likewise.
72668         * lib/mkostemps.c (mkostemps): New file.
72669         * lib/mkstemps.c (mkstemps): Likewise.
72670         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
72671         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
72672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
72673         * modules/stdlib (Makefile.am): Substitute them.
72674         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
72675         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
72676         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
72677         * doc/gnulib.texi (Glibc stdlib.h): Include them.
72678         * MODULES.html.sh (File system functions): Mention them.
72680         tempname: resync from glibc
72681         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
72682         same values for __GT_FILE as glibc.  Abort even when assertions
72683         are disabled.
72684         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
72685         match its value otherwise.  Allow idempotent inclusion.
72686         * lib/mkdtemp.c (mkdtemp): Adjust caller.
72687         * lib/mkostemp.c (mkostemp): Likewise.
72688         * lib/mkstemp.c (mkstemp): Likewise.
72689         * lib/tmpfile.c (tmpfile): Likewise.
72690         * NEWS: Document this.
72692         utimens: fix use of futimens on older Linux
72693         * lib/utimens.c (fdutimens): Use updated, rather than original,
72694         timespec to avoid bug in older Linux kernel.
72695         Reported by Simon Josefsson.
72697 2009-11-04  Bruno Haible  <bruno@clisp.org>
72699         Make num_processors more flexible and consistent.
72700         * lib/nproc.h (enum nproc_query): New type.
72701         (num_processors): Add a 'query' argument.
72702         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
72703         (num_processors): Add a 'query' argument. Test the value of the
72704         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
72705         mingw, count the number of CPUs available for the current process.
72706         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
72707         Check for sched_getaffinity and sched_getaffinity_np.
72708         * modules/nproc (Depends-on): Add c-ctype, extensions.
72709         * NEWS: Mention the change.
72711 2009-11-03  Bruno Haible  <bruno@clisp.org>
72713         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
72715 2009-11-03  Jim Meyering  <meyering@redhat.com>
72717         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
72718         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
72719         if it is defined.
72721 2009-11-02  Eric Blake  <ebb9@byu.net>
72723         mktime, timegm: share common declaration
72724         * lib/mktime-internal.h: New file.
72725         * lib/mktime.c: Use it rather than open-coding a declaration.
72726         * lib/timegm.c: Likewise.
72727         * modules/mktime (Files): Ship it.
72728         * modules/timegm (Files): Likewise.
72729         Suggested by Bruno Haible.
72731         test-update-copyright: update test to match script changes
72732         * tests/test-update-copyright.sh: Avoid hard-coding perl
72733         location.  Don't update *.bak created by earlier runs.
72735 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72736             Simon Josefsson  <simon@josefsson.org>
72737             Bruno Haible  <bruno@clisp.org>
72739         Fix link error on Solaris 8.
72740         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
72741         also in libnsl. Define also INET_PTON_LIB.
72742         * modules/inet_pton (Link): New section.
72744 2009-11-02  Simon Josefsson  <simon@josefsson.org>
72745             Bruno Haible  <bruno@clisp.org>
72747         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
72748         * modules/inet_ntop (Link): New section.
72749         Reported by Boyan Kasarov <bkasarov@gmail.com>.
72751 2009-11-02  Eric Blake  <ebb9@byu.net>
72753         maint: avoid compiler warnings in m4 macros
72754         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
72755         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
72757 2009-11-02  Simon Josefsson  <simon@josefsson.org>
72759         * m4/pmccabe2html.m4: Remove file.
72760         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
72761         function.  Change maintainer.
72762         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
72763         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
72764         Courtès).
72766 2009-10-31  Eric Blake  <ebb9@byu.net>
72768         fseeko: fix m4 regression
72769         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
72770         regression from 2009-10-27.
72771         Reported by Ralf Wildenhues.
72773 2009-10-31  Jim Meyering  <meyering@redhat.com>
72775         inttostr: aesthetics and improved (compile-time) safety
72776         Define inttype_is_signed rather than inttype_is_unsigned,
72777         since the sole use is via "#if inttype_is_signed".
72778         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
72779         inttype_is_unsigned.
72780         * lib/offtostr.c (inttype_is_signed): Likewise.
72781         * lib/uinttostr.c (inttype_is_signed): Likewise.
72782         * lib/umaxtostr.c (inttype_is_signed): Likewise.
72783         * lib/inttostr.c (inttostr): Use verify to cross-check the
72784         inttype_is_signed value and the signedness of the actual type.
72785         * modules/inttostr (Depends-on): Add verify.
72787 2009-10-30  Eric Blake  <ebb9@byu.net>
72789         build: avoid compiler warnings
72790         * lib/fchmodat.c (lchmod): Mark unused variables.
72791         * lib/getopt.c (_getopt_initialize): Likewise.
72792         * lib/mktime.c (__mktime_internal): Provide prototype.
72793         * lib/inttostr.c (inttostr): Avoid compiler warning even with
72794         older gcc that do not understand #pragma GCC diagnostic.
72795         * lib/uinttostr.c (inttype_is_unsigned): Define.
72796         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
72798 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
72800         stat: fix compilation on AIX
72801         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
72802         only see struct stat64.
72804 2009-10-30  Eric Blake  <ebb9@byu.net>
72806         exclude: make more robust
72807         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
72808         rather than masking a coding bug.
72809         Suggested by Bruno Haible.
72811 2009-10-30  Jim Meyering  <meyering@redhat.com>
72813         perl scripts: remove #!/usr/bin/perl in favor of more portable...
72814         Rather than putting #!/usr/bin/perl on the first line,
72815         start with a variant of what's recommended by "man perlrun" that
72816         invokes the first "perl" program from your shell's search path.
72817         * build-aux/gitlog-to-changelog: Replace #!... as above.
72818         Add a "Local Variables" perl mode setting.
72819         Prompted by a patch from Ludovic Courtès.
72820         Improved by Eric Blake.
72821         * build-aux/useless-if-before-free: Likewise.
72822         * build-aux/announce-gen: Likewise.
72823         * build-aux/update-copyright: Likewise.
72825 2009-10-29  Eric Blake  <ebb9@byu.net>
72827         filenamecat-lgpl: adjust clients
72828         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
72829         filenamecat.
72830         * modules/renameat (Depends-on): Likewise.
72832         filenamecat: split into filenamecat-lgpl
72833         * modules/filenamecat-lgpl: New module.
72834         * modules/filenamecat (Files): Move library-safe files into
72835         filenamecat-lgpl.
72836         (Depends-on): Add filenamecat-lgpl.
72837         (configure.ac): Declare witness.
72838         * lib/filenamecat.h (file_name_concat): Only declare when using
72839         GPL module.
72840         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
72841         Move...
72842         * lib/filenamecat-lgpl.c: ...into new file.
72843         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
72844         (gl_FILE_NAME_CONCAT): Use it.
72845         * MODULES.html.sh (File system functions): Mention new module.
72847         argp: avoid memory leak
72848         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
72849         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
72850         base_name, since the latter malloc()s and can call exit().
72851         Leak introduced 2006-07-03.
72853         dirname-lgpl: adjust clients that don't need full dirname
72854         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
72855         * modules/filenamecat (Depends-on): Likewise.
72856         * modules/linkat (Depends-on): Likewise.
72857         * modules/mkancesdirs (Depends-on): Likewise.
72858         * modules/mkdir (Depends-on): Likewise.
72859         * modules/openat (Depends-on): Likewise.
72860         * modules/savewd (Depends-on): Likewise.
72861         * modules/rename (Depends-on): Likewise.
72862         (License): Relax license.
72863         * modules/mkdir-tests (Depends-on): Drop progname.
72864         (Makefile.am): Delete unneeded LDADD.
72865         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
72867         dirname: split into dirname-lgpl
72868         * modules/dirname-lgpl: New module.
72869         * modules/dirname (Files): Move library-safe files into
72870         dirname-lgpl.
72871         (Depends-on): Add dirname-lgpl.
72872         (configure.ac): Declare witness.
72873         * modules/double-slash-root (License): Relax license.
72874         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
72875         module.
72876         * lib/dirname.c (dir_len, mdir_name): Move...
72877         * lib/dirname-lgpl.c: ...into new file.
72878         * lib/basename.c (last_component, base_len): Move...
72879         * lib/basename-lgpl.c: ...into new file.
72880         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
72881         (gl_DIRNAME): Use it.
72882         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
72883         Mention new module.
72884         * modules/dirname-tests (Depends-on): Add progname.
72885         * tests/test-dirname.c (program_name): Delete.
72887         mkdir: make safe for libraries
72888         * modules/mkdir (Depends-on): Drop xalloc.
72889         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
72890         exit.
72892         tests: avoid some compiler warnings
72893         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
72894         literals.
72895         * tests/test-memchr.c (main): Avoid type mismatch.
72896         * tests/test-arpa_inet.c (main): Avoid unused parameters.
72897         * tests/test-base64.c (main): Likewise.
72898         * tests/test-getdelim.c (main): Likewise.
72899         * tests/test-gethostname.c (main): Likewise.
72900         * tests/test-getline.c (main): Likewise.
72901         * tests/test-netinet_in.c (main): Likewise.
72902         * tests/test-select.c (open_server_socket, main): Likewise.
72903         * tests/test-select-stdin.c (main): Likewise.
72904         * tests/test-sockets.c (main): Likewise.
72905         * tests/test-strsignal.c (main): Likewise.
72906         * tests/test-sys_select.c (main): Likewise.
72907         * tests/test-sys_socket.c (main): Likewise.
72908         * tests/test-u64.c (main): Likewise.
72909         * tests/test-xfprintf-posix.c (main): Likewise.
72910         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
72912         sockets: avoid compiler warning
72913         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
72915         maint: detect usage(1) and other suspicious exits
72916         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
72918 2009-10-29  Jim Meyering  <meyering@redhat.com>
72920         timespec: long-to-int truncation could make timespec_cmp malfunction
72921         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
72922         a multiple of 2^32 nanoseconds as no difference.
72924 2009-10-28  Jim Meyering  <meyering@redhat.com>
72926         fprintftime: wrap macro code argument in "do {...} while(0)"
72927         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
72928         cpy macro must be a statement that can be followed by a semicolon.
72929         Now that the else clause contains a comment and is hence longer
72930         than one line, I require curly braces.  That in turn requires
72931         that we wrap this code block in the standard do...while(0).
72933         fprintftime: remove stray semicolon from previous change
72934         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
72936         fprintftime: avoid a warning about ignored fwrite return value
72937         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
72938         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
72939         that is unsafe.
72940         * modules/fprintftime (Depends-on): Add ignore-value.
72942         exclude: avoid an unwarranted warning
72943         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
72945 2009-10-27  Eric Blake  <ebb9@byu.net>
72947         fseek: avoid compilation failure when fflush is replaced
72948         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
72949         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
72950         module is in use.
72951         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
72952         module is not in use; since REPLACE_FSEEK worked otherwise.
72953         (GNULIB_FTELLO): Likewise for ftell.
72954         Reported by Ian Beckwith and others.
72956 2009-10-27  Bruno Haible  <bruno@clisp.org>
72958         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
72959         Reported by Jim Meyering.
72961 2009-10-27  Jim Meyering  <jim@meyering.net>
72962             Bruno Haible  <bruno@clisp.org>
72964         Avoid warning despite dropping the return value of fwrite.
72965         * lib/unicodeio.c: Include ignore-value.h.
72966         (fwrite_success_callback): Explicitly ignore fwrite's return value.
72967         * modules/unicodeio (Depends-on): Add ignore-value.
72969 2009-10-26  Eric Blake  <ebb9@byu.net>
72971         areadlinkat: fix fallback path
72972         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
72973         pointer and zero.
72975 2009-10-22  Pádraig Brady  <P@draigBrady.com>
72977         Use a better IO block size for modern systems
72978         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
72979         * lib/md2.c: Likewise.
72980         * lib/md4.c: Likewise.
72981         * lib/md5.c: Likewise.
72982         * lib/sha1.c: Likewise.
72983         * lib/sha256.c: Likewise.
72984         * lib/sha512.c: Likewise.
72986 2009-10-22  Eric Blake  <ebb9@byu.net>
72988         tests: avoid several compiler warnings
72989         * tests/test-getcwd.c (main): Avoid buffer underflow.
72990         * tests/test-getdate.c (main): String literals are not safe with
72991         putenv, so use setenv.  Declare unused argument.
72992         * modules/getdate-tests (Depends-on): Add setenv.
72993         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
72994         problems with string literals in char *.
72995         * tests/test-hash.c (main): Avoid shadowing declaration.
72996         (insert_new): Treat string literals as char const *.
72997         * tests/test-getopt.h (test_getopt): Likewise.
72998         (getopt_loop): Alter types to minimize casting elsewhere.
72999         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
73000         (test_getopt_long_posix): Likewise.
73001         (do_getopt_long): Add wrapper to minimize casting.
73002         * tests/test-atexit.c (clear_temp_file): Use void.
73003         * tests/test-areadlink-with-size.c (main): Declare unused
73004         arguments.
73005         * tests/test-areadlink.c (main): Likewise.
73006         * tests/test-areadlinkat-with-size.c (main): Likewise.
73007         * tests/test-areadlinkat.c (main): Likewise.
73008         * tests/test-canonicalize-lgpl.c (main): Likewise.
73009         * tests/test-canonicalize.c (main): Likewise.
73010         * tests/test-dirent-safer.c (main): Likewise.
73011         * tests/test-dirname.c (main): Likewise.
73012         * tests/test-dup2.c (main): Likewise.
73013         * tests/test-fchdir.c (main): Likewise.
73014         * tests/test-fcntl-h.c (main): Likewise.
73015         * tests/test-fcntl-safer.c (main): Likewise.
73016         * tests/test-fdopendir.c (main): Likewise.
73017         * tests/test-fdutimensat.c (main): Likewise.
73018         * tests/test-fflush.c (main): Likewise.
73019         * tests/test-filenamecat.c (main): Likewise.
73020         * tests/test-filevercmp.c (main): Likewise.
73021         * tests/test-fopen-safer.c (main): Likewise.
73022         * tests/test-fopen.c (main): Likewise.
73023         * tests/test-fpending.c (main): Likewise.
73024         * tests/test-fpurge.c (main): Likewise.
73025         * tests/test-freading.c (main): Likewise.
73026         * tests/test-fstatat.c (main): Likewise.
73027         * tests/test-fsync.c (main): Likewise.
73028         * tests/test-futimens.c (main): Likewise.
73029         * tests/test-getndelim2.c (main): Likewise.
73030         * tests/test-gettimeofday.c (main): Likewise.
73031         * tests/test-getopt.c (main): Likewise.
73032         * tests/test-i-ring.c (main): Likewise.
73033         * tests/test-inttypes.c (main): Likewise.
73034         * tests/test-link.c (main): Likewise.
73035         * tests/test-lstat.c (main): Likewise.
73036         * tests/test-math.c (main): Likewise.
73037         * tests/test-md5.c (main): Likewise.
73038         * tests/test-memchr2.c (main): Likewise.
73039         * tests/test-memrchr.c (main): Likewise.
73040         * tests/test-mkdir.c (main): Likewise.
73041         * tests/test-mkdirat.c (main): Likewise.
73042         * tests/test-mkfifoat.c (main): Likewise.
73043         * tests/test-open.c (main): Likewise.
73044         * tests/test-openat-safer.c (main): Likewise.
73045         * tests/test-openat.c (main): Likewise.
73046         * tests/test-quotearg.c (main): Likewise.
73047         * tests/test-rawmemchr.c (main): Likewise.
73048         * tests/test-readlink.c (main): Likewise.
73049         * tests/test-remove.c (main): Likewise.
73050         * tests/test-rename.c (main): Likewise.
73051         * tests/test-renameat.c (main): Likewise.
73052         * tests/test-rmdir.c (main): Likewise.
73053         * tests/test-sha1.c (main): Likewise.
73054         * tests/test-signal.c (main): Likewise.
73055         * tests/test-sigaction.c (main): Likewise.
73056         * tests/test-stat.c (main): Likewise.
73057         * tests/test-stat-time.c (main): Likewise.
73058         * tests/test-stddef.c (main): Likewise.
73059         * tests/test-stdint.c (main): Likewise.
73060         * tests/test-stdio.c (main): Likewise.
73061         * tests/test-stdlib.c (main): Likewise.
73062         * tests/test-strchrnul.c (main): Likewise.
73063         * tests/test-strerror.c (main): Likewise.
73064         * tests/test-string.c (main): Likewise.
73065         * tests/test-strtod.c (main): Likewise.
73066         * tests/test-strverscmp.c (main): Likewise.
73067         * tests/test-symlink.c (main): Likewise.
73068         * tests/test-symlinkat.c (main): Likewise.
73069         * tests/test-sys_stat.c (main): Likewise.
73070         * tests/test-sys_time.c (main): Likewise.
73071         * tests/test-time.c (main): Likewise.
73072         * tests/test-unistd.c (main): Likewise.
73073         * tests/test-unlink.c (main): Likewise.
73074         * tests/test-unlinkat.c (main): Likewise.
73075         * tests/test-utimens.c (main): Likewise.
73076         * tests/test-utimensat.c (main): Likewise.
73077         * tests/test-version-etc.c (main): Likewise.
73078         * tests/test-wchar.c (main): Likewise.
73079         * tests/test-wctype.c (main): Likewise.
73080         * tests/test-xprintf-posix.c (main): Likewise.
73081         * tests/test-posixtm.c (main): Likewise.
73082         (STREQ): Delete unused macro.
73083         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
73084         shadowed variables.
73085         * tests/test-memchr.c (main): Likewise.
73087 2009-10-21  Eric Blake  <ebb9@byu.net>
73089         areadlinkat: avoid failure on older glibc
73090         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
73091         rather than mis-comparing 0 against FUNC_RESULT of char*.
73093 2009-10-21  Bruno Haible  <bruno@clisp.org>
73095         * modules/stpncpy (License): Relicense under LGPLv2+.
73096         Reported by David Lutterkort <lutter@redhat.com>.
73098 2009-10-20  Eric Blake  <ebb9@byu.net>
73100         utimensat: work around Solaris 9 bug
73101         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
73102         has trailing slash bugs.
73103         * tests/test-lutimens.h (test_lutimens): Enhance test.
73104         * tests/test-utimens.h (test_utimens): Likewise.
73105         * doc/posix-functions/utime.texi (utime): Enhance documentation.
73106         * doc/posix-functions/utimes.texi (utimes): Likewise.
73107         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73108         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
73109         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
73110         * doc/posix-functions/futimens.texi (futimens): Likewise.
73112         fdutimensat: new module
73113         * modules/fdutimensat: New file.
73114         * lib/fdutimensat.c (fdutimensat): Likewise.
73115         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
73116         * MODULES.html.sh (File system functions): Mention module.
73117         * modules/fdutimensat-tests: New test.
73118         * tests/test-fdutimensat.c: Likewise.
73120         doc: regenerate INSTALL
73121         * doc/INSTALL: Reflect recent autoconf update.
73122         * doc/INSTALL.ISO: Likewise.
73123         * doc/INSTALL.UTF-8: Likewise.
73125 2009-10-20  Pádraig Brady  <P@draigBrady.com>
73127         acl: warn if ACL support is not detected
73128         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
73130 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
73132         * lib/nproc.h: Add extern "C" block for C++.
73134 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
73135             Bruno Haible  <bruno@clisp.org>
73137         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
73138         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
73139         * doc/posix-functions/isalpha.texi: Likewise.
73140         * doc/posix-functions/isblank.texi: Likewise.
73141         * doc/posix-functions/iscntrl.texi: Likewise.
73142         * doc/posix-functions/isdigit.texi: Likewise.
73143         * doc/posix-functions/isgraph.texi: Likewise.
73144         * doc/posix-functions/islower.texi: Likewise.
73145         * doc/posix-functions/isprint.texi: Likewise.
73146         * doc/posix-functions/ispunct.texi: Likewise.
73147         * doc/posix-functions/isspace.texi: Likewise.
73148         * doc/posix-functions/isupper.texi: Likewise.
73149         * doc/posix-functions/isxdigit.texi: Likewise.
73151 2009-10-18  Bruno Haible  <bruno@clisp.org>
73153         Tests for module 'isblank'.
73154         * modules/isblank-tests: New file.
73155         * tests/test-isblank.c: New file.
73157         New module 'isblank'.
73158         * lib/isblank.c: New file.
73159         * m4/isblank.m4: New file.
73160         * modules/isblank: New file.
73161         * doc/posix-functions/isblank.texi: Mention the new module.
73163 2009-10-18  Bruno Haible  <bruno@clisp.org>
73165         New module 'ctype'.
73166         * lib/ctype.in.h: New file.
73167         * m4/ctype.m4: New file.
73168         * modules/ctype: New file.
73169         * doc/posix-headers/ctype.texi: Mention the new module.
73171 2009-10-18  Jim Meyering  <meyering@redhat.com>
73173         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
73174         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
73175         right after its initialization, rather than farther down.
73176         Keeping these in close proximity makes it easier to ensure
73177         that each such variable is initialized.  E.g.,
73179             LIB_CLOCK_GETTIME=
73180             AC_SUBST([LIB_CLOCK_GETTIME])
73182         This change also increments these serial numbers.
73183         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
73184         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73187 2009-10-18  Bruno Haible  <bruno@clisp.org>
73189         Don't let environment variables perturb build.
73190         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
73191         (gl_PREREQ_GETHRXTIME): ... not here.
73193 2009-10-18  Bruno Haible  <bruno@clisp.org>
73195         Avoid symlink attack in localcharset module.
73196         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
73197         (O_NOFOLLOW): Define fallback.
73198         (get_charset_aliases): Don't open the file if it is a symbolic link.
73199         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
73200         gl_FCNTL_H.
73201         (gl_FCNTL_H): Require it.
73202         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
73203         * modules/localcharset (Files): Add m4/fcntl_h.m4.
73204         Reported by Fergal Glynn <fglynn@veracode.com>.
73206 2009-10-18  Bruno Haible  <bruno@clisp.org>
73208         Implement nproc for mingw.
73209         * lib/nproc.c: Include <windows.h>
73210         (num_processors): On native Windows platforms, try GetSystemInfo.
73212 2009-10-18  Bruno Haible  <bruno@clisp.org>
73214         Implement nproc for IRIX.
73215         * lib/nproc.c: Include <sys/sysmp.h>.
73216         (num_processors): On IRIX systems, try sysmp.
73217         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
73219 2009-10-18  Bruno Haible  <bruno@clisp.org>
73221         Implement nproc for HP-UX.
73222         * lib/nproc.c: Include <sys/pstat.h>
73223         (num_processors): On HP-UX systems, try pstat_getdynamic.
73224         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
73225         pstat_getdynamic.
73227 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
73228             Bruno Haible  <bruno@clisp.org>
73230         Implement nproc for NetBSD, OpenBSD.
73231         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
73232         (ARRAY_SIZE): New macro.
73233         (num_processors): On BSD systems, try sysctl of HW_NCPU.
73234         * m4/nproc.m4: New file.
73235         * modules/nproc (Files): Add m4/nproc.m4.
73236         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
73237         (Makefile.am): Instead, augment lib_SOURCES.
73239 2009-10-18  Bruno Haible  <bruno@clisp.org>
73241         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
73242         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
73243         sys/param.h.
73245 2009-10-16  Eric Blake  <ebb9@byu.net>
73247         utimensat: new module
73248         * modules/utimensat: New file.
73249         * lib/utimensat.c (utimensat): Likewise.
73250         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73251         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
73252         so we can work around Linux bugs.
73253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
73254         * modules/sys_stat (Makefile.am): Substitute them.
73255         * lib/sys_stat.in.h (utimensat): Declare it.
73256         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
73257         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73258         * modules/utimensat-tests: New test.
73259         * tests/test-utimensat.c: Likewise.
73261         utimens: let lutimens work on non-symlinks
73262         * lib/utimens.c (lutimens): Fall back to utimens rather than
73263         failing with ENOSYS, when file is not a symlink.
73264         (utimens): Reduce redirection.
73265         * tests/test-lutimens.h (test_lutimens): Update test to cover
73266         non-symlinks.
73267         * tests/test-utimens.h (test_utimens): Update test to cover
73268         symlinks.
73269         * tests/test-utimens.c (main): Update caller.
73271         utimens: cache whether utimensat syscall works
73272         * lib/utimens.c (utimensat_works_really): New cache variable.
73273         (fdutimens, lutimens): Use it to avoid failing syscall.
73275         test-stat-time, test-utimens: improve portability
73276         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
73277         ext4 on alpha, and for cygwin.
73278         * tests/test-utimens-common.h: New file.
73279         (nap): Factor delays into single function.
73280         * tests/test-lutimens.h (test_lutimens): Use new header.
73281         * tests/test-futimens.h (test_futimens): Likewise.
73282         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
73283         timestamps to occur from same machine, as was done previously for
73284         test_utimens.
73285         * modules/utimens-tests (Files): Ship new file.
73286         * modules/futimens-tests (Files): Likewise.
73287         Reported in part by Jim Meyering.
73289         sys_stat: sort replacement declarations
73290         * lib/sys_stat.in.h: Sort declarations.
73291         * lib/futimens.c (futimens): Fix typo.
73293 2009-10-15  Jim Meyering  <meyering@redhat.com>
73295         don't let environment settings perturb build
73296         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
73297         could cause a configure-time and/or build-time malfunction.
73298         Typically, a configure-time function-in-library test is performed
73299         via code like this:
73301           LIB_VAR=
73302           AC_SUBST([LIB_VAR])
73303           prefix_saved_LIBS=$LIBS
73304             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
73305                        [test "$ac_cv_search_FUNC" = "none required" ||
73306                         LIB_VAR=$ac_cv_search_FUNC])
73307           LIBS=$prefix_saved_LIBS
73309         However, in each of the files affected by this change, the LIB_VAR=
73310         initialization was omitted.  Thus, when set in the environment, its
73311         value would propagate into generated Makefiles when FUNC is not found
73312         in LIB_NAME.
73313         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
73314         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73317 2009-10-14  Eric Blake  <ebb9@byu.net>
73319         fchdir: avoid infinite recursion in mingw
73320         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
73321         recursing.
73323         test-stat-time: port to mingw
73324         * tests/test-stat-time.c (force_unlink): Return a value.
73325         (test_ctime) [W32]: Fix compilation error.
73326         (nap): Don't call usleep with too large an argument.  Use
73327         force_unlink.
73328         * doc/pastposix-functions/usleep.texi (usleep): Document the
73329         portability issue.
73331 2009-10-13  Jim Meyering  <meyering@redhat.com>
73333         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
73334         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
73335         * modules/pipe-filter-ii: Likewise.
73336         * modules/sys_socket-tests: Likewise.
73337         * modules/tsearch-tests: Likewise.
73338         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
73339         (check): Depend on it.
73341 2009-10-12  Eric Blake  <ebb9@byu.net>
73343         utimens-tests: port to NFS file systems
73344         * tests/test-utimens.h (test_utimens): Refactor utimecmp
73345         comparisons to avoid spurious failures from timestamp drift
73346         between NFS machines.
73348 2009-10-12  Eric Blake  <ebb9@byu.net>
73350         stat-time-tests: minor cleanups
73351         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
73352         * tests/test-stat-time.c (nap): Separate assignment from call.
73353         Suggested by Paolo Bonzini and Bruno Haible.
73355         sys_stat: guarantee struct timespec
73356         * lib/sys_stat.in.h (includes): Always include <time.h>
73357         * modules/sys_stat (Depends-on): Add time.
73358         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
73359         mode_t permission values.
73360         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
73361         get at subsecond timestamps.
73363 2009-10-10  Eric Blake  <ebb9@byu.net>
73365         futimens: new module
73366         * modules/futimens: New file.
73367         * lib/futimens.c (futimens): Likewise.
73368         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
73369         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
73370         we can work around Linux bugs.
73371         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
73372         * modules/sys_stat (Makefile.am): Substitute them.
73373         * lib/sys_stat.in.h (futimens): Declare it.
73374         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
73375         * doc/posix-functions/futimens.texi (futimens): Likewise.
73376         * modules/futimens-tests: New test.
73377         * tests/test-futimens.c: Likewise.
73379         utimens: introduce fdutimens
73380         * lib/utimens.h (fdutimens): New prototype.
73381         * lib/utimens.c (gl_futimens): Move guts...
73382         (fdutimens): ...to new interface.
73383         * tests/test-utimens.c (do_fdutimens): Use it.
73385         utimens: add UTIME_NOW and UTIME_OMIT support
73386         * lib/utimens.c (validate_timespec, update_timespec): New helper
73387         functions.
73388         (gl_futimens, lutimens): Use them.
73389         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
73390         stdbool, sys_stat.
73391         (Link): Mention resulting library dependency.
73392         * modules/utimecmp (Link): Likewise.
73393         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
73394         (Makefile.am): Pick up library dependency.
73395         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
73396         definition.
73397         * tests/test-sys_stat.c: Test the definitions.
73398         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
73399         * NEWS: Document library dependency.
73401         utimecmp: support symlink timestamps
73402         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
73403         hashing when possible.  Use pathconf when available.
73404         (SYSCALL_RESOLUTION): Recognize tighter resolution.
73405         * modules/utimecmp (Depends-on): Add lstat.
73407         utimens: add lutimens interface
73408         * lib/utimens.c (lutimens): New function.
73409         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
73410         * lib/utimens.h (lutimens): Declare new interface.
73411         * tests/test-utimens.c (main): Enhance test.
73412         * tests/test-lutimens.h (test_lutimens): New file.
73413         * modules/utimens-tests (Files): Distribute it.
73414         (Depends-on): Add symlink.
73415         (configure.ac): Check for usleep.
73417         utimens: validate futimens usage
73418         * lib/utimens.c (gl_futimens): Require valid fd up front, using
73419         fewer syscalls on failure later on.  Avoid compiler warning on
73420         mingw.
73421         * modules/utimens (Depends-on): Add dup2.
73423         utimens: add test
73424         * modules/utimens-tests: New test.
73425         * tests/test-utimens.h: New file.
73426         * tests/test-futimens.h: Likewise.
73427         * tests/test-utimens.c: Likewise.
73429         doc: mention timestamp portability issues
73430         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
73431         instead.
73432         * doc/posix-functions/utime.texi (utime): Likewise.
73433         * doc/posix-functions/utimes.texi (utimes): Likewise.
73434         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
73435         instead.
73436         * doc/posix-functions/futimens.texi (futimens): Mention utimens
73437         module.
73438         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73439         Mention weakness with symlink timestamps.
73440         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
73441         to utimensat/futimens instead.
73442         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
73444         test-dup2: enhance test
73445         * tests/test-dup2.c (main): Also check AT_FDCWD.
73447         test-stat-time: avoid more spurious failures
73448         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
73449         xfs; and avoid race if the two timestamps cross quantization edge.
73451         relocatable: prefer 'file system' over 'filesystem'
73452         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
73453         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
73454         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
73455         * doc/relocatable.texi (Enabling Relocatability): Likewise.
73456         * lib/relocatable.c (compute_curr_prefix): Likewise.
73458 2009-10-10  Jim Meyering  <meyering@redhat.com>
73460         stat-time-tests: check for the usleep function
73461         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
73463 2009-10-10  Bruno Haible  <bruno@clisp.org>
73465         * modules/xnanosleep: Put the Link section after the Include section.
73467 2009-10-09  Eric Blake  <ebb9@byu.net>
73469         dup2: work around FreeBSD 6.1 bug
73470         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
73471         * doc/posix-functions/dup2.texi (dup2): Document it.
73472         Reported by Nelson H. F. Beebe and Jim Meyering.
73474         test-stat-time: port to buggy NFS clients
73475         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
73476         (test_ctime): Also skip test if mtime and ctime are skewed.
73478         maint: prefer 'file system' over 'filesystem'
73479         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
73480         * doc/posix-functions/lstat.texi (lstat): Likewise.
73481         * lib/file-has-acl.c (file_has_acl): Likewise.
73482         * lib/fwriteerror.c [TEST]: Likewise.
73483         * tests/test-areadlink.h (test_areadlink): Likewise.
73484         * tests/test-areadlinkat-with-size.c (main): Likewise.
73485         * tests/test-areadlinkat.c (main): Likewise.
73486         * tests/test-canonicalize-lgpl.c (main): Likewise.
73487         * tests/test-canonicalize.c (main): Likewise.
73488         * tests/test-fstatat.c (main): Likewise.
73489         * tests/test-linkat.c (main): Likewise.
73490         * tests/test-lstat.h (test_lstat_func): Likewise.
73491         * tests/test-mkdir.h (test_mkdir): Likewise.
73492         * tests/test-readlink.h (test_readlink): Likewise.
73493         * tests/test-remove.c (main): Likewise.
73494         * tests/test-rename.h (test_rename): Likewise.
73495         * tests/test-renameat.c (main): Likewise.
73496         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73497         * tests/test-symlink.h (test_symlink): Likewise.
73498         * tests/test-symlinkat.c (main): Likewise.
73499         * tests/test-unlink.h (test_unlink_func): Likewise.
73500         * tests/test-unlinkat.c (main): Likewise.
73502         maint: make realtime library usage explicit
73503         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
73504         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
73505         * modules/settime (Link): Likewise.
73506         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
73508         test-stat-time: speed up execution
73509         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
73510         warning on mingw.
73511         (nap): New helper function.
73512         (prepare_test): Use it to reduce sleep time.
73513         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
73514         execution.
73515         * modules/stat-time-tests (configure.ac): Check for usleep.
73517 2009-10-09  Jim Meyering  <meyering@redhat.com>
73519         selinux-h: always use getfilecon wrappers
73520         * lib/getfilecon.c: New file.
73521         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
73522         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
73523         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
73524         (fgetfilecon): Provide a stub.
73525         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
73526         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
73527         file unconditionally.
73528         When <selinux/selinux.h> is found, arrange to use wrappers.
73529         * modules/selinux-h (Files): Add getfilecon.c.
73530         (Makefile.am): Substitute include-next-related bits
73531         into the now-always-generated selinux/selinux.h file.
73532         * doc/glibc-functions/lgetfilecon.texi: New file.
73533         * doc/glibc-functions/fgetfilecon.texi: New file.
73534         * doc/glibc-functions/getfilecon.texi: New file.
73535         * doc/glibc-functions/getfilecon-desc.texi: New file.
73536         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
73537         which to pull in the new files.
73538         * MODULES.html.sh (Misc): Add selinux-h.
73540 2009-10-08  Jim Meyering  <meyering@redhat.com>
73542         unistd: fix comment typo
73543         * lib/unistd.in.h (euidaccess): Fix a comment typo.
73545 2009-10-08  Eric Blake  <ebb9@byu.net>
73547         areadlink: use SIZE_MAX consistently
73548         * modules/areadlink (Depends-on): Add stdint.
73549         * modules/areadlink-with-size (Depends-on): Likewise.
73550         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
73551         gives NULL; drop sys/types, since unistd gives size_t; and add
73552         stdint for SIZE_MAX.
73553         (SIZE_MAX): Rely on headers.
73554         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
73555         and add stdint.
73556         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
73557         (SIZE_MAX): Likewise.
73558         (INITIAL_BUF_SIZE): Turn into enum.
73559         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
73561 2009-10-08  Jim Meyering  <meyering@redhat.com>
73563         areadlinkat: avoid compilation failure
73564         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
73565         Fix typo in comment.
73567 2009-10-07  Eric Blake  <ebb9@byu.net>
73569         areadlinkat-with-size: new module
73570         * modules/areadlinkat-with-size: New module.
73571         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
73572         * lib/areadlink.h (areadlinkat): Declare it.
73573         * MODULES.html.sh (File system functions): Mention it.
73574         * modules/areadlinkat-with-size-tests: New test.
73575         * tests/test-areadlinkat-with-size.c: New file.
73577         xreadlinkat: new module
73578         * modules/xreadlinkat: New module.
73579         * lib/xreadlinkat.c (xreadlinkat): New file.
73580         * lib/xreadlink.h (xreadlinkat): Declare it.
73581         * MODULES.html.sh (File system functions): Mention it.
73583         areadlinkat: new module
73584         * lib/at-func.c (FUNC_FAIL): New define.
73585         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
73586         * modules/areadlinkat: New module.
73587         * lib/linkat.c (areadlinkat): Move...
73588         * lib/areadlinkat.c (areadlinkat): ...to new file.
73589         * lib/areadlink.h (areadlinkat): Declare it.
73590         * modules/linkat (Depends-on): Add areadlinkat.
73591         * MODULES.html.sh (File system functions): Mention it.
73592         * modules/areadlinkat-tests: New test.
73593         * tests/test-areadlinkat.c: New file.
73595         areadlink, areadlink-with-size: add tests
73596         * modules/areadlink-tests: New test.
73597         * modules/areadlink-with-size-tests: Likewise.
73598         * tests/test-areadlink.h: New file.
73599         * tests/test-areadlink.c: Likewise.
73600         * tests/test-areadlink-with-size.c: Likewise.
73602         maint: minor cleanups
73603         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
73604         _UNUSED_PARAMETER_ instead.
73605         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
73606         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
73607         * modules/linkat-tests (Files): Distribute test-link.h.
73609         openat, utimens: whitespace cleanup
73610         * lib/openat.c: Prefer space throughout, rather than mix of 8
73611         spaces vs. tabs.
73612         * lib/at-func.c: Likewise.
73613         * lib/utimens.c: Likewise.
73615         openat: avoid using wrong fd
73616         * lib/openat.c (openat_permissive): Reject user's fd if saving the
73617         working directory chooses same fd.
73618         * lib/at-func.c (AT_FUNC_NAME): Likewise.
73620         mkdir, mkdirat: fix cygwin 1.5.x bug
73621         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
73622         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
73623         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
73624         bug.
73625         (gl_PREREQ_MKDIR): Delete unused macro.
73626         * modules/mkdir (Files): Track file rename.
73627         (configure.ac): Update macro name.
73628         * modules/openat (Depends-on): Add mkdir.
73629         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
73631         mkdir, mkdirat: add tests
73632         * modules/mkdir-tests: New test.
73633         * tests/test-mkdir.h: New file.
73634         * tests/test-mkdir.c: Likewise.
73635         * tests/test-mkdirat.c: Likewise.
73636         * modules/openat-tests (Files): Add new files.
73637         (Makefile.am): Run new test.
73639 2009-10-06  Eric Blake  <ebb9@byu.net>
73641         doc: tweak *at function documentation
73642         * doc/posix-functions/faccessat.texi (faccessat): Mention
73643         known issue with replacement.
73644         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
73645         * doc/posix-functions/linkat.texi (linkat): Likewise.
73646         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
73647         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
73648         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
73649         * doc/posix-functions/renameat.texi (renameat): Likewise.
73650         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
73652         openat: fix GNU/Hurd bug in unlinkat
73653         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
73654         broken.
73655         * doc/posix-functions/unlink.texi (unlink): Document this.
73656         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
73658         fdopendir: fix GNU/Hurd bug
73659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
73660         allowing non-directory fds.
73661         * lib/fdopendir.c (rpl_fdopendir): Work around it.
73662         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
73663         * modules/dirent (Makefile.am): Substitute it.
73664         * lib/dirent.in.h (fdopendir): Declare replacement.
73665         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
73666         * tests/test-fdopendir.c (main): Test something other than
73667         /dev/null, since on Hurd that behaves like a directory.
73669         test-symlink: port to GNU/Hurd
73670         * tests/test-symlink.h (test_symlink): Relax expected errno.
73672         doc: tweak more cygwin information
73673         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
73674         now compatible with glibc.
73675         * doc/posix-functions/getopt.texi (getopt): Likewise.
73677         getopt-gnu: add another test
73678         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
73679         guarantee behavior relied on by m4.
73680         * tests/test-getopt.c (main): Use it.
73681         * modules/getopt-posix-tests (Depends-on): Add setenv.
73682         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
73684         getopt: fix compilation on darwin
73685         * lib/getopt.in.h (includes): Leave breadcrumbs during system
73686         include.
73687         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
73688         Reported by Ludovic Courtès.
73690 2009-10-06  Bruno Haible  <bruno@clisp.org>
73692         * modules/size_max (Description): Discourage its use.
73693         Reported by Simon Josefsson.
73695 2009-10-06  Jim Meyering  <meyering@redhat.com>
73697         linkat: avoid compilation failure
73698         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
73700 2009-10-05  Eric Blake  <ebb9@byu.net>
73702         linkat: support Linux 2.6.17
73703         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
73704         linkat on Linux, but allow cache variable override.
73705         * lib/linkat.c (rpl_linkat): Define override.
73706         * modules/linkat (Depends-on): Add symlinkat.
73707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
73708         * modules/unistd (Makefile.am): Substitute it.
73709         * lib/unistd.in.h (linkat): Declare replacement.
73710         Reported by Pádraig Brady.
73712         quotearg: port test to systems with C.UTF-8 locale
73713         * tests/test-quotearg.c (struct result_strings): Add another
73714         member, differentiating between C.ASCII and C.UTF-8 handling.
73715         (compare_strings): Add parameter.
73716         (main): Adjust all callers.
73718         getopt: avoid clash with FreeBSD _getopt_internal
73719         * lib/getopt.in.h (_getopt_internal): Override the name.
73720         * lib/getopt_int.h (includes): Pick up any overrides.
73721         Reported by Reuben Thomas.
73723         hash: allow C89 compilation
73724         * lib/hash.c (check_tuning): Move declaration before statement.
73725         Reported by Reuben Thomas.
73727 2009-10-05  Karl Berry  <karl@gnu.org>
73729         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
73731 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
73732             Bruno Haible  <bruno@clisp.org>
73734         * lib/uname.c (uname): Use a table-driven algorithm to compute
73735         Windows NT versions.
73737 2009-10-04  Bruno Haible  <bruno@clisp.org>
73739         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
73740         program_invocation_short_name.
73741         * modules/progname (configure.ac): Test for presence of
73742         program_invocation_short_name.
73743         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
73745 2009-10-04  Bruno Haible  <bruno@clisp.org>
73747         * lib/progname.c (set_program_name): Fix comment.
73748         Reported by Jim Meyering.
73750 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
73751             Bruno Haible  <bruno@clisp.org>
73753         * lib/uname.c: Include <string.h>.
73754         (uname): Do only one call to GetVersionEx in the common case.
73756 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
73757             Bruno Haible  <bruno@clisp.org>
73759         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
73760         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
73761         (uname): Add support for Windows CE and various non-x86 CPU types.
73763 2009-10-03  Bruno Haible  <bruno@clisp.org>
73765         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
73766         invocation to tests/configure.ac.
73767         Reported by Ian Beckwith <ianb@erislabs.net>.
73769 2009-10-02  Eric Blake  <ebb9@byu.net>
73771         fchdir: avoid compiler warning
73772         * lib/fchdir.c (canonicalize_file_name)
73773         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
73775         test-open: support mingw errno values
73776         * tests/test-open.h (test_open): Relax test.
73777         * tests/test-fopen.h (test_fopen): Likewise.
73778         * tests/test-openat-safer.c (main): Likewise.
73780         open: fix opening directory on mingw
73781         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
73783         test-open: on GNU/Hurd, /dev/null is a directory
73784         * tests/test-fopen.h (main): Rename...
73785         (test_fopen): ...to this.  Use a guaranteed non-directory when
73786         confirming open behavior on trailing slash.
73787         * tests/test-openat-safer.c (main): Likewise.
73788         * tests/test-open.h (main): Likewise....
73789         (test_open): ...to this.
73790         * tests/test-fopen.c (main): Adjust caller.
73791         * tests/test-fopen-safer.c (main): Likewise.
73792         * tests/test-open.c (main): Likewise.
73793         * tests/test-fcntl-safer.c (main): Likewise.
73794         Reported by Samuel Thibault.
73796         rename, fchdir: don't ignore chdir failure
73797         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
73798         * lib/rename.c (rpl_rename) [W32]: Likewise.
73799         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
73800         an empty destination directory if source cannot be renamed,
73801         although there is still possibility for failure.
73802         * doc/posix-functions/rename.texi (rename): Document the race.
73803         Reported by Jim Meyering.
73805         maint: cleanup whitespace in recent commits
73806         * lib/rename.c (rpl_rename): Remove tabs.
73807         * tests/test-link.h (test_link): Likewise.
73808         * lib/fchdir.c (get_name): Likewise.
73809         Reported by Jim Meyering.
73811 2009-10-02  Ben Pfaff  <blp@gnu.org>
73813         relocatable-prog-wrapper: Add missing dependency on
73814         double-slash-root.
73815         * modules/relocatable-prog-wrapper: Add dependency.
73816         Reported by Ian Beckwith <ianb@erislabs.net>.
73818 2009-10-02  Eric Blake  <ebb9@byu.net>
73820         renameat: fix Solaris bugs
73821         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
73822         needed fixing.
73823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
73824         * modules/stdio (Makefile.am): Substitute it.
73825         * lib/stdio.in.h (renameat): Declare replacement.
73826         * lib/renameat.c (rpl_renameat): Implement fix.
73828         renameat: new module
73829         * modules/renameat: New file.
73830         * lib/renameat.c (renameat): Likewise.
73831         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
73832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
73833         * modules/stdio (Makefile.am): Substitute them.
73834         * lib/stdio.in.h (renameat): Declare it.
73835         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
73836         * doc/posix-functions/renameat.texi (renameat): Likewise.
73837         * modules/renameat-tests: New test.
73838         * tests/test-renameat.c: Likewise.
73840         rename: fix mingw bugs
73841         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
73842         directory overwrite bugs.
73844         rename: fix another cygwin 1.5 bug
73845         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
73846         checks.
73847         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
73848         unnecessary cygwin workarounds.  Also work around bug with moving
73849         full directory onto an empty one.
73850         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
73852         rename-dest-slash: merge into rename module
73853         * modules/rename-dest-slash (Status): Mark obsolete.
73854         (Depends-on): Add rename.
73855         (Files): Let rename do it all.
73856         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
73857         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
73858         * m4/rename-dest-slash.m4: ...so this file can be deleted.
73859         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
73860         * lib/rename.c (rpl_rename): Update comments.
73862         rename: fix cygwin 1.5.x bugs
73863         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
73864         * lib/rename.c (rpl_rename): Work around them.
73865         * modules/rename (Depends-on): Add same-inode.
73867         rename: fix Solaris 10 bug
73868         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
73869         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
73870         was the only bug.
73872         rename: fix Solaris 9 bug
73873         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
73874         on non-directory.  Avoid calling exit.
73875         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
73876         strdup.
73877         * modules/rename-tests (Depends-on): Drop lstat.
73878         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
73879         (gl_PREREQ_RENAME): Delete unused macro.
73881         rename-dest-slash: fix NetBSD bug
73882         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
73883         links.
73884         * modules/rename-dest-slash (Depends-on): Add same-inode.
73886         rename-tests: new test, exposes several platform bugs
73887         * modules/rename-tests: New file.
73888         * tests/test-rename.h: Likewise.
73889         * tests/test-rename.c: Likewise.
73890         * doc/posix-functions/rename.texi (rename): Improve documentation,
73891         including bugs that will eventually be fixed in gnulib.
73893 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
73895         * lib/uname.c: Include <stdlib.h>
73896         (uname): Assume version info is available.
73898 2009-10-02  Jim Meyering  <meyering@redhat.com>
73900         gnu-web-doc-update: correct --help output
73901         * build-aux/gnu-web-doc-update: Make --help output relevant.
73903         gnu-web-doc-update: add standard options
73904         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
73906         gnu-web-doc-update: New module.
73907         Use this script to automatically update the on-line web documentation
73908         for your GNU project at http://www.gnu.org/software/$pkg/manual/
73909         * modules/gnu-web-doc-update: New file, from coreutils.
73910         * build-aux/gnu-web-doc-update: New script.
73912 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
73914         link: LoadLibrary is not needed.
73915         * lib/link.c: Use GetModuleHandle.
73917 2009-10-01  Eric Blake  <ebb9@byu.net>
73919         getopt: bump serial number
73920         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
73921         change.
73923         tests: tighten link, rmdir, and remove tests
73924         * tests/test-link.h (includes): No need to use <config.h> here.
73925         Clean up if directory hard link was created, otherwise test for
73926         trailing '.'.
73927         * tests/test-linkat.c (main): Simplify.
73928         * tests/test-remove.c (main): Enhance test for trailing '.'.
73929         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73931 2009-10-01  Jim Meyering  <meyering@redhat.com>
73933         maint.mk: requiring "make major" was annoying, for a "minor" release.
73934         What is intended is "stable", to contrast with alpha and beta,
73935         so require "make stable", not "make major".
73936         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
73937         (get_tool_versions): Likewise.
73938         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
73940 2009-09-30  Ben Pfaff  <blp@gnu.org>
73942         Fix broken build of replacement for Windows tmpfile().
73943         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
73944         flags argument added along with the 'mkostemp' module.
73946 2009-09-28  Bruno Haible  <bruno@clisp.org>
73948         Avoid identifier clash with POSIX function 'remove' defined as a macro.
73949         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
73950         to 'remove_elt'.
73951         (gl_list_remove): Update.
73952         * lib/gl_list.c (gl_list_remove): Update.
73953         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
73954         to 'remove_elt'.
73955         (gl_oset_remove): Update.
73956         * lib/gl_list.c (gl_oset_remove): Update.
73957         Reported by Eric Blake.
73959 2009-09-28  Eric Blake  <ebb9@byu.net>
73961         doc: mention yet more cygwin 1.7 status
73962         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
73963         cygwin.
73964         * doc/glibc-functions/execvpe.texi (execvpe): New file.
73965         * doc/gnulib.texi (Glibc unistd.h): Mention it.
73967         argp: fix test failure
73968         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
73969         that are not upper-case.  Pass correct range to tolower.
73971 2009-09-27  Jim Meyering  <meyering@redhat.com>
73973         test-yesno: work around sparc-dash here-document infelicity
73974         Without this change, the literal \177 byte in a here document
73975         would make dash 0.5.5.1-3 access uninitialized memory.
73976         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
73977         Instead, use a marker, "@", and filter through tr to create the desired
73978         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
73980 2009-09-27  Bruno Haible  <bruno@clisp.org>
73982         Disable untested support for new flavours of ACLs on AIX.
73983         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
73984         progress.
73985         * lib/set-mode-acl.c (qset_acl): Likewise.
73987 2008-12-07  Bruno Haible  <bruno@clisp.org>
73989         Add support for new flavours of ACLs on AIX. (Untested.)
73990         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
73991         (file_has_acl): Add support for newer AIX.
73992         * lib/set-mode-acl.c (qset_acl): Likewise.
73993         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
73994         Rainer Tammer <tammer@tammer.net>.
73996 2009-09-26  Eric Blake  <ebb9@byu.net>
73998         argp: fix compilation of getopt
73999         * lib/getopt.in.h (includes): Use different guard than glibc.
74000         Reported by Sergey Poznyakoff.
74002         doc: mention more cygwin 1.7 status
74003         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
74004         bug.
74005         * doc/posix-functions/execl.texi (execl): Likewise.
74006         * doc/posix-functions/execle.texi (execle): Likewise.
74007         * doc/posix-functions/execlp.texi (execlp): Likewise.
74008         * doc/posix-functions/execv.texi (execv): Likewise.
74009         * doc/posix-functions/execve.texi (execve): Likewise.
74010         * doc/posix-functions/execvp.texi (execvp): Likewise.
74011         * doc/glibc-functions/canonicalize_file_name.texi
74012         (canonicalize_file_name): Cygwin 1.7 now provides this.
74013         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
74014         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
74015         on AT_SYMLINK_NOFOLLOW.
74017 2009-09-24  Eric Blake  <ebb9@byu.net>
74019         test-linkat: make test more robust
74020         * tests/test-linkat.c (main): Avoid collision with EEXIST.
74022         getopt: fix inclusion guards for cygwin
74023         * modules/getopt-posix (Depends-on): Add include-next.
74024         (Makefile.am): Substitute more items in replacement header.
74025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
74026         <getopt.h>.
74027         * lib/getopt.in.h (includes): Use split inclusion guard, and
74028         prefer <getopt.h> over include <unistd.h> when one is present.
74029         (option): Also override name of 'struct option'.
74031         same-inode: revert prior change; it is not yet ready
74032         * NEWS: Undo mention of this change.
74033         * lib/same-inode.h (same-inode.h): Undo tri-state change.
74034         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
74035         * lib/cycle-check.c (cycle_check): Likewise.
74036         * lib/same.c (same_name): Likewise.
74037         * lib/at-func2.c (at_func2): Likewise.
74039 2009-09-23  Eric Blake  <ebb9@byu.net>
74041         linkat: new module
74042         * modules/linkat: New file.
74043         * lib/at-func2.c (at_func2): Likewise.
74044         * lib/linkat.c (linkat): Likewise.
74045         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
74046         * lib/openat-priv.h (at_func2): Add declaration.
74047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
74048         * modules/unistd (Makefile.am): Substitute them.
74049         * lib/unistd.in.h (linkat): Declare it.
74050         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74051         * doc/posix-functions/linkat.texi (linkat): Likewise.
74052         * doc/posix-functions/link.texi (link): Tweak wording.
74053         * tests/test-link.c (main): Move guts...
74054         * tests/test-link.h (test_link): ...into new file.
74055         * modules/linkat-tests: New test.
74056         * tests/test-linkat.c: Likewise.
74057         * modules/link-tests (Files): Ship new file.
74058         (Depends-on): Add stdbool.
74060         dirname: add library-safe mdir_name
74061         * lib/dirname.h (mdir_name): New prototype.
74062         * lib/dirname.c (dir_name): Move guts...
74063         (mdir_name): ...to new function that avoids xalloc_die.
74065         fchdir: another mingw fix
74066         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
74067         * lib/fchdir.c (get_name): New helper method; skips canonicalize
74068         on mingw (where it has not yet been ported), and make it optional
74069         elsewhere.
74070         (_gl_register_fd): Use it.
74072         same-inode: make SAME_INODE tri-state, to port to mingw
74073         * NEWS: Mention this change.
74074         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
74075         st_ino always being 0.
74076         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
74077         * lib/cycle-check.c (cycle_check): Likewise.
74078         * lib/same.c (same_name): Likewise.
74080         lstat: avoid mingw compilation error
74081         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
74082         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
74083         lstat ourselves.
74084         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
74085         was adequate.
74086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
74087         the checks for lstat.
74088         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
74090         link: fix test failure on Solaris 9
74091         * lib/link.c (rpl_link): Don't assume link will catch bogus
74092         trailing slash on source.
74094         test-symlinkat: enhance test
74095         * tests/test-readlink.c (main): Move guts...
74096         * tests/test-readlink.h (test_readlink): ...into new file.
74097         * tests/test-symlink.c (main): Move guts...
74098         * tests/test-symlink.h (test_symlink): ...into new file.
74099         * tests/test-symlinkat.c (main): Use new files for further
74100         coverage.
74101         (do_symlink, do_readlink): New helper functions.
74102         * modules/symlink-tests (Files): Ship new file.
74103         (Depends-on): Add stdbool.
74104         * modules/readlink-tests (Files): Ship new file.
74105         (Depends-on): Add stdbool.
74106         * modules/symlinkat-tests (Files): Use new files.
74108 2009-09-23  Eric Blake  <ebb9@byu.net>
74110         readlink: document portability issue with symlink length
74111         * doc/posix-functions/lstat.texi (lstat): Mention that some file
74112         systems have bogus st_size on symlinks, and mention the
74113         areadlink-with-size module.
74114         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
74115         * doc/posix-functions/readlink.texi (readlink): Mention the
74116         areadlink module, and ERANGE failure.
74117         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
74118         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
74120         readlink: fix Solaris 9 bug with trailing slash
74121         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
74122         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
74123         * doc/posix-functions/readlink.texi (readlink): Document this.
74124         * modules/readlink-tests: New test.
74125         * tests/test-readlink.c: Likewise.
74127         readlink: fix cygwin 1.5.x bug with return type
74128         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
74129         * lib/unistd.in.h (readlink): Use ssize_t.
74130         * lib/readlink.c (readlink): Likewise.
74131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74132         * modules/unistd (Makefile.am): Substitute it.
74133         * lib/unistd.in.h (readlink): Declare replacement.
74134         * doc/posix-functions/readlink.texi (readlink): Document this.
74136         symlink: use throughout gnulib
74137         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
74138         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
74139         symlink is not used.
74140         * modules/symlinkat (Depends-on): Add symlink.
74141         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
74142         * modules/canonicalize-tests (Depends-on): Likewise.
74143         * modules/lstat-tests (Depends-on): Likewise.
74144         * modules/openat-tests (Depends-on): Likewise.
74145         * modules/remove-tests (Depends-on): Likewise.
74146         * modules/rmdir-tests (Depends-on): Likewise.
74147         * modules/unlink-tests (Depends-on): Likewise.
74148         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
74149         * tests/test-canonicalize.c (symlink): Likewise.
74150         * tests/test-fstatat.c (symlink): Likewise.
74151         * tests/test-lstat.c (symlink): Likewise.
74152         * tests/test-remove.c (symlink): Likewise.
74153         * tests/test-rmdir.c (symlink): Likewise.
74154         * tests/test-unlink.c (symlink): Likewise.
74155         * tests/test-unlinkat.c (symlink): Likewise.
74157         symlink: new module, for Solaris 9 bug
74158         * modules/symlink: New file.
74159         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
74160         * lib/symlink.c: Likewise.
74161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74162         * modules/unistd (Makefile.am): Substitute them.
74163         * lib/unistd.in.h (symlink): Declare replacement.
74164         * MODULES.html.sh (File system functions): Mention it.
74165         * doc/posix-functions/symlink.texi (symlink): Likewise.
74166         * modules/symlink-tests: New test.
74167         * tests/test-symlink.c: Likewise.
74169 2009-09-23  Bruno Haible  <bruno@clisp.org>
74171         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
74172         when needed.
74173         Test case: gnulib-tool --import --with-tests atexit inttypes.
74174         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
74176 2009-09-23  Bruno Haible  <bruno@clisp.org>
74178         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
74179         subcommand, not in a subshell.
74181 2009-09-22  Eric Blake  <ebb9@byu.net>
74183         unistd: sort replacement declarations
74184         * lib/unistd.in.h: Sort declarations.
74186         open, openat: minor optimization
74187         * lib/open.c (open): If open succeeded, len is non-zero.
74188         * lib/openat.c (rpl_openat): Likewise.
74190         link-follow: ensure correct result
74191         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
74192         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
74193         distinguish between possible failures.
74195 2009-09-21  Eric Blake  <ebb9@byu.net>
74197         fts: avoid compiler warning
74198         * lib/fts.c (dirent_inode_sort_may_be_useful)
74199         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
74201 2009-09-19  Bruno Haible  <bruno@clisp.org>
74203         * lib/progreloc.c (canonicalize_file_name): New declaration.
74205 2009-09-19  Eric Blake  <ebb9@byu.net>
74207         link: fix quoting
74208         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
74210         openat: fix openat bugs on Solaris 9
74211         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
74212         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
74213         * modules/openat (Depends-on): Add open.
74214         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
74215         * modules/fcntl-h (Makefile.am): Substitute it.
74216         * lib/fcntl.in.h (openat): Declare replacement.
74217         * doc/posix-functions/openat.texi (openat): Document this.
74219         openat: move fstatat and unlinkat into correct files
74220         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
74221         compiled.
74222         * lib/openat.c (fstatat, unlinkat): Move...
74223         * lib/fstatat.c (fstatat): ...into correct files.
74224         * lib/unlinkat.c (unlinkat): Likewise.
74226         openat: fix unlinkat bugs on Solaris 9
74227         * lib/unlinkat.c (unlinkat): New file.
74228         * modules/openat (Depends-on): Add unlink.
74229         (Files): Distribute it.
74230         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
74231         trailing slash behavior is broken.
74232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74233         * modules/unistd (Makefile.am): Substitute it.
74234         * lib/unistd.in.h (unlinkat): Declare replacement.
74235         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
74237         openat: fix fstatat bugs on Solaris 9
74238         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
74239         stat.
74240         * doc/posix-functions/fstatat.texi (fstatat): Document this.
74242         test-unlinkat: enhance test, to expose Solaris 9 bug
74243         * tests/test-unlink.c (main): Factor guts...
74244         * tests/test-unlink.h (test_rmdir_func): ...into new file.
74245         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
74246         * tests/test-rmdir.c (main): Adjust caller.
74247         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
74248         (unlinker): New helper function.
74249         (rmdirat): Enhance check.
74250         * modules/rmdir-tests (Depends-on): Add stdbool.
74251         * modules/unlink-tests (Depends-on): Likewise.
74252         (Files): Add test-unlink.h.
74253         * modules/openat-tests (Files): Likewise.
74254         (Depends-on): Add unlinkdir.
74256         test-fstatat: new test, to expose Solaris 9 bugs
74257         * tests/test-stat.c (main): Factor guts...
74258         * tests/test-stat.h (test_stat_func): ...into new file.
74259         * tests/test-lstat.c (main): Factor guts...
74260         * tests/test-lstat.h (test_lstat_func): ...into new file.
74261         * tests/test-fstatat.c: New file.
74262         * modules/stat-tests (Files): Add test-stat.h.
74263         * modules/lstat-tests (Files): Add test-lstat.h.
74264         (Depends-on): Add stdbool.
74265         * modules/openat-tests (Depends-on): Add pathmax.
74266         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
74267         (Makefile.am): Run new test.
74269         remove: new module, for mingw and Solaris 9 bugs
74270         * modules/remove: New file.
74271         * lib/remove.c: Likewise.
74272         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
74273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
74274         * modules/stdio (Makefile.am): Use them.
74275         * lib/stdio.in.h (remove): Declare replacement.
74276         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74277         * doc/posix-functions/remove.texi (remove): Likewise.
74278         * modules/remove-tests: New test.
74279         * tests/test-remove.c: Likewise.
74281         unlink: new module, for Solaris 9 bug
74282         * modules/unlink: New file.
74283         * lib/unlink.c: Likewise.
74284         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
74285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
74286         * modules/unistd (Makefile.am): Use them.
74287         * lib/unistd.in.h (stat): Declare replacement.
74288         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74289         * doc/posix-functions/unlink.texi (unlink): Likewise.
74290         * modules/unlink-tests: New test.
74291         * tests/test-unlink.c: Likewise.
74293         lstat: fix Solaris 9 bug
74294         * lib/lstat.c (lstat): Also check for trailing slash on
74295         non-symlink, non-directories.  Use stat module to simplify logic.
74296         * doc/posix-functions/lstat.texi (lstat): Document it.
74297         * modules/lstat-tests (Depends-on): Add errno, same-inode.
74298         (configure.ac): Check for symlink.
74299         * tests/test-lstat.c (main): Add more tests.
74301         stat: add as dependency to other modules
74302         * modules/chown (Depends-on): Add stat.
74303         * modules/euidaccess (Depends-on): Likewise.
74304         * modules/fchdir (Depends-on): Likewise.
74305         * modules/isdir (Depends-on): Likewise.
74306         * modules/link (Depends-on): Likewise.
74307         * modules/lstat (Depends-on): Likewise.
74308         * modules/mkdir-p (Depends-on): Likewise.
74309         * modules/modechange (Depends-on): Likewise.
74310         * modules/open (Depends-on): Likewise.
74311         * modules/readlink (Depends-on): Likewise.
74312         * modules/same (Depends-on): Likewise.
74314         stat: fix Solaris 9 bug
74315         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
74316         slash.
74317         * lib/stat.c (rpl_stat): Work around it.
74318         * doc/posix-functions/stat.texi (stat): Update documentation.
74320         stat: new module, for mingw bug
74321         * modules/stat: New file.
74322         * lib/stat.c: Likewise.
74323         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74325         * modules/sys_stat (Makefile.am): Use them.
74326         * lib/sys_stat.in.h (stat): Declare replacement.
74327         * lib/openat.c (fstatat): Deal with lstat and stat being function
74328         macros.
74329         * modules/openat (Depends-on): Add inline.
74330         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74331         * doc/posix-functions/stat.texi (stat): Likewise.
74332         * modules/stat-tests: New test.
74333         * tests/test-stat.c: Likewise.
74335 2009-09-19  Jim Meyering  <meyering@redhat.com>
74337         syntax-check: detect unnecessary inclusion of canonicalize.h
74338         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
74340 2009-09-19  Eric Blake  <ebb9@byu.net>
74342         canonicalize-lgpl: adjust clients to use correct header
74343         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
74344         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
74345         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
74346         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
74347         * lib/progreloc.c (includes): Likewise.
74349 2009-09-19  Jim Meyering  <meyering@redhat.com>
74351         test-posixtm.c: correct a comment
74352         * tests/test-posixtm.c: Correct first-line comment.
74353         Spotted by Eric Blake.
74355 2009-09-16  Jim Meyering  <meyering@redhat.com>
74357         posixtm-tests: make T const-correct; add a test case
74358         * tests/test-posixtm.c (T): Declare const.
74359         Add a test for -(2^31+1).
74360         Remove useless can-succeed-only-in-2002 test.
74362         posixtm-tests: adjust the sole failing test
74363         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
74364         expected output matches what mktime now produces.  Cross-checked via
74365         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
74367         posixtm: move #ifdef'd tests into a new module
74368         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
74369         * tests/test-posixtm.c: ... this new file.
74370         * modules/posixtm-tests: New module.
74372 2009-09-19  Eric Blake  <ebb9@byu.net>
74374         openat: simplify use of at-func.c
74375         * lib/at-func.c (includes): Include prerequisites here, to
74376         simplify requirements on client files.
74377         * lib/openat-priv.h: Add double-inclusion guard.
74378         * lib/faccessat.c (includes): Simplify.
74379         * lib/fchmodat.c (includes): Likewise.
74380         * lib/fchownat.c (includes): Likewise.
74381         * lib/mkdirat.c (includes): Likewise.
74382         * lib/mkfifoat.c (includes): Likewise.
74383         * lib/symlinkat.c (includes): Likewise.
74385         openat: allow return of fd 0
74386         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
74387         * modules/save-cwd (Depends-on): Replace fcntl-safer with
74388         unistd-safer.
74389         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
74390         <fcntl.h>; this module does not leak fds.
74391         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
74392         must be allowed to return 0, leaving openat_safer to add the
74393         safety.
74394         (openat_permissive): Avoid writing to just-opened fd 2 if
74395         restoring the current directory fails.
74396         * lib/openat-die.c (openat_restore_fail): Add comment.
74397         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
74398         (save_cwd): Guarantee safe fd, but without use of open_safer.
74399         * tests/test-openat.c: New test.
74400         * modules/openat-tests (Files, Makefile.am): Distribute and build
74401         new file.
74403         relocatable-prog-wrapper: fix build
74404         * modules/relocatable-prog-wrapper (Files): Update name of
74405         canonicalize m4 file, broken on 2009-09-17.
74406         Reported by emad hajjar <aleppos@hotmail.com>.
74408 2009-09-19  Bruno Haible  <bruno@clisp.org>
74410         * lib/safe-alloc.h: Use the standard header with GPL copyright.
74411         * lib/safe-alloc.c: Likewise.
74412         Reported by Ian Beckwith <ianb@erislabs.net>.
74414 2009-09-18  Bruno Haible  <bruno@clisp.org>
74416         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
74417         Reported by <erobles@sensacd.com.mx>.
74419 2009-09-17  Eric Blake  <ebb9@byu.net>
74421         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
74422         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
74423         slashes when checking if last component is missing.
74424         * tests/test-canonicalize.c (main): Test this.
74426         canonicalize, canonicalize-lgpl: honor // if distinct from /
74427         * modules/canonicalize (Files): Add double-slash-root.m4.
74428         * modules/canonicalize-lgpl (Files): Likewise.
74429         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
74430         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
74431         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
74432         fallback definition.
74433         (canonicalize_filename_mode): Use it to protect //.
74434         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
74435         (__realpath): Likewise.
74436         * tests/test-canonicalize.c (main): Test this.
74437         * tests/test-canonicalize-lgpl.c (main): Likewise.
74438         * modules/canonicalize-tests (Depends-on): Add same-inode.
74439         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
74441         canonicalize-lgpl: fix glibc bug with trailing slash
74442         * m4/canonicalize-lgpl.m4: Move contents...
74443         * m4/canonicalize.m4: ...here.
74444         (gl_CANONICALIZE_LGPL): Factor realpath check...
74445         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
74446         glibc 2.3.5 bug, fixed 2005-04-27.
74447         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
74448         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
74449         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
74450         * modules/canonicalize-lgpl (Files): Manage file rename.
74451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
74452         * modules/stdlib (Makefile.am): Substitute witness.
74453         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
74454         is needed.
74455         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
74456         replacement is required.
74457         * lib/canonicalize.c (canonicalize_file_name): Likewise.
74458         * doc/glibc-functions/canonicalize_file_name.texi
74459         (canonicalize_file_name): Document this.
74460         * doc/posix-functions/realpath.texi (realpath): Likewise.
74462         canonicalize-lgpl: reject non-directory with trailing slash
74463         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
74464         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
74465         catches failures in glibc 2.3.5.
74466         * tests/test-canonicalize.c (main): Likewise.
74468         canonicalize-lgpl: use native realpath if it works
74469         * lib/canonicalize-lgpl.c (realpath): Guard with
74470         FUNC_REALPATH_WORKS.
74471         * lib/stdlib.in.h (realpath): Make declaration optional based on
74472         HAVE_REALPATH.
74473         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
74474         native realpath works.
74475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
74476         * modules/stdlib (Makefile.am): Substitute witness.
74478         canonicalize, canonicalize-lgpl: use <stdlib.h>
74479         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
74480         (Include): Mention <stdlib.h>.
74481         (configure.ac): Mention functions we provide.
74482         * modules/canonicalize (configure.ac): Likewise.
74483         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
74484         realpath if canonicalize_file_name is missing.
74485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
74486         * modules/stdlib (Makefile.am): Substitute witnesses.
74487         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
74488         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
74489         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
74490         * NEWS: Document this.
74491         * doc/glibc-functions/canonicalize_file_name.texi
74492         (canonicalize_file_name): Likewise.
74493         * doc/posix-functions/realpath.texi (realpath): Likewise.
74494         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
74496         test-canonicalize: consolidate into single C program
74497         * tests/test-canonicalize.sh: Delete; move setup into...
74498         * tests/test-canonicalize.c (main): ...the program, making it
74499         easier to run in debugger.  Add some tests.
74500         * modules/canonicalize-tests (Files): Remove unused file.
74501         (Depends-on): Add progname.
74502         (configure.ac, Makefile.am): Simplify.
74504         test-canonicalize-lgpl: consolidate into single C program
74505         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
74506         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
74507         easier to run in debugger.  Add some tests.
74508         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
74509         (configure.ac, Makefile.am): Simplify.
74511         canonicalize: avoid resolvepath
74512         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
74513         unnecessary checks.
74514         * lib/canonicalize.c (includes): Simplify.
74515         (canonicalize_file_name): Drop resolvepath implementation.
74516         * modules/canonicalize (Depends-on): Drop filenamecat.
74518         canonicalize: don't lose errno
74519         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
74520         over calls to free.
74522         canonicalize: simplify errno handling
74523         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
74524         assignment.
74526         canonicalize, canonicalize-lgpl: update module dependencies
74527         * modules/canonicalize (Depends-on): Add extensions, lstat,
74528         pathmax, stdlib.
74529         (Files): Drop pathmax.h.
74530         (configure.ac): Adjust macro name.
74531         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
74532         lstat, stdlib, sys_stat.
74533         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
74534         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
74535         extensions.
74536         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
74537         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
74538         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
74539         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
74540         declaration, if available.
74541         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
74542         we can rely on the readlink module.
74543         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
74544         (includes): Use <unistd.h> unconditionally.
74546 2009-09-17  Eric Blake  <ebb9@byu.net>
74548         maint: make Include sections of modules consistent
74549         * modules/alloca: Use only header name; no need to list #include.
74550         * modules/alloca-opt: Likewise.
74551         * modules/arpa_inet: Likewise.
74552         * modules/canon-host: Likewise.
74553         * modules/configmake: Likewise.
74554         * modules/dirent: Likewise.
74555         * modules/eealloc: Likewise.
74556         * modules/environ: Likewise.
74557         * modules/fchdir: Likewise.
74558         * modules/fcntl: Likewise.
74559         * modules/fcntl-h: Likewise.
74560         * modules/gethrxtime: Likewise.
74561         * modules/gettime: Likewise.
74562         * modules/ignore-value: Likewise.
74563         * modules/inet_ntop: Likewise.
74564         * modules/inet_pton: Likewise.
74565         * modules/inttypes: Likewise.
74566         * modules/isnand-nolibm: Likewise.
74567         * modules/isnanf-nolibm: Likewise.
74568         * modules/mbchar: Likewise.
74569         * modules/mbfile: Likewise.
74570         * modules/mbiter: Likewise.
74571         * modules/mbuiter: Likewise.
74572         * modules/netdb: Likewise.
74573         * modules/netinet_in: Likewise.
74574         * modules/nproc: Likewise.
74575         * modules/pagealign_alloc: Likewise.
74576         * modules/poll: Likewise.
74577         * modules/printf-frexp: Likewise.
74578         * modules/pthread: Likewise.
74579         * modules/putenv: Likewise.
74580         * modules/random_r: Likewise.
74581         * modules/relocatable-prog: Likewise.
74582         * modules/search: Likewise.
74583         * modules/select: Likewise.
74584         * modules/selinux-h: Likewise.
74585         * modules/settime: Likewise.
74586         * modules/signal: Likewise.
74587         * modules/size_max: Likewise.
74588         * modules/socklen: Likewise.
74589         * modules/ssize_t: Likewise.
74590         * modules/stdarg: Likewise.
74591         * modules/stdbool: Likewise.
74592         * modules/stddef: Likewise.
74593         * modules/stdint: Likewise.
74594         * modules/stdio: Likewise.
74595         * modules/stdlib: Likewise.
74596         * modules/string: Likewise.
74597         * modules/strings: Likewise.
74598         * modules/sys_file: Likewise.
74599         * modules/sys_ioctl: Likewise.
74600         * modules/sys_select: Likewise.
74601         * modules/sys_socket: Likewise.
74602         * modules/sys_stat: Likewise.
74603         * modules/sys_time: Likewise.
74604         * modules/sys_times: Likewise.
74605         * modules/sys_utsname: Likewise.
74606         * modules/sys_wait: Likewise.
74607         * modules/sysexits: Likewise.
74608         * modules/time: Likewise.
74609         * modules/times: Likewise.
74610         * modules/tmpfile: Likewise.
74611         * modules/trim: Likewise.
74612         * modules/unistd: Likewise.
74613         * modules/wchar: Likewise.
74614         * modules/wctype: Likewise.
74616 2009-09-17  Bruno Haible  <bruno@clisp.org>
74618         Make getdate.y compile on QNX and NetBSD 5 / i386.
74619         * m4/getdate.m4 (gl_GETDATE): Conditionally define
74620         TIME_T_FITS_IN_LONG_INT.
74621         * lib/getdate.y (long_time_t): New type.
74622         (relative_time): Change type of 'seconds' field to long_time_t.
74623         (get_date): Update types of local variables. Check against overflow
74624         during conversion from long_time_t to time_t.
74625         Reported by Matt Kraai <kraai@ftbfs.org>
74626         and Hasso Tepper <hasso@netbsd.org>.
74628 2009-09-17  Bruno Haible  <bruno@clisp.org>
74630         * modules/COPYING: Update copyright years.
74631         * modules/README: Likeiwse.
74632         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
74633         Reported by Ian Beckwith <ianb@erislabs.net>.
74635 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
74637         * users.txt: Update references for gnuit package.
74639 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
74641         * m4/getdelim.m4: Fix typo in copyright line.
74643 2009-09-17  Bruno Haible  <bruno@clisp.org>
74645         * lib/atoll.c: Use the standard header with GPL copyright.
74646         * lib/argz.in.h: Likewise.
74647         * lib/glob.c: Likewise.
74648         * lib/glob-libc.h: Likewise.
74649         * lib/random_r.c: Likewise.
74650         * lib/siglist.h: Likewise.
74651         * lib/strsignal.c: Likewise.
74652         Reported by Ian Beckwith <ianb@erislabs.net>.
74654 2009-09-17  Eric Blake  <ebb9@byu.net>
74656         rmdir: ensure correct dependency order
74657         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
74659 2009-09-17  Bruno Haible  <bruno@clisp.org>
74661         Disable assertion that fails on NetBSD 5 / i386.
74662         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
74663         Reported by Sam Steingold <sds@gnu.org>
74664         and Hasso Tepper <hasso@netbsd.org>.
74666 2009-09-16  Eric Blake  <ebb9@byu.net>
74668         unlinkdir: port to mingw
74669         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
74670         on which no one can unlink a directory.
74672         stdlib: sort witness names
74673         * modules/stdlib (Makefile.am): Sort replacements.
74674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
74675         * lib/stdlib.in.h: Likewise.
74677         parse-duration-tests: avoid link failure
74678         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
74679         LIBINTL.
74680         Reported by Tom G. Christensen.
74682         openat-tests: ensure unlinkat behaves like rmdir
74683         * tests/test-rmdir.c (main): Factor guts...
74684         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
74685         * modules/rmdir-tests (Files): Ship new file.
74686         * modules/openat-tests: New test.
74687         * tests/test-unlinkat.c: Likewise.
74689         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
74690         * modules/rmdir-errno (Status, Notice): Now obsolete.
74692         rmdir: work around cygwin 1.5.x and mingw bugs
74693         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
74694         * lib/rmdir.c (rmdir): Work around it.
74695         * modules/rmdir (Status, Notice): No longer obsolete.
74696         (Files): Add dos.m4.
74697         (Depends-on): Add unistd.
74698         (configure.ac): Set witnesses.
74699         (License): Relax to LGPLv2+.
74700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
74701         * modules/unistd (Makefile.am): Substitute witnesses.
74702         * lib/unistd.in.h (rmdir): Declare replacement.
74703         * doc/posix-functions/rmdir.texi (rmdir): Document this.
74704         * modules/rmdir-tests: New tests.
74705         * tests/test-rmdir.c: Likewise.
74707 2009-09-15  Eric Blake  <ebb9@byu.net>
74709         fchdir: improve use of replacement functions
74710         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
74711         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
74712         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
74713         REPLACE_CLOSEDIR.
74714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
74715         * modules/sys_stat (Makefile.am): Substitute correct witness.
74716         * modules/dirent (Makefile.am): Likewise.
74717         * modules/unistd (Makefile.am): Likewise.
74718         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
74719         * lib/unistd.in.h (dup): Likewise.
74720         * lib/sys_stat.in.h (fstat): Likewise.
74722         maint: ignore gnulib-tool temp files
74723         * .gitignore: Ignore files created during gnulib-tool --test.
74725 2009-09-13  Jim Meyering  <meyering@redhat.com>
74727         posixtm: don't reject a time that specify "60" as the number of seconds
74728         * lib/posixtm.c (posixtime): The code to reject invalid dates
74729         would also reject a time specified with the .60 suffix.
74730         But POSIX allows that, in order to accommodate leap seconds.
74731         So don't reject it.
74732         (main): Adjust tests accordingly.
74733         * modules/posixtm (Depends-on): Add stpcpy.
74735 2009-09-11  Jim Meyering  <meyering@redhat.com>
74737         announce-gen: include [$release_type] in emitted Subject:
74738         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
74739         e.g., [stable] in the emitted Subject: line.
74741 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74743         Remove obsolete macros from several modules.
74744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
74745         obsolete Autoconf macros with their modern counterparts.
74746         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
74747         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
74748         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
74749         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74750         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
74751         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
74752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
74753         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
74754         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
74755         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
74756         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
74757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
74758         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
74759         * m4/sockets.m4 (gl_SOCKETS): Likewise.
74760         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
74761         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
74762         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
74763         * m4/time_r.m4 (gl_TIME_R): Likewise.
74764         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
74765         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
74766         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74768         Fix copyright header in build-aux scripts.
74769         * build-aux/git-version-gen: Fix copyright header to match GPLv3
74770         recommendation.
74771         * build-aux/ncftpput-ftp: Likewise.
74772         * build-aux/update-copyright: Likewise.
74774 2009-09-09  Eric Blake  <ebb9@byu.net>
74776         test-link: allow Linux choice of errno
74777         * tests/test-link.c (main): Relax test for alternate error.
74779         strndup: fix improper m4 caching
74780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
74781         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
74782         (gl_PREREQ_STRNDUP): Delete.
74783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
74784         * modules/string (Makefile.am): Substitute it.
74785         * lib/string.in.h (strndup): Modernize prototype.
74787         getcwd: port to mingw
74788         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
74789         different from the POSIX assumptions made throughout the getcwd
74790         module; fortunately, the mingw getcwd does not need replacement.
74791         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
74792         * modules/getcwd-tests: New test.
74793         * tests/test-getcwd.c: Likewise.
74795         link: fix platform bugs
74796         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
74797         * lib/link.c (link): Work around them.  Fix related mingw bug.
74798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
74799         * modules/unistd (Makefile.am): Substitute it.
74800         * lib/unistd.in.h (link): Declare replacement.
74801         * doc/posix-functions/link.texi (link): Document this.
74802         * modules/link (Depends-on): Add strdup-posix, sys_stat.
74804         test-link: consolidate into single C program, test more cases
74805         * tests/test-link.sh: Delete.
74806         * tests/test-link.c: Test more error conditions.  Exposes bugs on
74807         at least Cygwin and Solaris.
74808         * modules/link-tests (Files): Remove unused file.
74809         (Depends-on): Add errno, sys_stat.
74810         (Makefile.am): Simplify.
74812 2009-09-08  Bruno Haible  <bruno@clisp.org>
74814         Work around towlower, towupper bug on mingw.
74815         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
74816         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
74817         * doc/posix-functions/towlower.texi: Mention the mingw bug.
74818         * doc/posix-functions/towupper.texi: Likewise.
74819         Reported by Eric Blake.
74821 2009-09-08  Jim Meyering  <meyering@redhat.com>
74823         build: don't try to run autoheader if we don't use it
74824         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
74825         is not used in configure.ac.
74827 2009-09-08  Eric Blake  <ebb9@byu.net>
74829         euidaccess: fix compilation error
74830         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
74832         rawmemchr: relax license
74833         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
74834         okay.
74835         Reported by Jim Meyering.
74837         mkfifoat: new module
74838         * modules/mkfifoat: New file.
74839         * lib/mkfifoat.c: Likewise.
74840         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
74841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74842         * modules/sys_stat (Makefile.am): Use them.
74843         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
74844         * MODULES.html.sh (File system functions): Mention module.
74845         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
74846         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
74847         * modules/mkfifoat-tests: New test.
74848         * tests/test-mkfifoat.c: Likewise.
74850         strchrnul: relax license
74851         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
74852         okay.
74853         Reported by Jim Meyering.
74855 2009-09-08  Eric Blake  <ebb9@byu.net>
74857         fstatat: fix compilation on Solaris
74858         * lib/fstatat.c (includes): Add fcntl.h.
74859         Reported by Pádraig Brady.
74861 2009-09-07  Eric Blake  <ebb9@byu.net>
74863         rename: modernize replacement
74864         * modules/rename (Depends-on): Add stdio.
74865         (configure.ac): Declare witness.
74866         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
74867         stdio take care of replacement.
74868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
74869         * modules/stdio (Makefile.am): Substitute them.
74870         * lib/stdio.in.h (rename): Declare replacement.
74871         * lib/rename.c (includes): Allow cross-compilation to non-windows
74872         machines.
74873         * doc/posix-functions/rename.texi (rename): Improve
74874         documentation.
74876         stdio: sort witness names
74877         * modules/stdio (Makefile.am): Sort replacements.
74878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74879         * lib/stdio.in.h: Likewise.
74881         getcwd: minor cleanups
74882         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
74883         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
74885         openat: provide more convenience names
74886         * modules/faccessat (configure.ac): Add C witness.
74887         * lib/unistd.in.h (readlinkat): Fix typo.
74888         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
74889         convenience wrappers.
74890         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
74891         wrappers in syntax checks.
74893 2009-09-06  Eric Blake  <ebb9@byu.net>
74895         doc: fix comments in recent patches
74896         * lib/faccessat.c: Mention correct function.
74897         * lib/fchmodat.c: Likewise.
74898         * lib/fchownat.c: Likewise.
74899         * lib/symlinkat.c: Likewise.
74900         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
74901         constants.
74903         faccessat, symlinkat: continue cleanup of previous patch
74904         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
74905         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
74906         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
74907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
74908         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
74909         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
74910         set.
74912 2009-09-06  Bruno Haible  <bruno@clisp.org>
74914         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
74915         (fstatat): Declare if GNULIB_FSTATAT is set.
74916         (mkdirat): Declare if GNULIB_MKDIRAT is set.
74917         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
74918         (unlinkat): Declare if GNULIB_UNLINKAT is set.
74919         * modules/fcntl-h (Files): Remove m4/openat.m4.
74920         * modules/sys_stat (Files): Remove m4/openat.m4.
74921         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
74922         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
74923         * modules/unistd (Files): Remove m4/openat.m4.
74924         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
74925         GNULIB_OPENAT.
74926         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
74927         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
74928         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
74929         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
74930         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
74931         gl_OPENAT_DEFAULTS.
74932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
74933         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
74934         Don't require gl_OPENAT_DEFAULTS.
74935         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
74936         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
74937         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
74938         (gl_OPENAT_DEFAULTS): Remove macro.
74940 2009-09-06  Bruno Haible  <bruno@clisp.org>
74942         * modules/openat (configure.ac): Remove unneeded witness.
74944 2009-09-06  Bruno Haible  <bruno@clisp.org>
74946         Set errno to ENOSYS when a function is entirely unsupported.
74947         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
74948         EOPNOTSUPP.
74949         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
74950         * modules/chown (Depends-on): Remove errno.
74952 2009-09-06  Bruno Haible  <bruno@clisp.org>
74954         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
74956 2009-09-06  Bruno Haible  <bruno@clisp.org>
74958         * lib/sys_stat.in.h: Fix preprocessor command indentation.
74960 2009-09-06  Ben Pfaff  <blp@gnu.org>
74961             Bruno Haible  <bruno@clisp.org>
74963         Work around a glibc bug in strtok_r.
74964         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
74965         Undefine if UNDEFINE_STRTOK_R is set.
74966         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
74967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74968         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
74969         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
74970         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
74971         UNDEFINE_STRTOK_R.
74972         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
74974 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
74976         exclude: minor fix
74977         * lib/exclude.c: Include wctype.h
74979 2009-09-06  Akim Demaille  <demaille@gostai.com>
74981         bootstrap: improve error message
74982         * build-aux/bootstrap (find_tool): Upon failure, report the list
74983         of candidates.
74984         Honor the initial value of the envvar.
74986 2009-09-05  Eric Blake  <ebb9@byu.net>
74988         symlinkat: new module
74989         * modules/symlinkat: New file.
74990         * lib/symlinkat.c: Likewise.
74991         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
74992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
74993         * modules/unistd (Makefile.am): Use them.
74994         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
74995         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
74996         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
74997         * MODULES.html.sh (File system functions): Mention module.
74998         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74999         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75000         * modules/symlinkat-tests: New test.
75001         * tests/test-symlinkat.c: Likewise.
75003         test-openat-safer: add more checks
75004         * tests/test-openat-safer.c (main): Check more code paths.
75006 2009-09-05  Jim Meyering  <meyering@redhat.com>
75008         syntax-check: detect unnecessary inclusion of openat.h
75009         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
75011 2009-09-05  Bruno Haible  <bruno@clisp.org>
75013         Support towlower, towupper.
75014         * doc/posix-functions/towlower.texi: Mention module wctype.
75015         * doc/posix-functions/towupper.texi: Likewise.
75016         * lib/wctype.in.h (towlower, towupper): New functions.
75017         * tests/test-wctype.c: Include stdio.h, stdlib.h.
75018         (ASSERT): New macro.
75019         (e): New variable.
75020         (main): Test also towlower, towupper. Test WEOF argument.
75021         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75023 2009-09-05  Bruno Haible  <bruno@clisp.org>
75025         Fix conversion behaviour when the input is invalid.
75026         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
75027         mark occurring in first pass of indirect conversion.
75028         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
75029         input.
75030         Found by clang's static analyzer.
75032 2009-09-05  Bruno Haible  <bruno@clisp.org>
75034         * tests/test-striconveh.c (main): Test indirect conversion on platforms
75035         where direct conversion is possible.
75037 2009-09-04  Eric Blake  <ebb9@byu.net>
75039         openat: fail with ENOENT on empty name
75040         * lib/openat-proc.c (openat_proc_name): Special-case the empty
75041         buffer.
75043         link-follow: fix logic bug in prior patch
75044         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
75045         reversed sense of yes and no in prior patch.  Avoid confusing
75046         compilation failure with desired semantics.
75048         link-follow: accommodate mingw and cross-compilation
75049         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
75050         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
75051         cross-compilation results to -1, to make linkat easier to
75052         implement when cross-compiling.  Trivially support mingw.
75053         * modules/link-follow (configure.ac): Call new name.
75054         * NEWS: Mention this.
75056 2009-09-03  Eric Blake  <ebb9@byu.net>
75058         faccessat: compile replacement
75059         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
75060         needed.
75062         fts: fix compilation error
75063         * lib/fts.c (includes): Re-add "openat.h", for
75064         openat_needs_fchdir.
75066         faccessat: new module
75067         * modules/faccessat: New file.
75068         * lib/faccessat.c: Likewise.
75069         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
75070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75071         * modules/unistd (Makefile.am): Use it.
75072         * lib/unistd.in.h (faccessat): Declare it.
75073         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
75074         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
75075         * MODULES.html.sh (File system functions): Mention it.
75076         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
75077         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75079         euidaccess: prefer POSIX over non-standard implementation
75080         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
75081         * lib/euidaccess.c (euidaccess): Use it if available.
75083         openat: make template easier to use
75084         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
75085         AT_FUNC_F2 to be undefined.
75086         (VALIDATE_FLAG): New macro; use it to reject bad flags.
75087         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
75088         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
75089         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
75090         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
75091         Likewise.
75092         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
75093         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
75094         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
75095         Likewise.
75097         openat: declare in POSIX headers
75098         * NEWS: Mention this.
75099         * modules/openat (configure.ac): Declare witnesses.
75100         (Depends-on): Add fcntl-h, sys_stat, unistd.
75101         (Include): Mention correct headers.
75102         * modules/fcntl-h (Depends-on): Add link-warning.
75103         (Files): Add openat.m4.
75104         (Makefile.am): Substitute witnesses.
75105         * modules/sys_stat (Files, Makefile.am): Likewise.
75106         * modules/unistd (Files, Makefile.am): Likewise.
75107         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
75108         (gl_OPENAT_DEFAULTS): New macro.
75109         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
75110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
75111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
75112         (SYS_STAT_H): Remove unused variable.
75113         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
75114         * lib/fcntl--.h (includes): Remove unneeded header.
75115         * lib/openat-safer.c (includes): Likewise.
75116         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
75117         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
75118         appropriate headers.
75119         (__OPENAT_PREFIX): Delete.
75120         * lib/fcntl.in.h (openat): Provide declaration.
75121         (AT_FDCWD): Fix Solaris bug.
75122         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
75123         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
75124         * lib/fchmodat.c (includes):  Adjust to find declaration.
75125         * lib/fchownat.c (includes): Likewise.
75126         * lib/mkdirat.c (includes): Likewise.
75127         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
75128         still visible.
75130 2009-09-02  Eric Blake  <ebb9@byu.net>
75132         errno: use consistently
75133         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
75134         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
75135         * lib/canonicalize.c (ELOOP): Likewise.
75136         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
75137         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
75138         * lib/lchown.c (EOPNOTSUPP): Likewise.
75139         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
75140         * lib/savewd.c (ESTALE): Likewise.
75141         * lib/settime.c (ENOSYS): Likewise.
75142         * lib/utimens.c (ENOSYS): Likewise.
75143         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
75144         * lib/chdir-safer.c (ELOOP): Likewise.
75145         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
75146         * modules/c-stack (Depends-on): Add errno.
75147         * modules/canonicalize (Depends-on): Likewise.
75148         * modules/chdir-safer (Depends-on): Likewise.
75149         * modules/fdopendir (Depends-on): Likewise.
75150         * modules/inet_ntop (Depends-on): Likewise.
75151         * modules/inet_pton (Depends-on): Likewise.
75152         * modules/lchown (Depends-on): Likewise.
75153         * modules/openat (Depends-on): Likewise.
75154         * modules/savewd (Depends-on): Likewise.
75155         * modules/settime (Depends-on): Likewise.
75156         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
75158         fts: avoid leaking fds
75159         * modules/fts (Depends-on): Add cloexec.
75160         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
75161         flag.
75163         fts: make directory fds more robust
75164         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
75165         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
75167         backupfile, chdir-long, fts, savedir: make safer
75168         * lib/backupfile.c (includes): Use "dirent--.h", since
75169         numbered_backup can write to stderr during readdir.
75170         * lib/savedir.c (includes): Likewise.
75171         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
75172         emulation can write to stderr on failure.
75173         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
75174         * lib/getcwd.c: Document why opendir_safer is unused.
75175         * lib/glob.c: Likewise.
75176         * lib/scandir.c: Likewise.
75177         * lib/openat-proc.c: Likewise, for open_safer.
75178         * modules/backupfile (Depends-on): Add dirent-safer.
75179         * modules/savedir (Depends-on): Likewise.
75180         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
75181         * modules/chdir-long (Depends-on): Add openat-safer.
75183         openat-safer: new module
75184         * modules/openat-safer: New file.
75185         * lib/openat-safer.c: Likewise.
75186         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
75187         * lib/fcntl-safer.h (openat_safer): Declare.
75188         * lib/fcntl--.h (openat): Override.
75189         * MODULES.html.sh (File descriptor based I/O): Mention it.
75190         * lib/openat.h: Add double-inclusion guards.
75191         * lib/openat.c (includes): Only include "fcntl-safer.h", not
75192         "fcntl--.h", so we can implement openat.
75193         * modules/openat-safer-tests: New test.
75194         * tests/test-openat-safer.c: New file.
75196         dirent-safer: new module
75197         * modules/dirent-safer: New file.
75198         * lib/dirent--.h: Likewise.
75199         * lib/dirent-safer.h: Likewise.
75200         * lib/opendir-safer.c: Likewise.
75201         * m4/dirent-safer.m4: Likewise.
75202         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
75203         * modules/dirent-safer-tests: New test.
75204         * tests/test-dirent-safer.c: New file.
75205         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
75207         fdopendir: optimize on mingw
75208         * lib/unistd.in.h (_gl_directory_name): New prototype.
75209         * lib/fchdir.c (_gl_directory_name): Implement it.
75210         (fchdir): Use it to simplify implementation.
75211         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
75212         fchdir, when available, to avoid calling [f]chdir().
75214         fdopendir: split into its own module
75215         * lib/openat.c (fdopendir): Move...
75216         * lib/fdopendir.c: ...into new file.
75217         * modules/fdopendir: New module.
75218         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
75219         * modules/openat (Depends-on): Add fdopendir.
75220         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
75221         fdopendir here.
75222         * modules/savedir (Depends-on): Only need fdopendir, not full
75223         openat.
75224         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
75225         * lib/openat.h (fdopendir): Drop prototype.
75226         * lib/dirent.in.h (fdopendir): Provide prototype.
75227         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
75228         * modules/dirent (Makefile.am): Substitute them.
75229         * MODULES.html.sh (File system functions): Mention it.
75230         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
75231         * modules/fdopendir-tests: New file.
75232         * tests/test-fdopendir.c: Likewise.
75234         fchdir: use more consistent macro convention
75235         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
75236         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
75237         REPLACE_FCHDIR, rather than relying on config.h macros.
75238         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
75239         inside a single make-time REPLACE_FCHDIR block, rather than using
75240         the config.h FCHDIR_REPLACEMENT.
75241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
75242         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
75243         Manage fstat replacement.
75244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
75245         REPLACE_FCHDIR.
75246         * modules/sys_stat (Files): Add m4/unistd_h.m4.
75247         (Makefile.am): Substitute REPLACE_FCHDIR.
75248         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
75249         FCHDIR_REPLACEMENT.
75250         * lib/dup-safer.c (dup_safer): Likewise.
75251         * lib/dup2.c (rpl_dup2): Likewise.
75252         * lib/dup3.c (rpl_dup3): Likewise.
75253         * lib/open.c (rpl_open): Likewise.
75255         fchdir: simplify error handling, and support dup3
75256         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
75257         stdbool, malloc-posix, realloc-posix.
75258         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
75259         (ensure_dirs_slot): Return false on allocation failure.
75260         (rpl_dup2): Delete.
75261         (_gl_register_dup): New function.
75262         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
75263         (_gl_register_fd): Close fd on allocation failure.
75264         * lib/fcntl.in.h (_gl_register_fd): Update signature.
75265         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
75266         prototype.
75267         (rpl_dup2_fchdir): Delete prototype.
75268         * lib/open.c (open): Update caller.
75269         * lib/dup2.c (dup2): Track fchdir metadata.
75270         * lib/dup3.c (dup3): Likewise.
75271         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
75272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
75274 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75276         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
75277         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
75278         don't pass arguments to AC_OUTPUT.
75280 2009-09-02  Bruno Haible  <bruno@clisp.org>
75282         * modules/mkdtemp (License): Relicense under LGPLv2+.
75283         Reported by Paolo Bonzini.
75285 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75287         Replace uses of obsolete autoconf macros in Jim's modules.
75288         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
75289         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
75290         can evoke a warning from autoconf when run with -Wobsolete
75291         enabled.  They were declared obsolete for good reasons (see
75292         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
75293         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
75294         should not continue using the deprecated macros.
75295         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
75296         obsolete Autoconf macros with modern counterparts.
75297         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75298         * m4/dos.m4 (gl_AC_DOS): Likewise.
75299         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
75300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
75301         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
75302         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
75303         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
75304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
75305         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
75306         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
75307         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75308         Likewise.
75309         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
75310         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
75311         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
75312         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
75313         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75314         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
75316 2009-09-01  Eric Blake  <ebb9@byu.net>
75318         fchdir: fix off-by-one bug in previous patch
75319         * lib/fchdir.c (rpl_fstat): Use correct bounds.
75320         (_gl_unregister_fd): Delete useless if.
75322 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
75324         maint.mk: sort the list of syntax-check rules
75325         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
75326         easier to get a sense of progress when the rules are run sequentially
75327         and take a long time.
75329 2009-09-01  Simon Josefsson  <simon@josefsson.org>
75331         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
75332         * modules/netinet_in: Likewise.
75333         * modules/sys_file: Likewise.
75334         * modules/sys_ioctl: Likewise.
75335         * modules/sys_select: Likewise.
75336         * modules/sys_socket: Likewise.
75337         * modules/sys_stat: Likewise.
75338         * modules/sys_time: Likewise.
75339         * modules/sys_times: Likewise.
75340         * modules/sys_utsname: Likewise.
75341         * modules/sys_wait: Likewise.
75343 2009-09-01  Jim Meyering  <meyering@redhat.com>
75345         fts: help ensure that return values are not ignored
75346         * lib/fts_.h (__GNUC_PREREQ): Define.
75347         (__attribute_warn_unused_result__): Define.
75348         (fts_children, fts_close, fts_open, fts_read): Declare with
75349         __attribute_warn_unused_result__.
75351         fts: fts_close now fails also when closing a dir file descriptor fails
75352         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
75353         and propagate to caller, along with errno.
75355         announce-gen: correct formatting in --help output
75356         * build-aux/announce-gen (usage): Move the one-line description in
75357         --help output "up", to where it belongs, just after Usage:.
75359 2009-08-31  Eric Blake  <ebb9@byu.net>
75361         fchdir: port to mingw
75362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
75363         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
75364         opened, then use a substitute.
75365         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
75366         replacement.
75367         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
75368         (_gl_register_fd): No need to check stat if open already filters
75369         all directories.
75370         (fchdir): Fix error condition to match POSIX.
75371         * modules/fchdir (Depends-on): Add sys_stat.
75372         * doc/posix-functions/open.texi (open): Document the limitation.
75373         * modules/fchdir-tests: New file.
75374         * tests/test-fchdir.c: Likewise.
75376         canonicalize: allow cross-testing from cygwin to mingw
75377         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
75378         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
75379         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
75380         Likewise.
75381         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
75382         target does not support symlinks.
75383         * tests/test-canonicalize-lgpl.sh: Likewise.
75385         chown: avoid compilation warning on mingw
75386         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
75387         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
75388         mingw.
75389         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
75390         * modules/chown (Depends-on): Add errno.
75392 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
75394         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
75395         command.
75397 2009-08-31  Jim Meyering  <meyering@redhat.com>
75399         canonicalize: remove useless initialization
75400         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
75401         initialization of local, "end".
75403 2009-08-30  Bruno Haible  <bruno@clisp.org>
75405         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
75406         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
75407         ENOSYS.
75409 2009-08-30  Bruno Haible  <bruno@clisp.org>
75411         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
75412         /usr/xpg4/bin/tr when it exists.
75413         * tests/test-pipe-filter-gi1.sh: Likewise.
75415 2009-08-30  Bruno Haible  <bruno@clisp.org>
75417         Work around deficient /usr/bin/id program on Solaris.
75418         * tests/test-file-has-acl.sh (ID): New variable.
75419         * tests/test-set-mode-acl.sh (ID): Likewise.
75420         * tests/test-copy-acl.sh (ID): Likewise.
75421         * tests/test-copy-file.sh (ID): Likewise.
75423 2009-08-30  Bruno Haible  <bruno@clisp.org>
75425         New module 'xstriconveh'.
75426         * lib/xstriconveh.h: New file.
75427         * lib/xstriconveh.c: New file.
75428         * modules/xstriconveh: New file.
75430 2009-08-30  Bruno Haible  <bruno@clisp.org>
75432         Make it easier to use mem_cd_iconveh.
75433         * lib/striconveh.h (iconveh_t): New type.
75434         (iconveh_open, iconveh_close): New declarations.
75435         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
75436         with a single 'const iconveh_t *' argument.
75437         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
75438         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
75439         with a single 'const iconveh_t *' argument.
75440         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
75441         * tests/test-striconveh.c (main): Update.
75442         * NEWS: Mention the change.
75444 2009-08-30  Bruno Haible  <bruno@clisp.org>
75446         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
75447         problem.
75449 2009-08-30  Bruno Haible  <bruno@clisp.org>
75451         Work around iconv_open problem on Solaris.
75452         * lib/iconv_open-solaris.gperf: New file.
75453         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
75454         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
75455         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
75456         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
75457         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
75458         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
75460 2009-08-29  Jim Meyering  <meyering@redhat.com>
75462         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
75463         * top/maint.mk (cvs-check): Remove target; it was just an alias
75464         to the better-named vc-diff-check.
75465         (maintainer-distcheck): Remove rule.  It was used only from
75466         the (alpha/beta/major) target, and all of its commands but one
75467         were coreutils-specific.
75468         (vc-dist): Remove rule.
75469         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
75470         Run vc-diff-check, not vc-dist.
75471         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
75473 2009-08-27  Bruno Haible  <bruno@clisp.org>
75475         * tests/test-bitrotate.c (main): Remove test that uses a shift count
75476         of 0.
75478 2009-08-27  Bruno Haible  <bruno@clisp.org>
75480         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
75481         compilers.
75482         * doc/func.texi: Document the SunPRO C bug.
75484 2009-08-27  Bruno Haible  <bruno@clisp.org>
75486         Fix link error on Solaris.
75487         * tests/test-parse-duration.c (xstrdup): Remove function.
75489 2009-08-26  Pádraig Brady  <P@draigbrady.com>
75491         ignore-value: handle pointer types, too
75492         * lib/ignore-value.h (__attribute__): Remove definition.
75493         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
75494         of a more concise and more-often effective "(void) i" statement.
75495         (ignore_ptr): New function to suppress warnings from functions that
75496         return pointers, and to make it explicit that one function doesn't
75497         handle all cases.
75499 2009-08-25  Bruno Haible  <bruno@clisp.org>
75501         dup2: work around a Linux bug.
75502         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
75503         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
75504         * doc/posix-functions/dup2.texi: Mention the Linux bug.
75505         Reported by Simon Josefsson.
75507 2009-08-25  Jim Meyering  <meyering@redhat.com>
75509         libguestfs uses gnulib
75510         * users.txt: Add libguestfs.
75512 2009-08-24  Eric Blake  <ebb9@byu.net>
75514         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
75515         * lib/pipe2.c (includes): Add binary-io.h.
75516         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
75518 2009-08-24  Bruno Haible  <bruno@clisp.org>
75520         Tolerate declared but missing accept4 syscall.
75521         * lib/accept4.c (accept4): Invoke original accept4 function first, if
75522         available.
75523         * lib/sys_socket.in.h (accept4): If the function is already present,
75524         override it.
75525         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
75526         * modules/accept4 (Makefile.am): Compile accept4.c always.
75527         Reported by Paolo Bonzini and Eric Blake.
75529 2009-08-23  Bruno Haible  <bruno@clisp.org>
75531         New module 'accept4'.
75532         * lib/sys_socket.in.h (accept4): New declaration.
75533         * lib/accept4.c: New file.
75534         * m4/accept4.m4: New file.
75535         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
75536         GNULIB_ACCEPT4, HAVE_ACCEPT4.
75537         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
75538         HAVE_ACCEPT4.
75539         * modules/accept4: New file.
75540         * doc/glibc-functions/accept4.texi: Mention the new module.
75542 2009-08-24  Jim Meyering  <meyering@redhat.com>
75544         progname: also set global program_invocation_name, when possible
75545         Before this change, a libtool-enabled program that calls glibc's
75546         error function would report the program name as
75547         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
75548         * modules/progname (configure.ac): Check for a declaration of
75549         program_invocation_name.
75550         * lib/progname.c:  Include <errno.h>.
75551         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
75552         Set program_invocation_name.
75554 2009-08-23  Bruno Haible  <bruno@clisp.org>
75556         * lib/dup3.c: Include <string.h>.
75558 2009-08-23  Bruno Haible  <bruno@clisp.org>
75560         * lib/dup3.c (dup3): Test only once whether the system actually exists.
75561         * lib/pipe2.c (pipe2): Likewise.
75562         Suggested by Eric Blake.
75564 2009-08-23  Bruno Haible  <bruno@clisp.org>
75566         Tolerate declared but missing dup3 syscall.
75567         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
75568         * lib/unistd.in.h (dup3): If the function is already present,
75569         override it.
75570         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
75571         * modules/dup3 (Makefile.am): Compile dup3.c always.
75572         Reported by Paolo Bonzini.
75574 2009-08-23  Bruno Haible  <bruno@clisp.org>
75576         Tolerate declared but missing pipe2 syscall.
75577         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
75578         available.
75579         * lib/unistd.in.h (pipe2): If the function is already present,
75580         override it.
75581         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
75582         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
75583         Reported by Paolo Bonzini.
75585 2009-08-23  Bruno Haible  <bruno@clisp.org>
75587         * lib/pipe2.c (pipe2): Move #ifs inside function.
75589 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
75591         quotearg: document limitations of quote_these_too
75592         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
75593         those limitations are created.
75594         * lib/quotearg.h (set_char_quoting): Document that digits and
75595         letters that are special after backslash are not permitted.
75596         (quotearg_char): Cross-reference set_char_quoting documentation.
75598 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
75600         quotearg: implement custom_quoting_style
75601         * lib/quotearg.c: (struct quoting_options): Add left_quote and
75602         right_quote fields.
75603         (set_custom_quoting): New public function.
75604         (quotearg_buffer_restyled): Add left_quote and right_quote
75605         arguments, handle them very much like locale quoting, and update
75606         all uses.
75607         (quotearg_n_custom): New public function.
75608         (quotearg_n_custom_mem): New public function.
75609         (quotearg_custom): New public function.
75610         (quotearg_custom_mem): New public function.
75611         * lib/quotearg.h: Prototype and document new public functions.
75612         (enum quoting_style): For escape_quoting_style and
75613         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
75614         ignored even though they're otherwise like c_quoting_style.
75615         Add custom_quoting_style member and document with comparison to
75616         clocale_quoting_style.
75617         * tests/test-quotearg.c (custom_quotes): New array.
75618         (custom_results): New array.
75619         (main): Extend to test custom quoting.
75621 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
75623         quotearg: fix right quote escaping when it's in quote_these_too
75624         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
75625         quote, be sure to prepend only one backslash.
75626         * tests/test-quotearg.c (use_quote_double_quotes): New function.
75627         (main): Test it.
75629 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
75631         quotearg-tests: test escaping of embedded locale quotes
75632         * tests/test-quotearg.c (struct result_strings): Add member for
75633         new input.
75634         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
75635         (inputs): Add new input.
75636         (results_g): Add expected results.
75637         (flag_results): Likewise.
75638         (locale_results): Likewise.
75639         (compare_strings): Check those.
75641 2009-08-23  Bruno Haible  <bruno@clisp.org>
75643         Tests for module 'dup3'.
75644         * modules/dup3-tests: New file.
75645         * tests/test-dup3.c: New file.
75647         New module 'dup3'.
75648         * lib/unistd.in.h (dup3): New declaration.
75649         * lib/dup3.c: New file.
75650         * m4/dup3.m4: New file.
75651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
75652         HAVE_DUP3.
75653         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
75654         * modules/dup3: New file.
75655         * doc/glibc-functions/dup3.texi: Mention the new module.
75657 2009-08-23  Bruno Haible  <bruno@clisp.org>
75659         Tweak the dup2 test.
75660         * tests/test-dup2.c (main): Create the test file empty. Verify that an
75661         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
75662         the test file is still empty. Fix argument order of lseek.
75664 2009-08-23  Bruno Haible  <bruno@clisp.org>
75666         Avoid test link errors when the modules getopt-gnu, gettext are used.
75667         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
75668         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75670 2009-08-23  Bruno Haible  <bruno@clisp.org>
75672         Fix getdtablesize() on mingw.
75673         * lib/getdtablesize.c (getdtablesize): Implement differently.
75674         * lib/unistd.in.h (getdtablesize): Improve comment.
75676 2009-08-23  Bruno Haible  <bruno@clisp.org>
75678         New module 'mkostemp'.
75679         Based on Ulrich Drepper's 2007-08-10 change in glibc.
75680         * lib/stdlib.in.h (mksotemp): New declaration.
75681         * lib/mkostemp.c: New file, from glibc with modifications.
75682         * lib/tempname.h (GT_FILE): Remove outdated comment.
75683         (gen_tempname): Add flags argument.
75684         * lib/tempname.c (__GT_BIGFILE): Remove macro.
75685         (__GT_FILE): Map to 1.
75686         (small_open, large_open): Remove macros.
75687         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
75688         * lib/mkstemp.c (mkstemp): Update.
75689         * lib/mkdtemp.c (mkdtemp): Likewise.
75690         * m4/mkostemp.m4: New file.
75691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
75692         HAVE_MKOSTEMP.
75693         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
75694         HAVE_MKOSTEMP.
75695         * modules/mkostemp: New file, based on modules/mkstemp.
75696         * doc/glibc-functions/mkostemp.texi: Mention the new module.
75697         * NEWS: Mention the change.
75699 2009-08-23  Bruno Haible  <bruno@clisp.org>
75701         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
75702         Reported by Eric Blake.
75704 2009-08-23  Bruno Haible  <bruno@clisp.org>
75706         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
75707         Reported by Eric Blake.
75709 2009-08-23  Bruno Haible  <bruno@clisp.org>
75711         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
75712         * modules/pipe2 (Depends-on): Likewise.
75714 2009-08-23  Eric Blake  <ebb9@byu.net>
75716         fcntl-h: add O_TTY_INIT support
75717         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
75718         * tests/test-fcntl-h.c (o): Test it.
75719         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75721         fcntl-h: rename from fcntl, in preparation for fcntl(2)
75722         * modules/fcntl: Move <fcntl.h> header replacement...
75723         * modules/fcntl-h: ...to new name, so as not to collide with
75724         like-named function.
75725         * tests/test-fcntl.c: Rename...
75726         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
75727         * modules/fcntl-tests: Rename...
75728         * modules/fcntl-h-tests: ...to this.  Update test file name.
75729         * modules/chdir-long (Depends-on): Update clients.
75730         * modules/chdir-safer (Depends-on): Likewise.
75731         * modules/fcntl-safer (Depends-on): Likewise.
75732         * modules/fts (Depends-on): Likewise.
75733         * modules/mkancesdirs (Depends-on): Likewise.
75734         * modules/mkdir-p (Depends-on): Likewise.
75735         * modules/open (Depends-on): Likewise.
75736         * modules/savewd (Depends-on): Likewise.
75737         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
75738         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75740 2009-08-22  Bruno Haible  <bruno@clisp.org>
75742         * modules/binary-io (License): Relicense under LGPL.
75743         * modules/pipe2 (License): Likewise.
75745 2009-08-22  Bruno Haible  <bruno@clisp.org>
75747         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
75748         return value.
75749         * lib/pipe-filter-gi.c (filter_init): Likewise.
75750         Reported by Eric Blake.
75752 2009-08-22  Bruno Haible  <bruno@clisp.org>
75754         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
75755         * modules/pipe (Depends-on): Add pipe2.
75757 2009-08-22  Bruno Haible  <bruno@clisp.org>
75759         Tests for module 'pipe2'.
75760         * modules/pipe2-tests: New file.
75761         * tests/test-pipe2.c: New file.
75763         New module 'pipe2'.
75764         * lib/unistd.in.h (pipe2): New declaration.
75765         * lib/pipe2.c: New file.
75766         * m4/pipe2.m4: New file.
75767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
75768         HAVE_PIPE2.
75769         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
75770         * modules/pipe2: New file.
75771         * doc/glibc-functions/pipe2.texi: Mention the new module.
75773 2009-08-22  Bruno Haible  <bruno@clisp.org>
75775         Reference some new glibc functions.
75776         * doc/glibc-functions/accept4.texi: New file.
75777         * doc/glibc-functions/dup3.texi: New file.
75778         * doc/glibc-functions/mkostemp.texi: New file.
75779         * doc/glibc-functions/pipe2.texi: New file.
75780         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
75781         (Glibc sys/socket.h): Refer to accept4.
75782         (Glibc unistd.h): Refer to dup3, pipe2.
75783         Reported by Eric Blake.
75785 2009-08-22  Jim Meyering  <meyering@redhat.com>
75786             Bruno Haible  <bruno@clisp.org>
75788         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
75789         This makes it so packages using automake-1.11's silent-rules option
75790         can print e.g., a single "GEN    configmake.h" line, rather than
75791         the 30+ statements that perform the job.  If you want to see the
75792         actual commands, you can still run "make V=1".
75793         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
75794         so that make output is abbreviated when those variables are defined
75795         appropriately.
75796         * modules/argz: Likewise.
75797         * modules/arpa_inet: Likewise.
75798         * modules/byteswap: Likewise.
75799         * modules/configmake: Likewise.
75800         * modules/dirent: Likewise.
75801         * modules/errno: Likewise.
75802         * modules/fcntl: Likewise.
75803         * modules/float: Likewise.
75804         * modules/fnmatch: Likewise.
75805         * modules/getopt-posix: Likewise.
75806         * modules/glob: Likewise.
75807         * modules/iconv_open: Likewise.
75808         * modules/inttypes: Likewise.
75809         * modules/localcharset: Likewise.
75810         * modules/locale: Likewise.
75811         * modules/math: Likewise.
75812         * modules/netdb: Likewise.
75813         * modules/netinet_in: Likewise.
75814         * modules/poll: Likewise.
75815         * modules/posix_spawnp-tests: Likewise.
75816         * modules/sched: Likewise.
75817         * modules/search: Likewise.
75818         * modules/selinux-h: Likewise.
75819         * modules/signal: Likewise.
75820         * modules/spawn: Likewise.
75821         * modules/stdarg: Likewise.
75822         * modules/stdbool: Likewise.
75823         * modules/stddef: Likewise.
75824         * modules/stdint: Likewise.
75825         * modules/stdio: Likewise.
75826         * modules/stdlib: Likewise.
75827         * modules/string: Likewise.
75828         * modules/strings: Likewise.
75829         * modules/sys_file: Likewise.
75830         * modules/sys_ioctl: Likewise.
75831         * modules/sys_select: Likewise.
75832         * modules/sys_socket: Likewise.
75833         * modules/sys_stat: Likewise.
75834         * modules/sys_time: Likewise.
75835         * modules/sys_times: Likewise.
75836         * modules/sys_utsname: Likewise.
75837         * modules/sys_wait: Likewise.
75838         * modules/sysexits: Likewise.
75839         * modules/time: Likewise.
75840         * modules/unistd: Likewise.
75841         * modules/wchar: Likewise.
75842         * modules/wctype: Likewise.
75844 2009-08-22  Jim Meyering  <meyering@redhat.com>
75846         announce-gen: detect write failure
75847         * build-aux/announce-gen: Add Coda at end.
75848         Remove equivalent-but-more-verbose block at top.
75850 2009-08-19  Akim Demaille  <demaille@gostai.com>
75852         bootstrap: --help to stdout.
75853         * bootstrap (usage): Don't send --help to stderr.
75854         Use a here doc instead of a long string.
75856 2009-08-21  Eric Blake  <ebb9@byu.net>
75858         test-popen-safer: split from test-popen
75859         * tests/test-popen.c (main): Move...
75860         * tests/test-popen.h: ...into new file.
75861         * tests/test-popen-safer2.c: New file.
75862         * modules/popen-tests (Files): Add test-popen.h.
75863         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
75864         Suggested by Bruno Haible.
75866         test-fcntl-safer: split from test-open
75867         * tests/test-open.c (main): Move...
75868         * tests/test-open.h: ...into new file.
75869         * tests/test-fcntl-safer.c: New file.
75870         * modules/open-tests (Files): Add test-open.h.
75871         * modules/fcntl-safer-tests: New file.
75872         Suggested by Bruno Haible.
75874         test-fopen-safer: split from test-fopen
75875         * tests/test-fopen.c (main): Move...
75876         * tests/test-fopen.h: ...into new file.
75877         * tests/test-fopen-safer.c: New file.
75878         * modules/fopen-tests (Files): Add test-fopen.h.
75879         * modules/fopen-safer-tests: New file.
75880         Suggested by Bruno Haible.
75882 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
75884         popen-safer: test O_CLOEXEC at run-time.
75885         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
75887 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
75889         fcntl: move more flags to the header
75890         * lib/cloexec.c: Do not define FD_CLOEXEC here.
75891         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
75892         * lib/fcntl.in.h: Do both things here.
75894 2009-08-21  Jim Meyering  <meyering@redhat.com>
75896         consistently remove $@-t before redirecting to it
75897         * modules/argz: Remove $@-t and $@ before redirecting to the former.
75898         * modules/alloca-opt: Likewise.
75899         * modules/byteswap: Likewise.
75900         * modules/fnmatch: Likewise.
75901         * modules/getopt-posix: Likewise.
75902         * modules/glob: Likewise.
75903         * modules/poll: Likewise.
75904         * modules/posix_spawnp-tests: Likewise.
75905         * modules/sys_socket: Likewise.
75906         * modules/sysexits: Likewise.
75908 2009-08-21  Eric Blake  <ebb9@byu.net>
75910         popen: simplify access to original popen
75911         * lib/popen.c (rpl_popen): No need to worry about popen being a
75912         macro.
75913         Reported by Bruno Haible.
75915 2009-08-20  Eric Blake  <ebb9@byu.net>
75917         build: avoid some compiler warnings
75918         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
75919         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
75920         type.
75921         (new_exclude_segment, excluded_file_pattern_p)
75922         (excluded_file_name_p): Reduce scope.
75923         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
75924         old-style declaration.
75926 2009-08-20  Simon Josefsson  <simon@josefsson.org>
75928         * tests/test-exclude1.sh: Handle Windows EOL.
75929         * tests/test-exclude2.sh: Likewise.
75930         * tests/test-exclude3.sh: Likewise.
75931         * tests/test-exclude4.sh: Likewise.
75932         * tests/test-exclude5.sh: Likewise.
75933         * tests/test-exclude6.sh: Likewise.
75934         * tests/test-exclude7.sh: Likewise.
75936 2009-08-19  Akim Demaille  <demaille@gostai.com>
75938         bootstrap: find sha1sum when named gsha1sum.
75939         * bootstrap (find_tool): New.
75940         ($SHA1SUM): New.
75941         Use it.
75943 2009-08-20  Jim Meyering  <meyering@redhat.com>
75945         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
75946         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
75947         expression that converts "." in a file name to "\." in the resulting
75948         regexp.  Start with a dummy statement, so that prior shell variable
75949         definitions are expanded portably.  Reported by Simon Josefsson.
75951 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
75953         Fix polling for writeability of a screen buffer.
75954         * lib/poll.c: Distinguish input and screen buffers for the
75955         Win32 implementation.
75956         * lib/select.c: Likewise.
75958 2009-08-19  Eric Blake  <ebb9@byu.net>
75960         popen-safer: prevent popen from clobbering std descriptors
75961         * modules/popen-safer: New file.
75962         * lib/popen-safer.c: Likewise.
75963         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
75964         * lib/stdio--.h (popen): Provide override.
75965         * lib/stdio-safer.h (popen_safer): Provide declaration.
75966         * tests/test-popen.c (includes): Partially test this.
75967         * modules/popen-safer-tests: New file, for more tests.
75968         * tests/test-popen-safer.c: Likewise.
75969         * MODULES.html.sh (file stream based Input/Output): Mention it.
75971         tests: test some of the *-safer modules
75972         * modules/fopen-safer (Depends-on): Add fopen.
75973         * modules/fcntl-safer (Depends-on): Add fcntl.
75974         * modules/stdlib-safer (Depends-on): Add stdlib.
75975         (configure.ac): Set indicator.
75976         * modules/unistd-safer (configure.ac): Likewise.
75977         * modules/tmpfile-safer (configure.ac): Likewise.
75978         (Depends-on): Add tmpfile.
75979         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
75980         active.
75981         * tests/test-fopen.c (includes): Test safer versions when they are
75982         in use.
75983         * tests/test-open.c (includes): Likewise.
75985         popen: fix cygwin 1.5 bug when stdin closed
75986         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
75987         * modules/popen: New file.
75988         * modules/popen-tests: Likewise.
75989         * tests/test-popen.c: Likewise.
75990         * m4/popen.m4: Likewise.
75991         * lib/popen.c: Likewise.
75992         * lib/stdio.in.h (popen): New declaration.
75993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
75994         * modules/stdio (Makefile.am): Likewise.
75995         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
75997 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
75999         maint.mk: give full control over update-copyright exclusions
76000         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
76001         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
76002         (update-copyright): Don't force inclusion of top-level
76003         ChangeLog.  Don't force exclusion of all COPYING files, but make
76004         them the default exclusion instead.
76006 2009-08-16  Bruno Haible  <bruno@clisp.org>
76008         Fix test failures on Solaris 10.
76009         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
76010         tests when Solaris iconv() is used.
76011         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
76012         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
76013         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
76014         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
76015         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
76017 2009-08-16  Bruno Haible  <bruno@clisp.org>
76019         Fix test failures on Solaris 10.
76020         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
76021         'tr' program and pass it as first argument.
76022         * tests/test-pipe-filter-gi1.sh: Likewise.
76023         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
76024         program as first argument.
76025         * tests/test-pipe-filter-gi1.c (main): Likewise.
76027 2009-08-16  Eric Blake  <ebb9@byu.net>
76029         fpurge: fix previous commits
76030         * modules/fpurge (Makefile.am): Make replacement conditional,
76031         partially reverting 2007-04-29 change; missed in previous
76032         attempt.
76033         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
76034         is missing.
76036 2009-08-16  Bruno Haible  <bruno@clisp.org>
76038         Clarify fpurge's effect on the file position.
76039         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
76040         * tests/test-fpurge.c (main): Make a second pass for checking the file
76041         position.
76043 2009-08-16  Bruno Haible  <bruno@clisp.org>
76045         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
76046         declaration of fpurge is missing.
76047         * tests/test-fpurge.c (main): Check that the file has not more contents
76048         than expected. Close the file before removing it.
76050 2009-08-15  Eric Blake  <ebb9@byu.net>
76052         fpurge: don't wrap working cygwin implementation
76053         * lib/fpurge.c (fpurge): Fix comment typo.
76054         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
76055         1.7 to avoid replacement.
76056         * tests/test-fpurge.c (main): Enhance test.
76058 2009-08-15  Eric Blake  <ebb9@byu.net>
76059         and Jim Meyering  <meyering@redhat.com>
76061         test-update-copyright: skip if perl is insufficient
76062         * tests/test-update-copyright.sh: Failure to run maintainer tool
76063         should not cause testsuite failure on cygwin 1.5.
76065 2009-08-14  Eric Blake  <ebb9@byu.net>
76067         doc: mention more functions added in cygwin 1.7.0
76068         * doc/posix-headers/limits.texi (limits.h): Update for recent
76069         cygwin additions.
76070         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
76071         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
76072         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
76073         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
76074         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
76076 2009-08-14  Eric Blake  <ebb9@byu.net>
76078         maint.mk: simplify update-copyright rule
76079         * top/maint.mk (update-copyright-local): Delete, and document how
76080         to do it in cfg.mk instead.
76081         (update-copyright-exclude-regexp): Delete, and document how to do
76082         it in .x-update-copyright instead.
76083         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
76084         exclude ChangeLog.
76086 2009-08-14  Bruno Haible  <bruno@clisp.org>
76088         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
76090 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
76092         maint.mk: support update-copyright-env
76093         * top/maint.mk (update-copyright-env): Define place-holder.
76094         (update-copyright): Expand $(update-copyright-env) before
76095         invoking update-copyright.
76097 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
76099         update-copyright: implement forced reformatting
76100         * build-aux/update-copyright: Implement and document
76101         UPDATE_COPYRIGHT_FORCE.
76102         * tests/test-update-copyright.sh: Test it.
76104 2009-08-14  Eric Blake  <ebb9@byu.net>
76105         and Bruno Haible  <bruno@clisp.org>
76107         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
76108         * tests/test-locale.c: Revert previous patch related to NULL.
76109         * tests/test-stdio.c: Likewise.
76110         * tests/test-stdlib.c: Likewise.
76111         * tests/test-string.c: Likewise.
76112         * tests/test-unistd.c: Likewise.
76113         * modules/time-tests (Depends-on): Add verify.
76114         * modules/wchar-tests (Depends-on): Likewise.
76115         * tests/test-time.c: Test for NULL compliance.
76116         * tests/test-wchar.c: Likewise.
76117         * modules/locale (Depends-on): Add stddef.
76118         * modules/stdio (Depends-on): Likewise.
76119         * modules/stdlib (Depends-on): Likewise.
76120         * modules/string (Depends-on): Likewise.
76121         * modules/time (Depends-on): Likewise.
76122         * modules/unistd (Depends-on): Likewise.
76123         * modules/wchar (Depends-on): Likewise.
76124         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
76125         * lib/stdlib.in.h (includes): Likewise.
76126         * lib/string.in.h (includes): Likewise.
76127         * lib/time.in.h (includes): Likewise.
76128         * lib/unistd.in.h (includes): Likewise.
76129         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
76130         replaced.
76131         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76132         * m4/stddef_h.m4: New file.
76133         * modules/stddef: Likewise.
76134         * lib/stddef.in.h: Likewise.
76135         * modules/stddef-tests: Likewise.
76136         * tests/test-stddef.c: Likewise.
76137         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
76138         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
76139         * doc/posix-headers/locale.texi (locale.h): Likewise.
76140         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
76141         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
76142         * doc/posix-headers/string.texi (string.h): Likewise.
76143         * doc/posix-headers/time.texi (time.h): Likewise.
76144         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
76145         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
76147 2009-08-14  Eric Blake  <ebb9@byu.net>
76149         doc: improve git diff of texinfo files
76150         * .gitattributes: Add rule for *.texi files, with hint on how to
76151         use it.
76152         Copied from m4, and based on a report by Bruno Haible.
76154 2009-08-14  Bruno Haible  <bruno@clisp.org>
76156         Disable multithread support by default on Cygwin 1.5.x for real.
76157         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
76159 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
76161         update-copyright: much ado about intervals
76162         * build-aux/update-copyright: Implement and document
76163         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
76164         of copyright year intervals.
76165         Also, document UPDATE_COPYRIGHT_YEAR.
76166         * tests/test-update-copyright.sh: Test it.
76168         update-copyright: convert 2-digit to 4-digit years
76169         * build-aux/update-copyright: Implement and document.
76170         * tests/test-update-copyright.sh: Update.
76172 2009-08-14  Jim Meyering  <meyering@redhat.com>
76174         test-exclude: avoid coreutils "make check" failure
76175         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
76176         just as in test-argmatch.c.
76178 2009-08-13  Eric Blake  <ebb9@byu.net>
76180         test-dup2: fix bad assumption
76181         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
76182         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
76184         test-version-etc: fix CRLF portability issue
76185         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
76186         recognize \r.
76187         * tests/test-argp-version-etc-1.sh: Likewise.
76189         getopt: update client modules
76190         * modules/argp (Depends-on): Use getopt-gnu.
76191         * modules/git-merge-changelog (Depends-on): Likewise.
76192         * modules/long-options (Depends-on): Likewise.
76193         * modules/xstrtol (Depends-on): Likewise.
76195 2009-08-13  Simon Josefsson  <simon@josefsson.org>
76197         * tests/test-version-etc.sh: Don't fail on different
76198         project/version.  Don't fail on CRLF differences.  Rewrite to use
76199         multiple -e instead of multiple sed forks, suggested by Eric Blake
76200         <ebb9@byu.net>.
76201         * tests/test-argp-version-etc-1.sh: Likewise.
76203 2009-08-13  Simon Josefsson  <simon@josefsson.org>
76205         * tests/test-version-etc.sh: Don't fail on different
76206         project/version.
76208 2009-08-12  Bruno Haible  <bruno@clisp.org>
76210         Tests for modules 'getopt-posix', 'getopt-gnu'.
76211         * modules/getopt-posix-tests: New file.
76212         * tests/test-getopt.c: New file.
76213         * tests/test-getopt.h: New file.
76214         * tests/test-getopt_long.h: New file.
76216         New modules 'getopt-posix', 'getopt-gnu'.
76217         * modules/getopt-gnu: New file, renamed from modules/getopt.
76218         * modules/getopt-posix: New file.
76219         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
76220         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
76221         (gl_GETOPT): Remove macro.
76222         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
76223         Disable the test against BSD systems that declare optreset. Test
76224         against mingw bug. Test against lack of support of optional arguments
76225         on many platforms.
76226         * doc/glibc-headers/getopt.texi: Update module name and list of
76227         relevant platforms.
76228         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
76229         'getopt-gnu' and more portability problems.
76230         * NEWS: Mention the changes.
76232 2009-08-12  Bruno Haible  <bruno@clisp.org>
76234         Ensure that optarg etc. get declared by <unistd.h>.
76235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
76236         AC_USE_SYSTEM_EXTENSIONS.
76237         * modules/getopt (Depends-on): Add 'extensions'.
76239 2009-08-12  Bruno Haible  <bruno@clisp.org>
76241         Avoid test link errors.
76242         * modules/pipe-filter-ii-tests (Makefile.am): Define
76243         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
76244         * modules/pipe-filter-gi-tests (Makefile.am): Define
76245         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
76246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76248 2009-08-12  Bruno Haible  <bruno@clisp.org>
76250         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
76251         gl_GETOPT_SUBSTITUTE before.
76252         (gl_GETOPT): Use it.
76253         * m4/argp.m4 (gl_ARGP): Update.
76254         Reported by Sergey Poznyakoff.
76256         * m4/getopt.m4: Reorder macros.
76257         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
76258         (gl_GETOPT_SUBSTITUTE): Remove macro.
76260 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76262         Minor improvement in gitlog-to-changelog
76264         * build-aux/gitlog-to-changelog: New option `--format' makes
76265         output format string configurable.
76267 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76269         Optimize exclude: use hash tables for non-wildcard patterns.
76271         * lib/exclude.c: Include hash.h and mbuiter.h
76272         (struct exclude_pattern, exclude_segment): New data types.
76273         (struct exclude): Rewrite.
76274         (fnmatch_pattern_has_wildcards): New function.
76275         (new_exclude_segment, free_exclude_segment): New functions.
76276         (excluded_file_pattern_p, excluded_file_name_p): New functions.
76277         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
76278         * lib/exclude.h (is_fnmatch_pattern): New prototype.
76279         * modules/exclude: Depend on hash and mbuiter.
76281         * modules/exclude-tests: New file.
76282         * tests/test-exclude.c: New file.
76283         * tests/test-exclude1.sh: New file.
76284         * tests/test-exclude2.sh: New file.
76285         * tests/test-exclude3.sh: New file.
76286         * tests/test-exclude4.sh: New file.
76287         * tests/test-exclude5.sh: New file.
76288         * tests/test-exclude6.sh: New file.
76289         * tests/test-exclude7.sh: New file.
76291 2009-08-12  Bruno Haible  <bruno@clisp.org>
76293         Ensure that getopt() gets declared by <unistd.h>.
76294         * lib/unistd.in.h: Conditionally include getopt.h.
76295         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
76296         Set GNULIB_UNISTD_H_GETOPT.
76297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76298         GNULIB_UNISTD_H_GETOPT.
76299         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
76301 2009-08-12  Bruno Haible  <bruno@clisp.org>
76303         Clarify logic.
76304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
76305         gl_replace_getopt instead of GETOPT_H.
76307 2009-08-12  Bruno Haible  <bruno@clisp.org>
76309         * m4/getopt.m4: Add comments.
76311 2009-08-12  Bruno Haible  <bruno@clisp.org>
76313         Disable multithread support by default on Cygwin 1.5.x.
76314         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
76315         set gl_use_threads=no if not specified otherwise.
76317 2009-08-11  Bruno Haible  <bruno@clisp.org>
76319         Avoid compilation error on NetBSD 5.0.
76320         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
76321         * tests/test-stdio.c: Likewise.
76322         * tests/test-stdlib.c: Likewise.
76323         * tests/test-string.c: Likewise.
76324         * tests/test-unistd.c: Likewise.
76325         Reported by Greg Troxel <gdt@ir.bbn.com>
76326         at <https://savannah.gnu.org/support/?106973>.
76328 2009-08-11  Bruno Haible  <bruno@clisp.org>
76330         * modules/dup2-tests (Depends-on): Remove close.
76332         Undo 2009-07-19 commit.
76333         * modules/acl-tests (Depends-on): Remove close.
76334         * modules/binary-io-tests (Depends-on): Likewise.
76335         * modules/closein-tests (Depends-on): Likewise.
76336         * modules/flock-tests (Depends-on): Likewise.
76337         * modules/fsync-tests (Depends-on): Likewise.
76338         * modules/lseek-tests (Depends-on): Likewise.
76339         * modules/pipe-tests (Depends-on): Likewise.
76340         * modules/posix_spawn-tests (Depends-on): Likewise.
76341         * modules/posix_spawnp-tests (Depends-on): Likewise.
76342         * modules/stat-time-tests (Depends-on): Likewise.
76343         * modules/yesno-tests (Depends-on): Likewise.
76345 2009-08-10  Bruno Haible  <bruno@clisp.org>
76347         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
76349 2009-08-10  Bruno Haible  <bruno@clisp.org>
76351         Fix a gcc warning.
76352         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
76354 2009-08-10  Bruno Haible  <bruno@clisp.org>
76356         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
76357         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
76358         not only the first time.
76359         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
76360         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
76361         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
76362         is 1, not only the first time.
76364 2009-08-10  Bruno Haible  <bruno@clisp.org>
76366         Make it possible to use module 'gethostname' without module 'close'.
76367         * lib/unistd.in.h (close): Evoke a link error only if
76368         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
76369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76370         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76371         * modules/unistd (Makefile.am): Substitute
76372         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76373         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
76374         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
76375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
76376         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76377         * modules/sys_ioctl (Makefile.am): Substitute
76378         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76379         * modules/socket (configure.ac): On native Windows, set
76380         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
76381         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76382         Reported by Sam Steingold <sds@gnu.org>.
76384 2009-08-10  Bruno Haible  <bruno@clisp.org>
76386         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
76387         * modules/ioctl (configure.ac): Likewise.
76389 2009-08-10  Bruno Haible  <bruno@clisp.org>
76391         Avoid collision between gnulib wrapper and libintl wrapper.
76392         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
76393         already defined in intl/printf.c.
76394         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
76395         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
76397 2009-08-09  Bruno Haible  <bruno@clisp.org>
76399         Make <sys/select.h> really self-contained, also on Solaris 10.
76400         * lib/sys_select.in.h: Include <string.h>.
76401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
76402         Solaris 10 problem.
76403         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
76404         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
76405         Reported by Jim Meyering.
76407 2009-08-09  Bruno Haible  <bruno@clisp.org>
76409         Avoid warnings from 'aclocal' that are due to a use of macro name
76410         AM_XGETTEXT_OPTION that is not defined in automake.
76411         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
76412         automake.
76413         * modules/error (configure.ac): Likewise.
76414         * modules/propername (configure.ac): Likewise.
76415         * modules/vasprintf (configure.ac): Likewise.
76416         * modules/verror (configure.ac): Likewise.
76417         * modules/xprintf (configure.ac): Likewise.
76418         * modules/xvasprintf (configure.ac): Likewise.
76420 2009-08-08  Bruno Haible  <bruno@clisp.org>
76422         Avoid compilation error in C++ mode.
76423         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
76424         Reported by Sam Steingold <sds@gnu.org>.
76426 2009-08-08  Bruno Haible  <bruno@clisp.org>
76428         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
76429         for the various Unix platforms.
76430         * doc/posix-headers/limits.texi: Update platforms list regarding
76431         HOST_NAME_MAX.
76432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76434 2009-08-07  Jim Meyering  <meyering@redhat.com>
76436         selinux-at: fix typo in a comment
76437         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
76438         Spotted by Paolo Bonzini.
76440         selinux-at: remove redundant m4 code, add documentation
76441         * modules/selinux-at (configure.ac): Remove redundant code.
76442         LIB_SELINUX is already set via the dependent module, selinux-h.
76443         (Include): Add quotes around selinux-at.h.
76444         * lib/selinux-at.h: Add documentation.
76445         Reported by Bruno Haible in
76446         http://marc.info/?l=gnulib-bug&m=124958988300749
76448 2009-08-07  Bruno Haible  <bruno@clisp.org>
76450         Avoid link error on MacOS X 10.3 and 10.4.
76451         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
76452         on non-ELF systems.
76453         * lib/argp-pv.c (argp_program_version): Likewise.
76454         Reported by Simon Josefsson.
76456 2009-08-07  Simon Josefsson  <simon@josefsson.org>
76458         * tests/test-version-etc.sh: Use $EXEEXT.
76460 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
76462         update-copyright: update documentation to point to maint.mk
76463         * build-aux/update-copyright: Here.
76465 2009-08-06  Jim Meyering  <meyering@redhat.com>
76467         maint.mk: support update-copyright-local
76468         * top/maint.mk (update-copyright-local): Define place-holder.
76469         (update-copyright): Depend on $(update-copyright-local).
76471 2009-08-06  Jim Meyering  <meyering@redhat.com>
76473         selinux-at: new module
76474         Initially written for coreutils, this module will soon be
76475         used by findutils, too.
76476         * MODULES.html.sh [Misc]: Add selinux-at.
76477         * lib/selinux-at.h: New file, from coreutils.
76478         * lib/selinux-at.c: Likewise.
76479         * modules/selinux-at: Likewise.
76480         (License): Change from LGPL to GPL, since it depends
76481         on the GPL'd openat module.
76483         doc: update README
76484         * README: Remove references to cogito.
76485         Remove cvs-repo-updating instructions from 2007.
76486         Don't imply that CVS is better if you have limited disk space.
76488 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76490         update-copyright: support C-style comments
76491         * build-aux/update-copyright: Implement and document.
76492         * tests/test-update-copyright.sh: Test.
76494 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76496         update-copyright: support omitted "(C)"
76497         * build-aux/update-copyright: Implement and document.  Also,
76498         allow variable whitespace before "(C)".
76499         * tests/test-update-copyright.sh: Test.
76501 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76503         update-copyright: don't trip on non-FSF copyright statements
76504         * build-aux/update-copyright: Fix so that the first correctly
76505         formatted FSF copyright statement is recognized no matter what
76506         appears before it.  Update documentation.
76507         * tests/test-update-copyright.sh: Test that.
76509 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76511         update-copyright: clean up code a little
76512         * build-aux/update-copyright: Append "_re" to the name of any
76513         variable holding a regular expression.
76514         Replace "old" and "new" with "stmt" in variable names.
76515         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
76516         handled correctly.
76517         Format code more consistently.
76519 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76521         update-copyright-tests: improve portability
76522         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
76523         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
76525 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
76527         update-copyright: support @copyright{} and &copy;
76528         * build-aux/update-copyright: Implement and document.
76529         * tests/test-update-copyright.sh: Test.
76531 2009-08-04  Jim Meyering  <meyering@redhat.com>
76533         update-copyright-tests: correctly test EOL=\r\n handling
76534         * tests/test-update-copyright.sh: Put \r at the end of some lines
76535         for the dos-eol tests.  Based on a patch by Joel E. Denny.
76537         maint.mk: make update-copyright exclusion list more configurable
76538         * top/maint.mk (update-copyright): Default to excluding COPYING,
76539         but allow an override, in case someone does want to update that file.
76541         maint.mk: don't update copyright date in COPYING
76542         * top/maint.mk (update-copyright): Exclude COPYING.
76544         maint.mk: add a copyright-updating rule
76545         * top/maint.mk (update-copyright): New rule.
76546         Derived from coreutils/Makefile.am.
76548         update-copyright: rename some variables
76549         * build-aux/update-copyright: Rename a few variables for clarity.
76550         Tweak syntax.  List Joel E. Denny as coauthor.
76552 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
76554         update-copyright: fix bug for 2-digit last year and add tests
76555         * build-aux/update-copyright: Fix bug.
76556         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
76557         specified.
76558         * modules/update-copyright-tests: New
76559         * tests/test-update-copyright.sh: New.
76561 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
76563         update-copyright: handle leading tabs in line prefix
76564         * build-aux/update-copyright: Count leading tabs as 8 spaces
76565         when computing margin.  This helps with the formatting of
76566         ChangeLogs, for example.
76567         Fix documentation a little.
76569 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
76571         update-copyright: support EOL=\r\n
76572         * build-aux/update-copyright: Implement that.
76574 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
76576         update-copyright: automatically format copyright statements
76577         * build-aux/update-copyright: Implement that.
76578         Also, be a little more predictable and safer by always failing
76579         when the full copyright format is not perfectly recognized as an
76580         unbroken whole.  Discussed at
76581         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
76582         Rewrite documentation.
76584 2009-08-03  Bruno Haible  <bruno@clisp.org>
76586         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
76588 2009-08-02  Bruno Haible  <bruno@clisp.org>
76590         Tests for module 'uname'.
76591         * modules/uname-tests: New file.
76592         * tests/test-uname.c: New file.
76594         New module 'uname'.
76595         * lib/uname.c: New file.
76596         * m4/uname.m4: New file.
76597         * modules/uname: New file.
76598         * doc/posix-functions/uname.texi: Mention the new module.
76600 2009-08-02  Bruno Haible  <bruno@clisp.org>
76602         Tests for module 'sys_utsname'.
76603         * modules/sys_utsname-tests: New file.
76604         * tests/test-sys_utsname.c: New file.
76606         New module 'sys_utsname'.
76607         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
76608         * m4/sys_utsname_h.m4: New file.
76609         * modules/sys_utsname: New file.
76610         * doc/posix-headers/sys_utsname.texi: Mention the new module.
76612 2009-08-02  Bruno Haible  <bruno@clisp.org>
76614         Implicitly initialize the sockets library.
76615         * lib/gethostname.c: Include sockets.h.
76616         (rpl_gethostname): Invoke gl_sockets_startup.
76617         * lib/socket.c: Include sockets.h.
76618         (rpl_socket): Invoke gl_sockets_startup.
76619         * modules/gethostname (Depends-on): Add sockets.
76620         * modules/socket (Depends-on): Likewise.
76621         * tests/test-poll.c: Don't include sockets.h.
76622         (main): Don't invoke gl_sockets_startup.
76623         * tests/test-select.c: Don't include sockets.h.
76624         (main): Don't invoke gl_sockets_startup.
76626 2009-08-02  Bruno Haible  <bruno@clisp.org>
76628         Allow multiple calls to gl_sockets_startup.
76629         * lib/sockets.c (initialized_sockets_version): New variable.
76630         (gl_sockets_startup): Do nothing if already called for this or a higher
76631         version.
76632         (gl_sockets_cleanup): Reset initialized_sockets_version.
76634 2009-08-03  Simon Josefsson  <simon@josefsson.org>
76636         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
76637         different project/version.
76639 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
76640             Bruno Haible  <bruno@clisp.org>
76642         Tests for module 'pipe-filter-gi'.
76643         * modules/pipe-filter-gi-tests: New file.
76644         * tests/test-pipe-filter-gi1.sh: New file.
76645         * tests/test-pipe-filter-gi1.c: New file.
76646         * tests/test-pipe-filter-gi2.sh: New file.
76647         * tests/test-pipe-filter-gi2-main.c: New file.
76648         * tests/test-pipe-filter-gi2-child.c: New file.
76650         New module 'pipe-filter-gi'.
76651         * lib/pipe-filter-gi.c: New file.
76652         * modules/pipe-filter-gi: New file.
76654 2009-08-02  Bruno Haible  <bruno@clisp.org>
76655             Paolo Bonzini  <bonzini@gnu.org>
76657         Tests for module 'pipe-filter-ii'.
76658         * modules/pipe-filter-ii-tests: New file.
76659         * tests/test-pipe-filter-ii1.sh: New file.
76660         * tests/test-pipe-filter-ii1.c: New file.
76661         * tests/test-pipe-filter-ii2.sh: New file.
76662         * tests/test-pipe-filter-ii2-main.c: New file.
76663         * tests/test-pipe-filter-ii2-child.c: New file.
76665         New module 'pipe-filter-ii'.
76666         * lib/pipe-filter.h: New file.
76667         * lib/pipe-filter-ii.c: New file.
76668         * lib/pipe-filter-aux.h: New file.
76669         * modules/pipe-filter-ii: New file.
76671 2009-08-02  Simon Josefsson  <simon@josefsson.org>
76673         * lib/gc-libgcrypt.c: Change copyright to FSF.
76674         * lib/gc-gnulib.c: Likewise.
76676 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
76678         * lib/gethostname.c: Include limits.h.
76680 2009-08-02  Simon Josefsson  <simon@josefsson.org>
76681             Bruno Haible  <bruno@clisp.org>
76683         Ensure HOST_NAME_MAX as part of the gethostname module.
76684         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
76685         define also HOST_NAME_MAX.
76686         * tests/test-gethostname.c: Include <limits.h>.
76687         (main): Check also HOST_NAME_MAX.
76688         * doc/posix-headers/limits.texi: Document the mingw problem.
76690 2009-08-02  Bruno Haible  <bruno@clisp.org>
76692         * lib/gethostname.c (gethostname): Fix handling of large len argument.
76693         Add comments.
76695 2009-03-31  Simon Josefsson  <simon@josefsson.org>
76697         * lib/gethostname.c: Add Windows wrapper.
76698         * m4/gethostname.m4: Look for gethostname in -lws2_32.
76699         * modules/gethostname: Depend on sys_socket & errno, for also
76700         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
76701         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
76703 2009-07-31  Jim Meyering  <meyering@redhat.com>
76705         getloadavg: fix symbol name in comment
76706         * lib/getloadavg.c: Correct a typo I introduced when adding
76707         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
76708         Matt Kraai spotted the problem.
76710 2009-07-29  Matt Kraai  <mkraai@beckman.com>
76712         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
76713         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
76714         code also if ! defined N_NAME_POINTER.
76715         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
76716         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
76717         but the n_name member is a 12-byte array.
76719 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
76721         update-copyright: generalize comment handling
76722         * build-aux/update-copyright: Handle copyright statements
76723         within more comment styles.
76724         Document usage.
76725         Report any file with an external copyright holder or parse failure.
76727 2009-07-29  Jim Meyering  <meyering@redhat.com>
76729         mktime: correct setting of REPLACE_MKTIME
76730         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
76732         update-copyright: new module
76733         * modules/update-copyright: New file.
76734         * build-aux/update-copyright: New file.
76735         * MODULES.html.sh (maint+release support): Add update-copyright.
76737 2009-07-27  Bruno Haible  <bruno@clisp.org>
76739         Fix compilation error when <ctime> is used and mktime is replaced.
76740         * lib/time.in.h (mktime): New declaration.
76741         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
76742         REPLACE_MKTIME instead of defining mktime in config.h.
76743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
76744         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
76745         Reported by Ross McFarland <rwmcfa1@neces.com>.
76747 2009-07-27  Bruno Haible  <bruno@clisp.org>
76749         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
76750         Reported by Matt Kraai <mkraai@beckman.com>.
76752 2009-07-25  Jim Meyering  <meyering@redhat.com>
76754         maint.mk: avoid warnings about missing files
76755         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
76756         diagnostic when .prev-version does not exist.
76757         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
76758         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
76759         nonexistent cfg.mk.
76760         Suggestions from Simon Josefsson.
76762 2009-07-25  Bruno Haible  <bruno@clisp.org>
76764         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
76765         defined as macros. Needed on QNX 6.4.1.
76766         Reported by Matt Kraai <mkraai@beckman.com>.
76768 2009-07-23  Jim Meyering  <meyering@redhat.com>
76770         maint.mk: invoke "make dist" with a working value of XZ_OPT
76771         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
76773 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
76775         Make fseeko.c compile on QNX.
76776         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
76778 2009-07-22  Peter Simons  <simons@cryp.to>
76780         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
76781         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
76782         * lib/md4.h: Likewise.
76783         * lib/md5.h: Likewise.
76784         * lib/sha1.h: Likewise.
76785         * lib/sha256.h: Likewise.
76786         * lib/sha512.h: Likewise.
76788         tests-sha1: don't assign literal string to 'char *' variable
76789         * tests/test-sha1.c (main): Declare locals with "const" to match
76790         attributes of the right hand side.
76792 2009-07-21  Eric Blake  <ebb9@byu.net>
76794         dup2: fix more mingw problems
76795         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
76796         fd to itself.
76797         * doc/posix-functions/dup2.texi (dup2): Document the bug.
76798         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
76799         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
76800         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
76801         care of mingw bugs.
76803 2009-07-21  Jim Meyering  <meyering@redhat.com>
76805         vc-list-files: avoid failure when /bin/sh is dash
76806         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
76807         On some Debian based systems, /bin/sh is a symlink to dash, and running
76808         this command would omit the "/" following each 'tests' prefix:
76809           dash -x build-aux/vc-list-files -C . tests
76810         That is because bash and dash work differently:
76811           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
76812           bash ok
76813           dash odd
76815 2009-07-21  Eric Blake  <ebb9@byu.net>
76817         dup2-tests: test previous patch
76818         * modules/dup2-tests: New file.
76819         * tests/test-dup2.c: Likewise.
76820         * tests/test-open.c (main): Avoid unspecified behavior.
76821         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
76822         test.
76824         dup2: work around mingw and cygwin 1.5 bug
76825         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
76826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76827         * modules/unistd (Makefile.am): Substitute it.
76828         * lib/unistd.in.h (dup2): Declare the replacement.
76829         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
76830         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
76831         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
76832         * modules/execute (Depends-on): Add dup2.
76833         * modules/fseterr (Depends-on): Likewise.
76834         * modules/pipe (Depends-on): Likewise.
76835         * modules/posix_spawn-internal (Depends-on): Likewise.
76837 2009-07-21  Bruno Haible  <bruno@clisp.org>
76839         * modules/.gitattributes: New file.
76841 2009-07-20  Bruno Haible  <bruno@clisp.org>
76843         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
76844         (main): Use it.
76846 2009-07-20  Eric Blake  <ebb9@byu.net>
76848         test-pipe: make a bit more robust.
76849         * tests/test-pipe.c (myerr): Allow error messages regardless of
76850         what we do to stderr.
76851         (test_pipe): Rearrange to avoid deadlock.
76852         (child_main): Try a larger read, to ensure we avoided deadlock.
76853         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
76854         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
76855         if misused.
76857 2009-07-19  Jim Meyering  <meyering@redhat.com>
76859         fts: avoid false-positive cycle-detection
76860         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
76861         for each new command line argument.
76863 2009-07-19  Bruno Haible  <bruno@clisp.org>
76865         Fix build error on mingw with the modules sys_select and unistd.
76866         * modules/acl-tests (Depends-on): Add close.
76867         * modules/binary-io-tests (Depends-on): Likewise.
76868         * modules/closein-tests (Depends-on): Likewise.
76869         * modules/flock-tests (Depends-on): Likewise.
76870         * modules/fsync-tests (Depends-on): Likewise.
76871         * modules/lseek-tests (Depends-on): Likewise.
76872         * modules/pipe-tests (Depends-on): Likewise.
76873         * modules/posix_spawn-tests (Depends-on): Likewise.
76874         * modules/posix_spawnp-tests (Depends-on): Likewise.
76875         * modules/stat-time-tests (Depends-on): Likewise.
76876         * modules/yesno-tests (Depends-on): Likewise.
76878 2009-07-19  Bruno Haible  <bruno@clisp.org>
76880         Unify conditionals.
76881         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
76882         macros, not at the compiler macros.
76883         * lib/pipe.c: Likewise.
76884         * lib/execute.c: Likewise.
76885         * lib/spawni.c: Likewise.
76887 2009-07-19  Bruno Haible  <bruno@clisp.org>
76889         Fix handling of closed stdin/stdout/stderr on mingw.
76890         * lib/w32spawn.h: Include unistd.h.
76891         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
76892         file descriptor with O_NOINHERIT flag.
76893         (fd_safer_noinherit): New function, based on fd-safer.c.
76894         (dup_safer_noinherit): New function, based on dup-safer.c.
76895         (undup_safer_noinherit): New function.
76896         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
76897         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
76898         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
76899         instead of fd_safer.
76900         * tests/test-pipe.c: Include <windows.h>.
76901         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
76902         result.
76904         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
76905         from main.
76906         (test_pipe): Pass an extra argument for disambiguation.
76907         (main): Invoke parent_main or child_main.
76909         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
76910         consistently.
76912 2009-07-18  Eric Blake  <ebb9@byu.net>
76914         test-pipe: fix mingw build
76915         * tests/test-pipe.c (main): Avoid fcntl on mingw.
76917 2009-07-18  Bruno Haible  <bruno@clisp.org>
76919         * modules/pipe-tests (Makefile.am): Fix typo.
76921 2009-07-18  Eric Blake  <ebb9@byu.net>
76923         error: fix mingw build
76924         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
76925         Reported by Bruno Haible.
76927         error: avoid undefined use of stdout
76928         * lib/error.c (error, error_at_line): Check that fd 1 is open
76929         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
76930         is handling faults and the close_stdout module wants to report the
76931         detection of closed stdout as an error.
76933 2009-07-17  Eric Blake  <ebb9@byu.net>
76935         pipe: be robust in face of closed fds
76936         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
76937         should cause child to misbehave.
76938         * modules/pipe-tests: New module.
76939         * tests/test-pipe.c: New file.
76940         * tests/test-pipe.sh: New file.
76941         Reported by Akim Demaille.
76943 2009-07-14  Bruno Haible  <bruno@clisp.org>
76945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
76946         Reported by anonymous kc.
76948 2009-07-07  Jim Meyering  <meyering@redhat.com>
76950         maint.mk: don't look for translatable strings in *.m4 or *.mk
76951         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
76952         when searching for translatable strings.
76954 2009-07-05  Jim Meyering  <meyering@redhat.com>
76956         remove superfluous parentheses in STREQ definition
76957         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
76958         * lib/getugroups.c (STREQ): Likewise.
76959         * lib/fnmatch.c (STREQ): Likewise.
76960         Spotted by Bruno Haible.
76962 2009-07-04  Jim Meyering  <meyering@redhat.com>
76964         argv-iter: new module
76965         * MODULES.html.sh: Add argv-iter.
76966         * lib/argv-iter.c, lib/argv-iter.h: New files.
76967         * modules/argv-iter: New file.
76968         * modules/argv-iter-tests: New file.
76969         * tests/test-argv-iter.c: Test it.
76971 2009-07-04  Bruno Haible  <bruno@clisp.org>
76973         Fix assertion.
76974         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
76975         contains more exact copies of a given entry than file2, leave the extra
76976         copies unpaired rather than aborting.
76977         Reported by Eric Blake.
76979 2009-07-02  Bruno Haible  <bruno@clisp.org>
76981         Speedup git-merge-changelog for git cherry-pick.
76982         * lib/git-merge-changelog.c (struct entries_mapping): New type.
76983         (entries_mapping_get): New function, extracted from compute_mapping.
76984         (entries_mapping_reverse_get): New function.
76985         (compute_mapping): Add a 'full' argument. Return the result in a
76986         'struct entries_mapping'.
76987         (main): Update. Access the mappings through entries_mapping_get.
76988         Reported by Eric Blake.
76990 2009-07-02  Bruno Haible  <bruno@clisp.org>
76992         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
76993         best_i.
76995 2009-07-02  Bruno Haible  <bruno@clisp.org>
76997         Speed up approximate search for matching ChangeLog entries.
76998         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
76999         argument. Call fstrcmp_bounded instead of fstrcmp.
77000         (compute_mapping, try_split_merged_entry, main): Update callers.
77002 2009-07-02  Bruno Haible  <bruno@clisp.org>
77004         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
77006 2009-06-30  Bruno Haible  <bruno@clisp.org>
77008         Reduce the number of uc_is_cased calls.
77009         * lib/unicase.h (casing_suffix_context_t): Add
77010         'first_char_except_ignorable' field.
77011         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
77012         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
77013         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
77014         Update initializer.
77015         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
77016         case-ignorable characters.
77017         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
77018         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
77019         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
77020         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
77021         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
77023 2009-06-30  Bruno Haible  <bruno@clisp.org>
77025         Tests for module 'unicase/ignorable'.
77026         * modules/unicase/ignorable-tests: New file.
77027         * tests/unicase/test-ignorable.c: New file, generated by
77028         gen-uni-tables.
77030         Tests for module 'unicase/cased'.
77031         * modules/unicase/cased-tests: New file.
77032         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
77033         * tests/unicase/test-predicate-part1.h: New file, derived from
77034         tests/unictype/test-predicate-part1.h.
77035         * tests/unicase/test-predicate-part2.h: New file, same as
77036         tests/unictype/test-predicate-part2.h.
77038         Fix evaluation of "Before C" condition of FINAL_SIGMA.
77039         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
77040         (output_casing_properties): New function.
77041         (main): Call it.
77042         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
77043         * lib/unicase/cased.c: Include unictype/bitmap.h.
77044         (uc_is_cased): Define through a bitmap lookup.
77045         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
77046         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
77047         (uc_is_case_ignorable): Define through a bitmap lookup.
77048         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
77049         lib/unictype/bitmap.h.
77050         (Depends-on): Add inline. Clean up.
77051         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
77052         lib/unictype/bitmap.h.
77053         (Depends-on): Add inline. Clean up.
77054         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
77055         recognition.
77056         * tests/unicase/test-u16-tolower.c (main): Likewise.
77057         * tests/unicase/test-u32-tolower.c (main): Likewise.
77059 2009-06-30  Bruno Haible  <bruno@clisp.org>
77061         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
77062         * lib/unicase/u16-casemap.c: Likewise.
77063         * lib/unicase/u32-casemap.c: Likewise.
77065 2009-06-29  Bruno Haible  <bruno@clisp.org>
77067         Define u32_casefold as a wrapper around u32_ct_casefold.
77068         * lib/unicase/u32-casefold.c: Update.
77069         * modules/unicase/u32-casefold (Depends-on): Add
77070         unicase/u32-ct-casefold, unicase/empty-prefix-context,
77071         unicase/empty-suffix-context. Clean up.
77073         Define u16_casefold as a wrapper around u16_ct_casefold.
77074         * lib/unicase/u16-casefold.c: Update.
77075         * modules/unicase/u16-casefold (Depends-on): Add
77076         unicase/u16-ct-casefold, unicase/empty-prefix-context,
77077         unicase/empty-suffix-context. Clean up.
77079         Define u8_casefold as a wrapper around u8_ct_casefold.
77080         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
77081         * lib/unicase/u8-casefold.c: Update.
77082         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
77083         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
77085         Define u32_totitle as a wrapper around u32_ct_totitle.
77086         * lib/unicase/u32-totitle.c: Update.
77087         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
77088         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
77090         Define u16_totitle as a wrapper around u16_ct_totitle.
77091         * lib/unicase/u16-totitle.c: Update.
77092         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
77093         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
77095         Define u8_totitle as a wrapper around u8_ct_totitle.
77096         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
77097         functions.
77098         (FUNC): Delegate to U_CT_TOTITLE.
77099         * lib/unicase/u8-totitle.c: Update.
77100         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
77101         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
77103         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
77104         invocation.
77105         * modules/unicase/u32-tolower (Depends-on): Add
77106         unicase/empty-prefix-context, unicase/empty-suffix-context.
77108         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
77109         invocation.
77110         * modules/unicase/u16-tolower (Depends-on): Add
77111         unicase/empty-prefix-context, unicase/empty-suffix-context.
77113         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
77114         * modules/unicase/u8-tolower (Depends-on): Add
77115         unicase/empty-prefix-context, unicase/empty-suffix-context.
77117         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
77118         invocation.
77119         * modules/unicase/u32-toupper (Depends-on): Add
77120         unicase/empty-prefix-context, unicase/empty-suffix-context.
77122         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
77123         invocation.
77124         * modules/unicase/u16-toupper (Depends-on): Add
77125         unicase/empty-prefix-context, unicase/empty-suffix-context.
77127         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
77128         * modules/unicase/u8-toupper (Depends-on): Add
77129         unicase/empty-prefix-context, unicase/empty-suffix-context.
77131         New module 'unicase/u32-ct-casefold'.
77132         * lib/unicase/u32-ct-casefold.c: New file.
77133         * modules/unicase/u32-ct-casefold: New file.
77135         New module 'unicase/u16-ct-casefold'.
77136         * lib/unicase/u16-ct-casefold.c: New file.
77137         * modules/unicase/u16-ct-casefold: New file.
77139         New module 'unicase/u8-ct-casefold'.
77140         * lib/unicase/u8-ct-casefold.c: New file.
77141         * lib/unicase/u-ct-casefold.h: New file, derived from
77142         lib/unicase/u-casefold.h.
77143         * modules/unicase/u8-ct-casefold: New file.
77145         New module 'unicase/u32-ct-totitle'.
77146         * lib/unicase/u32-ct-totitle.c: New file.
77147         * modules/unicase/u32-ct-totitle: New file.
77149         New module 'unicase/u16-ct-totitle'.
77150         * lib/unicase/u16-ct-totitle.c: New file.
77151         * modules/unicase/u16-ct-totitle: New file.
77153         New module 'unicase/u8-ct-totitle'.
77154         * lib/unicase/u8-ct-totitle.c: New file.
77155         * lib/unicase/u-ct-totitle.h: New file, derived from
77156         lib/unicase/u-totitle.h.
77157         * modules/unicase/u8-ct-totitle: New file.
77159         New module 'unicase/u32-ct-tolower'.
77160         * lib/unicase/u32-ct-tolower.c: New file.
77161         * modules/unicase/u32-ct-tolower: New file.
77163         New module 'unicase/u16-ct-tolower'.
77164         * lib/unicase/u16-ct-tolower.c: New file.
77165         * modules/unicase/u16-ct-tolower: New file.
77167         New module 'unicase/u8-ct-tolower'.
77168         * lib/unicase/u8-ct-tolower.c: New file.
77169         * modules/unicase/u8-ct-tolower: New file.
77171         New module 'unicase/u32-ct-toupper'.
77172         * lib/unicase/u32-ct-toupper.c: New file.
77173         * modules/unicase/u32-ct-toupper: New file.
77175         New module 'unicase/u16-ct-toupper'.
77176         * lib/unicase/u16-ct-toupper.c: New file.
77177         * modules/unicase/u16-ct-toupper: New file.
77179         New module 'unicase/u8-ct-toupper'.
77180         * lib/unicase/u8-ct-toupper.c: New file.
77181         * modules/unicase/u8-ct-toupper: New file.
77183         Add context arguments to u*_casemap functions.
77184         * lib/unicase/unicasemap.h: Include unicase.h.
77185         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
77186         suffix_context arguments.
77187         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
77188         functions.
77189         (FUNC): Add prefix_context and suffix_context arguments. Use
77190         uc_is_cased and uc_is_case_ignorable.
77191         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
77192         * lib/unicase/u16-casemap.c: Likewise.
77193         * lib/unicase/u32-casemap.c: Likewise.
77194         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
77195         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
77196         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
77197         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
77198         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
77199         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
77201         New module 'unicase/u32-suffix-context'.
77202         * lib/unicase/u32-suffix-context.c: New file.
77203         * modules/unicase/u32-suffix-context: New file.
77205         New module 'unicase/u16-suffix-context'.
77206         * lib/unicase/u16-suffix-context.c: New file.
77207         * modules/unicase/u16-suffix-context: New file.
77209         New module 'unicase/u8-suffix-context'.
77210         * lib/unicase/u8-suffix-context.c: New file.
77211         * lib/unicase/u-suffix-context.h: New file.
77212         * modules/unicase/u8-suffix-context: New file.
77214         New module 'unicase/empty-suffix-context'.
77215         * lib/unicase/empty-suffix-context.c: New file.
77216         * modules/unicase/empty-suffix-context: New file.
77218         New module 'unicase/u32-prefix-context'.
77219         * lib/unicase/u32-prefix-context.c: New file.
77220         * modules/unicase/u32-prefix-context: New file.
77222         New module 'unicase/u16-prefix-context'.
77223         * lib/unicase/u16-prefix-context.c: New file.
77224         * modules/unicase/u16-prefix-context: New file.
77226         New module 'unicase/u8-prefix-context'.
77227         * lib/unicase/u8-prefix-context.c: New file.
77228         * lib/unicase/u-prefix-context.h: New file.
77229         * lib/unicase/context.h: New file.
77230         * modules/unicase/u8-prefix-context: New file.
77232         New module 'unicase/empty-prefix-context'.
77233         * lib/unicase/empty-prefix-context.c: New file.
77234         * modules/unicase/empty-prefix-context: New file.
77236         New module 'unicase/ignorable'.
77237         * lib/unicase/ignorable.c: New file.
77238         * modules/unicase/ignorable: New file.
77240         New module 'unicase/cased'.
77241         * lib/unicase/caseprop.h: New file.
77242         * lib/unicase/cased.c: New file.
77243         * modules/unicase/cased: New file.
77245         New functions for case mapping of substrings.
77246         * lib/unicase.h (casing_prefix_context_t): New type.
77247         (unicase_empty_prefix_context): New variable.
77248         (u8_casing_prefix_context, u16_casing_prefix_context,
77249         u32_casing_prefix_context, u8_casing_prefixes_context,
77250         u16_casing_prefixes_context, u32_casing_prefixes_context): New
77251         declarations.
77252         (casing_suffix_context_t): New type.
77253         (unicase_empty_suffix_context): New variable.
77254         (u8_casing_suffix_context, u16_casing_suffix_context,
77255         u32_casing_suffix_context, u8_casing_suffixes_context,
77256         u16_casing_suffixes_context, u32_casing_suffixes_context,
77257         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
77258         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
77259         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
77260         declarations.
77262 2009-06-28  Jim Meyering  <meyering@redhat.com>
77264         boostrap: indent only with spaces
77265         * build-aux/bootstrap: Indent only with spaces, never TABs.
77267         bootstrap: split long lines
77268         * build-aux/bootstrap: Keep line length < 80.
77270         bootstrap: sync from coreutils
77271         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
77272         just as autoreconf does.  Verify a list of prerequisite
77273         package-name,version-number pairs if defined in bootstrap.conf.
77274         Refer to README-prereq, if prerequisites are not satisfied.
77276 2009-06-27  Eric Blake  <ebb9@byu.net>
77278         tests: add test for bogus NULL definition
77279         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
77280         * tests/test-stdlib.c: Likewise.
77281         * tests/test-string.c: Likewise.
77282         * tests/test-locale.c: Likewise.
77283         * tests/test-unistd.c: Likewise.
77284         * modules/stdio-tests (Depends-on): Add verify.
77285         * modules/stdlib-tests (Depends-on): Likewise.
77286         * modules/string-tests (Depends-on): Likewise.
77287         * modules/locale-tests (Depends-on): Likewise.
77288         * modules/unistd-tests (Depends-on): Likewise.
77290 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
77292         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
77293         self-explaining comment.
77294         * m4/selinux-selinux-h: Update serial.
77295         (gl_LIBSELINUX): New macro, adding a warning for missing development
77296         packages to code extracted from...
77297         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
77298         Add warning for missing development packages here, too.
77300 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
77302         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
77304 2009-06-25  Eric Blake  <ebb9@byu.net>
77306         version-etc: fix regression
77307         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
77308         gcc.
77309         (version_etc): Use it, to catch bugs with trailing NULL.
77310         * lib/version-etc.c (version_etc_arn): Delete unused argument.
77311         (version_etc_va): Fix logic bug.
77312         * modules/version-etc-tests: Add test.
77313         * tests/test-version-etc.c: New file.
77314         * tests/test-version-etc.sh: Likewise.
77316 2009-06-25  Sam Steingold  <sds@gnu.org>
77318         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
77319         mbtowc declaration.
77321 2009-06-25  Eric Blake  <ebb9@byu.net>
77323         fpurge: migrate into <stdio.h>
77324         * lib/fpurge.h: Delete...
77325         * lib/stdio.in.h (fpurge): ...and declare here, instead.
77326         * lib/fpurge.c (fpurge): Change declaring header.
77327         * modules/fpurge (Files): Drop deleted file.
77328         (Depends-on): Add stdio.
77329         (configure.ac): Set witness.
77330         * modules/stdio (Makefile.am): Support fpurge macros.
77331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77332         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
77333         * lib/fflush.c: Update client.
77334         * tests/test-fpurge.c: Likewise.
77335         * NEWS: Mention the change.
77337 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77339         * lib/argp-version-etc.c (program_authors): Add const
77340         qualifier.
77341         * lib/version-etc.c: Fix typos in the comments.
77342         * modules/argp-version-etc: Depends on version-etc.
77344 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77346         argp-version-etc: new module.
77348         * lib/argp-version-etc.c: New file.
77349         * lib/argp-version-etc.h: New file.
77350         * modules/argp-version-etc: New file.
77351         * modules/argp-version-etc-tests: New file.
77352         * tests/test-argp-version-etc.c: New test.
77353         * tests/test-argp-version-etc-1.sh: New test.
77355 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77357         Provide additional interfaces and documentation for version-etc
77358         module.
77360         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
77361         interfaces.
77362         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
77363         prototypes.
77365 2009-06-24  Bruno Haible  <bruno@clisp.org>
77367         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
77368         HAVE_LIB${NAME} macro.
77369         Reported by Sam Steingold <sds@gnu.org>.
77371 2009-06-23  Simon Josefsson  <simon@josefsson.org>
77373         * modules/hash-tests (test_hash_LDADD): Link to libintl when
77374         needed.
77376 2009-06-21  Bruno Haible  <bruno@clisp.org>
77378         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
77379         work.
77380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
77381         together with LIB${NAME}, LTLIB${NAME}.
77382         Reported by Sam Steingold <sds@gnu.org>.
77384 2009-06-20  Jim Meyering  <meyering@redhat.com>
77386         tests: make sc_require_test_exit_idiom more generic
77387         * top/maint.mk (Exit_witness_file): New overridable variable.
77388         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
77389         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
77391 2009-06-19  Jim Meyering  <meyering@redhat.com>
77393         hash: reverse order of src/dst parameters in an internal interface
77394         * lib/hash.c (transfer_entries): Reverse order of parameters to
77395         put DST before SRC.  Adjust callers.
77397         tests: test-hash: avoid wholesale duplication
77398         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
77399         Instead, use a loop and add a single conditional.
77401         tests: test-hash: allow seed selection via a command line argument
77402         * tests/test-hash.c (get_seed): New function.
77403         (main): Use it.
77405 2009-06-19  Eric Blake  <ebb9@byu.net>
77407         hash: avoid memory leak on allocation failure
77408         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
77409         failure.  Factor repeated algorithm...
77410         (transfer_entries): ...into new helper routine.
77411         (hash_delete): React to hash_rehash return value.
77413         hash: reduce memory pressure in hash_rehash no-op case
77414         * lib/hash.c (next_prime): Avoid overflow.
77415         (hash_initialize): Factor bucket size computation...
77416         (compute_bucket_size): ...into new helper function.
77417         (hash_rehash): Use new function and open coding to reduce memory
77418         pressure, and avoid a memory leak in USE_OBSTACK code.
77419         Reported by Jim Meyering.
77421 2009-06-18  Eric Blake  <ebb9@byu.net>
77423         hash: make rotation more obvious
77424         * modules/hash (Depends-on): Add bitrotate and stdint.
77425         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
77426         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
77427         (SIZE_MAX): Rely on headers for definition.
77428         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
77429         (raw_hasher): Use rotr_sz.
77430         Suggested by Jim Meyering.
77432         hash: fix memory leak in last patch
77433         * lib/hash.c (hash_rehash): Avoid memory leak.
77435         hash: avoid no-op rehashing
77436         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
77438         hash: provide default callback functions
77439         * lib/hash.c (raw_hasher, raw_comparator): New functions.
77440         (hash_initialize): Use them as defaults.
77441         * tests/test-hash.c (main): Test this.
77443         hash: minor optimization
77444         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
77445         when possible.
77446         (hash_initialize): Document this promise.
77447         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
77448         * tests/test-hash.c (hash_compare_strings): Test this.
77450 2009-06-18  Bruno Haible  <bruno@clisp.org>
77452         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
77453         going to be replaced anyway.
77455 2009-06-18  Bruno Haible  <bruno@clisp.org>
77457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
77458         in one place.
77459         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
77460         be replaced anyway.
77462 2009-06-18  Eric Blake  <ebb9@byu.net>
77464         hash: check for resize before insertion
77465         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
77466         threshold before insertion, so that a pathological hash_rehash
77467         that fills every bucket can still trigger another rehash.
77469 2009-06-18  Jim Meyering  <meyering@redhat.com>
77471         hash-tests: add a loop around the small tests
77472         * tests/test-hash.c (main): Repeat small tests with selected
77473         small initial table sizes.
77475 2009-06-17  Eric Blake  <ebb9@byu.net>
77477         hash: minor cleanups
77478         * lib/hash.h (hash_entry): Make opaque, by moving...
77479         * lib/hash.c (hash_entry): ...here.
77480         (hash_insert): Clarify restrictions on what can be inserted.
77481         (hash_get_next): Clarify when it is safe to remove an element
77482         during traversal.
77483         (check_tuning): Skip verification when tuning is known safe.
77484         (hash_initialize): Clarify restrictions on tuning.
77486 2009-06-17  Jim Meyering  <jim@meyering.net>
77487         and Eric Blake  <ebb9@byu.net>
77489         hash-tests: new module
77490         * modules/hash-tests: New file.
77491         * tests/test-hash.c: New file.
77493 2009-06-17  Eric Blake  <ebb9@byu.net>
77495         strstr-simple: document new module
77496         * MODULES.html.sh: Document new module.
77498         strstr, strcasestr: replace on platforms with broken memchr
77499         * modules/strstr: Split into...
77500         * modules/strstr-simple: ...new module that does not care about
77501         performance, but does care about glibc bug.
77502         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
77503         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
77504         if platform memchr is broken, per Debian bug 521737.
77505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
77506         memchr.
77507         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
77508         * doc/posix-functions/strstr.texi (strstr): Document the fix.
77509         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
77510         * modules/mountlist (Depends-on): Add strstr-simple.
77511         * modules/gen-uni-tables (Depends-on): Likewise.
77512         * modules/argz (Depends-on): Add strstr.
77514 2009-06-17  Bruno Haible  <bruno@clisp.org>
77516         * modules/posix_spawn-internal (Depends-on): Add errno.
77518 2009-06-17  Bruno Haible  <bruno@clisp.org>
77520         Define missing ESTALE on Interix 3.5.
77521         * lib/errno.in.h (ESTALE): Assign a value if missing.
77522         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
77523         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
77524         missing.
77525         * doc/posix-headers/errno.texi: Mention the Interix bug.
77526         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
77528 2009-06-15  Eric Blake  <ebb9@byu.net>
77530         memchr, memchr2: add valgrind exception
77531         * lib/memchr.valgrind: New file.
77532         * lib/memchr2.valgrind: New file.
77533         * modules/memchr (Files): Distribute valgrind file.
77534         * modules/memchr2 (Files): Likewise.
77536         docs: memchr is no longer obsolete
77537         * MODULES.html.sh: Move memchr from obsolete to string.h section.
77538         * lib/string.in.h (memchr): Simplify logic.
77540 2009-06-14  Jim Meyering  <meyering@redhat.com>
77542         link-follow: fix the "checking..." message to not mention trailing slash
77543         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
77544         never considered trailing slashes.
77546 2009-06-14  Bruno Haible  <bruno@clisp.org>
77548         * m4/memchr.m4: Mention also the bug on IA-64.
77549         * doc/posix-functions/memchr.texi: Likewise.
77551 2009-06-12  Eric Blake  <ebb9@byu.net>
77553         memchr: detect broken x86_64 and alpha implementations
77554         * modules/memchr-tests (Depends-on): Move mmap detection...
77555         * modules/memchr (Depends-on): ...here.
77556         (configure.ac): Set indicator.
77557         * lib/string.in.h (memchr): Declare replacement.
77558         * modules/string (Makefile.am): Trigger replacement.
77559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
77560         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
77561         bugs.
77562         * doc/posix-functions/memchr.texi (memchr): Document the bug.
77563         * modules/getpagesize (License): Relax license.
77565 2009-06-11  Bruno Haible  <bruno@clisp.org>
77567         * lib/idpriv.h: Add more references.
77569 2009-06-08  Bruno Haible  <bruno@clisp.org>
77571         Tests for module 'idpriv-droptemp'.
77572         * modules/idpriv-droptemp-tests: New file.
77573         * tests/test-idpriv-droptemp.sh: New file.
77574         * tests/test-idpriv-droptemp.su.sh: New file.
77575         * tests/test-idpriv-droptemp.c: New file.
77577         New module 'idpriv-droptemp'.
77578         * lib/idpriv-droptemp.c: New file.
77579         * modules/idpriv-droptemp: New file.
77581 2009-06-08  Bruno Haible  <bruno@clisp.org>
77583         Tests for module 'idpriv-drop'.
77584         * modules/idpriv-drop-tests: New file.
77585         * tests/test-idpriv-drop.sh: New file.
77586         * tests/test-idpriv-drop.su.sh: New file.
77587         * tests/test-idpriv-drop.c: New file.
77589         New module 'idpriv-drop'.
77590         * lib/idpriv.h: New file.
77591         * lib-idpriv-drop.c: New file.
77592         * m4/idpriv.m4: New file.
77593         * modules/idpriv-drop: New file.
77595 2009-06-08  Bruno Haible  <bruno@clisp.org>
77597         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
77598         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77599         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77600         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77601         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77602         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77603         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77605 2009-06-08  Eric Blake  <ebb9@byu.net>
77607         test-strstr: use memory fence, when possible
77608         * tests/test-strstr.c (main): Use memory fence, in order to be
77609         more likely to trigger Debian bug 521737.
77610         * modules/strstr-tests (Files): Pull in additional files.
77612         memchr: no longer obsolete, for wider field testing
77613         * modules/memchr (Status, Notice): Delete, this module is no
77614         longer obsolete.
77615         * modules/vasnprintf (Depends-on): Add memchr.
77617 2009-06-07  Jim Meyering  <meyering@redhat.com>
77619         hash: declare some functions with the warn_unused_result attribute
77620         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
77622 2009-06-07  Bruno Haible  <bruno@clisp.org>
77624         * tests/test-alignof.c: Don't test int64_t if it does not exist.
77625         Reported by Eric Blake.
77627 2009-06-06  Eric Blake  <ebb9@byu.net>
77629         test-alignof: fix typo with long double
77630         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
77631         compiler error.
77633 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
77635         Escape non-texinfo { and }s.
77636         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
77637         markup error.
77639 2009-06-04  Jim Meyering  <meyering@redhat.com>
77641         gitlog-to-changelog: don't infloop on an empty commit log
77642         * build-aux/gitlog-to-changelog: Warn about an empty log message.
77643         Reported by Boris Petersen <transacid@centerim.org>.
77645 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
77647         version-etc: extend for packagers
77648         Add three new configure options, intended for packagers:
77649           --with-packager="packager name"
77650           --with-packager-version="packager-specific version"
77651           --with-packager-bug-reports="packager bug reporting"
77652         An example with coreutils:
77653           $ ./configure \
77654             --with-packager=Gentoo \
77655             --with-packager-bug-report=http://bugs.gentoo.org/ \
77656             --with-packager-version="patchset 1.6"
77657           $ ./src/ls --version | head -n2
77658           ls (GNU coreutils) 7.1-dirty
77659           Packaged by Gentoo (patchset 1.6)
77660         Note that the bug reporting info via --help doesn't show up because
77661         coreutils uses its own custom emit_bug_reporting_address() implementation
77662         in src/system.h.  If it didn't, it'd look like:
77663           $ ./src/ls --help | tail -n4
77664           Report bugs to <bug-coreutils@gnu.org>.
77665           Report Gentoo bugs to <http://bugs.gentoo.org/>.
77666           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
77667           General help using GNU software: <http://www.gnu.org/gethelp/>.
77668         * lib/version-etc.c: Print new information, if provided.
77669         * m4/version-etc.m4: New file.
77670         * modules/version-etc (Files): Add m4/version-etc.m4.
77671         (configure.ac): Add gl_VERSION_ETC.
77673 2009-05-31  Bruno Haible  <bruno@clisp.org>
77675         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
77676         and 'int64_t'.
77677         * modules/alignof-tests (Dependencies): Add stdint.
77678         Reported by Eric Blake.
77680 2009-05-31  Bruno Haible  <bruno@clisp.org>
77682         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
77683         restriction due to compiler bugs.
77684         Reported by Eric Blake.
77686 2009-05-31  Simon Josefsson  <simon@josefsson.org>
77687             Bruno Haible  <bruno@clisp.org>
77689         Fix test-alignof failure.
77690         * lib/alignof.h (alignof_slot): New macro.
77691         (alignof_type): New macro, with the same semantics as the previous
77692         'alignof'.
77693         (alignof): Alias to alignof_slot.
77694         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
77695         check that the results are usable as constant expressions.
77697 2009-05-31  Bruno Haible  <bruno@clisp.org>
77699         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
77700         * tests/test-memchr.c (main): Check that memchr does not read past the
77701         first occurrence of the byte.
77702         * tests/test-strstr.c (main): Update comment.
77703         Suggested by Eric Blake.
77705 2009-05-30  Bruno Haible  <bruno@clisp.org>
77707         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
77708         detail how to use dumpbin.
77709         Reported by David Byron <dbyron@dbyron.com>.
77711 2009-06-02  Simon Josefsson  <simon@josefsson.org>
77713         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
77715 2009-06-02  Simon Josefsson  <simon@josefsson.org>
77717         * m4/manywarnings.m4: Add GCC 4.4 warnings.
77719 2009-05-28  Bruno Haible  <bruno@clisp.org>
77721         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
77722         build-aux/ files.
77724 2009-05-28  Simon Josefsson  <simon@josefsson.org>
77726         * gnulib-tool (func_import): Transform license on build-aux/ files too.
77728 2009-05-27  Simon Josefsson  <simon@josefsson.org>
77730         * gnulib-tool (sed_transform_main_lib_file)
77731         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
77732         regexps.
77734 2009-05-26  Simon Josefsson  <simon@josefsson.org>
77736         * tests/test-strstr.c: Add another self-test.
77737         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
77738         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
77740 2009-05-23  Bruno Haible  <bruno@clisp.org>
77742         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
77743         change.
77745 2009-05-21  Bruno Haible  <bruno@clisp.org>
77747         Simplify use of mode_t varargs.
77748         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
77749         uses 'mode_t' or 'int'.
77750         * lib/openat.c (openat): Likewise.
77751         * lib/open-safer.c (open_safer): Likewise.
77752         * m4/mode_t.m4: New file.
77753         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
77754         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
77755         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
77756         * modules/open (Files): Add m4/mode_t.m4.
77757         * modules/openat (Files): Likewise.
77758         * modules/fcntl-safer (Files): Likewise.
77759         Suggested by Eric Blake.
77761 2009-05-21  Pádraig Brady  <P@draigbrady.com>
77763         * doc/glibc-functions/fallocate.texi: New file.
77764         * doc/gnulib.texi: Include it.
77766 2009-05-21  Eric Blake  <ebb9@byu.net>
77767             Bruno Haible  <bruno@clisp.org>
77769         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
77770         invocations.
77771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77773 2009-05-21  Eric Blake  <ebb9@byu.net>
77774             Bruno Haible  <bruno@clisp.org>
77776         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
77777         include_next. Fix of 2008-11-20 commit.
77778         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
77779         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
77780         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
77781         NEXT_MATH_H.
77782         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
77783         instead of NEXT_MATH_H.
77785 2009-05-21  Bruno Haible  <bruno@clisp.org>
77787         Avoid redefinition warnings for SIZE_MAX.
77788         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
77789         Reported by Simon Josefsson.
77791 2009-05-21  Bruno Haible  <bruno@clisp.org>
77793         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
77794         AC_CACHE_VAL.
77796 2009-05-20  Bruno Haible  <bruno@clisp.org>
77798         Make zeroptr.h work on mingw.
77799         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
77800         mprotect.
77801         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
77802         * modules/memchr2-tests (configure.ac): Likewise.
77803         * modules/memcmp-tests (configure.ac): Likewise.
77804         * modules/memmem-tests (configure.ac): Likewise.
77805         * modules/memrchr-tests (configure.ac): Likewise.
77806         Reported by Simon Josefsson.
77808 2009-05-20  Simon Josefsson  <simon@josefsson.org>
77810         * tests/test-glob.c: Include string.h for strcmp prototype.
77812 2009-05-20  Simon Josefsson  <simon@josefsson.org>
77814         * modules/getdelim (Depends-on): Add explicit stdint, although it
77815         was implicitly already pulled in via realloc-posix.
77816         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
77818 2009-05-20  Simon Josefsson  <simon@josefsson.org>
77820         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
77821         G. Christensen" <tgc@jupiterrise.com>.
77822         * m4/sys_socket_h.m4: Check for sa_family_t.
77823         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
77824         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
77825         * tests/test-sys_socket.c: Check that sa_family_t works.
77827 2009-05-18  Eric Blake  <ebb9@byu.net>
77829         maint.mk: allow gnulib_dir in VPATH build
77830         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
77832 2009-05-15  Jim Meyering  <meyering@redhat.com>
77834         maint.mk: Give gnulib_dir a default definition.
77835         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
77836         Thus, most packages no longer need to specify this variable in cfg.mk
77838 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
77840         rename.m4: fix typos that would make non-mingw cross-configure fail
77841         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
77843 2009-05-13  Eric Blake  <ebb9@byu.net>
77845         mmap-anon: avoid out-of-order autoconf expansion
77846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
77847         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
77848         * modules/memchr-tests (Depends-on): Add extensions.
77849         * modules/memchr2-tests (Depends-on): Add extensions.
77850         * modules/memcmp-tests (Depends-on): Add extensions.
77851         * modules/memmem-tests (Depends-on): Add extensions.
77852         * modules/memrchr-tests (Depends-on): Add extensions.
77854 2009-05-13  Bruno Haible  <bruno@clisp.org>
77856         Make some tests ISO C 99 compliant.
77857         * tests/zerosize-ptr.h: New file.
77858         * tests/test-memchr.c: Include zerosize-ptr.h.
77859         (main): Use a zero-size object pointer instead of NULL.
77860         * tests/test-memchr2.c: Include zerosize-ptr.h.
77861         (main): Use a zero-size object pointer instead of NULL.
77862         * tests/test-memcmp.c: Include zerosize-ptr.h.
77863         (main): Use a zero-size object pointer instead of NULL.
77864         * tests/test-memmem.c: Include zerosize-ptr.h.
77865         (main): Use a zero-size object pointer instead of NULL.
77866         * tests/test-memrchr.c: Include zerosize-ptr.h.
77867         (main): Use a zero-size object pointer instead of NULL.
77868         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
77869         m4/mmap-anon.m4.
77870         (Depends-on): Add getpagesize.
77871         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77872         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
77873         m4/mmap-anon.m4.
77874         (Depends-on): Add getpagesize.
77875         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77876         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
77877         m4/mmap-anon.m4.
77878         (Depends-on): Add getpagesize.
77879         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77880         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
77881         m4/mmap-anon.m4.
77882         (Depends-on): Add getpagesize.
77883         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77884         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
77885         m4/mmap-anon.m4.
77886         (Depends-on): Add getpagesize.
77887         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77889 2009-05-12  Bruno Haible  <bruno@clisp.org>
77891         Tests for module 'alignof'.
77892         * modules/alignof-tests: New file.
77893         * tests/test-alignof.c: New file.
77895 2009-05-12  Bruno Haible  <bruno@clisp.org>
77897         Fix alignof macro.
77898         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
77899         vendor compilers that are always correct.
77901 2009-05-12  Bruno Haible  <bruno@clisp.org>
77903         Make the MAP_ANONYMOUS detection work on HP-UX 11.
77904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
77905         not whether its fully works.
77907 2009-05-12  Bruno Haible  <bruno@clisp.org>
77909         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
77911 2009-05-12  Jim Meyering  <meyering@redhat.com>
77913         * top/maint.mk: Adjust backslash alignment.
77915 2009-05-11  Simon Josefsson  <simon@josefsson.org>
77917         * top/maint.mk: Make $(srcdir)/build-aux configurable.
77919 2009-05-11  Eric Blake  <ebb9@byu.net>
77921         argp: avoid undefined behavior
77922         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
77923         macros.
77925 2009-05-08  Simon Josefsson  <simon@josefsson.org>
77927         * tests/test-vc-list-files-git.sh: Do git config of user.email and
77928         user.name to prevent git commit from complaining.
77930 2009-05-10  Bruno Haible  <bruno@clisp.org>
77932         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
77933         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
77934         it rewrites every file name only once.
77935         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
77937 2009-05-08  Bruno Haible  <bruno@clisp.org>
77939         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
77940         instead of 'max'.
77942 2009-05-08  Simon Josefsson  <simon@josefsson.org>
77944         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
77945         sockaddr_storage test.
77947 2009-05-07  Simon Josefsson  <simon@josefsson.org>
77949         * modules/sys_socket (Makefile.am): Substitute
77950         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
77951         * m4/sys_socket_h.m4: Check for sockaddr_storage.
77952         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
77953         * tests/test-sys_socket.c: Check sockaddr_storage.
77955 2009-05-08  Bruno Haible  <bruno@clisp.org>
77957         New module 'alignof'.
77958         * lib/alignof.h: New file.
77959         * modules/alignof: New file.
77961 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
77962             Bruno Haible  <bruno@clisp.org>
77964         Fix test-file-has-acl on FreeBSD.
77965         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
77966         mask is implicitly added.
77967         * tests/test-file-has-acl.c: Include <signal.h>.
77968         (main): Terminate the test after 5 seconds.
77969         * modules/acl-tests (configure.ac): Check for alarm function.
77971 2009-05-04  Bruno Haible  <bruno@clisp.org>
77973         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
77974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
77975         * modules/errno (configure.ac): Drop AC_REQUIRE.
77976         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
77977         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
77979 2009-05-04  Simon Josefsson  <simon@josefsson.org>
77981         * modules/glob-tests: New module.
77982         * tests/test-glob.c: Add.
77984 2009-05-04  Simon Josefsson  <simon@josefsson.org>
77986         * modules/fnmatch-tests: New module.
77987         * tests/test-fnmatch.c: Add.
77989 2009-05-04  Eric Blake  <ebb9@byu.net>
77991         maint: make the new no-submodule-changes rule VPATH-safe
77992         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
77994 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
77995             Bruno Haible  <bruno@clisp.org>
77997         acl: Fix infinite loop on FreeBSD.
77998         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
77999         of return value from acl_get_entry.
78000         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
78001         Likewise.
78003 2009-05-03  Bruno Haible  <bruno@clisp.org>
78005         * lib/acl-internal.h (acl_entries): Clarify return value.
78006         * lib/acl_entries.c (acl_entries): Likewise.
78008 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
78010         Bug fix in acl module.
78011         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
78013 2009-05-03  Bruno Haible  <bruno@clisp.org>
78015         Create gperf-generated file in the source dir, not in the build dir.
78016         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
78017         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
78018         * modules/unicase/locale-language (unicase/locale-languages.h):
78019         Likewise.
78020         * modules/unicase/special-casing (unicase/special-casing-table.h):
78021         Likewise.
78022         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
78023         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
78024         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
78025         Reported by Ralf Wildenhues.
78027 2009-05-03  Bruno Haible  <bruno@clisp.org>
78029         * modules/fnmatch (Description, configure.ac): Taken from
78030         fnmatch-posix.
78031         * modules/fnmatch-posix: Turn into a symbolic reference to the
78032         'fnmatch' module, and deprecate.
78033         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
78035 2009-05-03  Bruno Haible  <bruno@clisp.org>
78037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
78038         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
78039         Reported by Ralf Wildenhues.
78041 2009-05-04  Simon Josefsson  <simon@josefsson.org>
78043         * m4/fnmatch.m4: Fix fnmatch re-define.
78045 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
78047         priv-set: new module and tests; adapt write-any-file
78048         * lib/priv-set.c: New file.
78049         * lib/priv-set.h: New file.
78050         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
78051         * lib/write-any-file.c: Simplify by using priv-set module.
78052         * m4/priv-set.m4: New file.
78053         * modules/priv-set: New file.
78054         * modules/unlinkdir: Add dependency on priv-set module.
78055         * modules/write-any-file: Likewise.
78057         Tests for module 'priv-set'.
78058         * modules/priv-set-tests: New file.
78059         * tests/test-priv-set.c: New file.
78061 2009-05-03  Jim Meyering  <meyering@redhat.com>
78062             Bruno Haible  <bruno@clisp.org>
78064         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
78065         use the converted UTF-8 variant of the name instead.
78067 2009-05-03  Jim Meyering  <meyering@redhat.com>
78069         tests: tighten some getdate tests
78070         * tests/test-getdate.c (main): Tighten tests: require equality,
78071         not just greater than.  Set TZ envvar to UTC0.
78073 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
78075         getdate: correctly interpret "next monday" when run on a Monday
78076         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
78077         that e.g., "next tues" (when run on a tuesday) results in a date
78078         that is one week in the future, and not today's date.
78079         I.e., add a week when the wday is the same as the current one.
78080         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
78081         and earlier by Martin Bernreuther and Jan Minář.
78082         * tests/test-getdate.c (main): Check that "next DAY" is always in
78083         the future and that "last DAY" is always in the past.
78085 2009-05-02  Jim Meyering  <meyering@redhat.com>
78087         build: ensure that a release build fails when a submodule is unclean
78088         * top/maint.mk (no-submodule-changes): New rule.
78089         (alpha beta major): Depend on it.
78091 2009-05-02  Bruno Haible  <bruno@clisp.org>
78093         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
78094         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
78095         shell variable gl_fnmatch_required to detect which variant is
78096         requested.
78097         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
78098         gl_FUNC_FNMATCH_POSIX.
78099         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
78100         exclude fnmatch-posix.
78102 2009-05-02  Bruno Haible  <bruno@clisp.org>
78104         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
78105         * modules/mbsrtowcs (License): Change to LGPLv2+.
78106         * modules/strnlen1 (License): Likewise.
78107         Reported by Simon Josefsson.
78109 2009-05-02  Bruno Haible  <bruno@clisp.org>
78111         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
78112         "cross".
78113         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
78114         gnulib-tool was called with option --source-base=lib.
78116 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78118         Use automake *-local hooks without commands, for extensibility.
78119         * modules/localcharset (Makefile.am): Rename install-exec-local
78120         rule to install-exec-localcharset, and make it a prerequisite of
78121         install-exec-local.  Likewise, rename the uninstall-local rule to
78122         uninstall-localcharset, and make it a prerequisite of the former.
78124 2009-05-01  Bruno Haible  <bruno@clisp.org>
78126         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
78127         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
78128         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
78129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
78130         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
78131         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
78132         m4/locale-zh.m4, m4/codeset.m4.
78134         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
78135         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
78136         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
78137         m4/locale-zh.m4.
78139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
78140         REPLACE_WCRTOMB if mbstate_t must be replaced.
78141         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
78142         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
78144 2009-05-01  Bruno Haible  <bruno@clisp.org>
78146         Avoid compiler warnings when redefining macros defined by <libintl.h>.
78147         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
78148         dngettext, dcngettext, textdomain, bindtextdomain,
78149         bind_textdomain_codeset): Undefine before redefining.
78151 2009-04-30  Bruno Haible  <bruno@clisp.org>
78153         Fix bug introduced on 2009-04-25.
78154         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
78155         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
78156         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
78157         is defined.
78158         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
78159         is defined.
78160         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
78161         is defined.
78162         Reported by Elbert_Pol <elbert.pol@gmail.com>.
78164 2009-04-28  Bruno Haible  <bruno@clisp.org>
78166         Comment tweaks.
78167         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
78168         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
78169         * lib/unicase.h (u*_casexfrm): Likewise.
78170         Reported by Paolo Bonzini.
78172 2009-04-28  Bruno Haible  <bruno@clisp.org>
78174         Fix a compilation error.
78175         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
78176         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
78177         Reported by Jim Meyering.
78179 2009-04-27  Bruno Haible  <bruno@clisp.org>
78181         New module 'libunistring'.
78182         * modules/libunistring: New file.
78183         * m4/libunistring.m4: New file.
78184         * MODULES.html.sh (Unicode string functions): Add it.
78186 2009-04-27  Eric Blake  <ebb9@byu.net>
78188         maint.mk: allow package-specific header to provide <config.h>
78189         * top/maint.mk (sc_require_config_h): New variable.
78190         (sc_require_config_h, sc_require_config_h_first): Use it.
78192 2009-04-27  Simon Josefsson  <simon@josefsson.org>
78194         * top/maint.mk (sc_avoid_if_before_free): Except
78195         useless-if-before-free script.
78197 2009-04-27  Eric Blake  <ebb9@byu.net>
78199         maintainer-makefile: depend on all required helper scripts
78200         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
78201         useless-if-before-free.
78202         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
78203         version, rather than assuming gnulib checkout is available.
78204         Reported by Simen Josefsson.
78206 2009-04-26  Bruno Haible  <bruno@clisp.org>
78208         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
78209         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
78210         "../" or "..".
78212 2009-04-26  Bruno Haible  <bruno@clisp.org>
78214         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
78215         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
78216         AC_LIB_HAVE_LINKFLAGS.
78218 2009-04-26  Bruno Haible  <bruno@clisp.org>
78220         Simplify calling convention of u*_conv_from_encoding.
78221         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
78222         u32_conv_from_encoding): Expect a resultbuf argument and return the
78223         result directly as a pointer.
78224         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
78225         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
78226         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
78227         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
78228         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
78229         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
78230         Update.
78231         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
78232         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
78233         * lib/vasnprintf.c (VASNPRINTF): Update.
78234         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
78235         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
78236         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
78237         * NEWS: Mention the change.
78239 2009-04-26  Bruno Haible  <bruno@clisp.org>
78241         Simplify calling convention of u*_conv_to_encoding.
78242         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
78243         u32_conv_to_encoding): Expect a resultbuf argument and return the
78244         result directly as a pointer.
78245         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
78246         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
78247         freeing scaled_offsets if mem_iconveha failed.
78248         * lib/unicase/u-casexfrm.h (FUNC): Update.
78249         * lib/uninorm/u-normxfrm.h (FUNC): Update.
78250         * lib/vasnprintf.c (VASNPRINTF): Update.
78251         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
78252         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
78253         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
78254         * NEWS: Mention the change.
78256 2009-04-26  Bruno Haible  <bruno@clisp.org>
78258         Avoid test failures on AIX and OSF/1.
78259         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
78260         malloc(0).
78261         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
78262         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
78263         Likewise.
78264         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
78265         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
78266         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
78267         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
78268         * doc/posix-functions/malloc.texi: Document the portability problem
78269         related to malloc(0).
78271 2009-04-26  Bruno Haible  <bruno@clisp.org>
78273         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
78274         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
78275         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
78277 2009-04-25  Bruno Haible  <bruno@clisp.org>
78279         Avoid link error when creating a namespace clean library.
78280         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
78281         as macro with arguments if already defined as an alias.
78282         * lib/signbitf.c (gl_signbitf): Don't undefine.
78283         * lib/signbitd.c (gl_signbitd): Don't undefine.
78284         * lib/signbitl.c (gl_signbitl): Don't undefine.
78286 2009-04-25  Jim Meyering  <meyering@redhat.com>
78288         vc-list-files: fix another quoting bug
78289         * build-aux/vc-list-files: Avoid sed backslash expansion
78290         of pathological directory names.
78292 2009-04-25  Eric Blake  <ebb9@byu.net>
78294         vc-list-files: fix shell quoting error
78295         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
78296         timestamp.
78298 2009-04-25  Jim Meyering  <meyering@redhat.com>
78300         vc-list-files: restore lost functionality with subdir argument
78301         * build-aux/vc-list-files: When given a non-"." sub-directory
78302         argument, substitute the $dir/ prefix back onto each resulting name.
78303         Otherwise, coreutils' root_tests check would fail.
78305 2009-04-24  Eric Blake  <ebb9@byu.net>
78307         vc-list-files: ignore git symlinks
78308         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
78309         than ls-files, to ignore git symlinks.
78311         maint.mk: import improvements from m4
78312         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
78313         (move_if_change): Delete unused macro.
78314         (news-date-check, vc-diff-check): Support VPATH builds.
78315         (announcement): Likewise.  Split --bootstrap-tools list...
78316         (boostrap-tools): ...into separate list, which can be overridden
78317         in cfg.mk.
78318         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
78319         requiring dependency on useless-if-before-free module.
78320         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
78321         Support VPATH builds.
78323 2009-04-24  Jim Meyering  <meyering@redhat.com>
78325         maint.mk: remove coreutils-specific rules and variables
78326         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
78327         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
78328         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
78330         maint.mk: remove obsolete rule
78331         * top/maint.mk (rel-check): Remove rule.
78332         (WGET, WGETFLAGS): Remove now-unused variables.
78334 2009-04-24  Simon Josefsson  <simon@josefsson.org>
78336         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
78337         consistency.
78339         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
78340         '$(PATH_SEPARATOR)' instead of ':'.
78342 2009-04-24  Simon Josefsson  <simon@josefsson.org>
78344         * lib/getopt1.c (main): Use 'const' for static array.
78346 2009-04-24  Simon Josefsson  <simon@josefsson.org>
78348         * top/maint.mk: Sync with coreutils.
78349         * NEWS: Explain incompatibilities.
78351 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78352             Bruno Haible  <bruno@clisp.org>
78354         Fix cross-compilation results.
78355         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
78356         statement, as third argument of AC_TRY_RUN.
78357         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
78358         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
78359         Likewise.
78360         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
78361         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
78362         Likewise.
78363         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
78364         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
78365         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
78367 2009-04-20  Bruno Haible  <bruno@clisp.org>
78369         Avoid test failure on mingw.
78370         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
78372 2009-04-20  Bruno Haible  <bruno@clisp.org>
78374         Avoid compilation error on mingw.
78375         * modules/localename-tests (Depends-on): Add locale.
78377 2009-04-19  Bruno Haible  <bruno@clisp.org>
78379         Support for building a shared library on Windows platforms.
78380         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
78381         (main): Test the presence of UNINORM_NFC here.
78382         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
78383         (main): Test the presence of UNINORM_NFD here.
78384         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
78385         (main): Test the presence of UNINORM_NFKC here.
78386         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
78387         (main): Test the presence of UNINORM_NFKD here.
78389 2009-04-19  Bruno Haible  <bruno@clisp.org>
78391         Avoid a compiler warning.
78392         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
78393         Change type of variable 'sequence'.
78395 2009-04-19  Bruno Haible  <bruno@clisp.org>
78397         * modules/configmake (Makefile.am): When the contents of configmake.h
78398         does not change, arrange to preserve its modification time.
78400 2009-04-17  Simon Josefsson  <simon@josefsson.org>
78402         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
78403         gettext domain.
78405 2009-04-16  Jim Meyering  <meyering@redhat.com>
78407         useless-if-before-free: improve conversion code
78408         * build-aux/useless-if-before-free: Adjust code-in-comment to match
78409         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
78411 2009-04-14  Bruno Haible  <bruno@clisp.org>
78413         * modules/fcntl (Depends-on): Add extensions.
78414         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
78416 2009-04-12  Ben Pfaff  <blp@gnu.org>
78418         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
78419         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
78421 2009-03-20  Ben Pfaff  <blp@gnu.org>
78423         Make rename replace existing destinations on Windows.
78424         * m4/rename.m4: Add test for Mingw.
78425         * lib/rename.c: Add rename replacement that uses MoveFileEx with
78426         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
78427         * doc/posix-functions/rename.texi: Document.
78429 2009-04-10  Bruno Haible  <bruno@clisp.org>
78431         New include file "iconveh.h".
78432         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
78433         * lib/striconveh.h: Include it.
78434         (enum iconv_ilseq_handler): Remove definition.
78435         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
78436         striconveh.h.
78437         * lib/striconveha.c: Include striconveh.h.
78438         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
78439         * modules/striconveh (Files): Add lib/iconveh.h.
78440         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
78441         lib/striconveh.h.
78443 2009-04-10  Bruno Haible  <bruno@clisp.org>
78445         * lib/uniconv.h: Update comment.
78447 2009-04-10  Bruno Haible  <bruno@clisp.org>
78449         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
78450         always.
78451         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
78452         * lib/unistr/u16-mbtouc-aux.c: Likewise.
78453         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
78454         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
78455         "unistring-notinline.h", so that the function gets defined always.
78456         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
78457         * lib/unistr/u8-uctomb.c: Likewise.
78458         * lib/unistr/u16-mbtouc.c: Likewise.
78459         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
78460         * lib/unistr/u16-uctomb.c: Likewise.
78461         * lib/unistr/u32-mbtouc.c: Likewise.
78462         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
78463         * lib/unistr/u32-uctomb.c: Likewise.
78465 2009-04-10  Bruno Haible  <bruno@clisp.org>
78467         Mark 'utime' obsolete.
78468         * modules/utime (Status, Notice): New sections.
78469         Suggested by Jim Meyering.
78471         Fix cross-compile guess for utime test.
78472         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
78473         autoconf.
78474         * doc/posix-functions/utime.texi: Give more precisions.
78475         Reported by Jan <ipif@ymail.com>.
78477 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
78479         filevercmp: correct today's change
78480         * lib/filevercmp.c: Also handle coreutils' test inputs.
78481         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
78483         Fix regression in 'filevercmp' module. Thanks Sven Joachim
78484         for reporting it.
78485         * lib/filevercmp.c: Special handle for "", "." and "..".
78486         * tests/test-filevercmp.c: Enlarge the set suite.
78488 2009-04-07  Jim Meyering  <meyering@redhat.com>
78490         useless-if-before-free: show how to remove braced useless free, too
78491         * build-aux/useless-if-before-free: still only in a comment, though.
78493 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
78495         maint.mk: import changes to syntax-check macros from coreutils
78496         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
78497         Use them in the relevant macros.
78499 2009-04-06  Bruno Haible  <bruno@clisp.org>
78501         Fix unportable use of bit-fields.
78502         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
78503         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
78504         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
78506 2009-04-06  Bruno Haible  <bruno@clisp.org>
78508         Avoid test failures on AIX and OSF/1.
78509         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
78510         that malloc(0) = NULL.
78511         * tests/unicase/test-u8-tolower.c (check): Likewise.
78512         * tests/unicase/test-u8-totitle.c (check): Likewise.
78513         * tests/unicase/test-u8-toupper.c (check): Likewise.
78514         * tests/unicase/test-u16-casefold.c (check): Likewise.
78515         * tests/unicase/test-u16-tolower.c (check): Likewise.
78516         * tests/unicase/test-u16-totitle.c (check): Likewise.
78517         * tests/unicase/test-u16-toupper.c (check): Likewise.
78518         * tests/unicase/test-u32-casefold.c (check): Likewise.
78519         * tests/unicase/test-u32-tolower.c (check): Likewise.
78520         * tests/unicase/test-u32-totitle.c (check): Likewise.
78521         * tests/unicase/test-u32-toupper.c (check): Likewise.
78522         * tests/uninorm/test-u8-nfc.c (check): Likewise.
78523         * tests/uninorm/test-u8-nfd.c (check): Likewise.
78524         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
78525         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
78526         * tests/uninorm/test-u16-nfc.c (check): Likewise.
78527         * tests/uninorm/test-u16-nfd.c (check): Likewise.
78528         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
78529         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
78530         * tests/uninorm/test-u32-nfc.c (check): Likewise.
78531         * tests/uninorm/test-u32-nfd.c (check): Likewise.
78532         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
78533         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
78535 2009-04-05  Bruno Haible  <bruno@clisp.org>
78537         Work around an autoconf limitation.
78538         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
78539         comment line if it would be longer than 3 KB.
78541 2009-04-05  Bruno Haible  <bruno@clisp.org>
78543         Avoid test failure with libiconv-1.13.
78544         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
78545         of the expected test results.
78547 2009-04-05  Bruno Haible  <bruno@clisp.org>
78549         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
78550         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
78551         that it should be installed.
78553 2009-04-05  Bruno Haible  <bruno@clisp.org>
78555         * gnulib-tool: New option --copy-file.
78556         (func_usage): Document it.
78557         (func_dest_tmpfilename): Moved out of func_import.
78558         (func_add_file, func_update_file): New functions, extracted from
78559         func_import.
78560         (func_import): Update.
78562 2009-04-05  Karl Berry  <karl@gnu.org>
78564         * README: prominently mention gnulib-tool.
78565         Rearrange sections so getting the code is near the top.
78567 2009-04-05  Bruno Haible  <bruno@clisp.org>
78569         * lib/unicase.h: Mention u*_cmp2.
78570         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
78571         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
78572         * lib/unicase/ulc-casecmp.c: Likewise.
78573         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
78574         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
78575         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
78576         unistr/u8-cmp.
78577         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
78578         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
78579         unistr/u16-cmp.
78580         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
78581         unistr/u32-cmp.
78583         * lib/uninorm.h: Mention u*_cmp2.
78584         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
78585         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
78586         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
78587         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
78588         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
78589         unistr/u8-cmp.
78590         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
78591         unistr/u16-cmp.
78592         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
78593         unistr/u32-cmp.
78595         New module 'unistr/u32-cmp2'.
78596         * lib/unistr/u32-cmp2.c: New file.
78597         * modules/unistr/u32-cmp2: New file.
78599         New module 'unistr/u16-cmp2'.
78600         * lib/unistr/u16-cmp2.c: New file.
78601         * modules/unistr/u16-cmp2: New file.
78603         New module 'unistr/u8-cmp2'.
78604         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
78605         * lib/unistr/u8-cmp2.c: New file.
78606         * lib/unistr/u-cmp2.h: New file.
78607         * modules/unistr/u8-cmp2: New file.
78609 2009-04-05  Bruno Haible  <bruno@clisp.org>
78611         * lib/unictype.h (uc_property_is_valid): New macro.
78612         * tests/unictype/test-pr_byname.c (main): Use it.
78614         * lib/unistr.h: Doc fixes.
78615         * lib/uniconv.h: Doc fixes.
78616         * lib/unictype.h: Doc fixes.
78618 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
78620         Port coreutils 7.2 to Solaris 8.
78622         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
78623         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
78624         for Solaris 8.  This is a bit of a hack, as it means it's the
78625         caller's responsibility to add -lnsl if needed, but most likely it
78626         won't be needed since only getaddrinfo uses this and getaddrinfo
78627         isn't needed on Solaris 8.
78629         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
78630         problem to Solaris 8 encountered with coreutils 7.2, which
78631         resulted in a message "fnmatch.c:292: warning: passing argument 4
78632         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
78633         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
78635 2009-04-03  Simon Josefsson  <simon@josefsson.org>
78637         * m4/ld-version-script.m4: Add FIXME comment.
78639 2009-04-02  Simon Josefsson  <simon@josefsson.org>
78641         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
78642         SOVERSION variable.
78644 2009-04-02  Bruno Haible  <bruno@clisp.org>
78646         * Makefile (info, html, dvi, pdf): Combine the rules.
78647         Suggested by Jim Meyering.
78649 2009-04-01  Bruno Haible  <bruno@clisp.org>
78651         * Makefile (info, html, dvi, pdf): New targets.
78652         Reported by Reuben Thomas <rrt@sc3d.org>.
78654 2009-04-01  Bruno Haible  <bruno@clisp.org>
78656         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
78657         can be put into PATH.
78658         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
78660 2009-04-01  Bruno Haible  <bruno@clisp.org>
78662         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
78664 2009-04-01  Bruno Haible  <bruno@clisp.org>
78666         Rename module 'visibility'.
78667         * modules/lib-symbol-visibility: Renamed from modules/visibility.
78668         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
78669         * doc/gnulib.texi: Update.
78670         * MODULES.html.sh (Misc): Update.
78671         * NEWS: Mention the change.
78673 2009-04-01  Simon Josefsson  <simon@josefsson.org>
78675         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
78676         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
78677         Eric Blake <ebb9@byu.net> for review.
78678         * MODULES.html.sh: Add lib-msvc-compat.
78679         * doc/gnulib.texi: Link to new section.
78680         * m4/ld-output-def.m4: New file.
78681         * doc/ld-output-def.texi: New file.
78683 2009-04-01  Simon Josefsson  <simon@josefsson.org>
78685         Rename ld-version-script to lib-symbol-versions.  Suggested by
78686         Bruno Haible <bruno@clisp.org>.
78687         * modules/ld-version-script: Renamed to lib-symbol-versions.
78688         * doc/ld-version-script.texi: Fix module name.
78689         * MODULES.html.sh: Add lib-symbol-versions.
78691 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78693         * modules/u64-tests: New file.
78694         * tests/test-u64.c: New file.
78696 2009-03-04  Simon Josefsson  <simon@josefsson.org>
78698         * MODULES.html.sh: Mention u64.
78699         * modules/u64: New module.
78700         * modules/crypto/sha512: Depend on u64 module instead of providing
78701         u64.h.
78703 2009-03-27  Eric Blake  <ebb9@byu.net>
78705         test-strerror: make debugging EAI_SYSTEM easier
78706         * modules/getaddrinfo-tests (Depends-on): Add strerror.
78707         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
78708         failure was EAI_SYSTEM.
78710 2009-03-25  Bruno Haible  <bruno@clisp.org>
78712         Fix a problem with --enable-relocatable on Solaris 7.
78713         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
78714         since 2008-02-24.
78716 2009-03-25  Eric Blake  <ebb9@byu.net>
78718         test-sockets: avoid gcc warning
78719         * tests/test-sockets.c (main): Silence compiler warning.
78721 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78723         New modules nproc, pthread, contributed by Glen Lenker.
78725         * MODULES.html.sh: Add pthread, nproc.
78726         * lib/nproc.c: New file.
78727         * lib/nproc.h: New file.
78728         * lib/pthread.in.h: New file.
78729         * m4/pthread.m4: New file.
78730         * modules/nproc: New file.
78731         * modules/pthread: New file.
78733 2009-03-24  Simon Josefsson  <simon@josefsson.org>
78735         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
78736         New variable.
78738 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
78740         filevercmp: handle simple~ and numbered.~3~ backup suffixes
78741         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
78742         * tests/test-filevercmp.c: Add tests for backup suffixes.
78744 2009-03-24  Simon Josefsson  <simon@josefsson.org>
78746         * modules/stdlib (Depends-on): Add stdint, needed when defining
78747         struct random_data on, for example, HP-UX 10.20.  Reported by
78748         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78750 2009-03-24  Simon Josefsson  <simon@josefsson.org>
78752         * lib/readline.c (readline): Call fflush on stdout after printing
78753         prompt.
78755 2009-03-20  Bruno Haible  <bruno@clisp.org>
78757         Remove dependency from 'close' module to -lws2_32 on native Windows.
78758         * lib/close-hook.h: New file.
78759         * lib/close-hook.c: New file.
78760         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
78761         w32sock.h.
78762         (_gl_close_fd_maybe_socket): Remove function.
78763         (rpl_close): Invoke execute_all_close_hooks instead of
78764         _gl_close_fd_maybe_socket.
78765         * lib/sockets.c: Include close-hook.h, w32sock.h.
78766         (close_fd_maybe_socket): New function, essentially from lib/close.c.
78767         (close_sockets_hook): New variable.
78768         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
78769         (gl_sockets_cleanup): Unregister it.
78770         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
78771         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
78772         * modules/close-hook: New file.
78773         * modules/close (Files): Remove lib/w32sock.h.
78774         (Depends-on): Add close-hook.
78775         (Link): Remove section.
78776         * modules/sockets (Files): Add lib/w32sock.h.
78777         (Depends-on): Add close-hook.
78778         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
78779         invocation.
78780         * NEWS: Mention that LIB_CLOSE is gone.
78782 2009-03-23  Eric Blake  <ebb9@byu.net>
78784         signal-tests: test previous patch
78785         * tests/test-signal.c: New file.
78786         * modules/signal-tests: Likewise.
78788         signal.h: always support 'volatile sig_atomic_t'
78789         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
78790         (gl_SIGNAL_H_DEFAULTS): Add a default.
78791         * modules/signal (Makefile.am): Substitute if needed.
78792         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
78793         users can blindly add volatile.
78794         * doc/posix-headers/signal.texi (signal.h): Document it.
78795         Reported by Matthew Woehlke.
78797 2009-03-23  Jim Meyering  <meyering@redhat.com>
78799         pathmax: PATH_MAX: use pathconf only when available
78800         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
78801         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
78802         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
78803         This avoids a link failure in a PSP cross-compilation environment
78804         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
78806         * lib/vasnprintf.c (divide): Fix typo in comment.
78808 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78810         * gnulib-tool (func_filter_filelist): Fix comment.
78812 2009-03-20  Bruno Haible  <bruno@clisp.org>
78814         Make sockets.h self-contained.
78815         * lib/sockets.c: Include sockets.h first.
78816         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
78818 2009-03-19  Eric Blake  <ebb9@byu.net>
78820         doc: mention more functions added in cygwin 1.7.0
78821         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
78822         addition.
78823         * doc/posix-functions/log2f.texi: Likewise.
78825 2009-03-19  Jim Meyering  <meyering@redhat.com>
78827         fsusage: avoid syntax error due to statement-before-declaration
78828         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
78829         after all declarations.  Reported by Matthew Woehlke in
78830         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
78832 2009-03-18  Eric Blake  <ebb9@byu.net>
78834         build-aux/compile: sync from automake
78835         * build-aux/compile: New file, from automake.
78836         * config/srclist.txt: Mention build-aux/compile.
78838 2009-03-17  Bruno Haible  <bruno@clisp.org>
78840         * lib/git-merge-changelog.c: Fix typo in comment.
78841         Reported by Reuben Thomas <rrt@sc3d.org>.
78843 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
78845         * m4/regex.m4: update and improve help for
78846         --without-included-regex.
78848 2009-03-17  Simon Josefsson  <simon@josefsson.org>
78850         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
78851         failure on missing include files.
78853 2009-03-17  Eric Blake  <ebb9@byu.net>
78855         doc: mention more functions added in cygwin 1.7.0
78856         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
78857         addition.
78858         * doc/posix-functions/fwscanf.texi: Likewise.
78859         * doc/posix-functions/swprintf.texi: Likewise.
78860         * doc/posix-functions/swscanf.texi: Likewise.
78861         * doc/posix-functions/vfwprintf.texi: Likewise.
78862         * doc/posix-functions/vfwscanf.texi: Likewise.
78863         * doc/posix-functions/vswprintf.texi: Likewise.
78864         * doc/posix-functions/vswscanf.texi: Likewise.
78865         * doc/posix-functions/vwprintf.texi: Likewise.
78866         * doc/posix-functions/vwscanf.texi: Likewise.
78867         * doc/posix-functions/wcscasecmp.texi: Likewise.
78868         * doc/posix-functions/wcsdup.texi: Likewise.
78869         * doc/posix-functions/wcsftime.texi: Likewise.
78870         * doc/posix-functions/wcsncasecmp.texi: Likewise.
78871         * doc/posix-functions/wprintf.texi: Likewise.
78872         * doc/posix-functions/wscanf.texi: Likewise.
78873         * doc/glibc-functions/gethostbyname2.texi: Likewise.
78875 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78877         maint.mk: really add $(AM_MAKEFLAGS)
78878         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
78879         was inadvertently omitted in the last commit.
78880         Spotted by Bruno Haible.
78882         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
78883         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
78884         $(AM_MAKEFLAGS)' rather than plain `make'.
78886         gnulib-tool: execute $MAKE not make
78887         * gnulib-tool: Default $MAKE to 'make'.
78888         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
78889         than make.  Initialize $MAKE in the do-autobuild script.
78891         gnulib-tool: use $MAKE not make in generated files
78892         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
78893         make, in generated files.  Initialize $MAKE in the do-autobuild
78894         script.
78896         * top/GNUmakefile (_have-git-version-gen): Fix typo.
78898         GNUmakefile: disable parallelism only for multiple, recursive targets
78899         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
78900         additions in the Makefile.
78901         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
78902         by Automake.
78903         (.NOTPARALLEL): Only disable parallel builds if multiple targets
78904         are listed on the command line and at least one of them is
78905         listed in $(ALL_RECURSIVE_TARGETS).
78907 2009-03-14  Bruno Haible  <bruno@clisp.org>
78909         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
78910         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
78911         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
78912         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
78913         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
78914         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
78915         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
78916         unistr/u8-uctomb.
78917         * modules/unistr/u8-strchr (Depends-on): Likewise.
78918         * modules/unistr/u8-strrchr (Depends-on): Likewise.
78919         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
78920         unistr/u16-uctomb.
78921         * modules/unistr/u16-strchr (Depends-on): Likewise.
78922         * modules/unistr/u16-strrchr (Depends-on): Likewise.
78924 2009-03-12  Bruno Haible  <bruno@clisp.org>
78926         Work around select() bug on Interix 3.5.
78927         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
78928         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
78929         * m4/select.m4: New file.
78930         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
78931         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
78932         * modules/select (Files): Add m4/select.m4.
78933         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
78934         * modules/nanosleep (Depends-on): Add select.
78935         * modules/poll (Depends-on): Likewise.
78936         * doc/posix-functions/select.texi: Mention the Interix bug.
78937         Reported by Markus Duft <mduft@gentoo.org>.
78939         * lib/select.c: Renamed from lib/winsock-select.c.
78940         * modules/select (Files): Add lib/select.c, remove
78941         lib/winsock-select.c.
78942         (configure.ac): Update.
78944 2009-03-12  Jim Meyering  <meyering@redhat.com>
78946         avoid gcc warnings about unused macro definitions
78947         * lib/readtokens.c (STREQ): Remove unused definition.
78948         * lib/xmalloc.c (SIZE_MAX): Likewise.
78949         * lib/openat-die.c (N_): Likewise.
78950         * lib/mountlist.c (SIZE_MAX): Remove definition.
78951         Instead, include <stdint.h>.
78952         * lib/readutmp.c: Likewise.
78953         * modules/readutmp (Depends-on): Add stdint.
78954         * modules/mountlist (Depends-on): Add stdint.
78955         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
78957 2009-03-10  Bruno Haible  <bruno@clisp.org>
78959         Tests for module 'mbmemcasecoll'.
78960         * modules/mbmemcasecoll-tests: New file.
78961         * tests/test-mbmemcasecoll1.sh: New file.
78962         * tests/test-mbmemcasecoll2.sh: New file.
78963         * tests/test-mbmemcasecoll3.sh: New file.
78964         * tests/test-mbmemcasecoll.c: New file.
78966         New module 'mbmemcasecoll'.
78967         * lib/mbmemcasecoll.h: New file.
78968         * lib/mbmemcasecoll.c: New file.
78969         * modules/mbmemcasecoll: New file.
78971         * tests/test-mbmemcasecmp.h: New file, extracted from
78972         tests/test-mbmemcasecmp.c.
78973         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
78974         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
78975         (main): Update.
78976         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
78978 2009-03-09  Bruno Haible  <bruno@clisp.org>
78980         Tests for module 'mbmemcasecmp'.
78981         * modules/mbmemcasecmp-tests: New file.
78982         * tests/test-mbmemcasecmp1.sh: New file.
78983         * tests/test-mbmemcasecmp2.sh: New file.
78984         * tests/test-mbmemcasecmp3.sh: New file.
78985         * tests/test-mbmemcasecmp.c: New file.
78987         New module 'mbmemcasecmp'.
78988         * lib/mbmemcasecmp.h: New file.
78989         * lib/mbmemcasecmp.c: New file.
78990         * modules/mbmemcasecmp: New file.
78992 2009-03-09  Bruno Haible  <bruno@clisp.org>
78994         Tests for module 'unicase/ulc-casecoll'.
78995         * modules/unicase/ulc-casecoll-tests: New file.
78996         * tests/unicase/test-ulc-casecoll1.sh: New file.
78997         * tests/unicase/test-ulc-casecoll2.sh: New file.
78998         * tests/unicase/test-ulc-casecoll.c: New file.
79000         New module 'unicase/ulc-casecoll'.
79001         * lib/unicase.h (ulc_casecoll): New declaration.
79002         * lib/unicase/ulc-casecoll.c: New file.
79003         * modules/unicase/ulc-casecoll: New file.
79005         New module 'unicase/ulc-casexfrm'.
79006         * lib/unicase.h (ulc_casexfrm): New declaration.
79007         * lib/unicase/ulc-casexfrm.c: New file.
79008         * modules/unicase/ulc-casexfrm: New file.
79010 2009-03-09  Bruno Haible  <bruno@clisp.org>
79012         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
79013         invocations.
79015         * m4/mbscasecmp.m4: Remove file.
79016         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
79017         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
79019         * m4/mbscasestr.m4: Remove file.
79020         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
79021         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
79023         * m4/mbschr.m4: Remove file.
79024         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
79025         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
79027         * m4/mbscspn.m4: Remove file.
79028         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
79029         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
79031         * m4/mbslen.m4: Remove file.
79032         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
79033         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
79035         * m4/mbsncasecmp.m4: Remove file.
79036         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
79037         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
79039         * m4/mbsnlen.m4: Remove file.
79040         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
79041         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
79043         * m4/mbspbrk.m4: Remove file.
79044         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
79045         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
79047         * m4/mbspcasecmp.m4: Remove file.
79048         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
79049         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
79051         * m4/mbsrchr.m4: Remove file.
79052         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
79053         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
79055         * m4/mbssep.m4: Remove file.
79056         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
79057         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
79059         * m4/mbsspn.m4: Remove file.
79060         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
79061         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
79063         * m4/mbsstr.m4: Remove file.
79064         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
79065         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
79067         * m4/mbstok_r.m4: Remove file.
79068         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
79069         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
79071         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
79073         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
79074         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
79076         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
79078 2009-03-08  Bruno Haible  <bruno@clisp.org>
79080         Tests for module 'unicase/ulc-casecmp'.
79081         * modules/unicase/ulc-casecmp-tests: New file.
79082         * tests/unicase/test-ulc-casecmp1.sh: New file.
79083         * tests/unicase/test-ulc-casecmp2.sh: New file.
79084         * tests/unicase/test-ulc-casecmp.c: New file.
79086         New module 'unicase/ulc-casecmp'.
79087         * lib/unicase.h (ulc_casecmp): New declaration.
79088         * lib/unicase/ulc-casecmp.c: New file.
79089         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
79090         'const SRC_UNIT *'.
79091         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
79092         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
79093         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
79094         * modules/unicase/ulc-casecmp: New file.
79096         Tests for module 'unicase/u32-is-cased'.
79097         * modules/unicase/u32-is-cased-tests: New file.
79098         * tests/unicase/test-u32-is-cased.c: New file.
79100         Tests for module 'unicase/u16-is-cased'.
79101         * modules/unicase/u16-is-cased-tests: New file.
79102         * tests/unicase/test-u16-is-cased.c: New file.
79104         Tests for module 'unicase/u8-is-cased'.
79105         * modules/unicase/u8-is-cased-tests: New file.
79106         * tests/unicase/test-u8-is-cased.c: New file.
79107         * tests/unicase/test-is-cased.h: New file.
79109         New module 'unicase/u32-is-cased'.
79110         * lib/unicase/u32-is-cased.c: New file.
79111         * modules/unicase/u32-is-cased: New file.
79113         New module 'unicase/u16-is-cased'.
79114         * lib/unicase/u16-is-cased.c: New file.
79115         * modules/unicase/u16-is-cased: New file.
79117         New module 'unicase/u8-is-cased'.
79118         * lib/unicase/u8-is-cased.c: New file.
79119         * lib/unicase/u-is-cased.h: New file.
79120         * modules/unicase/u8-is-cased: New file.
79122         Tests for module 'unicase/u32-is-casefolded'.
79123         * modules/unicase/u32-is-casefolded-tests: New file.
79124         * tests/unicase/test-u32-is-casefolded.c: New file.
79126         Tests for module 'unicase/u16-is-casefolded'.
79127         * modules/unicase/u16-is-casefolded-tests: New file.
79128         * tests/unicase/test-u16-is-casefolded.c: New file.
79130         Tests for module 'unicase/u8-is-casefolded'.
79131         * modules/unicase/u8-is-casefolded-tests: New file.
79132         * tests/unicase/test-u8-is-casefolded.c: New file.
79133         * tests/unicase/test-is-casefolded.h: New file.
79135         New module 'unicase/u32-is-casefolded'.
79136         * lib/unicase/u32-is-casefolded.c: New file.
79137         * modules/unicase/u32-is-casefolded: New file.
79139         New module 'unicase/u16-is-casefolded'.
79140         * lib/unicase/u16-is-casefolded.c: New file.
79141         * modules/unicase/u16-is-casefolded: New file.
79143         New module 'unicase/u8-is-casefolded'.
79144         * lib/unicase/u8-is-casefolded.c: New file.
79145         * modules/unicase/u8-is-casefolded: New file.
79147         Tests for module 'unicase/u32-is-titlecase'.
79148         * modules/unicase/u32-is-titlecase-tests: New file.
79149         * tests/unicase/test-u32-is-titlecase.c: New file.
79151         Tests for module 'unicase/u16-is-titlecase'.
79152         * modules/unicase/u16-is-titlecase-tests: New file.
79153         * tests/unicase/test-u16-is-titlecase.c: New file.
79155         Tests for module 'unicase/u8-is-titlecase'.
79156         * modules/unicase/u8-is-titlecase-tests: New file.
79157         * tests/unicase/test-u8-is-titlecase.c: New file.
79158         * tests/unicase/test-is-titlecase.h: New file.
79160         New module 'unicase/u32-is-titlecase'.
79161         * lib/unicase/u32-is-titlecase.c: New file.
79162         * modules/unicase/u32-is-titlecase: New file.
79164         New module 'unicase/u16-is-titlecase'.
79165         * lib/unicase/u16-is-titlecase.c: New file.
79166         * modules/unicase/u16-is-titlecase: New file.
79168         New module 'unicase/u8-is-titlecase'.
79169         * lib/unicase/u8-is-titlecase.c: New file.
79170         * modules/unicase/u8-is-titlecase: New file.
79172         Tests for module 'unicase/u32-is-lowercase'.
79173         * modules/unicase/u32-is-lowercase-tests: New file.
79174         * tests/unicase/test-u32-is-lowercase.c: New file.
79176         Tests for module 'unicase/u16-is-lowercase'.
79177         * modules/unicase/u16-is-lowercase-tests: New file.
79178         * tests/unicase/test-u16-is-lowercase.c: New file.
79180         Tests for module 'unicase/u8-is-lowercase'.
79181         * modules/unicase/u8-is-lowercase-tests: New file.
79182         * tests/unicase/test-u8-is-lowercase.c: New file.
79183         * tests/unicase/test-is-lowercase.h: New file.
79185         New module 'unicase/u32-is-lowercase'.
79186         * lib/unicase/u32-is-lowercase.c: New file.
79187         * modules/unicase/u32-is-lowercase: New file.
79189         New module 'unicase/u16-is-lowercase'.
79190         * lib/unicase/u16-is-lowercase.c: New file.
79191         * modules/unicase/u16-is-lowercase: New file.
79193         New module 'unicase/u8-is-lowercase'.
79194         * lib/unicase/u8-is-lowercase.c: New file.
79195         * modules/unicase/u8-is-lowercase: New file.
79197         Tests for module 'unicase/u32-is-uppercase'.
79198         * modules/unicase/u32-is-uppercase-tests: New file.
79199         * tests/unicase/test-u32-is-uppercase.c: New file.
79201         Tests for module 'unicase/u16-is-uppercase'.
79202         * modules/unicase/u16-is-uppercase-tests: New file.
79203         * tests/unicase/test-u16-is-uppercase.c: New file.
79205         Tests for module 'unicase/u8-is-uppercase'.
79206         * modules/unicase/u8-is-uppercase-tests: New file.
79207         * tests/unicase/test-u8-is-uppercase.c: New file.
79208         * tests/unicase/test-is-uppercase.h: New file.
79210         New module 'unicase/u32-is-uppercase'.
79211         * lib/unicase/u32-is-uppercase.c: New file.
79212         * modules/unicase/u32-is-uppercase: New file.
79214         New module 'unicase/u16-is-uppercase'.
79215         * lib/unicase/u16-is-uppercase.c: New file.
79216         * modules/unicase/u16-is-uppercase: New file.
79218         New module 'unicase/u8-is-uppercase'.
79219         * lib/unicase/u8-is-uppercase.c: New file.
79220         * modules/unicase/u8-is-uppercase: New file.
79222         New module 'unicase/u32-is-invariant'.
79223         * lib/unicase/u32-is-invariant.c: New file.
79224         * modules/unicase/u32-is-invariant: New file.
79226         New module 'unicase/u16-is-invariant'.
79227         * lib/unicase/u16-is-invariant.c: New file.
79228         * modules/unicase/u16-is-invariant: New file.
79230         New module 'unicase/u8-is-invariant'.
79231         * lib/unicase/u8-is-invariant.c: New file.
79232         * lib/unicase/invariant.h: New file.
79233         * lib/unicase/u-is-invariant.h: New file.
79234         * modules/unicase/u8-is-invariant: New file.
79236         Tests for module 'unicase/u32-casecoll'.
79237         * modules/unicase/u32-casecoll-tests: New file.
79238         * tests/unicase/test-u32-casecoll.c: New file.
79240         Tests for module 'unicase/u16-casecoll'.
79241         * modules/unicase/u16-casecoll-tests: New file.
79242         * tests/unicase/test-u16-casecoll.c: New file.
79244         Tests for module 'unicase/u8-casecoll'.
79245         * modules/unicase/u8-casecoll-tests: New file.
79246         * tests/unicase/test-u8-casecoll.c: New file.
79248         New module 'unicase/u32-casecoll'.
79249         * lib/unicase/u32-casecoll.c: New file.
79250         * modules/unicase/u32-casecoll: New file.
79252         New module 'unicase/u16-casecoll'.
79253         * lib/unicase/u16-casecoll.c: New file.
79254         * modules/unicase/u16-casecoll: New file.
79256         New module 'unicase/u8-casecoll'.
79257         * lib/unicase/u8-casecoll.c: New file.
79258         * lib/unicase/u-casecoll.h: New file.
79259         * modules/unicase/u8-casecoll: New file.
79261         New module 'unicase/u32-casexfrm'.
79262         * lib/unicase/u32-casexfrm.c: New file.
79263         * modules/unicase/u32-casexfrm: New file.
79265         New module 'unicase/u16-casexfrm'.
79266         * lib/unicase/u16-casexfrm.c: New file.
79267         * modules/unicase/u16-casexfrm: New file.
79269         New module 'unicase/u8-casexfrm'.
79270         * lib/unicase/u8-casexfrm.c: New file.
79271         * lib/unicase/u-casexfrm.h: New file.
79272         * modules/unicase/u8-casexfrm: New file.
79274         Tests for module 'unicase/u32-casecmp'.
79275         * modules/unicase/u32-casecmp-tests: New file.
79276         * tests/unicase/test-u32-casecmp.c: New file.
79278         Tests for module 'unicase/u16-casecmp'.
79279         * modules/unicase/u16-casecmp-tests: New file.
79280         * tests/unicase/test-u16-casecmp.c: New file.
79282         Tests for module 'unicase/u8-casecmp'.
79283         * modules/unicase/u8-casecmp-tests: New file.
79284         * tests/unicase/test-u8-casecmp.c: New file.
79285         * tests/unicase/test-casecmp.h: New file.
79287         New module 'unicase/u32-casecmp'.
79288         * lib/unicase/u32-casecmp.c: New file.
79289         * modules/unicase/u32-casecmp: New file.
79291         New module 'unicase/u16-casecmp'.
79292         * lib/unicase/u16-casecmp.c: New file.
79293         * modules/unicase/u16-casecmp: New file.
79295         New module 'unicase/u8-casecmp'.
79296         * lib/unicase/u8-casecmp.c: New file.
79297         * lib/unicase/u-casecmp.h: New file.
79298         * modules/unicase/u8-casecmp: New file.
79300         Tests for module 'unicase/u32-casefold'.
79301         * modules/unicase/u32-casefold-tests: New file.
79302         * tests/unicase/test-u32-casefold.c: New file.
79304         Tests for module 'unicase/u16-casefold'.
79305         * modules/unicase/u16-casefold-tests: New file.
79306         * tests/unicase/test-u16-casefold.c: New file.
79308         Tests for module 'unicase/u8-casefold'.
79309         * modules/unicase/u8-casefold-tests: New file.
79310         * tests/unicase/test-u8-casefold.c: New file.
79312         New module 'unicase/u32-casefold'.
79313         * lib/unicase/u32-casefold.c: New file.
79314         * modules/unicase/u32-casefold: New file.
79316         New module 'unicase/u16-casefold'.
79317         * lib/unicase/u16-casefold.c: New file.
79318         * modules/unicase/u16-casefold: New file.
79320         New module 'unicase/u8-casefold'.
79321         * lib/unicase/u8-casefold.c: New file.
79322         * lib/unicase/u-casefold.h: New file.
79323         * modules/unicase/u8-casefold: New file.
79325         New module 'unicase/tocasefold'.
79326         * lib/unicase/casefold.h: New file.
79327         * lib/unicase/tocasefold.c: New file.
79328         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
79329         * modules/unicase/tocasefold: New file.
79331         Tests for module 'unicase/u32-totitle'.
79332         * modules/unicase/u32-totitle-tests: New file.
79333         * tests/unicase/test-u32-totitle.c: New file.
79335         Tests for module 'unicase/u16-totitle'.
79336         * modules/unicase/u16-totitle-tests: New file.
79337         * tests/unicase/test-u16-totitle.c: New file.
79339         Tests for module 'unicase/u8-totitle'.
79340         * modules/unicase/u8-totitle-tests: New file.
79341         * tests/unicase/test-u8-totitle.c: New file.
79343         New module 'unicase/u32-totitle'.
79344         * lib/unicase/u32-totitle.c: New file.
79345         * modules/unicase/u32-totitle: New file.
79347         New module 'unicase/u16-totitle'.
79348         * lib/unicase/u16-totitle.c: New file.
79349         * modules/unicase/u16-totitle: New file.
79351         New module 'unicase/u8-totitle'.
79352         * lib/unicase/u8-totitle.c: New file.
79353         * lib/unicase/u-totitle.h: New file.
79354         * modules/unicase/u8-totitle: New file.
79356         Tests for module 'unicase/u32-tolower'.
79357         * modules/unicase/u32-tolower-tests: New file.
79358         * tests/unicase/test-u32-tolower.c: New file.
79360         Tests for module 'unicase/u16-tolower'.
79361         * modules/unicase/u16-tolower-tests: New file.
79362         * tests/unicase/test-u16-tolower.c: New file.
79364         Tests for module 'unicase/u8-tolower'.
79365         * modules/unicase/u8-tolower-tests: New file.
79366         * tests/unicase/test-u8-tolower.c: New file.
79368         New module 'unicase/u32-tolower'.
79369         * lib/unicase/u32-tolower.c: New file.
79370         * modules/unicase/u32-tolower: New file.
79372         New module 'unicase/u16-tolower'.
79373         * lib/unicase/u16-tolower.c: New file.
79374         * modules/unicase/u16-tolower: New file.
79376         New module 'unicase/u8-tolower'.
79377         * lib/unicase/u8-tolower.c: New file.
79378         * modules/unicase/u8-tolower: New file.
79380         Tests for module 'unicase/u32-toupper'.
79381         * modules/unicase/u32-toupper-tests: New file.
79382         * tests/unicase/test-u32-toupper.c: New file.
79384         Tests for module 'unicase/u16-toupper'.
79385         * modules/unicase/u16-toupper-tests: New file.
79386         * tests/unicase/test-u16-toupper.c: New file.
79388         Tests for module 'unicase/u8-toupper'.
79389         * modules/unicase/u8-toupper-tests: New file.
79390         * tests/unicase/test-u8-toupper.c: New file.
79392         New module 'unicase/u32-toupper'.
79393         * lib/unicase/u32-toupper.c: New file.
79394         * modules/unicase/u32-toupper: New file.
79396         New module 'unicase/u16-toupper'.
79397         * lib/unicase/u16-toupper.c: New file.
79398         * modules/unicase/u16-toupper: New file.
79400         New module 'unicase/u8-toupper'.
79401         * lib/unicase/u8-toupper.c: New file.
79402         * modules/unicase/u8-toupper: New file.
79404         New module 'unicase/u32-casemap'.
79405         * lib/unicase/u32-casemap.c: New file.
79406         * modules/unicase/u32-casemap: New file.
79408         New module 'unicase/u16-casemap'.
79409         * lib/unicase/u16-casemap.c: New file.
79410         * modules/unicase/u16-casemap: New file.
79412         New module 'unicase/u8-casemap'.
79413         * lib/unicase/unicasemap.h: New file.
79414         * lib/unicase/u8-casemap.c: New file.
79415         * lib/unicase/u-casemap.h: New file.
79416         * modules/unicase/u8-casemap: New file.
79418         New module 'unicase/special-casing'.
79419         * lib/unicase/special-casing.h: New file.
79420         * lib/unicase/special-casing.c: New file.
79421         * lib/unicase/special-casing-table.gperf: New file, generated by
79422         gen-uni-tables.c.
79423         * modules/unicase/special-casing: New file.
79425         Tests for module 'unicase/locale-language'.
79426         * modules/unicase/locale-language-tests: New file.
79427         * tests/unicase/test-locale-language.sh: New file.
79428         * tests/unicase/test-locale-language.c: New file.
79430         New module 'unicase/locale-language'.
79431         * lib/unicase/locale-language.c: New file.
79432         * lib/unicase/locale-languages.gperf: New file.
79433         * modules/unicase/locale-language: New file.
79435         Generate more tables for case conversion and case folding.
79436         * lib/gen-uni-tables.c (SCC_*): New enum items.
79437         (struct special_casing_rule): New type.
79438         (casing_rules, num_casing_rules, allocated_casing_rules): New
79439         variables.
79440         (add_casing_rule, fill_casing_rules): New functions.
79441         (struct casefold_rule): New type.
79442         (casefolding_rules, num_casefolding_rules,
79443         allocated_casefolding_rules): New variables.
79444         (fill_casefolding_rules): New function.
79445         (unicode_casefold): New variable.
79446         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
79447         sort_casing_rules, output_casing_rules): New functions.
79448         (main): Accept to more arguments: SpecialCasing.txt and
79449         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
79450         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
79451         Output mapping for casefolding.
79453         * lib/unicase.h: Include stdbool.h, uninorm.h.
79454         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
79455         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
79456         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
79457         arguments.
79458         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
79459         resultp arguments.
79460         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
79461         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
79462         resultp arguments.
79463         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
79464         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
79465         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
79466         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
79467         declarations.
79468         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
79470 2009-03-08  Bruno Haible  <bruno@clisp.org>
79472         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
79473         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
79474         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
79475         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
79477 2009-03-07  Bruno Haible  <bruno@clisp.org>
79479         Adjust u*_normcmp, u*_normcoll API.
79480         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
79481         u16_normcoll, u32_normcoll): Change failure conventions.
79482         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
79483         errno and return -1.
79484         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
79486 2009-03-07  Bruno Haible  <bruno@clisp.org>
79488         Tests for module 'uninorm/u32-normcoll'.
79489         * modules/uninorm/u32-normcoll-tests: New file.
79490         * tests/uninorm/test-u32-normcoll.c: New file.
79492         Tests for module 'uninorm/u16-normcoll'.
79493         * modules/uninorm/u16-normcoll-tests: New file.
79494         * tests/uninorm/test-u16-normcoll.c: New file.
79496         Tests for module 'uninorm/u8-normcoll'.
79497         * modules/uninorm/u8-normcoll-tests: New file.
79498         * tests/uninorm/test-u8-normcoll.c: New file.
79500 2009-03-07  Bruno Haible  <bruno@clisp.org>
79502         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
79503         tests/uninorm/test-u32-normcmp.c.
79504         * tests/uninorm/test-u32-normcmp.c: Include it.
79505         (test_nonascii): New function, extracted from main. Add some more
79506         tests.
79507         (main): Invoke test_ascii and test_nonascii.
79508         * modules/uninorm/u32-normcmp-tests (Files): Add
79509         tests/uninorm/test-u32-normcmp.h.
79510         (Depends-on): Remove uninorm/u32-normcmp.
79512         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
79513         tests/uninorm/test-u16-normcmp.c.
79514         * tests/uninorm/test-u16-normcmp.c: Include it.
79515         (test_nonascii): New function, extracted from main. Add some more
79516         tests.
79517         (main): Invoke test_ascii and test_nonascii.
79518         * modules/uninorm/u16-normcmp-tests (Files): Add
79519         tests/uninorm/test-u16-normcmp.h.
79520         (Depends-on): Remove uninorm/u16-normcmp.
79522         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
79523         tests/uninorm/test-u8-normcmp.c.
79524         * tests/uninorm/test-u8-normcmp.c: Include it.
79525         (test_nonascii): New function, extracted from main. Add some more
79526         tests.
79527         (main): Invoke test_ascii and test_nonascii.
79528         * modules/uninorm/u8-normcmp-tests (Files): Add
79529         tests/uninorm/test-u8-normcmp.h.
79530         (Depends-on): Remove uninorm/u8-normcmp.
79532 2009-03-07  Bruno Haible  <bruno@clisp.org>
79534         New module 'uninorm/u32-normcoll'.
79535         * lib/uninorm/u32-normcoll.c: New file.
79536         * modules/uninorm/u32-normcoll: New file.
79538         New module 'uninorm/u16-normcoll'.
79539         * lib/uninorm/u16-normcoll.c: New file.
79540         * modules/uninorm/u16-normcoll: New file.
79542         New module 'uninorm/u8-normcoll'.
79543         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
79544         declarations.
79545         * lib/uninorm/u8-normcoll.c: New file.
79546         * lib/uninorm/u-normcoll.h: New file.
79547         * modules/uninorm/u8-normcoll: New file.
79549         New module 'uninorm/u32-normxfrm'.
79550         * lib/uninorm/u32-normxfrm.c: New file.
79551         * modules/uninorm/u32-normxfrm: New file.
79553         New module 'uninorm/u16-normxfrm'.
79554         * lib/uninorm/u16-normxfrm.c: New file.
79555         * modules/uninorm/u16-normxfrm: New file.
79557         New module 'uninorm/u8-normxfrm'.
79558         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
79559         declarations.
79560         * lib/uninorm/u8-normxfrm.c: New file.
79561         * lib/uninorm/u-normxfrm.h: New file.
79562         * modules/uninorm/u8-normxfrm: New file.
79564 2009-03-07  Bruno Haible  <bruno@clisp.org>
79566         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
79567         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
79568         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
79570 2009-03-07  Bruno Haible  <bruno@clisp.org>
79572         New module 'memxfrm'.
79573         * lib/memxfrm.h: New file.
79574         * lib/memxfrm.c: New file.
79575         * modules/memxfrm: New file.
79577 2009-03-07  Bruno Haible  <bruno@clisp.org>
79579         New module 'memcmp2'.
79580         * lib/memcmp2.h: New file.
79581         * lib/memcmp2.c: New file.
79582         * modules/memcmp2: New file.
79584 2009-03-07  Bruno Haible  <bruno@clisp.org>
79586         Tests for module 'uninorm/decomposing-form'.
79587         * modules/uninorm/decomposing-form-tests: New file.
79588         * tests/uninorm/test-decomposing-form.c: New file.
79590         New module 'uninorm/decomposing-form'.
79591         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
79592         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
79593         Add 'decomposing_variant' field.
79594         * lib/uninorm/decomposing-form.c: New file.
79595         * lib/uninorm/nfc.c (uninorm_nfc): Update.
79596         * lib/uninorm/nfd.c (uninorm_nfd): Update.
79597         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
79598         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
79599         * modules/uninorm/decomposing-form: New file.
79600         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
79601         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
79603 2009-03-07  Bruno Haible  <bruno@clisp.org>
79605         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
79606         strings.
79608 2009-03-06  Bruno Haible  <bruno@clisp.org>
79610         Tests for module 'uninorm/u32-normcmp'.
79611         * tests/uninorm/test-u32-normcmp.c: New file.
79612         * modules/uninorm/u32-normcmp-tests: New file.
79614         Tests for module 'uninorm/u16-normcmp'.
79615         * tests/uninorm/test-u16-normcmp.c: New file.
79616         * modules/uninorm/u16-normcmp-tests: New file.
79618         Tests for module 'uninorm/u8-normcmp'.
79619         * tests/uninorm/test-u8-normcmp.c: New file.
79620         * modules/uninorm/u8-normcmp-tests: New file.
79622         New module 'uninorm/u32-normcmp'.
79623         * lib/uninorm/u32-normcmp.c: New file.
79624         * modules/uninorm/u32-normcmp: New file.
79626         New module 'uninorm/u16-normcmp'.
79627         * lib/uninorm/u16-normcmp.c: New file.
79628         * modules/uninorm/u16-normcmp: New file.
79630         New module 'uninorm/u8-normcmp'.
79631         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
79632         declarations.
79633         * lib/uninorm/u8-normcmp.c: New file.
79634         * lib/uninorm/u-normcmp.h: New file.
79635         * modules/uninorm/u8-normcmp: New file.
79637 2009-03-06  Bruno Haible  <bruno@clisp.org>
79639         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
79640         Reported by Eric Blake.
79642 2009-03-06  Eric Blake  <ebb9@byu.net>
79643             Bruno Haible  <bruno@clisp.org>
79645         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
79646         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
79647         condition.
79648         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
79649         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
79650         condition.
79651         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
79653 2009-03-06  Eric Blake  <ebb9@byu.net>
79655         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
79656         to avoid compiler warnings.
79657         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
79659 2009-03-05  Bruno Haible  <bruno@clisp.org>
79661         * tests/test-ftell.c (main): Disable test beyond end of file on
79662         FreeMiNT.
79663         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
79665 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
79667         * lib/filevercmp.c: Move hidden files up in ordering.
79668         * tests/test-filevercmp.c: Add tests for hidden files.
79670 2009-03-04  Bruno Haible  <bruno@clisp.org>
79672         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
79673         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
79674         AM_CFLAGS.
79675         Reported by Simon Josefsson.
79677 2009-03-03  Bruno Haible  <bruno@clisp.org>
79679         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
79680         Reported by Simon Josefsson.
79682         * doc/ld-version-script.texi: Update node reference.
79684 2009-03-03  Bruno Haible  <bruno@clisp.org>
79686         * modules/visibility (License): Change to 'unlimited'.
79687         Suggested by Simon Josefsson.
79689 2009-03-03  Jim Meyering  <meyering@redhat.com>
79691         unlinkdir: cannot_unlink_dir may modify process state
79692         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
79693         it's neither thread-safe nor appropriate for use in a library.
79695 2009-03-03  Eric Blake  <ebb9@byu.net>
79697         test-closein: silence test under Darwin
79698         * tests/test-closein.sh: Ignore stderr from cat, since we don't
79699         care if it dies from EPIPE or EBADF.
79701 2009-03-03  Bruno Haible  <bruno@clisp.org>
79703         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
79704         earlier.
79705         * doc/visibility.texi: Fix @node and @section.
79707 2009-03-03  Simon Josefsson  <simon@josefsson.org>
79709         * doc/gnulib.texi: Link to sections for ld version script and
79710         visibility.
79711         * doc/visibility.texi: Add @node and @section.
79712         * modules/ld-version-script: New module.
79713         * m4/ld-version-script.m4: New file.
79714         * doc/ld-version-script.texi: New file.
79716 2009-03-02  David Lutterkort  <lutter@redhat.com>
79718         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
79719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79721 2009-03-02  Bruno Haible  <bruno@clisp.org>
79723         * doc/visibility.texi: Mention libtool's -export-symbols option.
79725 2009-03-02  Jim Meyering  <meyering@redhat.com>
79727         announce-gen: new option: --no-print-checksums
79728         * build-aux/announce-gen (usage): Describe it.
79729         (print_checksums): Print a newline here, not in the [*] footnote.
79730         (main): Honor it.
79732 2009-03-01  Bruno Haible  <bruno@clisp.org>
79734         Use socklen_t in the native Windows replacements prototypes.
79735         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
79736         instead of 'int'.
79737         * lib/getsockopt.c (rpl_getsockopt): Likewise.
79738         * lib/setsockopt.c (rpl_setsockopt): Likewise.
79739         * modules/getsockopt (Depends-on): Add socklen.
79740         * modules/setsockopt (Depends-on): Add socklen.
79742 2009-03-01  Bruno Haible  <bruno@clisp.org>
79744         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
79745         least 4.2.
79747 2009-03-01  Eric Blake  <ebb9@byu.net>
79748             Bruno Haible  <bruno@clisp.org>
79750         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
79751         error messages.
79752         * lib/wait-process.c (wait_subprocess): Omit error message about
79753         deadly signal sent to the child of termsigp != NULL.
79755 2009-03-01  Eric Blake  <ebb9@byu.net>
79757         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
79759 2009-03-01  Bruno Haible  <bruno@clisp.org>
79761         Avoid a gcc warning.
79762         * tests/test-sched.c (b): Make global.
79763         Reported by Eric Blake.
79765 2009-01-19  Martin Lambers  <marlam@marlam.de>
79767         Provide POSIX semantics for socket timeout options on W32.
79768         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
79769         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
79770         * modules/setsockopt: Depend on sys_time module for struct timeval.
79771         * modules/getsockopt: Depend on sys_time module for struct timeval.
79773 2009-03-01  Simon Josefsson  <simon@josefsson.org>
79775         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
79776         __USE_GNU, for consistency with netdb.in.h.
79777         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79779 2009-03-01  Bruno Haible  <bruno@clisp.org>
79781         More support for FreeMiNT.
79782         * lib/fseeko.c (rpl_fseeko): Complete last commit.
79783         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79785 2009-03-01  Bruno Haible  <bruno@clisp.org>
79787         More support for FreeMiNT.
79788         * lib/fpurge.c (fpurge): Correct last commit.
79789         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79791 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79793         Fix unportable awk script in vc-list-files.
79794         * build-aux/vc-list-files: In the replacement awk script, use
79795         substr with a second argument of 1, not zero.
79796         Report by Simon Josefsson.
79798 2009-02-28  Bruno Haible  <bruno@clisp.org>
79800         More support for FreeMiNT.
79801         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
79802         to FreeMiNT today.
79803         * lib/fwriting.c (fwriting): Likewise.
79804         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
79806 2009-02-28  Bruno Haible  <bruno@clisp.org>
79808         * tests/test-freadseek.c (main): Disable test beyond end of file on
79809         FreeMiNT.
79810         * tests/test-ftello.c (main): Likewise.
79811         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
79813 2009-02-28  Bruno Haible  <bruno@clisp.org>
79815         Add tentative support for FreeMiNT.
79816         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
79817         * lib/fpurge.c (fpurge): Likewise.
79818         * lib/freadable.c (freadable): Likewise.
79819         * lib/freading.c (freading): Likewise.
79820         * lib/freadptr.c (freadptr): Likewise.
79821         * lib/freadseek.c (freadptrinc): Likewise.
79822         * lib/fseeko.c (rpl_fseeko): Likewise.
79823         * lib/fseterr.c (fseterr): Likewise.
79824         * lib/fwritable.c (fwritable): Likewise.
79825         * lib/fwriting.c (fwriting): Likewise.
79826         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
79827         Hourihane.
79828         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79830 2009-02-28  Bruno Haible  <bruno@clisp.org>
79832         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
79833         SIGCHLD.
79834         Reported by Jim Meyering.
79836 2009-02-28  Bruno Haible  <bruno@clisp.org>
79838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
79839         Mention the results of these tests on various platforms.
79840         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
79841         order.
79842         * doc/posix-functions/printf.texi: Likewise.
79843         * doc/posix-functions/snprintf.texi: Likewise.
79844         * doc/posix-functions/sprintf.texi: Likewise.
79845         * doc/posix-functions/vfprintf.texi: Likewise.
79846         * doc/posix-functions/vprintf.texi: Likewise.
79847         * doc/posix-functions/vsnprintf.texi: Likewise.
79848         * doc/posix-functions/vsprintf.texi: Likewise.
79849         * doc/glibc-functions/obstack_printf.texi: Likewise.
79850         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
79852 2009-02-28  Bruno Haible  <bruno@clisp.org>
79854         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
79855         Reported by Loïc Minier <lool@dooz.org>.
79857 2009-02-27  Bruno Haible  <bruno@clisp.org>
79859         * gnulib-tool (func_import): Make the sed expression used to create the
79860         sed script for updating the .gitignore file POSIX compliant.
79861         Reported by Eric Blake.
79863 2009-02-27  Bruno Haible  <bruno@clisp.org>
79865         * gnulib-tool (sed): Don't alias as "sed --posix".
79866         Reported by Eric Blake.
79868 2009-02-27  Bruno Haible  <bruno@clisp.org>
79870         Avoid test link errors.
79871         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
79872         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
79873         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
79874         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
79875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79877 2009-02-27  Bruno Haible  <bruno@clisp.org>
79879         Avoid spurious "(cached)" in configure output.
79880         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
79881         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
79882         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
79883         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
79884         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
79885         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
79886         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
79887         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
79888         Reported by Eric Blake.
79890 2009-02-27  Eric Blake  <ebb9@byu.net>
79892         printf: fix regression in previous patch
79893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
79895 2009-02-27  Bruno Haible  <bruno@clisp.org>
79897         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
79898         value.
79899         * lib/stdint.in.h: Likewise.
79900         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
79902 2009-02-27  Eric Blake  <ebb9@byu.net>
79904         doc: mention more functions added in cygwin 1.7.0
79905         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
79906         addition.
79907         * doc/posix-functions/open_wmemstream.texi: Likewise.
79908         * doc/posix-functions/wcsnlen.texi: Likewise.
79909         * doc/posix-functions/wcsnrtombs.texi: Likewise.
79910         * doc/posix-functions/wcstod.texi: Likewise.
79911         * doc/posix-functions/wcstof.texi: Likewise.
79912         * doc/posix-functions/wcstoimax.texi: Likewise.
79913         * doc/posix-functions/wcstok.texi: Likewise.
79914         * doc/posix-functions/wcstoumax.texi: Likewise.
79916         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
79917         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
79918         * doc/posix-functions/fprintf.texi: Update.
79919         * doc/posix-functions/printf.texi: Update.
79920         * doc/posix-functions/snprintf.texi: Update.
79921         * doc/posix-functions/sprintf.texi: Update.
79922         * doc/posix-functions/vfprintf.texi: Update.
79923         * doc/posix-functions/vprintf.texi: Update.
79924         * doc/posix-functions/vsnprintf.texi: Update.
79925         * doc/posix-functions/vsprintf.texi: Update.
79926         * doc/glibc-functions/obstack_printf.texi: Update.
79927         * doc/glibc-functions/obstack_vprintf.texi: Update.
79929 2009-02-26  Eric Blake  <ebb9@byu.net>
79931         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
79932         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
79933         compilation bug by using runtime conversion.
79934         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
79935         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
79936         * modules/ceill-tests (Files): Use nan.h.
79937         * modules/floorl-tests (Files): Likewise.
79938         * modules/frexpl-tests (Files): Likewise.
79939         * modules/isnanl-tests (Files): Likewise.
79940         * modules/ldexpl-tests (Files): Likewise.
79941         * modules/roundl-tests (Files): Likewise.
79942         * modules/truncl-tests (Files): Likewise.
79943         * tests/test-ceill.c (main): Use a working NaN.
79944         * tests/test-floorl.c (main): Likewise.
79945         * tests/test-frexpl.c (main): Likewise.
79946         * tests/test-isnan.c (test_long_double): Likewise.
79947         * tests/test-isnanl.h (main): Likewise.
79948         * tests/test-ldexpl.h (main): Likewise.
79949         * tests/test-roundl.h (main): Likewise.
79950         * tests/test-truncl.h (main): Likewise.
79951         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
79953 2009-02-26  Eric Blake  <ebb9@byu.net>
79954             Bruno Haible  <bruno@clisp.org>
79956         Work around a *printf bug with %ls on Solaris.
79957         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
79958         precision is specified, sprintf stops converting the wide string
79959         argument when the number of bytes that have been produced by this
79960         conversion equals or exceeds the precision.
79961         * doc/posix-functions/fprintf.texi: Update.
79962         * doc/posix-functions/printf.texi: Update.
79963         * doc/posix-functions/snprintf.texi: Update.
79964         * doc/posix-functions/sprintf.texi: Update.
79965         * doc/posix-functions/vfprintf.texi: Update.
79966         * doc/posix-functions/vprintf.texi: Update.
79967         * doc/posix-functions/vsnprintf.texi: Update.
79968         * doc/posix-functions/vsprintf.texi: Update.
79969         * doc/glibc-functions/obstack_printf.texi: Update.
79970         * doc/glibc-functions/obstack_vprintf.texi: Update.
79972 2009-02-26  Eric Blake  <ebb9@byu.net>
79974         stdlib: favor compiler check of random.h
79975         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
79976         to avoid an ObjC random.h installed by Swarm.
79978 2009-02-26  Bruno Haible  <bruno@clisp.org>
79980         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
79981         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
79982         Reported by Gary V. Vaughan <gary@gnu.org>.
79984 2009-02-26  Bruno Haible  <bruno@clisp.org>
79986         Fix *printf behaviour regarding the %ls directive.
79987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
79988         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
79989         NEED_PRINTF_DIRECTIVE_LS.
79990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
79991         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79992         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79993         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
79994         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
79995         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
79996         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
79997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80001         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
80002         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80004         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80005         * doc/posix-functions/fprintf.texi: Update.
80006         * doc/posix-functions/printf.texi: Update.
80007         * doc/posix-functions/snprintf.texi: Update.
80008         * doc/posix-functions/sprintf.texi: Update.
80009         * doc/posix-functions/vfprintf.texi: Update.
80010         * doc/posix-functions/vprintf.texi: Update.
80011         * doc/posix-functions/vsnprintf.texi: Update.
80012         * doc/posix-functions/vsprintf.texi: Update.
80013         * doc/glibc-functions/obstack_printf.texi: Update.
80014         * doc/glibc-functions/obstack_vprintf.texi: Update.
80015         Reported by Eric Blake.
80017 2009-02-25  Bruno Haible  <bruno@clisp.org>
80019         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
80020         with known value.
80021         Reported by Gary V. Vaughan <gary@gnu.org>.
80023 2009-02-25  Bruno Haible  <bruno@clisp.org>
80025         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
80026         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
80027         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
80028         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
80029         Reported by Gary V. Vaughan <gary@gnu.org>.
80031 2009-02-25  Bruno Haible  <bruno@clisp.org>
80033         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
80034         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
80035         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
80036         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
80037         Reported by Gary V. Vaughan <gary@gnu.org>.
80039 2009-02-25  Eric Blake  <ebb9@byu.net>
80041         tests: skip fseek/ftell tests if ungetc is broken
80042         * m4/ungetc.m4: New file.
80043         * modules/fseek-tests: Split test, so ungetc dependency is
80044         separate from rest of test.
80045         * modules/fseeko-tests: Likewise.
80046         * modules/ftell-tests: Likewise.
80047         * modules/ftello-tests: Likewise.
80048         * tests/test-fseek.c (main): Isolate ungetc dependency.
80049         * tests/test-fseeko.c (main): Likewise.
80050         * tests/test-ftell.c (main): Likewise.
80051         * tests/test-ftello.c (main): Likewise.
80052         * tests/test-fseek2.sh: New file.
80053         * tests/test-fseeko2.sh: Likewise.
80054         * tests/test-ftell2.sh: Likewise.
80055         * tests/test-ftello2.sh: Likewise.
80057 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
80059         test-getaddrinfo: fix usage of skip return code 77
80060         * tests/test-gettaddrinfo.c: Return skip code 77 only
80061         for first occurrence of skip (4x77 is not 77)
80063 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
80065         strtod: avoid C99 decl-after-statement
80066         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
80068 2009-02-24  Eric Blake  <ebb9@byu.net>
80070         strtod: detect HP-UX 11.31 bug
80071         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
80072         Reported by Gary V. Vaughan.
80074 2009-02-23  Bruno Haible  <bruno@clisp.org>
80076         Fix invalid read past end of memory block.
80077         * lib/vasnprintf.c (DCHAR_SET): Define.
80078         (local_wcslen): Define only when needed.
80079         (local_strnlen, local_wcsnlen): New functions.
80080         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
80081         directives that involve a conversion ourselves.
80082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
80083         wcsnlen, mbrtowc, wcrtomb.
80084         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
80085         * tests/test-vasprintf-posix.c (test_function): Likewise.
80086         * tests/test-snprintf-posix.h (test_function): Likewise.
80087         * tests/test-sprintf-posix.h (test_function): Likewise.
80088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80090 2009-02-22  Bruno Haible  <bruno@clisp.org>
80092         Implement new clarified decomposition of Hangul syllables.
80093         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
80094         of type LTV, return only a pairwise decomposition.
80095         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
80096         Likewise.
80097         * tests/uninorm/test-decomposition.c (main): Updated expected result.
80098         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
80099         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
80101 2009-02-22  Bruno Haible  <bruno@clisp.org>
80103         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
80104         zero-length results and shrink excess allocated memory.
80105         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
80106         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
80107         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
80108         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
80109         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
80110         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
80111         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
80112         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
80113         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
80114         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
80115         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
80116         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
80118 2009-02-21  Bruno Haible  <bruno@clisp.org>
80120         * doc/gnulib.texi: Include safe-alloc.texi earlier.
80121         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
80122         spaces after a period. Put a space between a macro name and its
80123         argument list. Trivial rewordings.
80124         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
80125         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
80126         (main): Return 0 explicitly.
80128 2009-02-21  Bruno Haible  <bruno@clisp.org>
80130         Tests for module 'uninorm/filter'.
80131         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
80132         * modules/uninorm/filter-tests: New file.
80134         New module 'uninorm/filter'.
80135         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
80136         uninorm_filter_flush, uninorm_filter_free): New declarations.
80137         * lib/uninorm/uninorm-filter.c: New file.
80138         * modules/uninorm/filter: New file.
80140 2009-02-21  Bruno Haible  <bruno@clisp.org>
80142         Tests for module 'uninorm/nfkc'.
80143         * tests/uninorm/test-nfkc.c: New file.
80144         * tests/uninorm/test-u8-nfkc.c: New file.
80145         * tests/uninorm/test-u16-nfkc.c: New file.
80146         * tests/uninorm/test-u32-nfkc.c: New file.
80147         * tests/uninorm/test-u32-nfkc-big.sh: New file.
80148         * tests/uninorm/test-u32-nfkc-big.c: New file.
80149         * modules/uninorm/nfkc-tests: New file.
80151         New module 'uninorm/nfkc'.
80152         * lib/uninorm/nfkc.c: New file.
80153         * modules/uninorm/nfkc: New file.
80155         Tests for module 'uninorm/nfkd'.
80156         * tests/uninorm/test-nfkd.c: New file.
80157         * tests/uninorm/test-u8-nfkd.c: New file.
80158         * tests/uninorm/test-u16-nfkd.c: New file.
80159         * tests/uninorm/test-u32-nfkd.c: New file.
80160         * tests/uninorm/test-u32-nfkd-big.sh: New file.
80161         * tests/uninorm/test-u32-nfkd-big.c: New file.
80162         * modules/uninorm/nfkd-tests: New file.
80164         New module 'uninorm/nfkd'.
80165         * lib/uninorm/nfkd.c: New file.
80166         * modules/uninorm/nfkd: New file.
80168         Tests for module 'uninorm/nfc'.
80169         * tests/uninorm/test-nfc.c: New file.
80170         * tests/uninorm/test-u8-nfc.c: New file.
80171         * tests/uninorm/test-u16-nfc.c: New file.
80172         * tests/uninorm/test-u32-nfc.c: New file.
80173         * tests/uninorm/test-u32-nfc-big.sh: New file.
80174         * tests/uninorm/test-u32-nfc-big.c: New file.
80175         * modules/uninorm/nfc-tests: New file.
80177         New module 'uninorm/nfc'.
80178         * lib/uninorm/nfc.c: New file.
80179         * modules/uninorm/nfc: New file.
80181         Tests for module 'uninorm/nfd'.
80182         * tests/uninorm/test-nfd.c: New file.
80183         * tests/uninorm/test-u8-nfd.c: New file.
80184         * tests/uninorm/test-u16-nfd.c: New file.
80185         * tests/uninorm/test-u32-nfd.c: New file.
80186         * tests/uninorm/test-u32-nfd-big.sh: New file.
80187         * tests/uninorm/test-u32-nfd-big.c: New file.
80188         * tests/uninorm/test-u32-normalize-big.h: New file.
80189         * tests/uninorm/test-u32-normalize-big.c: New file.
80190         * tests/uninorm/NormalizationTest.txt: New file, created from
80191         Unicode 5.1.0 NormalizationTest.txt.
80192         * modules/uninorm/nfd-tests: New file.
80194         New module 'uninorm/nfd'.
80195         * lib/uninorm/nfd.c: New file.
80196         * modules/uninorm/nfd: New file.
80198         New module 'uninorm/u32-normalize'.
80199         * lib/uninorm/u32-normalize.c: New file.
80200         * modules/uninorm/u32-normalize: New file.
80202         New module 'uninorm/u16-normalize'.
80203         * lib/uninorm/u16-normalize.c: New file.
80204         * modules/uninorm/u16-normalize: New file.
80206         New module 'uninorm/u8-normalize'.
80207         * lib/uninorm/u8-normalize.c: New file.
80208         * lib/uninorm/normalize-internal.h: New file.
80209         * lib/uninorm/u-normalize-internal.h: New file.
80210         * modules/uninorm/u8-normalize: New file.
80212         New module 'uninorm/decompose-internal'.
80213         * lib/uninorm/decompose-internal.c: New file.
80214         * modules/uninorm/decompose-internal: New file.
80216         Tests for module 'uninorm/composition'.
80217         * tests/uninorm/test-composition.c: New file.
80218         * modules/uninorm/composition-tests: New file.
80220         New module 'uninorm/composition'.
80221         * lib/uninorm/composition.c: New file.
80222         * lib/uninorm/composition-table.gperf: New file, generated by
80223         gen-uni-tables.
80224         * modules/uninorm/composition: New file.
80226         Tests for module 'uninorm/compat-decomposition'.
80227         * tests/uninorm/test-compat-decomposition.c: New file.
80228         * modules/uninorm/compat-decomposition-tests: New file.
80230         New module 'uninorm/compat-decomposition'.
80231         * lib/uninorm/decompose-internal.h: New file.
80232         * lib/uninorm/compat-decomposition.c: New file.
80233         * modules/uninorm/compat-decomposition: New file.
80235         Tests for module 'uninorm/canonical-decomposition'.
80236         * tests/uninorm/test-canonical-decomposition.c: New file.
80237         * modules/uninorm/canonical-decomposition-tests: New file.
80239         New module 'uninorm/canonical-decomposition'.
80240         * lib/uninorm/canonical-decomposition.c: New file.
80241         * modules/uninorm/canonical-decomposition: New file.
80243         Tests for module 'uninorm/decomposition'.
80244         * tests/uninorm/test-decomposition.c: New file.
80245         * modules/uninorm/decomposition-tests: New file.
80247         New module 'uninorm/decomposition'.
80248         * lib/uninorm/decomposition.c: New file.
80249         * modules/uninorm/decomposition: New file.
80251         New module 'uninorm/decomposition-table'.
80252         * lib/uninorm/decomposition-table.h: New file.
80253         * lib/uninorm/decomposition-table.c: New file.
80254         * lib/uninorm/decomposition-table1.h: New file, generated by
80255         gen-uni-tables.
80256         * lib/uninorm/decomposition-table2.h: New file, generated by
80257         gen-uni-tables.
80258         * modules/uninorm/decomposition-table: New file.
80260         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
80261         (UC_DECOMP_*): New enumeration items.
80262         (get_decomposition): New function.
80263         (struct decomp_table): New type.
80264         (output_decomposition, output_decomposition_tables): New functions.
80265         (unicode_composition_exclusions): New variable.
80266         (fill_composition_exclusions, debug_output_composition_tables): New
80267         functions.
80268         (main): Accept one more argument. Invoke fill_composition_exclusions.
80269         Output decomposition and composition tables.
80271         New module 'uninorm/base'.
80272         * lib/uninorm.h: New file.
80273         * lib/unictype.h: Update comment.
80274         * modules/uninorm/base: New file.
80276 2009-02-21  David Lutterkort  <lutter@redhat.com>
80278         Tests for module 'safe-alloc'.
80279         * tests/test-safe-alloc.c: New file.
80280         * modules/safe-alloc-tests: New file.
80282         New module 'safe-alloc'.
80283         * lib/safe-alloc.h: New file.
80284         * lib/safe-alloc.c: New file.
80285         * m4/safe-alloc.m4: New file.
80286         * modules/safe-alloc: New file.
80287         * doc/safe-alloc.texi: New file.
80288         * doc/gnulib.texi: Include it.
80289         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
80290         safe-alloc.
80292 2009-02-18  Bruno Haible  <bruno@clisp.org>
80294         Fix link error on non-glibc systems.
80295         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
80296         variable.
80297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80299 2009-02-18  Jim Meyering  <meyering@redhat.com>
80301         fts: avoid used-uninitialized error due to recent change
80302         * lib/fts.c (fts_read): Guard uses of the new member,
80303         parent->fts_n_dirs_remaining, since it's not relevant for
80304         the parent of a directory specified on the command-line.
80306 2009-02-17  James Youngman  <jay@gnu.org>
80307             Bruno Haible  <bruno@clisp.org>
80309         * m4/include_next.m4: Reformulate comment.
80311 2009-02-16  Jim Meyering  <meyering@redhat.com>
80313         fts: add #if guards so that the fts_lgpl module still builds
80314         * lib/fts.c: Guard just-added hash-table-using parts with
80315         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
80316         Reported by Simon Josefsson.
80318 2009-02-15  Bruno Haible  <bruno@clisp.org>
80320         * modules/array-mergesort-tests: New file.
80321         * tests/test-array-mergesort.c: New file.
80323         New module 'array-mergesort'.
80324         * modules/array-mergesort: New file.
80325         * lib/array-mergesort.h: New file.
80327 2009-02-15  Bruno Haible  <bruno@clisp.org>
80329         Fix 2009-02-07 commit.
80330         * lib/gen-uni-tables.c (output_predicate, output_category,
80331         output_combclass, output_bidi_category, output_decimal_digit,
80332         output_digit, output_numeric, output_mirror, output_scripts,
80333         output_ident_category, output_simple_mapping): Fix format directives.
80334         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
80336 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
80338         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
80339         fixes are available from IBM.
80341 2009-02-13  Jim Meyering  <meyering@redhat.com>
80343         fts: arrange not to stat non-directories in more cases
80344         This makes GNU find (when it doesn't need to stat each file)
80345         *much* more efficient at traversing reiserfs file systems.
80346         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
80347         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
80348         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
80349         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
80350         (leaf_optimization_applies): New function.
80351         (LCO_hash, LCO_compare): New helper functions.
80352         (link_count_optimize_ok): New function.
80353         (fts_stat): Initialize new member (if dir).
80354         (fts_read): Decrement parent's fts_n_dirs_remaining count if
80355         we've just stat'ed a directory.  Skip the stat call when possible.
80356         ---
80357         Note this AFS-related exchange:
80358         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
80359         and note find's pioctl call in find/fstype.c.
80360         But that is necessary only if you want to enable the
80361         optimization for AFS, and for now, I don't.
80363         fts: move a function definition "up" (no semantic change)
80364         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
80365         "up" to precede upcoming use of a related function.
80367 2009-02-11  Jim Meyering  <meyering@redhat.com>
80369         fts: correct internal computation of nlinks (optimization-related)
80370         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
80371         whether the current entry is a directory, so don't test it.
80373 2009-02-10  Bruno Haible  <bruno@clisp.org>
80375         Tests for module 'uniwbrk/ulc-wordbreaks'.
80376         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
80377         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
80378         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
80380         Tests for module 'uniwbrk/u32-wordbreaks'.
80381         * modules/uniwbrk/u32-wordbreaks-tests: New file.
80382         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
80384         Tests for module 'uniwbrk/u16-wordbreaks'.
80385         * modules/uniwbrk/u16-wordbreaks-tests: New file.
80386         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
80388         Tests for module 'uniwbrk/u8-wordbreaks'.
80389         * modules/uniwbrk/u8-wordbreaks-tests: New file.
80390         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
80392 2009-02-10  Bruno Haible  <bruno@clisp.org>
80394         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
80395         property.
80396         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
80397         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
80398         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
80400 2009-02-10  Simon Josefsson  <simon@josefsson.org>
80402         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
80403         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
80405 2009-02-10  Bruno Haible  <bruno@clisp.org>
80407         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
80408         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
80409         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
80410         * lib/unilbrk/u8-possible-linebreaks.c: Update.
80411         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
80412         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
80414 2009-02-09  Simon Josefsson  <simon@josefsson.org>
80416         * lib/sockets.h (gl_fd_to_handle): New function.
80418         * tests/test-sockets.c: Call gl_fd_to_handle.
80420 2009-02-09  Bruno Haible  <bruno@clisp.org>
80422         * doc/havelib.texi: Document the conventions on bi-arch systems.
80424 2009-02-08  Bruno Haible  <bruno@clisp.org>
80426         Document the AC_LIB_LINKFLAGS macro.
80427         * doc/havelib.texi: New file, mostly written on 2005-05-24.
80428         * doc/gnulib.texi: Include it.
80430 2009-02-08  Bruno Haible  <bruno@clisp.org>
80432         Fix wrong order of sections, compared to TOC.
80433         * doc/gnulib.texi: Include relocatable-maint.texi after the
80434         "Regular expressions" node, not before.
80436 2009-02-08  Bruno Haible  <bruno@clisp.org>
80438         Tests for module 'unicase/totitle'.
80439         * modules/unicase/totitle-tests: New file.
80441         Tests for module 'unicase/tolower'.
80442         * modules/unicase/tolower-tests: New file.
80444         Tests for module 'unicase/toupper'.
80445         * modules/unicase/toupper-tests: New file.
80446         * tests/unicase/test-mapping-part1.h: New file.
80447         * tests/unicase/test-mapping-part2.h: New file.
80449         New module 'unicase/totitle'.
80450         * modules/unicase/totitle: New file.
80451         * lib/unicase/totitle.c: New file.
80453         New module 'unicase/tolower'.
80454         * modules/unicase/tolower: New file.
80455         * lib/unicase/tolower.c: New file.
80457         New module 'unicase/toupper'.
80458         * modules/unicase/toupper: New file.
80459         * lib/unicase/toupper.c: New file.
80460         * lib/unicase/simple-mapping.h: New file.
80462         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
80463         (mapping_table): New structure.
80464         (output_simple_mapping): New function.
80465         (main): Invoke output_simple_mapping_test and output_simple_mapping.
80466         * modules/gen-uni-tables (Description): Update.
80467         * lib/unicase/toupper.h: New file, automatically generated by
80468         gen-uni-tables.
80469         * lib/unicase/tolower.h: New file, automatically generated by
80470         gen-uni-tables.
80471         * lib/unicase/totitle.h: New file, automatically generated by
80472         gen-uni-tables.
80473         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
80474         gen-uni-tables.
80475         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
80476         gen-uni-tables.
80477         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
80478         gen-uni-tables.
80480         New module 'unicase/base'.
80481         * modules/unicase/base: New file.
80482         * lib/unicase.h: New file.
80484 2009-02-08  Bruno Haible  <bruno@clisp.org>
80486         New module 'uniwbrk/ulc-wordbreaks'.
80487         * modules/uniwbrk/ulc-wordbreaks: New file.
80488         * lib/uniwbrk/ulc-wordbreaks.c: New file.
80490         New module 'uniwbrk/u32-wordbreaks'.
80491         * modules/uniwbrk/u32-wordbreaks: New file.
80492         * lib/uniwbrk/u32-wordbreaks.c: New file.
80494         New module 'uniwbrk/u16-wordbreaks'.
80495         * modules/uniwbrk/u16-wordbreaks: New file.
80496         * lib/uniwbrk/u16-wordbreaks.c: New file.
80498         New module 'uniwbrk/u8-wordbreaks'.
80499         * modules/uniwbrk/u8-wordbreaks: New file.
80500         * lib/uniwbrk/u8-wordbreaks.c: New file.
80501         * lib/uniwbrk/u-wordbreaks.h: New file.
80503         New module 'uniwbrk/table'.
80504         * modules/uniwbrk/table: New file.
80505         * lib/uniwbrk/wbrktable.h: New file.
80506         * lib/uniwbrk/wbrktable.c: New file.
80508         New module 'uniwbrk/wordbreak-property'.
80509         * modules/uniwbrk/wordbreak-property: New file.
80510         * lib/uniwbrk/wordbreak-property.c: New file.
80512         * lib/gen-uni-tables.c (WBP_*): New enum items.
80513         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
80514         (unicode_org_wbp): New variable.
80515         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
80516         New functions.
80517         (wbp_table): New structure.
80518         (output_wbp, output_wbrk_tables): New functions.
80519         (main): Accept additional argument. Invoke fill_org_wbp,
80520         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
80521         output_wbrk_tables.
80522         * modules/gen-uni-tables (Description): Update.
80523         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
80524         gen-uni-tables.
80526         New module 'uniwbrk/base'.
80527         * modules/uniwbrk/base: New file.
80528         * lib/uniwbrk.h: New file.
80530 2009-02-08  Bruno Haible  <bruno@clisp.org>
80532         Update to Unicode 5.1.0.
80533         * lib/gen-uni-tables.c (is_property_alphabetic): Include
80534         U+2185..U+2188.
80535         (is_property_default_ignorable_code_point): Don't include characters
80536         of category Cc or Cs and not-a-characters.
80537         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
80538         U+0D79, U+109E, U+109F, U+A60C.
80539         * lib/unictype/bidi_of.h: Regenerated.
80540         * lib/unictype/blocks.h: Regenerated.
80541         * lib/unictype/categ_C.h: Regenerated.
80542         * lib/unictype/categ_Cf.h: Regenerated.
80543         * lib/unictype/categ_Cn.h: Regenerated.
80544         * lib/unictype/categ_L.h: Regenerated.
80545         * lib/unictype/categ_Ll.h: Regenerated.
80546         * lib/unictype/categ_Lm.h: Regenerated.
80547         * lib/unictype/categ_Lo.h: Regenerated.
80548         * lib/unictype/categ_Lu.h: Regenerated.
80549         * lib/unictype/categ_M.h: Regenerated.
80550         * lib/unictype/categ_Mc.h: Regenerated.
80551         * lib/unictype/categ_Me.h: Regenerated.
80552         * lib/unictype/categ_Mn.h: Regenerated.
80553         * lib/unictype/categ_N.h: Regenerated.
80554         * lib/unictype/categ_Nd.h: Regenerated.
80555         * lib/unictype/categ_Nl.h: Regenerated.
80556         * lib/unictype/categ_No.h: Regenerated.
80557         * lib/unictype/categ_P.h: Regenerated.
80558         * lib/unictype/categ_Pd.h: Regenerated.
80559         * lib/unictype/categ_Pe.h: Regenerated.
80560         * lib/unictype/categ_Pf.h: Regenerated.
80561         * lib/unictype/categ_Pi.h: Regenerated.
80562         * lib/unictype/categ_Po.h: Regenerated.
80563         * lib/unictype/categ_Ps.h: Regenerated.
80564         * lib/unictype/categ_S.h: Regenerated.
80565         * lib/unictype/categ_Sk.h: Regenerated.
80566         * lib/unictype/categ_Sm.h: Regenerated.
80567         * lib/unictype/categ_So.h: Regenerated.
80568         * lib/unictype/categ_of.h: Regenerated.
80569         * lib/unictype/combining.h: Regenerated.
80570         * lib/unictype/ctype_alnum.h: Regenerated.
80571         * lib/unictype/ctype_alpha.h: Regenerated.
80572         * lib/unictype/ctype_graph.h: Regenerated.
80573         * lib/unictype/ctype_lower.h: Regenerated.
80574         * lib/unictype/ctype_print.h: Regenerated.
80575         * lib/unictype/ctype_punct.h: Regenerated.
80576         * lib/unictype/ctype_upper.h: Regenerated.
80577         * lib/unictype/decdigit.h: Regenerated.
80578         * lib/unictype/digit.h: Regenerated.
80579         * lib/unictype/mirror.h: Regenerated.
80580         * lib/unictype/numeric.h: Regenerated.
80581         * lib/unictype/pr_alphabetic.h: Regenerated.
80582         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
80583         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
80584         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
80585         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
80586         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
80587         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
80588         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
80589         * lib/unictype/pr_combining.h: Regenerated.
80590         * lib/unictype/pr_dash.h: Regenerated.
80591         * lib/unictype/pr_decimal_digit.h: Regenerated.
80592         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
80593         * lib/unictype/pr_deprecated.h: Regenerated.
80594         * lib/unictype/pr_diacritic.h: Regenerated.
80595         * lib/unictype/pr_extender.h: Regenerated.
80596         * lib/unictype/pr_format_control.h: Regenerated.
80597         * lib/unictype/pr_grapheme_base.h: Regenerated.
80598         * lib/unictype/pr_grapheme_extend.h: Regenerated.
80599         * lib/unictype/pr_grapheme_link.h: Regenerated.
80600         * lib/unictype/pr_id_continue.h: Regenerated.
80601         * lib/unictype/pr_id_start.h: Regenerated.
80602         * lib/unictype/pr_ideographic.h: Regenerated.
80603         * lib/unictype/pr_ignorable_control.h: Regenerated.
80604         * lib/unictype/pr_lowercase.h: Regenerated.
80605         * lib/unictype/pr_math.h: Regenerated.
80606         * lib/unictype/pr_numeric.h: Regenerated.
80607         * lib/unictype/pr_other_alphabetic.h: Regenerated.
80608         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
80609         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
80610         * lib/unictype/pr_other_id_continue.h: Regenerated.
80611         * lib/unictype/pr_other_lowercase.h: Regenerated.
80612         * lib/unictype/pr_other_math.h: Regenerated.
80613         * lib/unictype/pr_punctuation.h: Regenerated.
80614         * lib/unictype/pr_sentence_terminal.h: Regenerated.
80615         * lib/unictype/pr_soft_dotted.h: Regenerated.
80616         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
80617         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
80618         * lib/unictype/pr_unified_ideograph.h: Regenerated.
80619         * lib/unictype/pr_uppercase.h: Regenerated.
80620         * lib/unictype/pr_xid_continue.h: Regenerated.
80621         * lib/unictype/pr_xid_start.h: Regenerated.
80622         * lib/unictype/pr_zero_width.h: Regenerated.
80623         * lib/unictype/scripts.h: Regenerated.
80624         * lib/unictype/scripts_byname.gperf: Regenerated.
80625         * lib/unictype/sy_java_ident.h: Regenerated.
80626         * lib/unilbrk/lbrkprop1.h: Regenerated.
80627         * lib/unilbrk/lbrkprop2.h: Regenerated.
80628         * tests/unictype/test-categ_C.c: Regenerated.
80629         * tests/unictype/test-categ_Cf.c: Regenerated.
80630         * tests/unictype/test-categ_Cn.c: Regenerated.
80631         * tests/unictype/test-categ_L.c: Regenerated.
80632         * tests/unictype/test-categ_Ll.c: Regenerated.
80633         * tests/unictype/test-categ_Lm.c: Regenerated.
80634         * tests/unictype/test-categ_Lo.c: Regenerated.
80635         * tests/unictype/test-categ_Lu.c: Regenerated.
80636         * tests/unictype/test-categ_M.c: Regenerated.
80637         * tests/unictype/test-categ_Mc.c: Regenerated.
80638         * tests/unictype/test-categ_Me.c: Regenerated.
80639         * tests/unictype/test-categ_Mn.c: Regenerated.
80640         * tests/unictype/test-categ_N.c: Regenerated.
80641         * tests/unictype/test-categ_Nd.c: Regenerated.
80642         * tests/unictype/test-categ_Nl.c: Regenerated.
80643         * tests/unictype/test-categ_No.c: Regenerated.
80644         * tests/unictype/test-categ_P.c: Regenerated.
80645         * tests/unictype/test-categ_Pd.c: Regenerated.
80646         * tests/unictype/test-categ_Pe.c: Regenerated.
80647         * tests/unictype/test-categ_Pf.c: Regenerated.
80648         * tests/unictype/test-categ_Pi.c: Regenerated.
80649         * tests/unictype/test-categ_Po.c: Regenerated.
80650         * tests/unictype/test-categ_Ps.c: Regenerated.
80651         * tests/unictype/test-categ_S.c: Regenerated.
80652         * tests/unictype/test-categ_Sk.c: Regenerated.
80653         * tests/unictype/test-categ_Sm.c: Regenerated.
80654         * tests/unictype/test-categ_So.c: Regenerated.
80655         * tests/unictype/test-ctype_alnum.c: Regenerated.
80656         * tests/unictype/test-ctype_alpha.c: Regenerated.
80657         * tests/unictype/test-ctype_graph.c: Regenerated.
80658         * tests/unictype/test-ctype_lower.c: Regenerated.
80659         * tests/unictype/test-ctype_print.c: Regenerated.
80660         * tests/unictype/test-ctype_punct.c: Regenerated.
80661         * tests/unictype/test-ctype_upper.c: Regenerated.
80662         * tests/unictype/test-decdigit.h: Regenerated.
80663         * tests/unictype/test-digit.h: Regenerated.
80664         * tests/unictype/test-numeric.h: Regenerated.
80665         * tests/unictype/test-pr_alphabetic.c: Regenerated.
80666         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
80667         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
80668         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
80669         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
80670         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
80671         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
80672         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
80673         * tests/unictype/test-pr_combining.c: Regenerated.
80674         * tests/unictype/test-pr_dash.c: Regenerated.
80675         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
80676         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
80677         * tests/unictype/test-pr_deprecated.c: Regenerated.
80678         * tests/unictype/test-pr_diacritic.c: Regenerated.
80679         * tests/unictype/test-pr_extender.c: Regenerated.
80680         * tests/unictype/test-pr_format_control.c: Regenerated.
80681         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
80682         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
80683         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
80684         * tests/unictype/test-pr_id_continue.c: Regenerated.
80685         * tests/unictype/test-pr_id_start.c: Regenerated.
80686         * tests/unictype/test-pr_ideographic.c: Regenerated.
80687         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
80688         * tests/unictype/test-pr_lowercase.c: Regenerated.
80689         * tests/unictype/test-pr_math.c: Regenerated.
80690         * tests/unictype/test-pr_numeric.c: Regenerated.
80691         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
80692         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
80693         Regenerated.
80694         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
80695         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
80696         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
80697         * tests/unictype/test-pr_other_math.c: Regenerated.
80698         * tests/unictype/test-pr_punctuation.c: Regenerated.
80699         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
80700         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
80701         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
80702         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
80703         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
80704         * tests/unictype/test-pr_uppercase.c: Regenerated.
80705         * tests/unictype/test-pr_xid_continue.c: Regenerated.
80706         * tests/unictype/test-pr_xid_start.c: Regenerated.
80707         * tests/unictype/test-pr_zero_width.c: Regenerated.
80709         Update to Unicode 5.1.0.
80710         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
80711         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
80712         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
80713         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
80714         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
80715         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
80716         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
80717         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
80718         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
80719         (nonspacing_table_ind): Update.
80720         * tests/uniwidth/test-uc_width2.sh: Update expected result.
80722         Update to Unicode 5.1.0.
80723         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
80724         code transform.
80725         * lib/uniname/uniname.c (unicode_character_name,
80726         unicode_name_character): Add the range 0x1Fxxx to the code transform.
80727         * lib/uniname/uninames.h: Regenerated.
80728         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
80730 2009-02-07  Bruno Haible  <bruno@clisp.org>
80732         Merge gen-ctype and gen-lbrk into a single program.
80733         * lib/gen-uni-tables.c: New file, incorporating
80734         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
80735         Add directory prefixes to the names of the generated files.
80736         * lib/unictype/gen-ctype.c: Remove file.
80737         * lib/unilbrk/gen-lbrk.c: Remove file.
80738         * modules/gen-uni-tables: New file.
80739         * modules/unictype/gen-ctype: Remove file.
80740         * modules/unilbrk/gen-lbrk: Remove file.
80742 2009-02-07  Bruno Haible  <bruno@clisp.org>
80744         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
80746         New module 'unistr/u32-strcoll'.
80747         * modules/unistr/u32-strcoll: New file.
80748         * lib/unistr/u32-strcoll.c: New file.
80750         New module 'unistr/u16-strcoll'.
80751         * modules/unistr/u16-strcoll: New file.
80752         * lib/unistr/u16-strcoll.c: New file.
80754         New module 'unistr/u8-strcoll'.
80755         * modules/unistr/u8-strcoll: New file.
80756         * lib/unistr/u8-strcoll.c: New file.
80757         * lib/unistr/u-strcoll.h: New file.
80759 2009-02-07  Bruno Haible  <bruno@clisp.org>
80761         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
80762         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
80763         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
80764         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
80765         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
80766         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
80768 2009-02-07  Bruno Haible  <bruno@clisp.org>
80770         Make 64-bit clean.
80771         * lib/unictype/gen-ctype.c (output_predicate, output_category,
80772         output_combclass, output_bidi_category, output_decimal_digit,
80773         output_digit, output_numeric, output_mirror, output_scripts,
80774         output_ident_category): Use proper width specifier in format strings.
80776 2009-02-07  Bruno Haible  <bruno@clisp.org>
80778         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
80779         failure behaviour.
80781 2009-02-07  Jim Meyering  <meyering@redhat.com>
80783         regex: avoid compilation failure with upcoming gcc-4.4
80784         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
80785         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
80786         "... error: integer overflow in preprocessor expression".
80788 2009-02-05  Ben Pfaff  <blp@gnu.org>
80790         Fix link errors on Windows when close module is used.
80791         * modules/close: Add $(LIB_CLOSE) to Link section.
80792         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
80793         $(LIB_CLOSE) on Windows.
80795 2009-02-05  Jim Meyering  <meyering@redhat.com>
80797         still avoid unused-parameter warnings, but do it cleanly
80798         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
80799         (get_fs_usage): Cast to void instead.
80800         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
80801         (dev_from_mount_options, read_file_system_list): Cast to void.
80802         Prompted by Bruno Haible.
80804 2009-02-04  Jim Meyering  <meyering@redhat.com>
80806         fsusage.c: correct copyright year
80807         * lib/fsusage.c: Reflect year in which the change is pushed into
80809         avoid misc. warnings
80810         * lib/fsusage.c (UNUSED_PARAM): Define.
80811         (get_fs_usage): Mark parameter "disk" as unused.
80812         * lib/getugroups.c (getgrent): Use "void" in prototype.
80813         * lib/mountlist.c: Mark unused parameters.
80814         (read_file_system_list): Declare a local with "const".
80815         * lib/nanosleep.c (getnow): Declare static.
80816         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
80818         dirfd: set errno upon failure
80819         * lib/dirfd.c: Include <errno.h>.
80820         Set errno to ENOTSUP when returning -1.
80821         * modules/dirfd (Depends-on): Add errno.
80822         Suggested by John Kodis <kodis@comcast.net>.
80824 2009-02-01  Bruno Haible  <bruno@clisp.org>
80826         Don't assume sizeof (long) >= sizeof (void *).
80827         * lib/memcmp.c: Include stdint.h.
80828         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
80829         srcp2 to 'const byte *'.
80830         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
80831         types to uintptr_t.
80832         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
80833         * modules/memcmp (Depends-on): Add stdint.
80834         Reported by Ozkan Sezer <sezeroz@gmail.com>.
80836 2009-01-30  Eric Blake  <ebb9@byu.net>
80838         fix more require-before-expand issues
80839         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
80840         expand, AC_PROG_AWK.
80841         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
80843 2009-01-28  Eric Blake  <ebb9@byu.net>
80845         version-etc: use consistent URL formatting
80846         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
80847         Improve formatting.  Use fputs for string without %.
80849 2009-01-28  Jim Meyering  <meyering@redhat.com>
80851         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
80852         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
80853         "underquoted definition of NAME" from autoconf-2.59.
80855 2009-01-28  Bruno Haible  <bruno@clisp.org>
80857         * doc/gnulib.texi: Add "Obsolete modules" to index.
80859 2009-01-28  Jim Meyering  <meyering@redhat.com>
80861         useless-if-before-free: recognize more variants
80862         * build-aux/useless-if-before-free: Also recognize e.g.,
80863         if (NULL != p) free (p);
80865 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
80867         test-getaddrinfo: skip (don't fail) this test when there's no network
80868         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
80869         on the presumption that it means you lack network access.
80871 2009-01-26  Jim Meyering  <meyering@redhat.com>
80873         fflush: avoid warnings on modern systems
80874         * lib/fflush.c (rpl_fflush): Move declarations of locals,
80875         pos and result, into scopes where they're used.
80877 2009-01-26  Eric Blake  <ebb9@byu.net>
80879         Silence warning reintroduced by recent extensions patch.
80880         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
80881         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
80882         autoconf.
80884         Backport improved autoconf semantics of AC_DEFUN_ONCE.
80885         * m4/00gnulib.m4: New file.
80886         * gnulib-tool (func_get_filelist): Always use it.
80887         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
80888         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
80890 2009-01-25  Bruno Haible  <bruno@clisp.org>
80892         Make test-quotearg work on MacOS X and AIX.
80893         * tests/test-quotearg.sh: New file.
80894         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
80895         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
80896         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
80897         include <libintl.h>.
80898         (fake_locale): Remove variable.
80899         (gettext, dgettext, dcgettext): Remove functions.
80900         (main): Instead of setting a fake locale, set a real locale. Call
80901         textdomain and bindtextdomain.
80902         * modules/quotearg-tests (Files): Add the new files.
80903         (Depends-on): Add gettext, setenv, unsetenv.
80904         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
80905         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
80906         Augment TESTS_ENVIRONMENT.
80908 2009-01-25  Bruno Haible  <bruno@clisp.org>
80910         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
80911         fr_FR.ISO8859-1 locale on MacOS X.
80912         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
80913         ja_JP.eucJP locale on MacOS X.
80914         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
80915         zh_CN.GB18030 locale on MacOS X.
80917 2009-01-25  Bruno Haible  <bruno@clisp.org>
80919         Avoid link errors on MacOS X 10.3.
80920         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
80921         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80923 2009-01-25  Bruno Haible  <bruno@clisp.org>
80925         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
80926         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
80927         * modules/pipe (Files): Remove m4/posix_spawn.m4.
80928         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
80929         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
80930         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
80931         posix_spawnattr_init, posix_spawnattr_setsigmask,
80932         posix_spawnattr_setflags, posix_spawnattr_destroy.
80934         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
80935         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
80936         * modules/execute (Files): Remove m4/posix_spawn.m4.
80937         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
80938         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
80939         posix_spawnattr_init, posix_spawnattr_setsigmask,
80940         posix_spawnattr_setflags, posix_spawnattr_destroy.
80942 2009-01-25  Bruno Haible  <bruno@clisp.org>
80944         * lib/glthread/threadlib.c: Include <stdlib.h>.
80946 2009-01-25  Bruno Haible  <bruno@clisp.org>
80948         * lib/glthread/threadlib.c (dummy): New declaration.
80950 2009-01-25  Bruno Haible  <bruno@clisp.org>
80952         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
80953         multibyte characters also for the GB18030 encoding. Don't crash when
80954         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
80956 2009-01-25  Bruno Haible  <bruno@clisp.org>
80958         Avoid redefining 'struct random_data' on OSF/1 5.1.
80959         * lib/stdlib.in.h: Include <random.h> if it exists.
80960         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
80961         HAVE_RANDOM_H. Include <random.h> when testing whether
80962         'struct random_data' exists.
80963         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
80965 2009-01-25  Bruno Haible  <bruno@clisp.org>
80967         Don't install charset.alias on MacOS X >= 10.3.
80968         * lib/localcharset.c (DARWIN7): New macro.
80969         (get_charset_aliases): Hardcode the result for Darwin7.
80970         * modules/localcharset (install-exec-local): Don't install
80971         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
80973 2009-01-25  Bruno Haible  <bruno@clisp.org>
80975         Don't install charset.alias on mingw and Cygwin.
80976         * modules/localcharset (install-exec-local): Don't install
80977         charset.alias on mingw and Cygwin, if the file does not yet exist.
80978         The result for these platforms is hardcoded in localcharset.c.
80980 2009-01-25  Bruno Haible  <bruno@clisp.org>
80982         Make it possible again to use AC_GNU_SOURCE together with gnulib.
80983         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
80984         before requiring AC_USE_SYSTEM_EXTENSIONS.
80986 2009-01-25  Jim Meyering  <meyering@redhat.com>
80988         c-strtod: avoid warnings
80989         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
80990         "assignment discards qualifiers from pointer target type" warnings.
80992 2009-01-24  Bruno Haible  <bruno@clisp.org>
80994         Add support for non-UTF-8 locales on MacOS X.
80995         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
80996         canonical encodings. For Darwin 7 and newer, don't map traditional
80997         encodings to UTF-8.
80998         Reported by Vincent Lefevre <vincent@vinc17.org>
80999         at <http://savannah.gnu.org/bugs/?25235>.
81001 2009-01-24  Bruno Haible  <bruno@clisp.org>
81003         * doc/gnulib.texi (Obsolete modules): New section.
81004         Reported by Mike Frysinger <vapier@gentoo.org>.
81006 2009-01-24  Bruno Haible  <bruno@clisp.org>
81008         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
81009         (%.dvi): New rule.
81011 2009-01-24  Bruno Haible  <bruno@clisp.org>
81013         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
81014         Reported by Eric Blake.
81016 2009-01-24  Bruno Haible  <bruno@clisp.org>
81018         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
81019         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
81020         Reported by Gary V. Vaughan <gary@gnu.org>.
81022 2009-01-24  Bruno Haible  <bruno@clisp.org>
81024         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
81026 2009-01-23  Bruno Haible  <bruno@clisp.org>
81028         Make c-strtod, c-strtold usable in libraries.
81029         * lib/c-strtod.c: Include string.h instead of xalloc.h.
81030         (C_STRTOD): Call strdup instead of xstrdup.
81031         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
81032         * modules/c-strtold (Depends-on): Likewise.
81033         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
81034         * NEWS: Mention the change.
81035         Reported by Michael Gold <mgold@ncf.ca>.
81037 2009-01-23  Jim Meyering  <meyering@redhat.com>
81039         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
81040         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
81041         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
81043 2009-01-23  Simon Josefsson  <simon@josefsson.org>
81045         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
81046         GNU CoreUtils.
81047         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
81048         * modules/version-etc (Description): Update.
81050 2009-01-22  Bruno Haible  <bruno@clisp.org>
81052         Cache the C locale object.
81053         * lib/c-strtod.c (c_locale_cache): New variable.
81054         (c_locale): New function.
81055         (C_STRTOD): Use it, and don't call freelocale.
81056         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
81057         Suggested by Paolo Bonzini.
81059 2009-01-21  Bruno Haible  <bruno@clisp.org>
81061         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
81062         conditions other than overflow.
81064 2009-01-21  Bruno Haible  <bruno@clisp.org>
81066         * lib/c-strtod.c: Include errno.h.
81067         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
81068         value from STRTOD_L and STRTOD.
81070 2009-01-21  Bruno Haible  <bruno@clisp.org>
81071         and Jim Meyering  <meyering@redhat.com>
81073         nanosleep: skip configure test (fail it) for apple universal builds
81074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
81075         universal builds, assume that nanosleep does not work.
81076         * modules/nanosleep (Depends-on): Add multiarch.
81078         mktime: skip configure test (fail it) for apple universal builds
81079         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
81080         universal builds, assume that mktime does not work.
81081         * modules/mktime (Depends-on): Add multiarch.
81083 2009-01-21  Eric Blake  <ebb9@byu.net>
81085         multiarch: avoid expand-before-require warning
81086         * modules/multiarch (configure.ac): Require, rather than expand,
81087         gl_MULTIARCH.
81088         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
81089         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
81090         enforce that all clients require it.  Partial reversion of
81091         2008-12-29 patch.
81093         error: avoid expand-before-require warning
81094         * modules/errno (configure.ac): Require, rather than expand,
81095         gl_HEADER_ERRNO_H.
81096         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
81097         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
81098         enforce that all clients require it.
81100         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
81101         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
81102         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
81103         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
81105 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
81107         Revert:
81108         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
81110         regex: do not depend on obsolete modules.
81111         * modules/regex: Remove memcmp and memmove.
81113 2009-01-20  Bruno Haible  <bruno@clisp.org>
81115         Make the 'link' module link on Windows NT 4.
81116         * lib/link.c (_WIN32_WINNT): Don't define.
81117         (CreateHardLinkFuncType): New type.
81118         (CreateHardLinkFunc, initialized): New variables.
81119         (initialize): New function.
81120         (link): Invoke CreateHardLink indirectly through the function pointer.
81122 2009-01-20  Bruno Haible  <bruno@clisp.org>
81124         Fix compilation failure on mingw.
81125         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
81127 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
81129         * doc/c-strtod.texi: Mention a couple of restrictions.
81131 2009-01-20  Jim Meyering  <meyering@redhat.com>
81133         gettimeofday: move more declarations out of functions
81134         * lib/gettimeofday.c: Move extern declarations of tzset and
81135         gmtime out of containing functions.  Prompted by Bruno Haible.
81137 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
81139         regex: do not depend on obsolete modules.
81140         * modules/regex: Remove memcmp and memmove.
81142 2009-01-19  Bruno Haible  <bruno@clisp.org>
81144         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
81145         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
81146         gl_BIGENDIAN, not AC_C_BIGENDIAN.
81147         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
81148         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
81150 2009-01-19  Bruno Haible  <bruno@clisp.org>
81152         * tests/test-link.c: Include <errno.h>.
81153         (main): Exit with code 77 when a hard link cannot be created due to
81154         the file system.
81155         * tests/test-link.sh: Skip test when a hard link cannot be created due
81156         to the file system.
81157         Suggested by Eric Blake.
81159 2009-01-19  Martin Lambers  <marlam@marlam.de>
81161         * modules/link-tests: New file.
81162         * tests/test-link.sh: New file.
81163         * tests/test-link.c: New file.
81165 2009-01-19  Eric Blake  <ebb9@byu.net>
81167         doc: mention another function added in cygwin 1.7.0
81168         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
81169         Another new function in cygwin 1.7.
81171 2009-01-19  Bruno Haible  <bruno@clisp.org>
81173         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
81174         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
81175         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
81176         gl_BIGENDIAN, not AC_C_BIGENDIAN.
81177         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
81178         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
81179         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
81180         * m4/md4.m4 (gl_MD4): Likewise.
81181         * m4/md5.m4 (gl_MD5): Likewise.
81182         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
81183         * m4/sha1.m4 (gl_SHA1): Likewise.
81184         * m4/sha256.m4 (gl_SHA256): Likewise.
81185         * m4/sha512.m4 (gl_SHA512): Likewise.
81187 2009-01-19  Bruno Haible  <bruno@clisp.org>
81189         * modules/uniname/uniname-tests (Depends-on): Add progname.
81190         * tests/uniname/test-uninames.c: Include progname.h.
81191         (main): Call set_program_name.
81193         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
81194         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
81195         (main): Call set_program_name.
81197         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
81198         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
81199         (main): Call set_program_name.
81201         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
81202         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
81203         (main): Call set_program_name.
81205         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
81206         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
81207         (main): Call set_program_name.
81209         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
81210         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
81211         (main): Call set_program_name.
81213         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
81214         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
81215         (main): Call set_program_name.
81217         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
81218         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
81219         (main): Call set_program_name.
81221         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
81222         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
81223         (main): Call set_program_name.
81225 2009-01-19  Eric Blake  <ebb9@byu.net>
81227         test-unistd: test previous patch
81228         * tests/test-unistd.c: Test *_FILENO macros.
81230         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
81231         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
81232         Guarantee a definition.
81233         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
81234         * modules/unistd-safer (Depends-on): Add dependency on unistd.
81235         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
81236         * lib/dup-safer.c (STDERR_FILENO): Likewise.
81237         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
81238         Likewise.
81239         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
81240         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
81241         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
81242         Likewise.
81243         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
81244         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
81245         (STDERR_FILENO): Likewise.
81246         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
81247         (STDERR_FILENO): Likewise.
81248         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
81249         (STDERR_FILENO): Likewise.
81250         Reported by Elbert Pol.
81252 2009-01-19  Eric Blake  <ebb9@byu.net>
81254         doc: mention more functions added in cygwin 1.7.0
81255         * doc/posix-functions/abort.texi (abort): Update wording related
81256         to cygwin.
81257         * doc/posix-functions/daylight.texi (daylight): Likewise.
81258         * doc/posix-functions/optarg.texi (optarg): Likewise.
81259         * doc/posix-functions/optarg.texi (opterr): Likewise.
81260         * doc/posix-functions/optarg.texi (optind): Likewise.
81261         * doc/posix-functions/optarg.texi (optopt): Likewise.
81262         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
81263         worked in 1.5.x, and was withdrawn in 1.7.
81264         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
81265         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
81266         cygwin versions.
81267         * doc/posix-functions/perror.texi (perror): Likewise.
81268         * doc/posix-functions/printf.texi (printf): Likewise.
81269         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
81270         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
81271         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
81272         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
81273         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
81274         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
81275         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
81276         Likewise.
81277         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
81278         Likewise.
81279         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
81280         this function.
81281         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
81282         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
81283         Likewise.
81284         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
81285         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
81286         * doc/posix-functions/confstr.texi (confstr): Likewise.
81287         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
81288         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
81289         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
81290         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
81291         * doc/posix-functions/fputws.texi (fputws): Likewise.
81292         * doc/posix-functions/fwide.texi (fwide): Likewise.
81293         * doc/posix-functions/getwc.texi (getwc): Likewise.
81294         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
81295         * doc/posix-functions/putwc.texi (putwc): Likewise.
81296         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
81297         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
81298         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
81299         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
81300         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
81301         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
81302         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
81303         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
81304         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
81305         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
81306         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
81308 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
81310         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
81311         * lib/ioctl.c: Include <sys/ioctl.h>.
81313 2009-01-19  Simon Josefsson  <simon@josefsson.org>
81315         * modules/getdate-tests (Depends-on): Add progname.
81316         * tests/test-getdate.c: Use progname module, to avoid link errors
81317         on non-glibc systems.
81319 2009-01-18  Simon Josefsson  <simon@josefsson.org>
81321         * modules/filenamecat-tests (Depends-on): Add progname.
81322         * modules/fstrcmp-tests (Depends-on): Likewise.
81324         * tests/test-filenamecat.c: Use progname module, to avoid link
81325         errors on non-glibc systems.
81326         * tests/test-fstrcmp.c: Likewise.
81328 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
81330         gettimeofday: avoid warning: nested extern declaration of 'localtime'
81331         * lib/gettimeofday.c: Move extern declaration out of function.
81333 2009-01-18  Bruno Haible  <bruno@clisp.org>
81335         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
81336         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
81337         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
81339 2009-01-18  Bruno Haible  <bruno@clisp.org>
81341         * lib/strftime.c (MEMPCPY): Remove unused macro.
81342         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
81344 2009-01-18  Martin Lambers  <marlam@marlam.de>
81346         New module 'link'.
81347         * lib/unistd.in.h (link): New declaration.
81348         * lib/link.c: New file.
81349         * m4/link.m4: New file.
81350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
81351         HAVE_LINK.
81352         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
81353         * modules/link: New file.
81354         * doc/posix-functions/link.texi: Mention the new module.
81356 2009-01-18  Bruno Haible  <bruno@clisp.org>
81358         * tests/test-avltree_list.c (main): Call set_program_name.
81359         * tests/test-avltree_oset.c (main): Likewise.
81360         * tests/test-obstack-printf.c: Include progname.h.
81361         (main): Call set_program_name.
81362         * tests/test-quotearg.c: Include progname.h.
81363         (main): Call set_program_name.
81364         * tests/test-xmemdup0.c: Include progname.h.
81365         (main): Call set_program_name.
81367 2009-01-18  Bruno Haible  <bruno@clisp.org>
81369         New module 'alphasort'.
81370         * lib/dirent.in.h (alphasort): New declaration.
81371         * lib/alphasort.c: New file, from glibc with modifications.
81372         * m4/alphasort.m4: New file.
81373         * modules/alphasort: New file.
81374         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
81375         HAVE_ALPHASORT.
81376         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
81377         HAVE_ALPHASORT.
81378         * doc/posix-functions/alphasort.texi: Mention the new module and the
81379         portability problems.
81381 2009-01-18  Bruno Haible  <bruno@clisp.org>
81383         New module 'scandir'.
81384         * lib/dirent.in.h (scandir): New declaration.
81385         * lib/scandir.c: New file, from glibc with modifications.
81386         * m4/scandir.m4: New file.
81387         * modules/scandir: New file.
81388         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
81389         HAVE_SCANDIR.
81390         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
81391         HAVE_SCANDIR.
81392         * doc/posix-functions/scandir.texi: Mention the new module and the
81393         portability problems.
81395 2009-01-17  Bruno Haible  <bruno@clisp.org>
81397         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
81398         Update documentation.
81399         (func_remove_suffix): Escape all dots in the suffix. Update
81400         documentation.
81401         (func_filter_filelist): Update documentation.
81402         Reported by Ralf Wildenhues.
81404 2009-01-17  Bruno Haible  <bruno@clisp.org>
81406         * modules/dprintf-posix-tests: New file.
81407         * tests/test-dprintf-posix.sh: New file.
81408         * tests/test-dprintf-posix.c: New file.
81410         New modules 'dprintf', 'dprintf-posix'.
81411         * lib/stdio.in.h (dprintf): New declaration.
81412         * lib/dprintf.c: New file.
81413         * m4/dprintf.m4: New file.
81414         * m4/dprintf-posix.m4: New file.
81415         * modules/dprintf: New file.
81416         * modules/dprintf-posix: New file.
81417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
81418         HAVE_DPRINTF, REPLACE_DPRINTF.
81419         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
81420         HAVE_DPRINTF, REPLACE_DPRINTF.
81421         * doc/posix-functions/dprintf.texi: Mention the new modules.
81423 2009-01-17  Bruno Haible  <bruno@clisp.org>
81425         * modules/vdprintf-posix-tests: New file.
81426         * tests/test-vdprintf-posix.sh: New file.
81427         * tests/test-vdprintf-posix.c: New file.
81429         New modules 'vdprintf', 'vdprintf-posix'.
81430         * lib/stdio.in.h (vdprintf): New declaration.
81431         * lib/vdprintf.c: New file.
81432         * m4/vdprintf.m4: New file.
81433         * m4/vdprintf-posix.m4: New file.
81434         * modules/vdprintf: New file.
81435         * modules/vdprintf-posix: New file.
81436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
81437         HAVE_VDPRINTF, REPLACE_VDPRINTF.
81438         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
81439         HAVE_VDPRINTF, REPLACE_VDPRINTF.
81440         * doc/posix-functions/vdprintf.texi: Mention the new modules.
81442 2009-01-17  Bruno Haible  <bruno@clisp.org>
81444         Fix replacement of fopen on mingw.
81445         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
81446         mingw.
81448 2009-01-17  Bruno Haible  <bruno@clisp.org>
81450         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
81451         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
81453 2009-01-17  Bruno Haible  <bruno@clisp.org>
81455         Avoid test-fflush2.sh failure on mingw.
81456         * tests/test-fflush2.c: Include binary-io.h.
81457         (main): Put standard input into binary mode.
81458         * modules/fflush-tests (Depends-on): Add binary-io.
81460 2009-01-17  Bruno Haible  <bruno@clisp.org>
81462         * lib/wchar.in.h: In another particular situation, include only the
81463         system's <wchar.h> file.
81464         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
81465         Reported by Albert Chin-A-Young <china@thewrittenword.com>
81466         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
81468 2009-01-17  Bruno Haible  <bruno@clisp.org>
81470         Support for stripping executables in --enable-relocatable.
81471         * build-aux/install-reloc: Expect one more argument, or an environment
81472         variable RELOC_STRIP_PROG. If set, strip the destination program and
81473         its wrapper.
81474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
81475         RELOC_STRIP_PROG.
81476         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
81477         to set RELOCATABLE_STRIP.
81478         * NEWS: Mention the new Makefile requirement.
81480 2009-01-17  Bruno Haible  <bruno@clisp.org>
81482         * build-aux/install-reloc: Remove debugging information left over by
81483         C compiler on MacOS X.
81485 2009-01-17  Bruno Haible  <bruno@clisp.org>
81487         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
81488         * lib/progreloc.c (find_executable): Fix type of pointer passed to
81489         _NSGetExecutablePath.
81491 2009-01-16  Jim Meyering  <meyering@redhat.com>
81493         strerror: avoid warnings about discarding "const"
81494         * lib/strerror.c (rpl_strerror): Instead of returning a const
81495         string from each and every "case", use a variable, and add a single
81496         cast after the switch.
81498 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
81500         * lib/arpa_inet.in.h: Add extern "C" block for C++.
81502 2009-01-16  Bruno Haible  <bruno@clisp.org>
81504         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
81505         array initializer syntax that also works in C++ mode.
81506         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81508 2009-01-16  Jim Meyering  <meyering@redhat.com>
81510         poll: suppress a warning
81511         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
81512         to ignore "...unsigned expression < 0 is always false" warnings.
81514 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
81516         poll: remove declarations of unused variables
81517         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
81518         sockbuf and optlen.
81520 2009-01-15  Bruno Haible  <bruno@clisp.org>
81522         Make fflush-after-ungetc POSIX compliant on BSD systems.
81523         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
81524         (clear_ungetc_buffer): Implement also for other systems.
81525         (rpl_fflush): On glibc systems, invoke
81526         clear_ungetc_buffer_preserving_position. Otherwise, invoke
81527         clear_ungetc_buffer after fetching the stream's position, not before.
81529 2009-01-15  Bruno Haible  <bruno@clisp.org>
81531         Make fflush-after-ungetc POSIX compliant on glibc systems.
81532         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
81533         after ungetc.
81534         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
81535         (rpl_fflush): On glibc systems, simply call the system's fflush
81536         function after clearing the ungetc buffer.
81537         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
81538         Instead, lseek only to the end of file, then use the system's fseeko
81539         for the rest. On glibc systems, reset the EOF indicator bit.
81541 2009-01-15  Jim Meyering  <meyering@redhat.com>
81543         openmp.m4: revert quote-adding change, for portability to older autoconf
81544         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
81545         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
81546         Simon Josefsson noticed the problem when using autoconf-2.61.
81548 2009-01-15  Bruno Haible  <bruno@clisp.org>
81550         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
81551         * tests/test-fflush2.c (ASSERT): Always fail.
81552         (main): Add two tests for fflush() after ungetc(), taking into account
81553         the Austin Group's clarification.
81554         Suggested by Eric Blake.
81556 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
81558         mktime.m4: remove K&R-style function prototypes
81559         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
81560         for the Sun C++ compiler.
81562 2009-01-14  Bruno Haible  <bruno@clisp.org>
81564         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
81565         while including <wchar.h>.
81566         * lib/wchar.in.h: In two particular situations on HP-UX, include only
81567         the system's <wchar.h> file.
81568         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81570 2009-01-14  Bruno Haible  <bruno@clisp.org>
81572         * m4/csharp.m4: Don't mention gettext on the serial number line.
81573         * m4/csharpexec.m4: Likewise.
81574         * m4/eaccess.m4: Likewise.
81575         * m4/javaexec.m4: Likewise.
81576         * m4/sig_atomic_t.m4: Likewise.
81577         * m4/tmpdir.m4: Likewise.
81578         * m4/intldir.m4: Bump gettext version.
81579         * m4/lib-ld.m4: Likewise.
81581 2009-01-14  Bruno Haible  <bruno@clisp.org>
81583         * lib/progname.c (set_program_name): Add more comments.
81584         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
81586 2009-01-14  Simon Josefsson  <simon@josefsson.org>
81588         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
81589         were sys/stat.h does not define it.
81591 2009-01-14  Jim Meyering  <meyering@redhat.com>
81593         many *.m4 files: improve m4 quoting
81594         99% of this change was performed by running the following commands:
81595         git ls-files | grep '\.m4$' | xargs perl -pi \
81596           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
81597           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
81598           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
81599           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
81600         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
81601         The remainder were to add Copyright dates, increment serial numbers,
81602         undo some changes in comments, exclude m4/intl.m4, and add quotes
81603         around the "1" in ",1" where the unusual spacing prohibited the
81604         above regexps from doing the job.  For more details, see
81605         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
81606         * m4/acl.m4: Modified.
81607         * m4/afs.m4: Likewise.
81608         * m4/alloca.m4: Likewise.
81609         * m4/argp.m4: Likewise.
81610         * m4/argz.m4: Likewise.
81611         * m4/atexit.m4: Likewise.
81612         * m4/bison-i18n.m4: Likewise.
81613         * m4/bison.m4: Likewise.
81614         * m4/byteswap.m4: Likewise.
81615         * m4/c-stack.m4: Likewise.
81616         * m4/c-strtod.m4: Likewise.
81617         * m4/calloc.m4: Likewise.
81618         * m4/canonicalize-lgpl.m4: Likewise.
81619         * m4/chown.m4: Likewise.
81620         * m4/clock_time.m4: Likewise.
81621         * m4/codeset.m4: Likewise.
81622         * m4/copy-file.m4: Likewise.
81623         * m4/csharp.m4: Likewise.
81624         * m4/csharpcomp.m4: Likewise.
81625         * m4/csharpexec.m4: Likewise.
81626         * m4/d-ino.m4: Likewise.
81627         * m4/d-type.m4: Likewise.
81628         * m4/dirfd.m4: Likewise.
81629         * m4/double-slash-root.m4: Likewise.
81630         * m4/eaccess.m4: Likewise.
81631         * m4/eealloc.m4: Likewise.
81632         * m4/environ.m4: Likewise.
81633         * m4/errno_h.m4: Likewise.
81634         * m4/euidaccess.m4: Likewise.
81635         * m4/execute.m4: Likewise.
81636         * m4/fatal-signal.m4: Likewise.
81637         * m4/fchdir.m4: Likewise.
81638         * m4/fcntl_h.m4: Likewise.
81639         * m4/fileblocks.m4: Likewise.
81640         * m4/filenamecat.m4: Likewise.
81641         * m4/findprog.m4: Likewise.
81642         * m4/flexmember.m4: Likewise.
81643         * m4/fnmatch.m4: Likewise.
81644         * m4/fopen.m4: Likewise.
81645         * m4/fpending.m4: Likewise.
81646         * m4/fprintf-posix.m4: Likewise.
81647         * m4/free.m4: Likewise.
81648         * m4/frexp.m4: Likewise.
81649         * m4/frexpl.m4: Likewise.
81650         * m4/fsusage.m4: Likewise.
81651         * m4/ftruncate.m4: Likewise.
81652         * m4/gc-camellia.m4: Likewise.
81653         * m4/gc-random.m4: Likewise.
81654         * m4/gc.m4: Likewise.
81655         * m4/getaddrinfo.m4: Likewise.
81656         * m4/getcwd-abort-bug.m4: Likewise.
81657         * m4/getcwd-path-max.m4: Likewise.
81658         * m4/getdate.m4: Likewise.
81659         * m4/getdomainname.m4: Likewise.
81660         * m4/getgroups.m4: Likewise.
81661         * m4/gethostname.m4: Likewise.
81662         * m4/gethrxtime.m4: Likewise.
81663         * m4/getline.m4: Likewise.
81664         * m4/getloadavg.m4: Likewise.
81665         * m4/getndelim2.m4: Likewise.
81666         * m4/getpass.m4: Likewise.
81667         * m4/gettext.m4: Likewise.
81668         * m4/gettime.m4: Likewise.
81669         * m4/gettimeofday.m4: Likewise.
81670         * m4/gnulib-common.m4: Likewise.
81671         * m4/group-member.m4: Likewise.
81672         * m4/host-os.m4: Likewise.
81673         * m4/iconv.m4: Likewise.
81674         * m4/iconv_open.m4: Likewise.
81675         * m4/inet_ntop.m4: Likewise.
81676         * m4/inet_pton.m4: Likewise.
81677         * m4/inline.m4: Likewise.
81678         * m4/intldir.m4: Likewise.
81679         * m4/intlmacosx.m4: Likewise.
81680         * m4/intmax.m4: Likewise.
81681         * m4/intmax_t.m4: Likewise.
81682         * m4/inttypes.m4: Likewise.
81683         * m4/inttypes_h.m4: Likewise.
81684         * m4/inttypes-pri.m4: Likewise.
81685         * m4/isapipe.m4: Likewise.
81686         * m4/isnand.m4: Likewise.
81687         * m4/isnanf.m4: Likewise.
81688         * m4/isnanl.m4: Likewise.
81689         * m4/javacomp.m4: Likewise.
81690         * m4/javaexec.m4: Likewise.
81691         * m4/jm-winsz1.m4: Likewise.
81692         * m4/jm-winsz2.m4: Likewise.
81693         * m4/lchown.m4: Likewise.
81694         * m4/lcmessage.m4: Likewise.
81695         * m4/ldexpl.m4: Likewise.
81696         * m4/lib-ld.m4: Likewise.
81697         * m4/lib-link.m4: Likewise.
81698         * m4/libsigsegv.m4: Likewise.
81699         * m4/link-follow.m4: Likewise.
81700         * m4/localcharset.m4: Likewise.
81701         * m4/locale-fr.m4: Likewise.
81702         * m4/locale-ja.m4: Likewise.
81703         * m4/locale-tr.m4: Likewise.
81704         * m4/locale-zh.m4: Likewise.
81705         * m4/lock.m4: Likewise.
81706         * m4/longlong.m4: Likewise.
81707         * m4/ls-mntd-fs.m4: Likewise.
81708         * m4/lstat.m4: Likewise.
81709         * m4/malloc.m4: Likewise.
81710         * m4/mathl.m4: Likewise.
81711         * m4/mbrtowc.m4: Likewise.
81712         * m4/mbstate_t.m4: Likewise.
81713         * m4/mbswidth.m4: Likewise.
81714         * m4/memchr.m4: Likewise.
81715         * m4/memcmp.m4: Likewise.
81716         * m4/memcpy.m4: Likewise.
81717         * m4/memmem.m4: Likewise.
81718         * m4/memmove.m4: Likewise.
81719         * m4/mempcpy.m4: Likewise.
81720         * m4/memrchr.m4: Likewise.
81721         * m4/memset.m4: Likewise.
81722         * m4/minmax.m4: Likewise.
81723         * m4/mkdir-slash.m4: Likewise.
81724         * m4/mkdtemp.m4: Likewise.
81725         * m4/mktime.m4: Likewise.
81726         * m4/mmap-anon.m4: Likewise.
81727         * m4/mountlist.m4: Likewise.
81728         * m4/nanosleep.m4: Likewise.
81729         * m4/nls.m4: Likewise.
81730         * m4/nocrash.m4: Likewise.
81731         * m4/open.m4: Likewise.
81732         * m4/openat.m4: Likewise.
81733         * m4/openmp.m4: Likewise.
81734         * m4/pathmax.m4: Likewise.
81735         * m4/perl.m4: Likewise.
81736         * m4/physmem.m4: Likewise.
81737         * m4/pipe.m4: Likewise.
81738         * m4/po.m4: Likewise.
81739         * m4/poll.m4: Likewise.
81740         * m4/posixtm.m4: Likewise.
81741         * m4/posixver.m4: Likewise.
81742         * m4/printf-frexp.m4: Likewise.
81743         * m4/printf-frexpl.m4: Likewise.
81744         * m4/printf-posix.m4: Likewise.
81745         * m4/printf-posix-rpl.m4: Likewise.
81746         * m4/printf.m4: Likewise.
81747         * m4/progtest.m4: Likewise.
81748         * m4/putenv.m4: Likewise.
81749         * m4/readline.m4: Likewise.
81750         * m4/readlink.m4: Likewise.
81751         * m4/readutmp.m4: Likewise.
81752         * m4/realloc.m4: Likewise.
81753         * m4/regex.m4: Likewise.
81754         * m4/relocatable.m4: Likewise.
81755         * m4/relocatable-lib.m4: Likewise.
81756         * m4/rename-dest-slash.m4: Likewise.
81757         * m4/rename.m4: Likewise.
81758         * m4/rmdir-errno.m4: Likewise.
81759         * m4/rmdir.m4: Likewise.
81760         * m4/roundf.m4: Likewise.
81761         * m4/roundl.m4: Likewise.
81762         * m4/rpmatch.m4: Likewise.
81763         * m4/save-cwd.m4: Likewise.
81764         * m4/selinux-selinux-h.m4: Likewise.
81765         * m4/setenv.m4: Likewise.
81766         * m4/settime.m4: Likewise.
81767         * m4/sig2str.m4: Likewise.
81768         * m4/sig_atomic_t.m4: Likewise.
81769         * m4/signalblocking.m4: Likewise.
81770         * m4/signbit.m4: Likewise.
81771         * m4/sigpipe.m4: Likewise.
81772         * m4/sockets.m4: Likewise.
81773         * m4/sockpfaf.m4: Likewise.
81774         * m4/st_dm_mode.m4: Likewise.
81775         * m4/stat-time.m4: Likewise.
81776         * m4/stdbool.m4: Likewise.
81777         * m4/stdint.m4: Likewise.
81778         * m4/stdint_h.m4: Likewise.
81779         * m4/stpcpy.m4: Likewise.
81780         * m4/stpncpy.m4: Likewise.
81781         * m4/strcase.m4: Likewise.
81782         * m4/strchrnul.m4: Likewise.
81783         * m4/strcspn.m4: Likewise.
81784         * m4/strdup.m4: Likewise.
81785         * m4/strftime.m4: Likewise.
81786         * m4/strndup.m4: Likewise.
81787         * m4/strnlen.m4: Likewise.
81788         * m4/strpbrk.m4: Likewise.
81789         * m4/strptime.m4: Likewise.
81790         * m4/strsep.m4: Likewise.
81791         * m4/strtod.m4: Likewise.
81792         * m4/strtoimax.m4: Likewise.
81793         * m4/strtok_r.m4: Likewise.
81794         * m4/strtol.m4: Likewise.
81795         * m4/strtoll.m4: Likewise.
81796         * m4/strtoul.m4: Likewise.
81797         * m4/strtoull.m4: Likewise.
81798         * m4/strtoumax.m4: Likewise.
81799         * m4/strverscmp.m4: Likewise.
81800         * m4/threadlib.m4: Likewise.
81801         * m4/timegm.m4: Likewise.
81802         * m4/tm_gmtoff.m4: Likewise.
81803         * m4/tmpdir.m4: Likewise.
81804         * m4/tmpfile.m4: Likewise.
81805         * m4/tzset.m4: Likewise.
81806         * m4/uintmax_t.m4: Likewise.
81807         * m4/unlinkdir.m4: Likewise.
81808         * m4/unlocked-io.m4: Likewise.
81809         * m4/uptime.m4: Likewise.
81810         * m4/userspec.m4: Likewise.
81811         * m4/utimbuf.m4: Likewise.
81812         * m4/utime.m4: Likewise.
81813         * m4/utimes-null.m4: Likewise.
81814         * m4/utimes.m4: Likewise.
81815         * m4/vararrays.m4: Likewise.
81816         * m4/vasnprintf.m4: Likewise.
81817         * m4/vfprintf-posix.m4: Likewise.
81818         * m4/vprintf-posix.m4: Likewise.
81819         * m4/wait-process.m4: Likewise.
81820         * m4/wchar_t.m4: Likewise.
81821         * m4/wint_t.m4: Likewise.
81822         * m4/write-any-file.m4: Likewise.
81823         * m4/yield.m4: Likewise.
81825 2009-01-13  Bruno Haible  <bruno@clisp.org>
81827         Avoid test-copy-file.sh failures when ACL support insufficient.
81828         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
81829         TESTS_ENVIRONMENT.
81830         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
81831         Reported by Jim Meyering.
81833 2009-01-13  Bruno Haible  <bruno@clisp.org>
81835         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
81836         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
81837         * modules/unistdio/u8-printf-parse (Files): Likewise.
81838         * modules/unistdio/u32-printf-parse (Files): Likewise.
81839         * modules/unistdio/ulc-printf-parse (Files): Likewise.
81841 2009-01-13  Simon Josefsson  <simon@josefsson.org>
81843         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
81844         and m4/inttypes_h.m4 too.
81846 2009-01-12  Eric Blake  <ebb9@byu.net>
81848         tests: IRIX 6.2 cc can't compile -0.0 into .data
81849         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
81850         rather than at compile-time.
81851         * tests/test-floorl.c (minus_zero): Likewise.
81852         * tests/test-frexpl.c (minus_zero): Likewise.
81853         * tests/test-isnan.c (minus_zerol): Likewise.
81854         * tests/test-isnanl.h (minus_zero): Likewise.
81855         * tests/test-ldexpl.c (minus_zero): Likewise.
81856         * tests/test-roundl.c (minus_zero): Likewise.
81857         * tests/test-signbit.c (minus_zerol): Likewise.
81858         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
81859         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
81860         * tests/test-truncl.c (minus_zero): Likewise.
81861         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
81862         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
81863         Reported by Tom G. Christensen and Nelson H. F. Beebe.
81865 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
81867         regex: fix glibc bug 9697
81868         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
81869         handling.
81871 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
81873         regex: fix glibc bug 697
81874         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
81875         being NULL also if there are no backreferences.
81877 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
81879         regex: merge glibc changes
81880         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
81881         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
81882         re_string_skip_chars, re_string_reconstruct): Likewise.
81883         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
81885 2009-01-07  Jim Meyering  <meyering@redhat.com>
81887         poll: filter through cppi
81888         * lib/poll.c: Indent cpp directives to reflect nesting.
81890 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
81892         poll: don't return uninitialized
81893         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
81895 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
81897         avoid compile failure on AIX 6.1
81898         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
81899         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
81901 2009-01-04  Jim Meyering  <meyering@redhat.com>
81903         remove duplicate inclusion of <stdio.h>
81904         * tests/test-fprintf-posix.c: Likewise.
81905         * tests/test-printf-posix.c: Likewise.
81906         * tests/test-snprintf-posix.c: Likewise.
81907         * tests/test-sprintf-posix.c: Likewise.
81908         * tests/test-vasprintf-posix.c: Likewise.
81909         * tests/test-vfprintf-posix.c: Likewise.
81910         * tests/test-vprintf-posix.c: Likewise.
81911         * tests/test-vsnprintf-posix.c: Likewise.
81912         * tests/test-vsprintf-posix.c: Likewise.
81914 2009-01-03  Jim Meyering  <meyering@redhat.com>
81916         gnulib-tool: fix sed-based filtering
81917         * gnulib-tool (func_filter_filelist): Remove extra backslash
81918         in sed_fff_filter definition.
81920 2009-01-02  Jim Meyering  <meyering@redhat.com>
81922         strftime: avoid compilation failure on Solaris 2.6
81923         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
81924         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
81925         Don't #define mbrlen or mbsinit, since now they're guaranteed to
81926         be available.  Reported by Tom G. Christensen.  Details in
81927         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
81929 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81930             Bruno Haible  <bruno@clisp.org>
81932         Speed up gnulib-tool by doing more string processing through shell
81933         built-ins.
81934         * gnulib-tool (fast_func_append): New variable.
81935         (func_remove_prefix, func_remove_suffix): New functions.
81936         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
81937         (func_filter_filelist): New function.
81938         (func_get_dependencies): Use func_remove_suffix instead of sed.
81939         (func_get_automake_snippet): Use func_filter_filelist instead of a
81940         subshell and sed invocation.
81942 2009-01-01  Bruno Haible  <bruno@clisp.org>
81944         Fix a security bug.
81945         * gnulib-tool (func_import, import, update): Don't allow the characters
81946         '"', '$', '`', '\' in macro arguments that become part of commands that
81947         are evaluated.
81949 2009-01-01  Bruno Haible  <bruno@clisp.org>
81951         * gnulib-tool (func_reset_sigpipe): Add more comments.
81953 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81955         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
81956         func_emit_tests_Makefile_am, func_import): Abort loops early if we
81957         already know the answer.
81959 2009-01-01  Jim Meyering  <meyering@redhat.com>
81961         * lib/version-etc.c (version_etc_va): Update copyright year.
81963 2008-12-30  Bruno Haible  <bruno@clisp.org>
81965         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
81966         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
81967         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
81969 2008-12-29  Eric Blake  <ebb9@byu.net>
81971         multiarch: avoid autoconf AC_REQUIRE bug
81972         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
81973         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
81974         2.63 and older.
81975         Reported by Bruno Haible, and analyzed in
81976         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
81978 2008-12-29  Bruno Haible  <bruno@clisp.org>
81980         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
81981         files in subdirectories correctly.
81982         Reported by Ralf Wildenhues.
81984 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81986         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
81987         rather than 'join FILE -', for Solaris join.
81989 2008-12-29  Bruno Haible  <bruno@clisp.org>
81991         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
81992         quoting.
81993         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81994         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
81995         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
81996         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
81997         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
81998         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
81999         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
82000         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
82001         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
82002         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
82003         * m4/nls.m4 (AM_NLS): Likewise.
82004         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
82005         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
82006         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82007         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
82008         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
82009         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
82010         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
82011         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
82012         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
82013         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
82014         * m4/xsize.m4 (gl_XSIZE): Likewise.
82015         Suggested by Jim Meyering.
82017 2008-11-17  Bruce Korb  <bkorb@gnu.org>
82019         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
82020         * lib/parse-duration.c: use a switch instead of cascading if's.
82022 2008-12-29  Eric Blake  <ebb9@byu.net>
82024         wchar.h: supply WEOF on Irix 5.3
82025         * lib/wchar.in.h (wint_t): Also supply WEOF.
82026         * lib/wctype.in.h (wint_t): Likewise.
82027         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
82028         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
82029         Reported by Tom G. Christensen.
82031 2008-12-26  Bruno Haible  <bruno@clisp.org>
82033         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
82034         i486, i586, i686.
82036 2008-12-26  Bruno Haible  <bruno@clisp.org>
82038         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
82040 2008-12-26  Bruno Haible  <bruno@clisp.org>
82042         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
82043         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
82044         not __STDC_CONSTANT_MACROS.
82045         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
82047 2008-12-25  Bruno Haible  <bruno@clisp.org>
82049         Add support for universal builds to vasnprintf.
82050         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
82051         universal builds, guess no.
82052         * modules/vasnprintf-posix (Depends-on): Add multiarch.
82053         * modules/vasprintf-posix (Depends-on): Likewise.
82054         * modules/fprintf-posix (Depends-on): Likewise.
82055         * modules/vfprintf-posix (Depends-on): Likewise.
82056         * modules/snprintf-posix (Depends-on): Likewise.
82057         * modules/vsnprintf-posix (Depends-on): Likewise.
82058         * modules/sprintf-posix (Depends-on): Likewise.
82059         * modules/vsprintf-posix (Depends-on): Likewise.
82060         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
82061         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82062         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82063         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82064         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82065         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82066         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82068         Add support for universal builds to <inttypes.h>.
82069         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
82070         _SCNu64_PREFIX): In Apple
82071         universal builds, define directly, using _LP64.
82072         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
82073         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
82074         * modules/inttypes (Depends-on): Add multiarch.
82075         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
82077         Add support for universal builds to <stdint.h>.
82078         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
82079         universal builds, define directly, using _LP64.
82080         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
82081         Apple universal builds, don't test for the size and suffix of ptrdiff_t
82082         and size_t.
82083         * modules/stdint (Depends-on): Add multiarch.
82084         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
82086         New module 'multiarch'.
82087         * modules/multiarch: New file.
82088         * m4/multiarch.m4: New file.
82090 2008-12-25  Bruno Haible  <bruno@clisp.org>
82092         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
82094 2008-12-25  Bruno Haible  <bruno@clisp.org>
82096         * modules/btowc (License): Relicense under LGPLv2+.
82097         * modules/mbsinit (License): Likewise.
82098         * modules/mbrtowc (License): Likewise.
82099         * modules/wcrtomb (License): Likewise.
82100         * modules/streq (License): Likewise.
82101         Reported by David Lutterkort <lutter@redhat.com>.
82103 2008-12-23  Bruno Haible  <bruno@clisp.org>
82105         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
82107 2008-12-23  Bruno Haible  <bruno@clisp.org>
82109         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
82110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
82111         GETADDRINFO_LIB, not in LIBS.
82112         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
82113         * modules/canon-host (Link): Likewise.
82114         * NEWS: Mention the change.
82115         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
82116         GETADDRINFO_LIB.
82118 2008-12-22  Bruno Haible  <bruno@clisp.org>
82120         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
82121         * doc/posix-functions/iswalpha_l.texi: Likewise.
82122         * doc/posix-functions/iswblank_l.texi: Likewise.
82123         * doc/posix-functions/iswcntrl_l.texi: Likewise.
82124         * doc/posix-functions/iswctype_l.texi: Likewise.
82125         * doc/posix-functions/iswdigit_l.texi: Likewise.
82126         * doc/posix-functions/iswgraph_l.texi: Likewise.
82127         * doc/posix-functions/iswlower_l.texi: Likewise.
82128         * doc/posix-functions/iswprint_l.texi: Likewise.
82129         * doc/posix-functions/iswpunct_l.texi: Likewise.
82130         * doc/posix-functions/iswspace_l.texi: Likewise.
82131         * doc/posix-functions/iswupper_l.texi: Likewise.
82132         * doc/posix-functions/iswxdigit_l.texi: Likewise.
82133         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
82134         * doc/posix-functions/open_wmemstream.texi: Likewise.
82135         * doc/posix-functions/swscanf.texi: Likewise.
82136         * doc/posix-functions/towctrans_l.texi: Likewise.
82137         * doc/posix-functions/towlower.texi: Likewise.
82138         * doc/posix-functions/towlower_l.texi: Likewise.
82139         * doc/posix-functions/towupper.texi: Likewise.
82140         * doc/posix-functions/towupper_l.texi: Likewise.
82141         * doc/posix-functions/vfwprintf.texi: Likewise.
82142         * doc/posix-functions/vfwscanf.texi: Likewise.
82143         * doc/posix-functions/vswscanf.texi: Likewise.
82144         * doc/posix-functions/vwprintf.texi: Likewise.
82145         * doc/posix-functions/vwscanf.texi: Likewise.
82146         * doc/posix-functions/wcpcpy.texi: Likewise.
82147         * doc/posix-functions/wcpncpy.texi: Likewise.
82148         * doc/posix-functions/wcscasecmp.texi: Likewise.
82149         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
82150         * doc/posix-functions/wcscoll_l.texi: Likewise.
82151         * doc/posix-functions/wcsdup.texi: Likewise.
82152         * doc/posix-functions/wcsncasecmp.texi: Likewise.
82153         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
82154         * doc/posix-functions/wcsnlen.texi: Likewise.
82155         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82156         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
82157         * doc/posix-functions/wctrans_l.texi: Likewise.
82158         * doc/posix-functions/wctype_l.texi: Likewise.
82159         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
82160         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
82161         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
82162         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
82163         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
82164         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
82165         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
82166         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
82167         * doc/glibc-functions/wcschrnul.texi: Likewise.
82168         * doc/glibc-functions/wcsftime_l.texi: Likewise.
82169         * doc/glibc-functions/wcstod_l.texi: Likewise.
82170         * doc/glibc-functions/wcstof_l.texi: Likewise.
82171         * doc/glibc-functions/wcstol_l.texi: Likewise.
82172         * doc/glibc-functions/wcstold_l.texi: Likewise.
82173         * doc/glibc-functions/wcstoll_l.texi: Likewise.
82174         * doc/glibc-functions/wcstoq.texi: Likewise.
82175         * doc/glibc-functions/wcstoul_l.texi: Likewise.
82176         * doc/glibc-functions/wcstoull_l.texi: Likewise.
82177         * doc/glibc-functions/wcstouq.texi: Likewise.
82178         * doc/glibc-functions/wmempcpy.texi: Likewise.
82180 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
82181             Eric Blake  <ebb9@byu.net>
82182             Paolo Bonzini  <bonzini@gnu.org>
82183             Bruno Haible  <bruno@clisp.org>
82185         Make c-stack work on Haiku.
82186         * lib/c-stack.c (SA_ONSTACK): Define fallback.
82187         (c_stack_action): Use SA_ONSTACK flag.
82189 2008-12-22  Bruno Haible  <bruno@clisp.org>
82191         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
82193 2008-12-22  Bruno Haible  <bruno@clisp.org>
82195         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
82196         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
82197         being overridden.
82198         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
82199         New macros.
82200         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
82201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
82202         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
82203         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
82205 2008-12-22  Bruno Haible  <bruno@clisp.org>
82207         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
82208         from test code.
82210 2008-12-22  Eric Blake  <ebb9@byu.net>
82212         Avoid gcc warnings on cygwin.
82213         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
82214         Avoid unused variable.
82215         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
82216         Likewise.
82218 2008-12-22  Bruno Haible  <bruno@clisp.org>
82220         Remove HAVE_MBRTOWC conditionals.
82221         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
82222         (mbscasecmp): Assume mbrtowc function.
82223         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
82224         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
82225         * lib/mbschr.c: Include mbuiter.h unconditionally.
82226         (mbschr): Assume mbrtowc function.
82227         * lib/mbscspn.c: Include mbuiter.h unconditionally.
82228         (mbscspn): Assume mbrtowc function.
82229         * lib/mbslen.c: Include mbuiter.h unconditionally.
82230         (mbslen): Assume mbrtowc function.
82231         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
82232         (mbsncasecmp): Assume mbrtowc function.
82233         * lib/mbsnlen.c: Include mbiter.h unconditionally.
82234         (mbsnlen): Assume mbrtowc function.
82235         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
82236         (mbspbrk): Assume mbrtowc function.
82237         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
82238         (mbspcasecmp): Assume mbrtowc function.
82239         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
82240         (mbsrchr): Assume mbrtowc function.
82241         * lib/mbssep.c: Include mbuiter.h unconditionally.
82242         (mbssep): Assume mbrtowc function.
82243         * lib/mbsspn.c: Include mbuiter.h unconditionally.
82244         (mbsspn): Assume mbrtowc function.
82245         * lib/mbsstr.c: Include mbuiter.h unconditionally.
82246         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
82247         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
82248         (mbstok_r): Assume mbrtowc function.
82249         * lib/propername.c: Include mbuiter.h unconditionally.
82250         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
82251         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
82252         (trim2): Assume mbrtowc function.
82253         * lib/mbswidth.c (mbsinit): Remove fallback definition.
82254         (mbsnwidth): Assume mbrtowc function.
82255         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
82256         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
82257         fallback definitions.
82258         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
82260 2008-12-22  Bruno Haible  <bruno@clisp.org>
82262         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
82264 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
82266         * modules/regex: Request emulations for the mb*/wc* functions we need.
82267         * m4/regex.m4: Don't look for those functions here.
82268         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
82270 2008-12-22  Bruno Haible  <bruno@clisp.org>
82272         * modules/fnmatch (Depends-on): Remove duplicated dependency.
82274 2008-12-21  Bruno Haible  <bruno@clisp.org>
82276         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
82277         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
82278         (Include): Remove conditionalization.
82279         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
82280         (Include): Remove conditionalization.
82281         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
82282         (Include): Remove conditionalization.
82283         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
82284         * m4/mbfile.m4 (gl_MBFILE): Likewise.
82285         * NEWS: Mention the change.
82286         Reported by Alan Hourihane <alanh@fairlite.co.uk>
82287         via Sergey Poznyakoff <gray@gnu.org.ua>.
82289 2008-12-21  Bruno Haible  <bruno@clisp.org>
82291         * MODULES.html.sh (Extended multibyte and wide character utilities
82292         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
82293         wcrtomb, wcsrtombs.
82294         (Support for systems lacking POSIX:2008): Add accept, bind, close,
82295         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
82296         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
82297         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
82299 2008-12-21  Bruno Haible  <bruno@clisp.org>
82301         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
82303 2008-12-21  Bruno Haible  <bruno@clisp.org>
82305         * modules/wcsnrtombs-tests: New file.
82306         * tests/test-wcsnrtombs1.sh: New file.
82307         * tests/test-wcsnrtombs2.sh: New file.
82308         * tests/test-wcsnrtombs3.sh: New file.
82309         * tests/test-wcsnrtombs4.sh: New file.
82310         * tests/test-wcsnrtombs.c: New file.
82312         New module 'wcsnrtombs'.
82313         * lib/wchar.in.h (wcsnrtombs): New declaration.
82314         * lib/wcsnrtombs.c: New file.
82315         * lib/wcsrtombs-state.c: New file.
82316         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
82317         (internal_state): Remove variable.
82318         * m4/wcsnrtombs.m4: New file.
82319         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
82320         compilation units.
82321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
82322         HAVE_WCSNRTOMBS.
82323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
82324         HAVE_WCSNRTOMBS.
82325         * modules/wcsnrtombs: New file.
82326         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
82327         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
82329 2008-12-21  Bruno Haible  <bruno@clisp.org>
82331         * modules/wcsrtombs-tests: New file.
82332         * tests/test-wcsrtombs1.sh: New file.
82333         * tests/test-wcsrtombs2.sh: New file.
82334         * tests/test-wcsrtombs3.sh: New file.
82335         * tests/test-wcsrtombs4.sh: New file.
82336         * tests/test-wcsrtombs.c: New file.
82338         New module 'wcsrtombs'.
82339         * lib/wchar.in.h (wcsrtombs): New declaration.
82340         * lib/wcsrtombs.c: New file.
82341         * m4/wcsrtombs.m4: New file.
82342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
82343         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
82344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
82345         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
82346         * modules/wcsrtombs: New file.
82347         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
82348         bugs.
82350 2008-12-21  Bruno Haible  <bruno@clisp.org>
82352         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
82353         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
82354         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
82355         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
82356         if not correct.
82357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
82358         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
82359         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
82360         m4/locale-zh.m4, m4/codeset.m4.
82361         * doc/posix-functions/wcrtomb.texi: Document the bug.
82363 2008-12-21  Bruno Haible  <bruno@clisp.org>
82365         Work around a btowc() bug on IRIX 6.5.
82366         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
82367         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
82368         REPLACE_WTOBC if not.
82369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
82370         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
82371         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
82373 2008-12-21  Bruno Haible  <bruno@clisp.org>
82375         * modules/wcrtomb-tests: New file.
82376         * tests/test-wcrtomb.sh: New file.
82377         * tests/test-wcrtomb.c: New file.
82379         New module 'wcrtomb'.
82380         * lib/wchar.in.h (wcrtomb): New declaration.
82381         * lib/wcrtomb.c: New file.
82382         * m4/wcrtomb.m4: New file.
82383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
82384         HAVE_WCRTOMB.
82385         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
82386         HAVE_WCRTOMB.
82387         * modules/wcrtomb: New file.
82388         * doc/posix-functions/wcrtomb.texi: Mention the new module.
82390 2008-12-21  Bruno Haible  <bruno@clisp.org>
82392         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
82393         * modules/mbsrtowcs (Files): Likewise.
82394         * modules/wctob (Files): Likewise.
82395         * modules/c-strcase-tests (Files): Likewise.
82396         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
82397         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
82398         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
82399         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
82400         * modules/vasnprintf-posix-tests (Files): Likewise.
82402 2008-12-21  William Pursell  <bill.pursell@gmail.com>
82404         gitlog-to-changelog: pass all command-line arguments to git-log
82405         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
82406         it is sometimes convenient to filter the commits in various ways.
82407         gitlog-to-changelog only allows --since to specify a start date,
82408         but git-log itself supports many other filtering mechanisms.
82409         At the moment, I want to filter by branch name.  Rather than
82410         adding a --branch option to gitlog-to-changelog, it seems more
82411         flexible to simply pass all options directly to git-log and let
82412         git do the work.  Notice that this effectively makes --since a
82413         redundant option for gitlog-to-changelog, but removing it would
82414         require current usage to change since calls would then require
82415         an additional '--'.
82417 2008-12-21  Bruno Haible  <bruno@clisp.org>
82419         * modules/mbsnrtowcs-tests: New file.
82420         * tests/test-mbsnrtowcs1.sh: New file.
82421         * tests/test-mbsnrtowcs2.sh: New file.
82422         * tests/test-mbsnrtowcs3.sh: New file.
82423         * tests/test-mbsnrtowcs4.sh: New file.
82424         * tests/test-mbsnrtowcs.c: New file.
82426         New module 'mbsnrtowcs'.
82427         * lib/wchar.in.h (mbsnrtowcs): New declaration.
82428         * lib/mbsnrtowcs.c: New file.
82429         * lib/mbsrtowcs-state.c: New file.
82430         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
82431         (internal_state): Remove variable.
82432         * m4/mbsnrtowcs.m4: New file.
82433         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
82434         compilation units.
82435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
82436         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
82437         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
82438         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
82439         * modules/mbsnrtowcs: New file.
82440         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
82441         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
82442         portability problem.
82444 2008-12-21  Bruno Haible  <bruno@clisp.org>
82446         Work around mbsrtowcs bug.
82447         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
82448         (gl_FUNC_MBSRTOWCS): Invoke it.
82449         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
82450         m4/locale-zh.m4.
82451         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
82453 2008-12-21  Bruno Haible  <bruno@clisp.org>
82455         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
82457 2008-12-21  Bruno Haible  <bruno@clisp.org>
82459         Update doc for AIX.
82460         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
82461         16-bit wchar_t type.
82462         * doc/posix-functions/btowc.texi: Likewise.
82463         * doc/posix-functions/fgetwc.texi: Likewise.
82464         * doc/posix-functions/fgetws.texi: Likewise.
82465         * doc/posix-functions/fputwc.texi: Likewise.
82466         * doc/posix-functions/fputws.texi: Likewise.
82467         * doc/posix-functions/fwide.texi: Likewise.
82468         * doc/posix-functions/fwprintf.texi: Likewise.
82469         * doc/posix-functions/fwscanf.texi: Likewise.
82470         * doc/posix-functions/getwchar.texi: Likewise.
82471         * doc/posix-functions/getwc.texi: Likewise.
82472         * doc/posix-functions/iswalnum.texi: Likewise.
82473         * doc/posix-functions/iswalpha.texi: Likewise.
82474         * doc/posix-functions/iswblank.texi: Likewise.
82475         * doc/posix-functions/iswcntrl.texi: Likewise.
82476         * doc/posix-functions/iswctype.texi: Likewise.
82477         * doc/posix-functions/iswdigit.texi: Likewise.
82478         * doc/posix-functions/iswgraph.texi: Likewise.
82479         * doc/posix-functions/iswlower.texi: Likewise.
82480         * doc/posix-functions/iswprint.texi: Likewise.
82481         * doc/posix-functions/iswpunct.texi: Likewise.
82482         * doc/posix-functions/iswspace.texi: Likewise.
82483         * doc/posix-functions/iswupper.texi: Likewise.
82484         * doc/posix-functions/iswxdigit.texi: Likewise.
82485         * doc/posix-functions/mbrtowc.texi: Likewise.
82486         * doc/posix-functions/mbsrtowcs.texi: Likewise.
82487         * doc/posix-functions/mbstowcs.texi: Likewise.
82488         * doc/posix-functions/mbtowc.texi: Likewise.
82489         * doc/posix-functions/putwchar.texi: Likewise.
82490         * doc/posix-functions/putwc.texi: Likewise.
82491         * doc/posix-functions/swprintf.texi: Likewise.
82492         * doc/posix-functions/tolower.texi: Likewise.
82493         * doc/posix-functions/toupper.texi: Likewise.
82494         * doc/posix-functions/towctrans.texi: Likewise.
82495         * doc/posix-functions/ungetwc.texi: Likewise.
82496         * doc/posix-functions/vswprintf.texi: Likewise.
82497         * doc/posix-functions/wcrtomb.texi: Likewise.
82498         * doc/posix-functions/wcscat.texi: Likewise.
82499         * doc/posix-functions/wcschr.texi: Likewise.
82500         * doc/posix-functions/wcscmp.texi: Likewise.
82501         * doc/posix-functions/wcscoll.texi: Likewise.
82502         * doc/posix-functions/wcscpy.texi: Likewise.
82503         * doc/posix-functions/wcscspn.texi: Likewise.
82504         * doc/posix-functions/wcsftime.texi: Likewise.
82505         * doc/posix-functions/wcslen.texi: Likewise.
82506         * doc/posix-functions/wcsncat.texi: Likewise.
82507         * doc/posix-functions/wcsncmp.texi: Likewise.
82508         * doc/posix-functions/wcsncpy.texi: Likewise.
82509         * doc/posix-functions/wcspbrk.texi: Likewise.
82510         * doc/posix-functions/wcsrchr.texi: Likewise.
82511         * doc/posix-functions/wcsrtombs.texi: Likewise.
82512         * doc/posix-functions/wcsspn.texi: Likewise.
82513         * doc/posix-functions/wcsstr.texi: Likewise.
82514         * doc/posix-functions/wcstod.texi: Likewise.
82515         * doc/posix-functions/wcstof.texi: Likewise.
82516         * doc/posix-functions/wcstoimax.texi: Likewise.
82517         * doc/posix-functions/wcstok.texi: Likewise.
82518         * doc/posix-functions/wcstold.texi: Likewise.
82519         * doc/posix-functions/wcstoll.texi: Likewise.
82520         * doc/posix-functions/wcstol.texi: Likewise.
82521         * doc/posix-functions/wcstombs.texi: Likewise.
82522         * doc/posix-functions/wcstoull.texi: Likewise.
82523         * doc/posix-functions/wcstoul.texi: Likewise.
82524         * doc/posix-functions/wcstoumax.texi: Likewise.
82525         * doc/posix-functions/wcswidth.texi: Likewise.
82526         * doc/posix-functions/wcsxfrm.texi: Likewise.
82527         * doc/posix-functions/wctob.texi: Likewise.
82528         * doc/posix-functions/wctomb.texi: Likewise.
82529         * doc/posix-functions/wctrans.texi: Likewise.
82530         * doc/posix-functions/wctype.texi: Likewise.
82531         * doc/posix-functions/wcwidth.texi: Likewise.
82532         * doc/posix-functions/wmemchr.texi: Likewise.
82533         * doc/posix-functions/wmemcmp.texi: Likewise.
82534         * doc/posix-functions/wmemcpy.texi: Likewise.
82535         * doc/posix-functions/wmemmove.texi: Likewise.
82536         * doc/posix-functions/wmemset.texi: Likewise.
82537         * doc/posix-functions/wprintf.texi: Likewise.
82538         * doc/posix-functions/wscanf.texi: Likewise.
82540 2008-12-21  Bruno Haible  <bruno@clisp.org>
82542         Update doc for HP-UX 11.11.
82543         * doc/posix-functions/btowc.texi: Clarify that the function is missing
82544         in HP-UX version 11.00, not in all versions of HP-UX 11.
82545         * doc/posix-functions/fwide.texi: Likewise.
82546         * doc/posix-functions/fwprintf.texi: Likewise.
82547         * doc/posix-functions/fwscanf.texi: Likewise.
82548         * doc/posix-functions/inet_ntop.texi: Likewise.
82549         * doc/posix-functions/inet_pton.texi: Likewise.
82550         * doc/posix-functions/mbrlen.texi: Likewise.
82551         * doc/posix-functions/mbrtowc.texi: Likewise.
82552         * doc/posix-functions/mbsinit.texi: Likewise.
82553         * doc/posix-functions/mbsrtowcs.texi: Likewise.
82554         * doc/posix-functions/swprintf.texi: Likewise.
82555         * doc/posix-functions/swscanf.texi: Likewise.
82556         * doc/posix-functions/towctrans.texi: Likewise.
82557         * doc/posix-functions/vfwprintf.texi: Likewise.
82558         * doc/posix-functions/vswprintf.texi: Likewise.
82559         * doc/posix-functions/vwprintf.texi: Likewise.
82560         * doc/posix-functions/wcrtomb.texi: Likewise.
82561         * doc/posix-functions/wcsrtombs.texi: Likewise.
82562         * doc/posix-functions/wcsstr.texi: Likewise.
82563         * doc/posix-functions/wctob.texi: Likewise.
82564         * doc/posix-functions/wctrans.texi: Likewise.
82565         * doc/posix-functions/wmemchr.texi: Likewise.
82566         * doc/posix-functions/wmemcmp.texi: Likewise.
82567         * doc/posix-functions/wmemcpy.texi: Likewise.
82568         * doc/posix-functions/wmemmove.texi: Likewise.
82569         * doc/posix-functions/wmemset.texi: Likewise.
82570         * doc/posix-functions/wprintf.texi: Likewise.
82571         * doc/posix-functions/wscanf.texi: Likewise.
82573 2008-12-21  Bruno Haible  <bruno@clisp.org>
82575         Work around a portability problem.
82576         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
82577         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
82579 2008-12-20  Bruno Haible  <bruno@clisp.org>
82581         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
82582         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
82583         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
82584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
82585         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
82587         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
82588         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
82589         set.
82590         (GNULIB_defined_mbstate_t): New macro.
82591         (mbsinit): Redefine if REPLACE_MBSINIT is set.
82592         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
82593         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
82594         reuses the system's mbrtowc function but works around the bugs.
82595         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
82596         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
82597         macros.
82598         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
82599         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
82600         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
82601         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
82602         REPLACE_MBSINIT if mbsinit needs to be overridden.
82603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
82604         REPLACE_MBSINIT, REPLACE_MBRTOWC.
82605         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
82606         REPLACE_MBSINIT, REPLACE_MBRTOWC.
82607         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
82608         m4/locale-zh.m4.
82609         (Depends): Add mbsinit.
82610         * modules/mbsinit (Depends): Add mbrtowc.
82611         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
82613 2008-12-20  Bruno Haible  <bruno@clisp.org>
82615         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
82616         so that there are no conversion errors on AIX.
82617         * tests/test-mbsrtowcs.c (main): LIkewise.
82619 2008-12-20  Bruno Haible  <bruno@clisp.org>
82621         Work around wctob bug on Solaris <= 9.
82622         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
82623         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
82624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
82625         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
82626         * modules/wctob (Files): Add m4/locale-fr.m4.
82627         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
82629 2008-12-20  Bruno Haible  <bruno@clisp.org>
82631         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
82632         /dev/null.
82633         * tests/test-select-in.sh: Likewise.
82634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82636 2008-12-20  Bruno Haible  <bruno@clisp.org>
82638         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
82639         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
82640         Cygwin 1.5.x.
82642 2008-12-20  Bruno Haible  <bruno@clisp.org>
82644         Ensure mbstate_t is defined on HP-UX 11.11.
82645         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
82646         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
82647         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
82648         AC_USE_SYSTEM_EXTENSIONS.
82649         * modules/fnmatch (Depends-on): Add extensions.
82650         * modules/mbrlen (Depends-on): Likewise.
82651         * modules/mbrtowc (Depends-on): Likewise.
82652         * modules/mbsinit (Depends-on): Likewise.
82653         * modules/mbsrtowcs (Depends-on): Likewise.
82654         * modules/mbswidth (Depends-on): Likewise.
82655         * modules/quotearg (Depends-on): Likewise.
82656         * modules/strftime (Depends-on): Likewise.
82658 2008-12-20  Bruno Haible  <bruno@clisp.org>
82660         Ensure wctob is declared on IRIX 6.5.
82661         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
82662         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
82663         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
82664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
82665         of HAVE_WCTOB.
82666         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
82667         HAVE_WCTOB.
82668         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
82670 2008-12-19  Bruno Haible  <bruno@clisp.org>
82672         * modules/mbsrtowcs-tests: New file.
82673         * tests/test-mbsrtowcs1.sh: New file.
82674         * tests/test-mbsrtowcs2.sh: New file.
82675         * tests/test-mbsrtowcs3.sh: New file.
82676         * tests/test-mbsrtowcs4.sh: New file.
82677         * tests/test-mbsrtowcs.c: New file.
82679         New module 'mbsrtowcs'.
82680         * lib/wchar.in.h (mbsrtowcs): New declaration.
82681         * lib/mbsrtowcs.c: New file.
82682         * m4/mbsrtowcs.m4: New file.
82683         * modules/mbsrtowcs: New file.
82684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
82685         HAVE_MBSRTOWCS.
82686         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
82687         HAVE_MBSRTOWCS.
82688         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
82690 2008-12-19  Bruno Haible  <bruno@clisp.org>
82692         New module 'mbrlen'.
82693         * lib/wchar.in.h (mbrlen): New declaration.
82694         * lib/mbrlen.c: New file.
82695         * m4/mbrlen.m4: New file.
82696         * modules/mbrlen: New file.
82697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
82698         HAVE_MBRLEN.
82699         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
82700         HAVE_MBRLEN.
82701         * doc/posix-functions/mbrlen.texi: Document the new module.
82703 2008-12-19  Bruno Haible  <bruno@clisp.org>
82705         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
82706         * modules/mbrtowc (Depends-on): Add verify.
82707         Suggested by Paul Eggert.
82709 2008-12-18  Bruno Haible  <bruno@clisp.org>
82711         * modules/mbsinit-tests: New file.
82712         * tests/test-mbsinit.sh: New file.
82713         * tests/test-mbsinit.c: New file.
82715 2008-12-18  Bruno Haible  <bruno@clisp.org>
82717         * modules/mbrtowc-tests: New file.
82718         * tests/test-mbrtowc1.sh: New file.
82719         * tests/test-mbrtowc2.sh: New file.
82720         * tests/test-mbrtowc3.sh: New file.
82721         * tests/test-mbrtowc4.sh: New file.
82722         * tests/test-mbrtowc.c: New file.
82724         New module 'mbrtowc'.
82725         * lib/wchar.in.h (mbstate_t): Override when the system does not have
82726         mbsinit and mbrtowc.
82727         (mbrtowc): New declaration.
82728         * lib/mbrtowc.c: New file.
82729         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
82730         * modules/mbrtowc: New file.
82731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
82732         HAVE_MBRTOWC.
82733         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
82734         HAVE_MBRTOWC.
82735         * doc/posix-functions/mbrtowc.texi: Document the new module.
82737 2008-12-18  Bruno Haible  <bruno@clisp.org>
82739         New module 'wctob'.
82740         * lib/wchar.in.h (wctob): New declaration.
82741         * lib/wctob.c: New file.
82742         * m4/wctob.m4: New file.
82743         * modules/wctob: New file.
82744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
82745         HAVE_WCTOB.
82746         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
82747         * doc/posix-functions/wctob.texi: Document the new module.
82749 2008-12-18  Bruno Haible  <bruno@clisp.org>
82751         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
82752         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
82754 2008-12-18  Simon Josefsson  <simon@josefsson.org>
82756         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
82757         G. Christensen" <tgc@jupiterrise.com>.
82759         * lib/flock.c: Need to include errno.h.  Reported by "Tom
82760         G. Christensen" <tgc@jupiterrise.com>.
82762         * lib/flock.c: Need to include string.h.  Reported by "Tom
82763         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
82764         <ebb9@byu.net>.
82766 2008-12-18  Bruno Haible  <bruno@clisp.org>
82768         * m4/locale-ja.m4: New file, from GNU gettext.
82770 2008-12-17  Bruno Haible  <bruno@clisp.org>
82772         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
82773         Suggested by Eric Blake.
82775 2008-12-17  Bruno Haible  <bruno@clisp.org>
82777         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
82779 2008-12-17  Bruno Haible  <bruno@clisp.org>
82781         * lib/mbsinit.c: Include verify.h. Verify an assumption.
82782         * modules/mbsinit (Depends-on): Add verify.
82783         Suggested by Paul Eggert.
82785 2008-12-17  Bruno Haible  <bruno@clisp.org>
82787         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
82788         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
82789         gl_FUNC_MBRTOWC.
82790         * m4/mbiter.m4 (gl_MBITER): LIkewise.
82791         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
82792         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
82793         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
82794         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
82795         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
82796         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
82797         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
82798         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
82799         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
82800         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
82801         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
82802         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
82803         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
82804         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
82805         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
82806         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
82807         * modules/trim (configure.ac): Likewise.
82809 2008-12-17  Bruno Haible  <bruno@clisp.org>
82811         * modules/btowc-tests: New file.
82812         * tests/test-btowc1.sh: New file.
82813         * tests/test-btowc2.sh: New file.
82814         * tests/test-btowc.c: New file.
82816         New module 'btowc'.
82817         * lib/wchar.in.h (btowc): New declaration.
82818         * lib/btowc.c: New file.
82819         * m4/btowc.m4: New file.
82820         * modules/btowc: New file.
82821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
82822         HAVE_BTOWC.
82823         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
82824         * doc/posix-functions/btowc.texi: Document the new module.
82826 2008-12-17  Bruno Haible  <bruno@clisp.org>
82828         New module 'mbsinit'.
82829         * lib/wchar.in.h (mbsinit): New declaration.
82830         * lib/mbsinit.c: New file.
82831         * m4/mbsinit.m4: New file.
82832         * modules/mbsinit: New file.
82833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
82834         HAVE_MBSINIT.
82835         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
82836         HAVE_MBSINIT.
82837         * doc/posix-functions/mbsinit.texi: Document the new module.
82839 2008-12-16  Bruno Haible  <bruno@clisp.org>
82841         * lib/unistd.in.h: Add comment.
82842         * tests/test-environ.c: Don't include <stdlib.h>.
82844 2008-12-16  Bruno Haible  <bruno@clisp.org>
82846         * lib/parse-duration.h (parse_duration): Document return value
82847         convention.
82848         * lib/parse-duration.c: Include specification header first. Add
82849         comments.
82850         (_): Remove macro.
82851         (parse_year_month_day, parse_hour_minute_second): Move side effects
82852         outside of strchr call.
82853         (parse_non_iso8601): Move side effects outside of isspace call.
82854         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
82855         call.
82857 2008-12-16  Bruno Haible  <bruno@clisp.org>
82859         * tests/test-parse-duration.sh: Produce no output when the test
82860         succeeds.
82862 2008-12-16  Bruno Haible  <bruno@clisp.org>
82864         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
82865         expressions.
82867 2008-12-15  Bruno Haible  <bruno@clisp.org>
82869         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
82870         * doc/glibc-functions/flistxattr.texi: Likewise.
82871         * doc/glibc-functions/fopencookie.texi: Likewise.
82872         * doc/glibc-functions/fremovexattr.texi: Likewise.
82873         * doc/glibc-functions/fsetxattr.texi: Likewise.
82874         * doc/glibc-functions/getxattr.texi: Likewise.
82875         * doc/glibc-functions/lgetxattr.texi: Likewise.
82876         * doc/glibc-functions/listxattr.texi: Likewise.
82877         * doc/glibc-functions/llistxattr.texi: Likewise.
82878         * doc/glibc-functions/lremovexattr.texi: Likewise.
82879         * doc/glibc-functions/lsetxattr.texi: Likewise.
82880         * doc/glibc-functions/removexattr.texi: Likewise.
82881         * doc/glibc-functions/setxattr.texi: Likewise.
82882         * doc/posix-functions/open_memstream.texi: Likewise.
82884 2008-12-15  Eric Blake  <ebb9@byu.net>
82886         Update doc for cygwin 1.7.
82887         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
82888         functions.
82889         * doc/posix-functions/fchmodat.texi: Likewise.
82890         * doc/posix-functions/fchownat.texi: Likewise.
82891         * doc/posix-functions/fdopendir.texi: Likewise.
82892         * doc/posix-functions/fmemopen.texi: Likewise.
82893         * doc/posix-functions/freeaddrinfo.texi: Likewise.
82894         * doc/posix-functions/fstatat.texi: Likewise.
82895         * doc/posix-functions/futimens.texi: Likewise.
82896         * doc/posix-functions/gai_strerror.texi: Likewise.
82897         * doc/posix-functions/getaddrinfo.texi: Likewise.
82898         * doc/posix-functions/getnameinfo.texi: Likewise.
82899         * doc/posix-functions/if_freenameindex.texi: Likewise.
82900         * doc/posix-functions/if_indextoname.texi: Likewise.
82901         * doc/posix-functions/if_nameindex.texi: Likewise.
82902         * doc/posix-functions/if_nametoindex.texi: Likewise.
82903         * doc/posix-functions/insque.texi: Likewise.
82904         * doc/posix-functions/linkat.texi: Likewise.
82905         * doc/posix-functions/llrint.texi: Likewise.
82906         * doc/posix-functions/llrintf.texi: Likewise.
82907         * doc/posix-functions/llrintl.texi: Likewise.
82908         * doc/posix-functions/lockf.texi: Likewise.
82909         * doc/posix-functions/lrintl.texi: Likewise.
82910         * doc/posix-functions/mkdirat.texi: Likewise.
82911         * doc/posix-functions/mkfifoat.texi: Likewise.
82912         * doc/posix-functions/mknodat.texi: Likewise.
82913         * doc/posix-functions/mq_close.texi: Likewise.
82914         * doc/posix-functions/mq_getattr.texi: Likewise.
82915         * doc/posix-functions/mq_notify.texi: Likewise.
82916         * doc/posix-functions/mq_open.texi: Likewise.
82917         * doc/posix-functions/mq_receive.texi: Likewise.
82918         * doc/posix-functions/mq_send.texi: Likewise.
82919         * doc/posix-functions/mq_setattr.texi: Likewise.
82920         * doc/posix-functions/mq_timedreceive.texi: Likewise.
82921         * doc/posix-functions/mq_timedsend.texi: Likewise.
82922         * doc/posix-functions/mq_unlink.texi: Likewise.
82923         * doc/posix-functions/open_memstream.texi: Likewise.
82924         * doc/posix-functions/openat.texi: Likewise.
82925         * doc/posix-functions/posix_fadvise.texi: Likewise.
82926         * doc/posix-functions/posix_fallocate.texi: Likewise.
82927         * doc/posix-functions/posix_madvise.texi: Likewise.
82928         * doc/posix-functions/posix_memalign.texi: Likewise.
82929         * doc/posix-functions/posix_openpt.texi: Likewise.
82930         * doc/posix-functions/readlinkat.texi: Likewise.
82931         * doc/posix-functions/remque.texi: Likewise.
82932         * doc/posix-functions/renameat.texi: Likewise.
82933         * doc/posix-functions/rintl.texi: Likewise.
82934         * doc/posix-functions/sem_unlink.texi: Likewise.
82935         * doc/posix-functions/shm_open.texi: Likewise.
82936         * doc/posix-functions/shm_unlink.texi: Likewise.
82937         * doc/posix-functions/signgam.texi: Likewise.
82938         * doc/posix-functions/sigset.texi: Likewise.
82939         * doc/posix-functions/stpcpy.texi: Likewise.
82940         * doc/posix-functions/stpncpy.texi: Likewise.
82941         * doc/posix-functions/strerror.texi: Likewise.
82942         * doc/posix-functions/strtod.texi: Likewise.
82943         * doc/posix-functions/symlinkat.texi: Likewise.
82944         * doc/posix-functions/unlinkat.texi: Likewise.
82945         * doc/posix-functions/utimensat.texi: Likewise.
82946         * doc/glibc-functions/bindresvport.texi: Likewise.
82947         * doc/glibc-functions/dn_expand.texi: Likewise.
82948         * doc/glibc-functions/exp10.texi: Likewise.
82949         * doc/glibc-functions/exp10f.texi: Likewise.
82950         * doc/glibc-functions/fgetxattr.texi: Likewise.
82951         * doc/glibc-functions/flistxattr.texi: Likewise.
82952         * doc/glibc-functions/fopencookie.texi: Likewise.
82953         * doc/glibc-functions/freeifaddrs.texi: Likewise.
82954         * doc/glibc-functions/fremovexattr.texi: Likewise.
82955         * doc/glibc-functions/fsetxattr.texi: Likewise.
82956         * doc/glibc-functions/getifaddrs.texi: Likewise.
82957         * doc/glibc-functions/getxattr.texi: Likewise.
82958         * doc/glibc-functions/lgetxattr.texi: Likewise.
82959         * doc/glibc-functions/listxattr.texi: Likewise.
82960         * doc/glibc-functions/llistxattr.texi: Likewise.
82961         * doc/glibc-functions/lremovexattr.texi: Likewise.
82962         * doc/glibc-functions/lsetxattr.texi: Likewise.
82963         * doc/glibc-functions/pow10.texi: Likewise.
82964         * doc/glibc-functions/pow10f.texi: Likewise.
82965         * doc/glibc-functions/rcmd_af.texi: Likewise.
82966         * doc/glibc-functions/removexattr.texi: Likewise.
82967         * doc/glibc-functions/res_init.texi: Likewise.
82968         * doc/glibc-functions/res_mkquery.texi: Likewise.
82969         * doc/glibc-functions/res_query.texi: Likewise.
82970         * doc/glibc-functions/res_querydomain.texi: Likewise.
82971         * doc/glibc-functions/res_send.texi: Likewise.
82972         * doc/glibc-functions/rresvport_af.texi: Likewise.
82973         * doc/glibc-functions/setxattr.texi: Likewise.
82974         * doc/glibc-functions/strcasestr.texi: Likewise.
82976 2008-12-15  Bruno Haible  <bruno@clisp.org>
82978         Fix compilation error on OSF/1 4.0.
82979         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
82980         <sys/time.h>, simply delegate to the system header.
82981         Reported by Daniel Richard G. <oss@teragram.com>.
82983 2008-12-15  Bruno Haible  <bruno@clisp.org>
82985         * doc/posix-functions/openat.texi: Mention the 'openat' module.
82986         * doc/posix-functions/fchmodat.texi: Likewise.
82987         * doc/posix-functions/fchownat.texi: Likewise.
82988         * doc/posix-functions/fdopendir.texi: Likewise.
82989         * doc/posix-functions/fstatat.texi: Likewise.
82990         * doc/posix-functions/mkdirat.texi: Likewise.
82991         * doc/posix-functions/unlinkat.texi: Likewise.
82993 2008-12-14  Bruno Haible  <bruno@clisp.org>
82995         Update doc for POSIX:2008.
82996         * doc/posix-functions/faccessat.texi: New file.
82997         * doc/posix-functions/fchmodat.texi: New file.
82998         * doc/posix-functions/fchownat.texi: New file.
82999         * doc/posix-functions/fdopendir.texi: New file.
83000         * doc/posix-functions/fstatat.texi: New file.
83001         * doc/posix-functions/futimens.texi: New file.
83002         * doc/posix-functions/linkat.texi: New file.
83003         * doc/posix-functions/mkdirat.texi: New file.
83004         * doc/posix-functions/mkfifoat.texi: New file.
83005         * doc/posix-functions/mknodat.texi: New file.
83006         * doc/posix-functions/open_wmemstream.texi: New file.
83007         * doc/posix-functions/openat.texi: New file.
83008         * doc/posix-functions/psiginfo.texi: New file.
83009         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
83010         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
83011         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
83012         * doc/posix-functions/readlinkat.texi: New file.
83013         * doc/posix-functions/renameat.texi: New file.
83014         * doc/posix-functions/strerror_l.texi: New file.
83015         * doc/posix-functions/symlinkat.texi: New file.
83016         * doc/posix-functions/unlinkat.texi: New file.
83017         * doc/posix-functions/utimensat.texi: New file.
83018         * doc/gnulib.texi (Function Substitutes): Add these subsections.
83020 2008-12-14  Bruno Haible  <bruno@clisp.org>
83022         Update doc for POSIX:2008.
83023         * doc/posix-functions/alphasort.texi: Renamed from
83024         doc/glibc-functions/alphasort.texi.
83025         * doc/posix-functions/dirfd.texi: Renamed from
83026         doc/glibc-functions/dirfd.texi.
83027         * doc/posix-functions/dprintf.texi: Renamed from
83028         doc/glibc-functions/dprintf.texi.
83029         * doc/posix-functions/duplocale.texi: Renamed from
83030         doc/glibc-functions/duplocale.texi.
83031         * doc/posix-functions/fexecve.texi: Renamed from
83032         doc/glibc-functions/fexecve.texi.
83033         * doc/posix-functions/fmemopen.texi: Renamed from
83034         doc/glibc-functions/fmemopen.texi.
83035         * doc/posix-functions/freelocale.texi: Renamed from
83036         doc/glibc-functions/freelocale.texi.
83037         * doc/posix-functions/getdate_err.texi: Renamed from
83038         doc/glibc-functions/getdate_err.texi.
83039         * doc/posix-functions/isalnum_l.texi: Renamed from
83040         doc/glibc-functions/isalnum_l.texi.
83041         * doc/posix-functions/isalpha_l.texi: Renamed from
83042         doc/glibc-functions/isalpha_l.texi.
83043         * doc/posix-functions/isblank_l.texi: Renamed from
83044         doc/glibc-functions/isblank_l.texi.
83045         * doc/posix-functions/iscntrl_l.texi: Renamed from
83046         doc/glibc-functions/iscntrl_l.texi.
83047         * doc/posix-functions/isdigit_l.texi: Renamed from
83048         doc/glibc-functions/isdigit_l.texi.
83049         * doc/posix-functions/isgraph_l.texi: Renamed from
83050         doc/glibc-functions/isgraph_l.texi.
83051         * doc/posix-functions/islower_l.texi: Renamed from
83052         doc/glibc-functions/islower_l.texi.
83053         * doc/posix-functions/isprint_l.texi: Renamed from
83054         doc/glibc-functions/isprint_l.texi.
83055         * doc/posix-functions/ispunct_l.texi: Renamed from
83056         doc/glibc-functions/ispunct_l.texi.
83057         * doc/posix-functions/isspace_l.texi: Renamed from
83058         doc/glibc-functions/isspace_l.texi.
83059         * doc/posix-functions/isupper_l.texi: Renamed from
83060         doc/glibc-functions/isupper_l.texi.
83061         * doc/posix-functions/iswalnum_l.texi: Renamed from
83062         doc/glibc-functions/iswalnum_l.texi.
83063         * doc/posix-functions/iswalpha_l.texi: Renamed from
83064         doc/glibc-functions/iswalpha_l.texi.
83065         * doc/posix-functions/iswblank_l.texi: Renamed from
83066         doc/glibc-functions/iswblank_l.texi.
83067         * doc/posix-functions/iswcntrl_l.texi: Renamed from
83068         doc/glibc-functions/iswcntrl_l.texi.
83069         * doc/posix-functions/iswctype_l.texi: Renamed from
83070         doc/glibc-functions/iswctype_l.texi.
83071         * doc/posix-functions/iswdigit_l.texi: Renamed from
83072         doc/glibc-functions/iswdigit_l.texi.
83073         * doc/posix-functions/iswgraph_l.texi: Renamed from
83074         doc/glibc-functions/iswgraph_l.texi.
83075         * doc/posix-functions/iswlower_l.texi: Renamed from
83076         doc/glibc-functions/iswlower_l.texi.
83077         * doc/posix-functions/iswprint_l.texi: Renamed from
83078         doc/glibc-functions/iswprint_l.texi.
83079         * doc/posix-functions/iswpunct_l.texi: Renamed from
83080         doc/glibc-functions/iswpunct_l.texi.
83081         * doc/posix-functions/iswspace_l.texi: Renamed from
83082         doc/glibc-functions/iswspace_l.texi.
83083         * doc/posix-functions/iswupper_l.texi: Renamed from
83084         doc/glibc-functions/iswupper_l.texi.
83085         * doc/posix-functions/iswxdigit_l.texi: Renamed from
83086         doc/glibc-functions/iswxdigit_l.texi.
83087         * doc/posix-functions/isxdigit_l.texi: Renamed from
83088         doc/glibc-functions/isxdigit_l.texi.
83089         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
83090         doc/glibc-functions/mbsnrtowcs.texi.
83091         * doc/posix-functions/mkdtemp.texi: Renamed from
83092         doc/glibc-functions/mkdtemp.texi.
83093         * doc/posix-functions/newlocale.texi: Renamed from
83094         doc/glibc-functions/newlocale.texi.
83095         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
83096         doc/glibc-functions/nl_langinfo_l.texi.
83097         * doc/posix-functions/open_memstream.texi: Renamed from
83098         doc/glibc-functions/open_memstream.texi.
83099         * doc/posix-functions/opterr.texi: Renamed from
83100         doc/glibc-functions/opterr.texi.
83101         * doc/posix-functions/optind.texi: Renamed from
83102         doc/glibc-functions/optind.texi.
83103         * doc/posix-functions/optopt.texi: Renamed from
83104         doc/glibc-functions/optopt.texi.
83105         * doc/posix-functions/psignal.texi: Renamed from
83106         doc/glibc-functions/psignal.texi.
83107         * doc/posix-functions/scandir.texi: Renamed from
83108         doc/glibc-functions/scandir.texi.
83109         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
83110         doc/glibc-functions/sched_get_priority_min.texi.
83111         * doc/posix-functions/signgam.texi: Renamed from
83112         doc/glibc-functions/signgam.texi.
83113         * doc/posix-functions/stpcpy.texi: Renamed from
83114         doc/glibc-functions/stpcpy.texi.
83115         * doc/posix-functions/stpncpy.texi: Renamed from
83116         doc/glibc-functions/stpncpy.texi.
83117         * doc/posix-functions/strcasecmp_l.texi: Renamed from
83118         doc/glibc-functions/strcasecmp_l.texi.
83119         * doc/posix-functions/strcoll_l.texi: Renamed from
83120         doc/glibc-functions/strcoll_l.texi.
83121         * doc/posix-functions/strfmon_l.texi: Renamed from
83122         doc/glibc-functions/strfmon_l.texi.
83123         * doc/posix-functions/strftime_l.texi: Renamed from
83124         doc/glibc-functions/strftime_l.texi.
83125         * doc/posix-functions/strncasecmp_l.texi: Renamed from
83126         doc/glibc-functions/strncasecmp_l.texi.
83127         * doc/posix-functions/strndup.texi: Renamed from
83128         doc/glibc-functions/strndup.texi.
83129         * doc/posix-functions/strnlen.texi: Renamed from
83130         doc/glibc-functions/strnlen.texi.
83131         * doc/posix-functions/strsignal.texi: Renamed from
83132         doc/glibc-functions/strsignal.texi.
83133         * doc/posix-functions/strxfrm_l.texi: Renamed from
83134         doc/glibc-functions/strxfrm_l.texi.
83135         * doc/posix-functions/timer_gettime.texi: Renamed from
83136         doc/glibc-functions/timer_gettime.texi.
83137         * doc/posix-functions/tolower_l.texi: Renamed from
83138         doc/glibc-functions/tolower_l.texi.
83139         * doc/posix-functions/toupper_l.texi: Renamed from
83140         doc/glibc-functions/toupper_l.texi.
83141         * doc/posix-functions/towctrans_l.texi: Renamed from
83142         doc/glibc-functions/towctrans_l.texi.
83143         * doc/posix-functions/towlower_l.texi: Renamed from
83144         doc/glibc-functions/towlower_l.texi.
83145         * doc/posix-functions/towupper_l.texi: Renamed from
83146         doc/glibc-functions/towupper_l.texi.
83147         * doc/posix-functions/uselocale.texi: Renamed from
83148         doc/glibc-functions/uselocale.texi.
83149         * doc/posix-functions/vdprintf.texi: Renamed from
83150         doc/glibc-functions/vdprintf.texi.
83151         * doc/posix-functions/wcpcpy.texi:
83152         Renamed from doc/glibc-functions/wcpcpy.texi.
83153         * doc/posix-functions/wcpncpy.texi: Renamed from
83154         doc/glibc-functions/wcpncpy.texi.
83155         * doc/posix-functions/wcscasecmp.texi: Renamed from
83156         doc/glibc-functions/wcscasecmp.texi.
83157         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
83158         doc/glibc-functions/wcscasecmp_l.texi.
83159         * doc/posix-functions/wcscoll_l.texi: Renamed from
83160         doc/glibc-functions/wcscoll_l.texi.
83161         * doc/posix-functions/wcsdup.texi: Renamed from
83162         doc/glibc-functions/wcsdup.texi.
83163         * doc/posix-functions/wcsncasecmp.texi: Renamed from
83164         doc/glibc-functions/wcsncasecmp.texi.
83165         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
83166         doc/glibc-functions/wcsncasecmp_l.texi.
83167         * doc/posix-functions/wcsnlen.texi: Renamed from
83168         doc/glibc-functions/wcsnlen.texi.
83169         * doc/posix-functions/wcsnrtombs.texi: Renamed from
83170         doc/glibc-functions/wcsnrtombs.texi.
83171         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
83172         doc/glibc-functions/wcsxfrm_l.texi.
83173         * doc/posix-functions/wctrans_l.texi: Renamed from
83174         doc/glibc-functions/wctrans_l.texi.
83175         * doc/posix-functions/wctype_l.texi: Renamed from
83176         doc/glibc-functions/wctype_l.texi.
83177         * doc/gnulib.texi (Function Substitutes): Add these subsections.
83178         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
83179         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
83180         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
83181         these subsections.
83182         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
83183         Remove sections.
83185 2008-12-14  Bruno Haible  <bruno@clisp.org>
83187         Update doc for POSIX:2008.
83188         * doc/posix-functions/*.texi: Update URL of POSIX specification.
83190 2008-12-14  Bruno Haible  <bruno@clisp.org>
83192         Update doc for POSIX:2008.
83193         * doc/pastposix-functions/bcmp.texi: Renamed from
83194         doc/posix-functions/bcmp.texi.
83195         * doc/pastposix-functions/bcopy.texi: Renamed from
83196         doc/posix-functions/bcopy.texi.
83197         * doc/pastposix-functions/bsd_signal.texi: Renamed from
83198         doc/posix-functions/bsd_signal.texi.
83199         * doc/pastposix-functions/bzero.texi: Renamed from
83200         doc/posix-functions/bzero.texi.
83201         * doc/pastposix-functions/ecvt.texi: Renamed from
83202         doc/posix-functions/ecvt.texi.
83203         * doc/pastposix-functions/fcvt.texi: Renamed from
83204         doc/posix-functions/fcvt.texi.
83205         * doc/pastposix-functions/ftime.texi: Renamed from
83206         doc/posix-functions/ftime.texi.
83207         * doc/pastposix-functions/gcvt.texi: Renamed from
83208         doc/posix-functions/gcvt.texi.
83209         * doc/pastposix-functions/getcontext.texi: Renamed from
83210         doc/posix-functions/getcontext.texi.
83211         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
83212         doc/posix-functions/gethostbyaddr.texi.
83213         * doc/pastposix-functions/gethostbyname.texi: Renamed from
83214         doc/posix-functions/gethostbyname.texi.
83215         * doc/pastposix-functions/getwd.texi: Renamed from
83216         doc/posix-functions/getwd.texi.
83217         * doc/pastposix-functions/h_errno.texi: Renamed from
83218         doc/posix-functions/h_errno.texi.
83219         * doc/pastposix-functions/index.texi: Renamed from
83220         doc/posix-functions/index.texi.
83221         * doc/pastposix-functions/makecontext.texi: Renamed from
83222         doc/posix-functions/makecontext.texi.
83223         * doc/pastposix-functions/mktemp.texi: Renamed from
83224         doc/posix-functions/mktemp.texi.
83225         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
83226         doc/posix-functions/pthread_attr_getstackaddr.texi.
83227         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
83228         doc/posix-functions/pthread_attr_setstackaddr.texi.
83229         * doc/pastposix-functions/rindex.texi: Renamed from
83230         doc/posix-functions/rindex.texi.
83231         * doc/pastposix-functions/scalb.texi: Renamed from
83232         doc/posix-functions/scalb.texi.
83233         * doc/pastposix-functions/setcontext.texi: Renamed from
83234         doc/posix-functions/setcontext.texi.
83235         * doc/pastposix-functions/swapcontext.texi: Renamed from
83236         doc/posix-functions/swapcontext.texi.
83237         * doc/pastposix-functions/ualarm.texi: Renamed from
83238         doc/posix-functions/ualarm.texi.
83239         * doc/pastposix-functions/usleep.texi: Renamed from
83240         doc/posix-functions/usleep.texi.
83241         * doc/pastposix-functions/vfork.texi: Renamed from
83242         doc/posix-functions/vfork.texi.
83243         * doc/pastposix-functions/wcswcs.texi: Renamed from
83244         doc/posix-functions/wcswcs.texi.
83245         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
83246         (Function Substitutes): Update.
83248 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83250         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
83251         m4/strerror.m4.
83253 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83254             Bruno Haible  <bruno@clisp.org>
83256         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
83258 2008-12-13  Bruno Haible  <bruno@clisp.org>
83260         * modules/strtoull (Depends-on): Remove unistd.
83262 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83264         * modules/strtoull (Depends-on): Add stdlib.
83266 2008-12-11  Simon Josefsson  <simon@josefsson.org>
83268         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
83270 2008-12-10  Jim Meyering  <meyering@redhat.com>
83272         gl_ASSERT: don't say assertions are disabled when they're not
83273         * m4/assert.m4 (gl_ASSERT): Do not make configure report
83274         "checking whether to enable assertions... no", when they are in
83275         fact enabled.  This is solely a bug in the output of configure.
83276         In spite of saying "no", NDEBUG was not defined in that case.
83277         Also, as noted by Eric Blake, leave assertions enabled upon
83278         --enable-assert=INVALID.
83280 2008-12-10  Bruno Haible  <bruno@clisp.org>
83282         Change MODULES.html to refer to POSIX:2008 where possible.
83283         * MODULES.html.sh (POSIX2008_URL): New variable.
83284         (posix_headers): Remove sys/timeb, ucontext.
83285         (posix2001_headers): New variable.
83286         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
83287         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
83288         index, makecontext, mktemp, pthread_attr_getstackaddr,
83289         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
83290         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
83291         (posix2001_functions): New variable.
83292         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
83293         otherwise.
83295 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83297         add missing include to parse-duration.c
83298         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
83299         * modules/parse-duration (Depends-on): Add xalloc.
83301         fix sed script reading maint.mk
83302         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
83303         (syntax-check-rules): Use it.
83305 2008-12-09  Bruno Haible  <bruno@clisp.org>
83307         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
83308         MacOS X 10.4/PowerPC.
83309         Reported by Simon Josefsson.
83311 2008-12-08  Jim Meyering  <meyering@redhat.com>
83313         work around mingw's lack of some S_IF definitions
83314         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
83315         Reported by Simon Josefsson.
83317 2008-12-08  Bruno Haible  <bruno@clisp.org>
83319         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
83320         applied to variables. Needed on MacOS X 10.4/PowerPC.
83321         Reported by Simon Josefsson.
83323 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
83324         and Eric Blake  <ebb9@byu.net>
83326         assert: honor --enable-assert
83327         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
83328         order to honor --enable-assert, rather than treating it as a
83329         synonym for --disable-assert.
83331 2008-12-08  Jim Meyering  <meyering@redhat.com>
83333         * lib/posixtm.c: Remove now-useless declaration of mktime.
83335         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
83337 2008-12-07  Bruno Haible  <bruno@clisp.org>
83339         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
83340         test_once): Mark functions as static.
83341         * tests/test-tls.c (test_tls): Likewise.
83343 2008-12-07  Bruno Haible  <bruno@clisp.org>
83345         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
83346         iconv_register_autodetect.
83348 2008-12-07  Jim Meyering  <meyering@redhat.com>
83350         posixtm.c: avoid a warning
83351         * lib/posixtm.c (posixtime): Don't initialize tm0.
83352         It's no longer needed to placate gcc4's -Wuninitialized,
83353         and the attempt to placate would elicit a new warning.
83355         unicodeio.c: mark unused parameters
83356         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
83357         (fallback_failure_callback): Likewise.
83359 2008-12-07  Bruno Haible  <bruno@clisp.org>
83361         * gnulib-tool (func_create_testdir): When building the tests
83362         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
83363         Reported by Simon Josefsson.
83365 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83367         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
83369 2008-12-06  Bruno Haible  <bruno@clisp.org>
83371         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
83372         Suggested by Eric Blake.
83374 2008-12-06  Bruno Haible  <bruno@clisp.org>
83376         Fix a c-stack test failure on MacOS X.
83377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
83378         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
83379         handler for SIGBUS as well.
83380         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
83381         install a signal handler for SIGBUS as well.
83382         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
83384 2008-12-06  Bruno Haible  <bruno@clisp.org>
83386         Advocacy documentation.
83387         * doc/gnulib-intro.texi (Benefits): New section.
83388         * doc/gnulib.texi: Update.
83390 2008-12-06  Bruno Haible  <bruno@clisp.org>
83392         Document the 'manywarnings' module.
83393         * doc/manywarnings.texi: New file.
83394         * doc/gnulib.texi: Include it.
83396 2008-12-05  Eric Blake  <ebb9@byu.net>
83398         tests: silence some gcc warnings
83399         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
83400         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
83401         type mismatches.
83403 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83404             Bruno Haible  <bruno@clisp.org>
83406         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
83408 2008-11-29  Jim Meyering  <meyering@redhat.com>
83410         unicodeio.c: mark unused parameters
83411         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
83412         (fallback_failure_callback): Likewise.
83414         fts: fix a thinko
83415         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
83416         (set_stat_type): Return S_IF*-valued "type" directly.
83417         Prompted by James Youngman's spotting a related bug.
83418         Confirmed by further testing through find.
83420         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
83421         * lib/fts.c (D_TYPE): Define.
83422         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
83423         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
83424         (s_ifmt_shift_bits): New function.
83425         (set_stat_type): New function.
83426         (fts_build): When not calling fts_stat, call set_stat_type
83427         to propagate dirent.d_type info to fts_read caller.
83428         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
83429         fts_statp->st_mode type information may be valid.
83431 2008-11-28  Simon Josefsson  <simon@josefsson.org>
83433         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
83434         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
83435         <sds@gnu.org>.
83437 2008-11-20  Bruno Haible  <bruno@clisp.org>
83439         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
83440         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
83441         INCLUDE_NEXT.
83442         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
83443         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
83444         * modules/math (Makefile.am): Substitute
83445         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
83446         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83448 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
83449             Bruno Haible  <bruno@clisp.org>
83451         * lib/stdint.in.h: Define all type macros so that their expansion is
83452         a single typedef'ed token. Fixes a compilation failure in Boost which
83453         does "using ::int8_t;".
83455 2008-11-18  Simon Josefsson  <simon@josefsson.org>
83457         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
83458         gl_MANYWARN_ALL_GCC.
83459         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
83460         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
83461         * modules/manywarnings: New file.
83462         * MODULES.html.sh: Mention manywarnings module.
83464 2008-11-18  Bruno Haible  <bruno@clisp.org>
83466         * doc/gnulib-tool.texi (Unit tests): New section.
83468 2008-11-18  Simon Josefsson  <simon@josefsson.org>
83470         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
83471         paths like 'lib/po/foo.po'.
83473 2008-11-17  Simon Josefsson  <simon@josefsson.org>
83475         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
83476         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
83478 2008-11-17  Simon Josefsson  <simon@josefsson.org>
83480         * m4/warnings.m4: Use CPPFLAGS to really check whether the
83481         parameter works.
83483 2008-11-17  Simon Josefsson  <simon@josefsson.org>
83485         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
83487 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83489         * modules/parse-duration-tests: New file.
83490         * tests/test-parse-duration.sh: New file.
83491         * tests/test-parse-duration.c: New file.
83493         New module 'parse-duration'.
83494         * lib/parse-duration.h: New file.
83495         * lib/parse-duration.c: New file.
83496         * modules/parse-duration: New file.
83498 2008-11-17  Bruno Haible  <bruno@clisp.org>
83500         * tests/test-select-out.sh: Comment out the first pipe test.
83501         Reported by Simon Josefsson.
83503 2008-11-17  Bruno Haible  <bruno@clisp.org>
83505         * modules/getaddrinfo (Depends-on): Add servent, hostent.
83506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
83507         gl_HOSTENT.
83509 2008-11-17  Bruno Haible  <bruno@clisp.org>
83511         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
83512         -lnetwork and -lnet. Needed for Haiku and BeOS.
83514 2008-11-16  Bruno Haible  <bruno@clisp.org>
83516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
83518 2008-11-16  Bruno Haible  <bruno@clisp.org>
83520         Avoid test failure on Haiku.
83521         * tests/test-fsync.c: Include <errno.h>.
83522         (main): Don't require that fsync (0) fails.
83524 2008-11-15  Bruno Haible  <bruno@clisp.org>
83526         New module 'hostent'.
83527         * modules/hostent: New file.
83528         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
83530 2008-11-15  Bruno Haible  <bruno@clisp.org>
83532         New module 'servent'.
83533         * modules/servent: New file.
83534         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
83536 2008-11-15  Bruno Haible  <bruno@clisp.org>
83538         Avoid generating same test program with two different rules.
83539         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
83540         test-frexp to test-frexp-nolibm.
83541         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
83542         test-frexpl to test-frexpl-nolibm.
83544 2008-11-15  Bruno Haible  <bruno@clisp.org>
83546         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
83547         $(FREXPL_LIBM).
83549 2008-11-15  Bruno Haible  <bruno@clisp.org>
83551         * lib/netdb.in.h: Activate the definitions also when the system's
83552         <netdb.h> has 'struct addrinfo'.
83553         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
83554         EAI_OVERFLOW or AI_NUMERICSERV.
83555         * doc/posix-headers/netdb.texi: Document the problem.
83557 2008-11-15  Bruno Haible  <bruno@clisp.org>
83559         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
83561         Make the 'sched' module work on platforms where <sched.h> exists but
83562         is incomplete (such as Haiku).
83563         * lib/sched.in.h; Include the system's <sched.h> if it exists.
83564         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
83565         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
83566         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
83567         HAVE_STRUCT_SCHED_PARAM.
83568         * modules/sched (Depends-on): Add include_next.
83569         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
83570         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
83571         * doc/posix-headers/sched.texi: Document the issue.
83573 2008-11-13  Jim Meyering  <meyering@redhat.com>
83575         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
83576         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
83577         test would fail due to the difference in the Report bugs to ...
83578         line.  The expected address is empty, "<>", while the actual
83579         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
83581 2008-11-12  Bruno Haible  <bruno@clisp.org>
83583         lstat: don't compile lstat.c on systems lacking lstat
83584         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
83585         which don't have lstat; this is handled by lib/sys_stat.in.h already.
83586         Reported by Daniel P. Berrange via Jim Meyering.
83588 2008-11-12  Jim Meyering  <meyering@redhat.com>
83590         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
83592 2008-11-12  Simon Josefsson  <simon@josefsson.org>
83594         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
83595         instead.
83597 2008-11-12  Bruno Haible  <bruno@clisp.org>
83599         * lib/unicodeio.c: Include unistr.h.
83600         (utf8_wctomb): Remove function.
83601         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
83603 2008-11-12  Simon Josefsson  <simon@josefsson.org>
83605         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
83606         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
83607         <bruno@clisp.org>.
83608         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
83610 2008-11-12  Simon Josefsson  <simon@josefsson.org>
83612         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
83613         * doc/gnulib.texi: Add section for warnings.
83615 2008-11-11  Bruno Haible  <bruno@clisp.org>
83617         * lib/sockets.h: Add a comment.
83619 2008-11-11  Karl Berry  <karl@gnu.org>
83621         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
83623 2008-11-11  Eric Blake  <ebb9@byu.net>
83625         fdl.texi: avoid git symlinks
83626         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
83628 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83630         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
83632 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83634         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
83635         (gl_WARN_ADD): Substitute $2 if literal.
83637 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83639         * m4/warning.m4: Remove.
83641 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83643         * m4/warnings.m4: Almost complete rewrite. :-)
83645 2008-11-10  Simon Josefsson  <simon@josefsson.org>
83647         * modules/warnings: New module.
83648         * m4/warnings.m4: New file.
83649         * MODULES.html.sh: Mention warnings module.
83650         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
83651         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83653 2008-11-10  Eric Blake  <ebb9@byu.net>
83655         fdl.texi: make a symlink to the latest version
83656         * doc/standards.texi: Revert today's earlier change.
83657         * doc/fdl-1.2.texi: Rename from old fdl.texi...
83658         * doc/fdl.texi: ...and replace this with a symlink to the newer
83659         fdl-1.3.texi.
83661 2008-11-10  Bruno Haible  <bruno@clisp.org>
83663         * tests/test-select-fd.c (main): Accept the result file name as fourth
83664         argument.
83665         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
83666         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
83668 2008-11-10  Bruno Haible  <bruno@clisp.org>
83670         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
83671         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
83672         as autoconf-substituted macros.
83673         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
83674         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
83675         gl_NETDB_H_DEFAULTS. Set these variables.
83676         * modules/netdb (Makefile.am): Substitute these variables.
83678 2008-11-10  Eric Blake  <ebb9@byu.net>
83680         standards.texi: include correct file for FDL 1.3
83681         * doc/standards.texi (GNU Free Documentation License): Change
83682         include file to pull in FDL 1.3, not 1.2.
83684         fdl.texi: revert accidental change to license
83685         * doc/fdl.texi: This is FDL 1.2, not 1.3.
83687 2008-11-10  Bruno Haible  <bruno@clisp.org>
83689         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
83690         cross-compiling guesses also when the native compile gives no result.
83692 2008-11-10  Bruno Haible  <bruno@clisp.org>
83694         * lib/spawni.c (__spawni): Force variable into the stack.
83696 2008-11-10  Bruno Haible  <bruno@clisp.org>
83698         Add support for Haiku.
83699         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
83700         glibc and BeOS, but also on Haiku.
83701         * lib/fpurge.c (fpurge): Likewise.
83702         * lib/freadable.c (freadable): Likewise.
83703         * lib/freadahead.c (freadahead): Likewise.
83704         * lib/freading.c (freading): Likewise.
83705         * lib/freadptr.c (freadptr): Likewise.
83706         * lib/freadseek.c (freadptrinc): Likewise.
83707         * lib/fseeko.c (rpl_fseeko): Likewise.
83708         * lib/fseterr.c (fseterr): Likewise.
83709         * lib/fwritable.c (fwritable): Likewise.
83710         * lib/fwriting.c (fwriting): Likewise.
83711         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
83713 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
83715         * lib/config.charset: Treat Haiku like BeOS.
83717 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
83719         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
83720         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
83722 2008-11-08  Bruno Haible  <bruno@clisp.org>
83724         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
83725         AC_CACHE_CHECK.
83727 2008-11-08  Bruno Haible  <bruno@clisp.org>
83729         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
83731 2008-11-08  Bruno Haible  <bruno@clisp.org>
83733         * tests/test-select-fd.c: New file.
83734         * tests/test-select-in.sh: New file.
83735         * tests/test-select-out.sh: New file.
83736         * tests/test-select-stdin.c: New file.
83737         * modules/select-tests (Files): Add the new files.
83738         (Depends-on): Add gettimeofday.
83739         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
83740         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
83741         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
83743 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
83744             Bruno Haible  <bruno@clisp.org>
83746         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
83748 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
83750         * build-aux/pmccabe2html: Added support for C++ source files.
83752 2008-11-05  Ben Pfaff  <blp@gnu.org>
83754         Fix lib/close.c build on Windows.
83755         * modules/close (Files): Add lib/w32sock.h.
83757 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
83759         Accept Bison's NEWS format.
83760         * build-aux/announce-gen (print_news_deltas): Tweak
83761         $re_prefix.
83763 2008-11-04  Bruno Haible  <bruno@clisp.org>
83765         * modules/random_r (Maintainer): Add glibc.
83767 2008-11-04  Simon Josefsson  <simon@josefsson.org>
83769         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
83770         by karl@freefriends.org (Karl Berry).
83771         * doc/alloca.texi: Likewise.
83772         * doc/c-ctype.texi: Likewise.
83773         * doc/c-strcase.texi: Likewise.
83774         * doc/c-strcaseeq.texi: Likewise.
83775         * doc/c-strcasestr.texi: Likewise.
83776         * doc/c-strstr.texi: Likewise.
83777         * doc/c-strtod.texi: Likewise.
83778         * doc/c-strtold.texi: Likewise.
83779         * doc/ctime.texi: Likewise.
83780         * doc/error.texi: Likewise.
83781         * doc/fdl.texi: Likewise.
83782         * doc/gcd.texi: Likewise.
83783         * doc/getdate.texi: Likewise.
83784         * doc/gnulib-intro.texi: Likewise.
83785         * doc/gnulib-tool.texi: Likewise.
83786         * doc/gnulib.texi: Likewise.
83787         * doc/inet_ntoa.texi: Likewise.
83788         * doc/maintain.texi: Likewise.
83789         * doc/make-stds.texi: Likewise.
83790         * doc/quote.texi: Likewise.
83791         * doc/regexprops-generic.texi: Likewise.
83792         * doc/standards.texi: Likewise.
83793         * doc/verify.texi: Likewise.
83794         * doc/visibility.texi: Likewise.
83795         * doc/gnulib.texi (GNU Free Documentation License): Include
83796         fdl-1.3.texi instead of fdl.texi.
83798 2008-11-04  Simon Josefsson  <simon@josefsson.org>
83800         * doc/fdl-1.3.texi: New file, from
83801         <http://www.gnu.org/licenses/fdl-1.3.texi>.
83802         * modules/fdl-1.3: Add.
83803         * MODULES.html.sh: Add fdl-1.3.
83805 2008-11-03  Bruno Haible  <bruno@clisp.org>
83807         Make determination of absolute name of header file work with AIX xlc.
83808         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
83809         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
83810         preprocessing.
83811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83812         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83814 2008-11-03  Simon Josefsson  <simon@josefsson.org>
83816         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
83817         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
83818         <ludo@gnu.org>.
83820 2008-11-02  Bruno Haible  <bruno@clisp.org>
83822         Mark 'strpbrk' obsolete.
83823         * modules/strpbrk (Status, Notice): New sections.
83824         * modules/strtok_r (Depends-on): Add strpbrk.
83826 2008-11-02  Bruno Haible  <bruno@clisp.org>
83828         Mark 'strdup' obsolete.
83829         * modules/strdup (Status, Notice): New sections.
83830         * modules/findprog (Depends-on): Add strdup.
83831         * modules/getaddrinfo (Depends-on): Likewise.
83832         * modules/localename (Depends-on): Likewise.
83833         * modules/relocatable-lib (Depends-on): Likewise.
83834         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
83835         * modules/relocatable-prog (Depends-on): Likewise.
83836         * modules/trim (Depends-on): Likewise.
83837         * modules/unictype/gen-ctype (Depends-on): Likewise.
83838         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
83840 2008-11-02  Bruno Haible  <bruno@clisp.org>
83842         Mark 'strcspn' obsolete.
83843         * modules/strcspn (Status, Notice): New sections.
83845 2008-11-02  Bruno Haible  <bruno@clisp.org>
83847         Mark 'rmdir' obsolete.
83848         * modules/rmdir (Status, Notice): New sections.
83849         * modules/clean-temp (Depends-on): Add rmdir.
83850         * modules/openat (Depends-on): Likewise.
83852 2008-11-02  Bruno Haible  <bruno@clisp.org>
83854         Mark 'raise' obsolete.
83855         * modules/raise (Status, Notice): New sections.
83856         (Include): Specify <signal.h>.
83857         * modules/stdio (Depends-on): Add raise.
83858         * modules/write (Depends-on): Likewise.
83860 2008-11-02  Bruno Haible  <bruno@clisp.org>
83862         Mark 'memset' obsolete.
83863         * modules/memset (Status, Notice): New sections.
83865 2008-11-02  Bruno Haible  <bruno@clisp.org>
83867         Mark 'memmove' obsolete.
83868         * modules/memmove (Status, Notice): New sections.
83869         * modules/argp (Depends-on): Add memmove.
83870         * modules/argz (Depends-on): Likewise.
83871         * modules/canonicalize (Depends-on): Likewise.
83872         * modules/canonicalize-lgpl (Depends-on): Likewise.
83873         * modules/fts (Depends-on): Likewise.
83874         * modules/getcwd (Depends-on): Likewise.
83875         * modules/human (Depends-on): Likewise.
83876         * modules/regex (Depends-on): Likewise.
83877         * modules/striconveh (Depends-on): Likewise.
83878         * modules/trim (Depends-on): Likewise.
83879         * modules/unistr/u8-move (Depends-on): Likewise.
83880         * modules/unistr/u16-move (Depends-on): Likewise.
83881         * modules/unistr/u32-move (Depends-on): Likewise.
83883 2008-11-02  Bruno Haible  <bruno@clisp.org>
83885         Mark 'memcpy' obsolete.
83886         * modules/memcpy (Status, Notice): New sections.
83888 2008-11-02  Bruno Haible  <bruno@clisp.org>
83890         Mark 'memcmp' obsolete.
83891         * modules/memcmp (Status, Notice): New sections.
83892         * modules/argmatch (Depends-on): Add memchr.
83893         * modules/backupfile (Depends-on): Likewise.
83894         * modules/c-strcasestr (Depends-on): Likewise.
83895         * modules/crypto/des (Depends-on): Likewise.
83896         * modules/csharpcomp (Depends-on): Likewise.
83897         * modules/fnmatch (Depends-on): Likewise.
83898         * modules/git-merge-changelog (Depends-on): Likewise.
83899         * modules/isnand (Depends-on): Likewise.
83900         * modules/isnand-nolibm (Depends-on): Likewise.
83901         * modules/isnanf (Depends-on): Likewise.
83902         * modules/isnanf-nolibm (Depends-on): Likewise.
83903         * modules/isnanl (Depends-on): Likewise.
83904         * modules/isnanl-nolibm (Depends-on): Likewise.
83905         * modules/mbchar (Depends-on): Likewise.
83906         * modules/memcoll (Depends-on): Likewise.
83907         * modules/quotearg (Depends-on): Likewise.
83908         * modules/regex (Depends-on): Likewise.
83909         * modules/relocatable-prog (Depends-on): Likewise.
83910         * modules/same (Depends-on): Likewise.
83911         * modules/signbit (Depends-on): Likewise.
83912         * modules/strcasestr-simple (Depends-on): Likewise.
83913         * modules/unictype/gen-ctype (Depends-on): Likewise.
83914         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
83915         * modules/uniname/uniname (Depends-on): Likewise.
83916         * modules/unistr/u8-cmp (Depends-on): Likewise.
83918 2008-11-02  Bruno Haible  <bruno@clisp.org>
83920         Mark 'memchr' obsolete.
83921         * modules/memchr (Status, Notice): New sections.
83922         * modules/argp (Depends-on): Add memchr.
83923         * modules/base64 (Depends-on): Likewise.
83924         * modules/c-strcasestr (Depends-on): Likewise.
83925         * modules/chdir-long (Depends-on): Likewise.
83926         * modules/fnmatch (Depends-on): Likewise.
83927         * modules/getsubopt (Depends-on): Likewise.
83928         * modules/git-merge-changelog (Depends-on): Likewise.
83929         * modules/glob (Depends-on): Likewise.
83930         * modules/strcasestr-simple (Depends-on): Likewise.
83931         * modules/strnlen (Depends-on): Likewise.
83933 2008-11-02  Bruno Haible  <bruno@clisp.org>
83935         Mark 'atexit' obsolete.
83936         * modules/atexit (Status, Notice): New sections.
83937         * modules/chdir-long (Depends-on): Add atexit.
83938         * modules/wait-process (Depends-on): Likewise.
83940 2008-11-02  Bruno Haible  <bruno@clisp.org>
83942         * gnulib-tool: New option --with-obsolete.
83943         (func_usage): Document it.
83944         (func_modules_transitive_closure): Drop obsolete dependencies if
83945         incobsolete is not true.
83946         (func_import): Read and save the incobsolete variable to the cache.
83948 2008-11-02  Bruno Haible  <bruno@clisp.org>
83950         * modules/TEMPLATE-EXTENDED: New field 'Status'.
83951         * gnulib-tool: New option --extract-status.
83952         (func_usage): Document it.
83953         (sed_extract_prog): Recognize it.
83954         (func_get_status): New function.
83956 2008-10-30  Simon Josefsson  <simon@josefsson.org>
83958         * modules/sockets (License): Change from LGPL to LGPLv2+.
83960 2008-10-28  Simon Josefsson  <simon@josefsson.org>
83962         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
83964 2008-10-28  Simon Josefsson  <simon@josefsson.org>
83966         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83967         Mention times and sys_times.
83968         * modules/sys_times, modules/sys_times-tests: New modules.
83969         * modules/times, modules/times-tests: Likewise
83970         * m4/sys_times_h.m4: New file.
83971         * lib/sys_times.in.h: Likewise
83972         * lib/times.c: Likewise.
83973         * tests/test-sys_times.c: Likewise.
83974         * tests/test-times.c: Likewise.
83975         * doc/posix-headers/sys_times.texi: Update.
83976         * doc/posix-functions/times.texi: Update.
83978 2008-10-28  Jim Meyering  <meyering@redhat.com>
83980         * modules/tempname (Depends-on): Add lstat.
83982         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
83984 2008-10-28  Simon Josefsson  <simon@josefsson.org>
83986         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
83987         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
83988         using idiom used elsewhere in gnulib.
83990 2008-10-27  Jim Meyering  <meyering@redhat.com>
83992         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
83994 2008-10-27  Simon Josefsson  <simon@josefsson.org>
83996         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
83997         TESTS_ENVIRONMENT, for shell scripts that needs to call built
83998         programs.
83999         * tests/test-argp-2.sh: Use $EXEEXT when needed.
84001 2008-10-27  Simon Josefsson  <simon@josefsson.org>
84003         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
84005 2008-10-27  Bruno Haible  <bruno@clisp.org>
84007         * tests/test-lstat.c: Include <stdio.h>.
84009 2008-10-27  Simon Josefsson  <simon@josefsson.org>
84011         * modules/lstat-tests: New module.
84012         * tests/test-lstat.c: New file.
84014 2008-10-26  Jim Meyering  <meyering@redhat.com>
84016         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
84018 2008-10-26  Simon Josefsson  <simon@josefsson.org>
84019             Bruno Haible  <bruno@clisp.org>
84021         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
84022         * modules/configmake (Include): Add a note that the include must come
84023         after all system headers.
84024         * lib/javaversion.c: Include configmake.h after all other includes.
84026 2008-10-26  Bruno Haible  <bruno@clisp.org>
84028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
84029         HAVE_STRUCT_RANDOM_DATA to 1.
84030         (gl_STDLIB_H): Simplify.
84032 2008-10-26  Simon Josefsson  <simon@josefsson.org>
84034         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
84035         substitute HAVE_STRUCT_RANDOM_DATA.
84036         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
84037         random_data.
84038         * modules/stdlib (Makefile.am): Substitute
84039         HAVE_STRUCT_RANDOM_DATA.
84041 2008-10-26  Simon Josefsson  <simon@josefsson.org>
84043         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
84044         * doc/gnulib-intro.texi (Copyright): Likewise.
84046 2008-10-26  Simon Josefsson  <simon@josefsson.org>
84048         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
84049         findings.
84051 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
84052             Bruno Haible  <bruno@clisp.org>
84054         * lib/unistd.in.h: Include <winsock2.h>.
84055         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
84056         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
84057         Provide dummy declarations.
84058         (gethostname): Override.
84059         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
84060         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
84061         gl_PREREQ_SYS_H_WINSOCK2.
84062         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
84063         * doc/posix-functions/gethostname.texi: More details.
84065 2008-10-25  Bruno Haible  <bruno@clisp.org>
84067         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
84068         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
84069         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
84071         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
84072         here ...
84073         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
84074         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
84075         gl_UNISTD_H_DEFAULTS.
84077 2008-10-25  Eric Blake  <ebb9@byu.net>
84079         signbit: avoid spurious compiler failure
84080         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
84081         declarations inside function.
84083 2008-10-24  Simon Josefsson  <simon@josefsson.org>
84084             Bruno Haible  <bruno@clisp.org>
84086         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
84087         * modules/random_r (Depends-on): Add stdint.
84089 2008-10-24  Bruno Haible  <bruno@clisp.org>
84091         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
84092         Eggert.
84093         * modules/strerror (License): Likewise.
84095 2008-10-24  Jim Meyering  <meyering@redhat.com>
84097         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
84098         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
84100 2008-10-24  Eric Blake  <ebb9@byu.net>
84102         getgroups: fix compilation when getgroups is available
84103         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
84104         but with <config.h> override of getgroups disabled.
84106 2008-10-24  Simon Josefsson  <simon@josefsson.org>
84108         * doc/gnulib.texi (Header files): Add note about C++ problems.
84109         Explained by Bruno Haible <bruno@clisp.org>.
84111 2008-10-23  Bruno Haible  <bruno@clisp.org>
84113         Define a dummy SA_NODEFER macro on Interix.
84114         * lib/signal.in.h (SA_NODEFER): Define fallback.
84115         Reported by Aleksey Cheusov <cheusov@tut.by> via
84116         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
84118 2008-10-23  Bruno Haible  <bruno@clisp.org>
84120         * modules/freadahead (License): Change to LGPLv2+.
84121         Suggested by Simon Josefsson.
84123 2008-10-23  Jim Meyering  <meyering@redhat.com>
84125         random_r: new module
84126         * modules/random_r: New file.
84127         * m4/random_r.m4: New file.
84128         * lib/random_r.c: New file, from glibc.
84129         * modules/random_r-tests: New file.
84130         * tests/test-random_r.c: New file.
84131         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
84132          Declare.
84133         (RAND_MAX): Define.
84134         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
84135         * modules/stdlib: Substitute them, too.
84136         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
84137         * doc/glibc-functions/initstate_r.texi: Mention the new module.
84138         * doc/glibc-functions/random_r.texi: Likewise.
84139         * doc/glibc-functions/setstate_r.texi: Likewise.
84140         * doc/glibc-functions/srandom_r.texi: Likewise.
84141         * config/srclist.txt: Mention it.
84143 2008-10-23  David Lutterkort  <lutter@redhat.com>
84145         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
84146         link requirement
84148 2008-10-23  Jim Meyering  <meyering@redhat.com>
84150         selinux-h: mark parameters of stub functions as intentionally unused
84151         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
84152         * lib/se-context.in.h: Likewise.
84154 2008-10-22  Simon Josefsson  <simon@josefsson.org>
84156         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
84158 2008-10-22  Simon Josefsson  <simon@josefsson.org>
84160         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
84162 2008-10-22  Eric Blake  <ebb9@byu.net>
84164         glthread/thread: avoid compiler warning
84165         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
84166         Add unreachable abort to silence compiler.
84168 2008-10-22  Eric Blake  <ebb9@byu.net>
84170         netdb: also supply struct addrinfo for cygwin 1.5.x
84171         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
84172         older cygwin.
84173         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
84174         cygwin.
84175         * doc/posix-headers/netdb.texi (netdb.h): Document this.
84177 2008-10-22  Bruno Haible  <bruno@clisp.org>
84179         * users.txt: Update entry about pspp.
84181 2008-10-21  Bruno Haible  <bruno@clisp.org>
84183         Simplification.
84184         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
84185         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
84187         Simplification.
84188         * lib/ioctl.c (ioctl): Don't undefine.
84189         * lib/socket.c (socket): Don't undefine.
84191         Remove unused module indicator macros.
84192         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
84193         GNULIB_$1 as a C macro.
84195         * doc/posix-functions/close.texi: Undo last change.
84196         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
84197         Windows platforms.
84199 2008-10-21  Bruno Haible  <bruno@clisp.org>
84201         Add gethostname() declaration to <unistd.h>.
84202         * lib/unistd.in.h (gethostname): New declaration.
84203         * lib/gethostname.c: Include <unistd.h>.
84204         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
84205         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
84206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
84207         and HAVE_GETHOSTNAME.
84208         * modules/gethostname (Depends-on): Add unistd.
84209         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84210         (Include): Specify <unistd.h>.
84211         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
84212         HAVE_GETHOSTNAME.
84213         * tests/test-gethostname.c: Include <unistd.h> first.
84215 2008-10-21  Bruno Haible  <bruno@clisp.org>
84217         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
84218         * modules/select-tests (Depends-on): Likewise.
84219         Reported by Simon Josefsson.
84221 2008-10-21  Simon Josefsson  <simon@josefsson.org>
84223         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
84224         * lib/accept.c: New file, based on winsock.c.
84225         * lib/bind.c: New file, based on winsock.c.
84226         * lib/connect.c: New file, based on winsock.c.
84227         * lib/getpeername.c: New file, based on winsock.c.
84228         * lib/getsockname.c: New file, based on winsock.c.
84229         * lib/getsockopt.c: New file, based on winsock.c.
84230         * lib/ioctl.c: New file, based on winsock.c.
84231         * lib/listen.c: New file, based on winsock.c.
84232         * lib/recv.c: New file, based on winsock.c.
84233         * lib/recvfrom.c: New file, based on winsock.c.
84234         * lib/send.c: New file, based on winsock.c.
84235         * lib/sendto.c: New file, based on winsock.c.
84236         * lib/setsockopt.c: New file, based on winsock.c.
84237         * lib/shutdown.c: New file, based on winsock.c.
84238         * lib/socket.c: New file, based on winsock.c.
84239         * lib/w32sock.h: New file, based on winsock.c.
84240         * lib/winsock.c: Remove file.
84241         * modules/accept: Likewise.
84242         * modules/bind: Likewise.
84243         * modules/connect: Likewise.
84244         * modules/getpeername: Likewise.
84245         * modules/getsockname: Likewise.
84246         * modules/getsockopt: Likewise.
84247         * modules/ioctl: Likewise.
84248         * modules/listen: Likewise.
84249         * modules/recv: Likewise.
84250         * modules/recvfrom: Likewise.
84251         * modules/send: Likewise.
84252         * modules/sendto: Likewise.
84253         * modules/setsockopt: Likewise.
84254         * modules/shutdown: Likewise.
84255         * modules/socket: Use socket.c instead of winsock.c.
84256         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
84257         * doc/posix-functions/accept.texi: Doc fix.
84258         * doc/posix-functions/bind.texi: Doc fix.
84259         * doc/posix-functions/close.texi: Doc fix.
84260         * doc/posix-functions/connect.texi: Doc fix.
84261         * doc/posix-functions/getpeername.texi: Doc fix.
84262         * doc/posix-functions/getsockname.texi: Doc fix.
84263         * doc/posix-functions/getsockopt.texi: Doc fix.
84264         * doc/posix-functions/ioctl.texi: Doc fix.
84265         * doc/posix-functions/listen.texi: Doc fix.
84266         * doc/posix-functions/recv.texi: Doc fix.
84267         * doc/posix-functions/recvfrom.texi: Doc fix.
84268         * doc/posix-functions/send.texi: Doc fix.
84269         * doc/posix-functions/sendto.texi: Doc fix.
84270         * doc/posix-functions/setsockopt.texi: Doc fix.
84271         * doc/posix-functions/shutdown.texi: Doc fix.
84272         * doc/posix-functions/socket.texi: Doc fix.
84274 2008-10-20  Bruno Haible  <bruno@clisp.org>
84276         Take into account the role of SIGABRT_COMPAT on Windows 2008.
84277         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
84278         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
84279         as an alias for SIGABRT.
84280         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
84281         (sigaction): Map it to SIGABRT.
84282         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
84284 2008-10-20  Bruno Haible  <bruno@clisp.org>
84286         * lib/fts.c: Don't include lstat.h.
84287         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
84289         Move the lstat() declaration to <sys/stat.h>.
84290         * lib/lstat.h: Remove file.
84291         * lib/sys_stat.in.h: Add special invocation convention.
84292         (lstat): New declaration.
84293         * lib/lstat.c (orig_lstat): New function.
84294         (rpl_lstat): Use orig_lstat instead of lstat.
84295         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
84296         AC_C_INLINE. Set REPLACE_LSTAT.
84297         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
84298         and REPLACE_LSTAT.
84299         * modules/lstat (Files): Remove lib/lstat.h.
84300         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
84301         (Include): Specify <sys/stat.h> instead of lstat.h.
84302         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
84303         REPLACE_LSTAT.
84304         * NEWS: Mention the change.
84306 2008-10-20  Bruno Haible  <bruno@clisp.org>
84308         * modules/posix_spawn-tests: New file.
84309         * tests/test-posix_spawn3.c: New file.
84311 2008-10-20  Bruno Haible  <bruno@clisp.org>
84313         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
84314         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
84315         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
84316         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
84317         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
84319 2008-10-20  Bruno Haible  <bruno@clisp.org>
84321         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
84322         of posix_spawn on AIX 5.3.
84324 2008-10-20  Bruno Haible  <bruno@clisp.org>
84326         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
84328 2008-10-20  Bruno Haible  <bruno@clisp.org>
84330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
84331         of AC_LANG_PROGRAM.
84333 2008-10-20  Simon Josefsson  <simon@josefsson.org>
84335         * lib/netdb.in.h: Don't define GNU specific constants until they
84336         are supported or needed.  Reported by Bruno Haible
84337         <bruno@clisp.org>.
84339 2008-10-20  Simon Josefsson  <simon@josefsson.org>
84341         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
84343 2008-10-20  Simon Josefsson  <simon@josefsson.org>
84345         * lib/getaddrinfo.h: Remove file.
84346         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
84347         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
84348         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
84349         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
84350         * modules/netdb: Substitute GNULIB_GETADDRINFO.
84351         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
84352         * tests/test-getaddrinfo.c: Likewise.
84353         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
84354         * NEWS: Mention change.
84356 2008-10-19  Bruno Haible  <bruno@clisp.org>
84358         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
84360 2008-10-19  Bruno Haible  <bruno@clisp.org>
84362         * lib/wait-process.c: Include simply <sys/wait.h>.
84363         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
84364         WIFSTOPPED): Remove fallback definitions.
84365         * modules/wait-process (Depends-on): Add sys_wait.
84367         New module 'sys_wait'.
84368         * modules/sys_wait: New file.
84369         * lib/sys_wait.in.h: New file, partially copied from
84370         lib/wait-process.c.
84371         * m4/sys_wait_h.m4: New file.
84372         * doc/posix-headers/sys_wait.texi: Mention the new module.
84374 2008-10-19  Bruno Haible  <bruno@clisp.org>
84376         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
84378 2008-10-19  Bruno Haible  <bruno@clisp.org>
84380         Assume that waitpid() fills an 'int' status, not a 'union wait'.
84381         * lib/wait-process.c (WAIT_T): Remove type.
84382         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
84383         (wait_subprocess): Update.
84385 2008-10-19  Bruno Haible  <bruno@clisp.org>
84387         New module 'atoll'.
84388         * modules/atoll: New file.
84389         * lib/stdlib.in.h (atoll): New declaration.
84390         * lib/atoll.c: New file, from glibc with modifications.
84391         * m4/atoll.m4: New file.
84392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
84393         HAVE_ATOLL.
84394         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
84395         * doc/posix-functions/atoll.texi: Mention the new module.
84397 2008-10-19  Bruno Haible  <bruno@clisp.org>
84399         Add strtoull() declaration to <stdlib.h>.
84400         * lib/stdlib.in.h (strtoull): New declaration.
84401         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
84402         Set HAVE_STRTOULL.
84403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
84404         HAVE_STRTOULL.
84405         * modules/strtoull (Depends-on): Add stdlib.
84406         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84407         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
84408         HAVE_STRTOULL.
84410 2008-10-19  Bruno Haible  <bruno@clisp.org>
84412         Add strtoll() declaration to <stdlib.h>.
84413         * lib/stdlib.in.h (strtoll): New declaration.
84414         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
84415         Set HAVE_STRTOLL.
84416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
84417         HAVE_STRTOLL.
84418         * modules/strtoll (Depends-on): Add stdlib.
84419         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84420         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
84422 2008-10-19  Bruno Haible  <bruno@clisp.org>
84424         * modules/bcopy (Depends-on): Add strings.
84425         (Include): Specify <strings.h>.
84427 2008-10-19  Bruno Haible  <bruno@clisp.org>
84429         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
84431 2008-10-19  Bruno Haible  <bruno@clisp.org>
84433         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
84434         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
84435         mingw.
84437 2008-10-19  Bruno Haible  <bruno@clisp.org>
84439         * lib/atanl.c: Don't include isnanl.h.
84440         * lib/cosl.c: Likewise.
84441         * lib/ldexpl.c: Likewise.
84442         * lib/logl.c: Likewise.
84443         * lib/sinl.c: Likewise.
84444         * lib/sqrtl.c: Likewise.
84445         * lib/tanl.c: Likewise.
84447         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
84448         * lib/isnanf.h: Remove file.
84449         * lib/isnand.h: Remove file.
84450         * lib/isnanl.h: Remove file.
84451         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
84452         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
84453         macros.
84454         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
84455         HAVE_ISNANF, don't define it as a C macro.
84456         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
84457         HAVE_ISNAND, don't define it as a C macro.
84458         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
84459         HAVE_ISNANL, don't define it as a C macro.
84460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
84461         HAVE_ISNAN[FDL].
84462         * modules/isnanf (Files): Remove lib/isnanf.h.
84463         (Depends-on): Add math.
84464         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
84465         (Include): Specify <math.h> instead of isnanf.h.
84466         * modules/isnand (Files): Remove lib/isnand.h.
84467         (Depends-on): Add math.
84468         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
84469         (Include): Specify <math.h> instead of isnand.h.
84470         * modules/isnanl (Files): Remove lib/isnanl.h.
84471         (Depends-on): Add math.
84472         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
84473         (Include): Specify <math.h> instead of isnanl.h.
84474         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
84475         HAVE_ISNAN[FDL].
84476         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
84477         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
84478         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
84479         * NEWS: Mention the change.
84481 2008-10-18  Bruno Haible  <bruno@clisp.org>
84483         Add getusershell(), setusershell(), endusershell() declarations to
84484         <unistd.h>.
84485         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
84486         declarations.
84487         * lib/getusershell.c: Include unistd.h.
84488         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
84489         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
84490         HAVE_GETUSERSHELL.
84491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
84492         and HAVE_GETUSERSHELL.
84493         * modules/getusershell (Depends-on): Add unistd, extensions.
84494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84495         (Include): Specify <unistd.h>.
84496         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
84497         HAVE_GETUSERSHELL.
84499 2008-10-18  Bruno Haible  <bruno@clisp.org>
84501         Add a getloadavg() declaration to <stdlib.h>.
84502         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
84503         getloadavg declaration.
84504         (getloadavg): New declaration.
84505         * lib/getloadavg.c: Include <stdlib.h> first.
84506         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
84507         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
84508         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
84509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
84510         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
84511         * modules/getloadavg (Depends-on): Add stdlib, extensions.
84512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84513         (Include): Specify <stdlib.h>.
84514         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
84515         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
84517 2008-10-18  Bruno Haible  <bruno@clisp.org>
84519         * lib/dirchownmod.c: Don't include lchmod.h.
84521         Move the lchmod() declaration to <sys/stat.h>.
84522         * lib/lchmod.h: Remove file.
84523         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
84524         (lchmod): New declaration, moved here from lib/lchown.h.
84525         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
84526         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
84527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
84528         and HAVE_LCHMOD.
84529         * modules/lchmod (Files): Remove lib/lchmod.h.
84530         (Depends-on): Add sys_stat, extensions.
84531         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
84532         (Include): Specify <sys/stat.h> instead of lchmod.h.
84533         * modules/sys_stat (Depends-on): Add link-warning.
84534         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
84535         definition of GL_LINK_WARNING.
84536         * NEWS: Mention the change.
84538 2008-10-18  Bruno Haible  <bruno@clisp.org>
84540         * lib/fchdir.c: Don't include dirfd.h.
84541         * lib/fts.c: Likewise.
84542         * lib/getcwd.c: Likewise.
84543         * lib/glob.c: Likewise.
84545         Move the dirfd() declaration to <dirent.h>.
84546         * lib/dirfd.h: Remove file.
84547         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
84548         (dirfd): New declaration.
84549         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
84550         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
84551         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
84552         HAVE_DECL_DIRFD.
84553         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
84554         HAVE_DECL_DIRFD.
84555         * modules/dirfd (Files): Remove lib/dirfd.h.
84556         (Depends-on): Add dirent, extensions.
84557         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
84558         (Include): Specify <dirent.h> instead of dirfd.h.
84559         * modules/dirent (Depends-on): Add link-warning.
84560         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
84561         definition of GL_LINK_WARNING.
84562         * NEWS: Mention the change.
84564 2008-10-18  Bruno Haible  <bruno@clisp.org>
84566         Move the euidaccess() declaration to <unistd.h>.
84567         * lib/euidaccess.h: Remove file.
84568         * lib/unistd.in.h (euidaccess): New declaration.
84569         * lib/euidaccess.c: Don't include euidaccess.h.
84570         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
84571         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
84572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
84573         and HAVE_EUIDACCESS.
84574         * modules/euidaccess (Files): Remove lib/euidaccess.h.
84575         (Depends-on): Add unistd.
84576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84577         (Include): Specify <unistd.h> instead of euidaccess.h.
84578         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
84579         HAVE_EUIDACCESS.
84580         * NEWS: Mention the change.
84582 2008-10-18  Bruno Haible  <bruno@clisp.org>
84584         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
84586         Move the getdomainname() declaration to <unistd.h>.
84587         * lib/getdomainname.h: Remove file.
84588         * lib/unistd.in.h (getdomainname): New declaration.
84589         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
84590         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
84591         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
84592         HAVE_GETDOMAINNAME.
84593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
84594         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
84595         * modules/getdomainname (Files): Remove lib/getdomainname.h.
84596         (Depends-on): Add unistd, extensions.
84597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84598         (Includes): Specify <unistd.h> instead of getdomainname.h.
84599         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
84600         HAVE_GETDOMAINNAME.
84601         * NEWS: Mention the change.
84603 2008-10-18  Bruno Haible  <bruno@clisp.org>
84605         * modules/dirent: New file.
84606         * m4/dirent_h.m4: New file.
84607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
84608         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
84609         * modules/fchdir (Files): Remove lib/dirent.in.h.
84610         (Depends-on): Add dirent.
84611         (Makefile.am): Move rules to modules/dirent.
84612         * doc/posix-headers/dirent.texi: Mention the new module.
84614 2008-10-18  Bruno Haible  <bruno@clisp.org>
84616         Avoid -Wunused-parameter warnings in public gnulib header files.
84617         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
84618         macro.
84619         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
84621 2008-10-18  Bruno Haible  <bruno@clisp.org>
84623         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
84624         * doc/glibc-functions/error.texi: Mention the module 'error'.
84625         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
84626         * doc/glibc-functions/getdomainname.texi: Mention the module
84627         'getdomainname'.
84628         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
84629         * doc/glibc-functions/getpagesize.texi: Mention the module
84630         'getpagesize'.
84631         * doc/glibc-functions/getusershell.texi: Mention the module
84632         'getusershell'.
84633         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
84634         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
84635         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
84636         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
84637         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
84638         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
84639         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
84640         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
84641         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
84642         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
84643         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
84644         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
84645         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
84646         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
84648 2008-10-17  Bruno Haible  <bruno@clisp.org>
84650         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
84651         HP-UX and IRIX, use -0.0L.
84652         * tests/test-ceill.c (minus_zero): Likewise.
84653         * tests/test-floorl.c (minus_zero): Likewise.
84654         * tests/test-frexpl.c (minus_zero): Likewise.
84655         * tests/test-isnan.c (minus_zerol): Likewise.
84656         * tests/test-isnanl.h (minus_zero): Likewise.
84657         * tests/test-ldexpl.c (minus_zero): Likewise.
84658         * tests/test-roundl.c (minus_zero): Likewise.
84659         * tests/test-signbit.c (minus_zerol): Likewise.
84660         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84661         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84662         * tests/test-truncl.c (minus_zero): Likewise.
84663         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84664         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84665         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
84666         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84668 2008-10-17  Bruno Haible  <bruno@clisp.org>
84670         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
84671         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
84672         that it gets activated only for gcc >= 3.0.
84673         * lib/dirent.in.h: Likewise.
84674         * lib/errno.in.h: Likewise.
84675         * lib/fcntl.in.h: Likewise.
84676         * lib/float.in.h: Likewise.
84677         * lib/iconv.in.h: Likewise.
84678         * lib/inttypes.in.h: Likewise.
84679         * lib/locale.in.h: Likewise.
84680         * lib/math.in.h: Likewise.
84681         * lib/netdb.in.h: Likewise.
84682         * lib/netinet_in.in.h: Likewise.
84683         * lib/search.in.h: Likewise.
84684         * lib/signal.in.h: Likewise.
84685         * lib/spawn.in.h: Likewise.
84686         * lib/stdarg.in.h: Likewise.
84687         * lib/stdint.in.h: Likewise.
84688         * lib/stdio.in.h: Likewise.
84689         * lib/stdlib.in.h: Likewise.
84690         * lib/string.in.h: Likewise.
84691         * lib/strings.in.h: Likewise.
84692         * lib/sys_file.in.h: Likewise.
84693         * lib/sys_ioctl.in.h: Likewise.
84694         * lib/sys_select.in.h: Likewise.
84695         * lib/sys_socket.in.h: Likewise.
84696         * lib/sys_stat.in.h: Likewise.
84697         * lib/sys_time.in.h: Likewise.
84698         * lib/sysexits.in.h: Likewise.
84699         * lib/time.in.h: Likewise.
84700         * lib/unistd.in.h: Likewise.
84701         * lib/wchar.in.h: Likewise.
84702         * lib/wctype.in.h: Likewise.
84703         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84705 2008-10-17  Jim Meyering  <meyering@redhat.com>
84707         ignore-value: don't depend on inline module
84708         * modules/ignore-value (Depends-on): Remove 'inline'.
84709         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
84710         Suggestion from Bruno Haible.
84712 2008-10-17  Bruno Haible  <bruno@clisp.org>
84714         New implementation of condition variables for Win32.
84715         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
84716         (gl_linked_waitqueue_t): New type.
84717         (gl_cond_t): Use it.
84718         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
84719         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
84720         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
84721         (glthread_cond_init_func, glthread_cond_wait_func,
84722         glthread_cond_timedwait_func, glthread_cond_signal_func,
84723         glthread_cond_broadcast_func, glthread_cond_destroy_func):
84724         Reimplemented on the basis of gl_linked_waitqueue_t.
84725         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
84726         gl_waitqueue_t.
84727         (gl_rwlock_t): Update.
84728         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
84730 2008-10-17  Simon Josefsson  <simon@josefsson.org>
84732         * modules/recvfrom (Depends-on): Add dependency on getpeername.
84733         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84735 2008-10-17  Jim Meyering  <meyering@redhat.com>
84737         ignore-value: new module
84738         * modules/ignore-value: New file.
84739         * lib/ignore-value.h: New file.
84740         * MODULES.html.sh (Compiler warning management): New section,
84741         just for this module.  More to come.
84743 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84745         open-safer.c: avoid 'signed and unsigned in conditional...' warning
84746         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
84747         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
84749 2008-10-16  Jim Meyering  <meyering@redhat.com>
84751         openat-die.c: avoid 'no previous prototype' warning
84752         * lib/openat-die.c: Include "openat.h".
84753         Reported by Reuben Thomas <rrt@sc3d.org>.
84755 2008-10-16  Simon Josefsson  <simon@josefsson.org>
84757         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
84758         * lib/netdb.in.h: Fix typo.
84759         Reported by Bruno Haible  <bruno@clisp.org>
84761         * lib/netdb.in.h: Include sys/socket.h for platforms without
84762         netdb.h, to get structures like hostent on MinGW.
84763         * modules/netdb (Depends-on): Add sys_socket.
84765 2008-10-15  Simon Josefsson  <simon@josefsson.org>
84767         * modules/netdb, modules/netdb-tests: New file.
84768         * m4/netdb_h.m4: New file.
84769         * lib/netdb.in.h: Add, currently just an empty file pending
84770         definitions.
84771         * tests/test-netdb.c: New file.
84772         * doc/posix-headers/netdb.texi: Mention that we replace it if
84773         needed.
84774         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84775         netdb.
84777 2008-10-15  Simon Josefsson  <simon@josefsson.org>
84779         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
84780         with code.
84782 2008-10-13  Bruno Haible  <bruno@clisp.org>
84784         * lib/glthread/cond.c (glthread_cond_wait_func,
84785         glthread_cond_timedwait_func): Add a comment.
84787 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84789         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
84790         * tests/test-select.c: Likewise,
84792 2008-10-13  Bruno Haible  <bruno@clisp.org>
84794         * lib/glthread/cond.c (glthread_cond_wait_func,
84795         glthread_cond_timedwait_func): Fix variable name.
84796         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84798 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
84800         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
84801         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
84802         struct sockaddr.sa_len.
84803         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
84805 2008-10-13  Simon Josefsson  <simon@josefsson.org>
84807         * build-aux/pmccabe2html: Add css and css_url parameters.
84809 2008-10-12  Bruno Haible  <bruno@clisp.org>
84811         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
84812         calling aclx_get.
84813         Reported by Rainer Tammer <tammer@tammer.net>.
84815 2008-10-12  Bruno Haible  <bruno@clisp.org>
84817         Use msvcrt aware primitives for creation/termination of Win32 threads.
84818         * lib/glthread/thread.c: Include <process.h>.
84819         (glthread_create_func): Use _beginthreadex instead of CreateThread.
84820         (wrapper_func): Update signature.
84821         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
84823 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84824             Bruno Haible  <bruno@clisp.org>
84826         Provide a Win32 implementation of the 'cond' module.
84827         * lib/glthread/cond.h [USE_WIN32]: New implementation.
84828         * lib/glthread/cond.c (glthread_cond_init_func,
84829         glthread_cond_wait_func, glthread_cond_timedwait_func,
84830         glthread_cond_signal_func, glthread_cond_broadcast_func,
84831         glthread_cond_destroy_func) [USE_WIN32]: New functions.
84832         * modules/cond (Dependencies): Add gettimeofday.
84834 2008-10-11  Bruno Haible  <bruno@clisp.org>
84836         Make sleep work on older versions of mingw.
84837         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
84838         only whether it exists.
84839         * doc/posix-functions/sleep.texi: Mention the problem with older
84840         versions of mingw.
84842 2008-10-11  Bruno Haible  <bruno@clisp.org>
84844         New module 'shutdown'.
84845         * modules/shutdown: New file.
84846         * lib/sys_socket.in.h (shutdown): New declaration.
84847         * lib/winsock.c (shutdown): New function.
84848         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
84849         GNULIB_SHUTDOWN.
84850         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
84851         * doc/posix-functions/shutdown.texi: Document the new module.
84853 2008-10-11  Jim Meyering  <meyering@redhat.com>
84855         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
84857 2008-10-11  Bruno Haible  <bruno@clisp.org>
84859         New module 'fclose'.
84860         * modules/fclose: New file.
84861         * lib/stdio.in.h (fclose): New declaration.
84862         * lib/fclose.c: New file.
84863         * m4/fclose.m4: New file.
84864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
84865         REPLACE_FCLOSE.
84866         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
84867         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
84868         REPLACE_FCLOSE.
84869         * modules/close (Depends-on): fclose.
84870         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
84872 2008-10-11  Bruno Haible  <bruno@clisp.org>
84874         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
84875         set errno and don't call _close.
84877 2008-10-10  Bruno Haible  <bruno@clisp.org>
84879         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
84880         ACL, not afterwards. Fixes test failure on Cygwin.
84882 2008-10-09  Ben Pfaff  <blp@gnu.org>
84884         * build-aux/announce-gen: Fix gnulib version related part of usage
84885         message.  Die with a useful error message if no tarballs are
84886         found.
84888 2008-10-10  Jim Meyering  <meyering@redhat.com>
84890         bootstrap: use git's --depth=N option only if it's supported
84891         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
84892         recognize the --depth option.  Reported by Pádraig Brady.
84894 2008-10-09  Bruno Haible  <bruno@clisp.org>
84896         New module 'ioctl'.
84897         * modules/ioctl: New file.
84898         * lib/sys_socket.in.h (ioctl): Remove declaration.
84899         * lib/winsock.c: Include <sys/ioctl.h>.
84900         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
84901         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
84902         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
84903         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
84904         * doc/posix-functions/ioctl.texi: Mention the new module.
84906 2008-10-09  Bruno Haible  <bruno@clisp.org>
84908         New module 'sys_ioctl'.
84909         * lib/sys_ioctl.in.h: New file.
84910         * m4/sys_ioctl_h.m4: New file.
84911         * modules/sys_ioctl: New file.
84912         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
84914 2008-10-09  Bruno Haible  <bruno@clisp.org>
84916         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
84917         * lib/winsock.c: Include <stdarg.h>.
84918         (rpl_ioctl): Change to second argument 'int' and then varargs.
84920 2008-10-09  Bruno Haible  <bruno@clisp.org>
84922         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
84923         when the sys_socket module is present and the system has <winsock2.h>.
84925 2008-10-09  Bruno Haible  <bruno@clisp.org>
84927         * doc/posix-functions/close.texi: Mention module 'close' instead of
84928         module 'sys_socket'.
84930 2008-10-09  Bruno Haible  <bruno@clisp.org>
84932         * doc/glibc-headers/sys_ioctl.texi: New file.
84933         * doc/gnulib.texi: Include it.
84935 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84936             Bruno Haible  <bruno@clisp.org>
84938         Combine the two replacements of 'close'.
84939         * lib/sys_socket.in.h (close): Define to a reminder to include
84940         <unistd.h>.
84941         (_gl_close_fd_maybe_socket): New declaration.
84942         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
84943         * lib/winsock.c (close): Remove undefinition.
84944         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
84945         needed for the gnulib module 'close'.
84946         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
84947         define to an error symbol or to a warning, if suitable.
84948         * lib/close.c: Include <sys/socket.h>.
84949         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
84950         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
84951         UNISTD_H_HAVE_WINSOCK2_H.
84952         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
84953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
84954         UNISTD_H_HAVE_WINSOCK2_H.
84955         * modules/sys_socket (Files): Add m4/unistd_h.m4.
84956         (configure.ac): Set a module indicator.
84957         (Makefile.am): Substitute GNULIB_CLOSE.
84958         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
84959         * modules/poll-tests (Depends-on): Add close.
84960         * modules/select-tests (Depends-on): Likewise.
84962 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84963             Bruno Haible  <bruno@clisp.org>
84965         New module 'close'.
84966         * modules/close: New file.
84967         * lib/unistd.in.h (close): Move declaration out of the
84968         FCHDIR_REPLACEMENT scope.
84969         (_gl_unregister_fd): New declaration.
84970         * lib/close.c: New file.
84971         * lib/fchdir.c (rpl_close): Remove function.
84972         * m4/close.m4: New file.
84973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
84974         close.
84975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
84976         REPLACE_CLOSE.
84977         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
84978         REPLACE_CLOSE.
84979         * modules/fchdir (Depends-on): Add close.
84981 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84982             Bruno Haible  <bruno@clisp.org>
84984         * lib/fcntl.in.h (open): Simplify conditionals.
84985         (_gl_register_fd): New declaration.
84986         * lib/fchdir.c (rpl_open): Remove function.
84987         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
84988         also.
84989         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
84990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
84991         open.
84993 2008-10-09  Jim Meyering  <meyering@redhat.com>
84995         GNUmakefile: use the more name-space-friendly "_version"
84996         * top/GNUmakefile (_dummy): Update.
84997         (_version): Rename from "version".
84999 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
85000             Bruno Haible  <bruno@clisp.org>
85002         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
85003         rpl_close.
85004         (_gl_register_fd): New function, extracted from rpl_open.
85005         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
85006         (rpl_open, rpl_opendir): Use _gl_register_fd.
85008 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
85010         Fix organization of 'open' replacement.
85011         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
85012         (gl_FUNC_OPEN): Use it.
85013         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
85015 2008-10-08  Bruno Haible  <bruno@clisp.org>
85017         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
85019 2008-10-08  Simon Josefsson  <simon@josefsson.org>
85021         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
85022         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
85023         listen).
85025 2008-10-08  Eric Blake  <ebb9@byu.net>
85027         GNUmakefile: add 'make version' target
85028         * top/GNUmakefile (_curr-ver): Split version update rules...
85029         (version): ...into a target.
85031 2008-10-07  Bruno Haible  <bruno@clisp.org>
85033         Use a more portable replacement expression for -0.0L.
85034         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
85035         instead of -0.0L. Fix m4 quotation.
85037         * tests/test-signbit.c: Include <float.h>.
85038         (minus_zero): New variable.
85039         (test_signbitl): Use minus_zero instead of -zero.
85040         * modules/signbit-tests (Depends-on): Add float.
85042         * tests/test-ceill.c: Include <float.h>.
85043         (zero): Remove variable.
85044         (minus_zero): New variable.
85045         (main): Use minus_zero instead of -zero.
85046         * modules/ceill-tests (Depends-on): Add float.
85048         * tests/test-floorl.c: Include <float.h>.
85049         (zero): Remove variable.
85050         (minus_zero): New variable.
85051         (main): Use minus_zero instead of -zero.
85052         * modules/floorl-tests (Depends-on): Add float.
85054         * tests/test-roundl.c: Include <float.h>.
85055         (zero): Remove variable.
85056         (minus_zero): New variable.
85057         (main): Use minus_zero instead of -zero.
85058         * modules/roundl-tests (Depends-on): Add float.
85060         * tests/test-truncl.c: Include <float.h>.
85061         (zero): Remove variable.
85062         (minus_zero): New variable.
85063         (main): Use minus_zero instead of -zero.
85064         * modules/truncl-tests (Depends-on): Add float.
85066         * tests/test-frexpl.c (zero): Remove variable.
85067         (minus_zero): New variable.
85068         (main): Use minus_zero instead of -zero.
85069         * modules/frexpl-tests (Depends-on): Add float.
85071         * tests/test-isnan.c (zerol): Remove variable.
85072         (minus_zerol): New variable.
85073         (test_long_double): Use minus_zerol instead of -zerol.
85074         * modules/isnan-tests (Depends-on): Add float.
85076         * tests/test-isnanl.h (zero): Remove variable.
85077         (minus_zero): New variable.
85078         (main): Use minus_zero instead of -zero.
85079         * modules/isnanl-nolibm-tests (Depends-on): Add float.
85080         * modules/isnanl-tests (Depends-on): Add float.
85082         * tests/test-ldexpl.c (zero): Remove variable.
85083         (minus_zero): New variable.
85084         (main): Use minus_zero instead of -zero.
85085         * modules/ldexpl-tests (Depends-on): Add float.
85087         * tests/test-snprintf-posix.h (zerol): Remove variable.
85088         (minus_zerol): New variable.
85089         (test_function): Use minus_zerol instead of -zerol.
85090         * modules/snprintf-posix-tests (Depends-on): Add float.
85091         * modules/vsnprintf-posix-tests (Depends-on): Add float.
85093         * tests/test-sprintf-posix.h (zerol): Remove variable.
85094         (minus_zerol): New variable.
85095         (test_function): Use minus_zerol instead of -zerol.
85096         * modules/sprintf-posix-tests (Depends-on): Add float.
85097         * modules/vsprintf-posix-tests (Depends-on): Add float.
85099         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
85100         (minus_zerol): New variable.
85101         (test_function): Use minus_zerol instead of -zerol.
85102         * modules/vasnprintf-posix-tests (Depends-on): Add float.
85104         * tests/test-vasprintf-posix.c (zerol): Remove variable.
85105         (minus_zerol): New variable.
85106         (test_function): Use minus_zerol instead of -zerol.
85107         * modules/vasprintf-posix-tests (Depends-on): Add float.
85109 2008-10-07  Simon Josefsson  <simon@josefsson.org>
85111         * MODULES.html.sh (Support for building documentation): Mention
85112         pmccabe2html.  Sort entries.
85114         Add pmccabe2html module, from gnupdf.
85115         * build-aux/pmccabe.css: New file.
85116         * build-aux/pmccabe2html: New file.
85117         * m4/pmccabe2html.m4: New file.
85118         * modules/pmccabe2html: New file.
85120 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
85122         flock: new module
85123         * MODULES.html.sh: Add to list of modules.
85124         * lib/flock.c: flock implementation for Windows and Unix systems
85125         which have fcntl.
85126         * doc/glibc-functions/flock.texi: Update documentation.
85127         * lib/sys_file.in.h: <sys/file.h> header file.
85128         * m4/flock.m4: M4 macros.
85129         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
85130         * modules/flock: flock module.
85131         * modules/flock-tests: flock tests module.
85132         * modules/sys_file: sys/file.h module.
85133         * tests/test-flock.c: test suite for flock.
85135 2008-10-06  Jim Meyering  <meyering@redhat.com>
85137         bootstrap: check for LT_INIT more portably still ;-)
85138         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
85139         Spotted by Bruno Haible.
85141 2008-10-06  Eric Blake  <ebb9@byu.net>
85143         test-signbit: avoid tripping Irix cc bug on -0.0L
85144         * tests/test-signbit.c (minus_zerol): Delete, and replace with
85145         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
85146         entire testsuite consistent and avoids an Irix 6.2 bug.
85148 2008-10-05  Bruno Haible  <bruno@clisp.org>
85149             Jim Meyering  <jim@meyering.net>
85151         Add an option for ignoring EPIPE during close_stdout.
85152         * lib/closeout.h: Include <stdbool.h>.
85153         (close_stdout_set_ignore_EPIPE): New declaration.
85154         * lib/closeout.c: Include <stdbool.h>.
85155         (ignore_EPIPE): New variable.
85156         (close_stdout_set_ignore_EPIPE): New function.
85157         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
85158         * lib/close-stream.c (close_stream): Mention the possible EPIPE
85159         failure.
85160         * modules/closeout (Depends-on): Add stdbool.
85162 2008-10-05  Bruno Haible  <bruno@clisp.org>
85164         * modules/accept: New file.
85165         * modules/bind: New file.
85166         * modules/connect: New file.
85167         * modules/getpeername: New file.
85168         * modules/getsockname: New file.
85169         * modules/getsockopt: New file.
85170         * modules/listen: New file.
85171         * modules/recv: New file.
85172         * modules/recvfrom: New file.
85173         * modules/send: New file.
85174         * modules/sendto: New file.
85175         * modules/setsockopt: New file.
85176         * modules/socket: New file.
85177         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
85178         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
85179         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
85180         the particular module is requested. Add a link warning when the
85181         particular module is not requested.
85182         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
85183         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
85184         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
85185         the particular module is requested.
85186         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
85187         gl_SYS_SOCKET_H_DEFAULTS): New macros.
85188         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
85189         * modules/sys_socket (Depends-on): Add link-warning.
85190         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
85191         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
85192         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
85193         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
85194         GL_LINK_WARNING.
85195         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
85196         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
85197         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
85198         * doc/posix-functions/getpeername.texi: Mention the new module
85199         'getpeername'.
85200         * doc/posix-functions/getsockname.texi: Mention the new module
85201         'getsockname'.
85202         * doc/posix-functions/getsockopt.texi: Mention the new module
85203         'getsockopt'.
85204         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
85205         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
85206         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
85207         * doc/posix-functions/send.texi: Mention the new module 'send'.
85208         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
85209         * doc/posix-functions/setsockopt.texi: Mention the new module
85210         'setsockopt'.
85211         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
85212         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
85213         listen, connect, accept.
85214         * modules/select-tests (Depends-on): Likewise.
85216 2008-10-05  Bruno Haible  <bruno@clisp.org>
85218         * lib/winsock.c (strerror): Remove unused #undef.
85219         (rpl_close): Remove unused local variable.
85221         * modules/sys_socket (Depends-on); Add errno.
85223 2008-10-05  Bruno Haible  <bruno@clisp.org>
85225         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
85226         (select): Add a link warning when the 'select' module is not used.
85227         * modules/sys_select (Depends-on): Add link-warning.
85228         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
85229         Suggested by Paolo Bonzini.
85231 2008-10-05  Jim Meyering  <meyering@redhat.com>
85233         bootstrap: check for LT_INIT more portably
85234         * build-aux/bootstrap: Avoid using grep -E, since it's not
85235         portable enough.  Suggestion from Bruno Haible.
85237 2008-10-05  Bruno Haible  <bruno@clisp.org>
85239         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
85240         as being fixed by gnulib.
85242 2008-10-05  Bruno Haible  <bruno@clisp.org>
85244         * modules/select-tests: New file, mostly copied from
85245         modules/sys_select-tests.
85246         * tests/test-select.c: New file, mostly copied from
85247         tests/test-sys_select.c.
85248         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
85249         * modules/sys_select-tests (Depends-on): Remove all dependencies.
85250         (Makefile.am): Remove test_sys_select_LDADD.
85252         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
85253         to an undefined symbol, for an error message.
85254         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
85255         (gl_SYS_SELECT_H_DEFAULTS): New macro.
85256         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
85257         winsock-select.c here.
85258         * modules/sys_select (Files): Remove lib/winsock-select.c.
85259         (Depends-on): Remove alloca.
85260         (Makefile.am): Substitute GNULIB_SELECT.
85261         * modules/select: New file.
85262         * doc/posix-functions/select.texi: Update.
85264 2008-10-05  Bruno Haible  <bruno@clisp.org>
85266         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
85267         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
85268         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
85269         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
85270         getdtablesize.
85271         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
85272         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
85274 2008-10-05  Bruno Haible  <bruno@clisp.org>
85276         * modules/getdtablesize-tests: New file.
85277         * tests/test-getdtablesize.c: New file.
85279         New module 'getdtablesize'.
85280         * lib/unistd.in.h (getdtablesize): New declaration.
85281         * lib/getdtablesize.c: New file.
85282         * m4/getdtablesize.m4: New file.
85283         * modules/getdtablesize: New file.
85284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
85285         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
85286         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
85287         HAVE_GETDTABLESIZE.
85288         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
85290 2008-10-05  Bruno Haible  <bruno@clisp.org>
85292         * modules/sched (Makefile.am): Fix typo.
85293         Reported by Simon Josefsson.
85295 2008-10-05  Jim Meyering  <meyering@redhat.com>
85297         bootstrap: check for LT_INIT, too
85298         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
85299         are deprecated.  Suggestion from Ralf Wildenhues.
85301 2008-10-05  Bruno Haible  <bruno@clisp.org>
85303         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
85304         overriding them by ours.
85305         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
85307 2008-10-05  Jim Meyering  <meyering@redhat.com>
85309         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
85310         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
85311         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
85313 2008-10-04  Bruno Haible  <bruno@clisp.org>
85315         * modules/dup2 (License): Change to LGPLv2+.
85316         * modules/sleep (License): Likewise.
85317         * modules/perror (License): Likewise.
85318         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
85319         Blake.
85320         * modules/signal (License): Likewise.
85321         * modules/sigprocmask (License): Likewise.
85322         * modules/raise (License): Change to LGPLv2+, with approval by Jim
85323         Meyering.
85325 2008-10-04  Bruno Haible  <bruno@clisp.org>
85327         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
85328         Reported by Rainer Tammer <tammer@tammer.net>.
85330 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
85331             Bruno Haible  <bruno@clisp.org>
85333         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
85334         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
85335         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
85337 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
85339         filevercmp: new module
85340         * lib/filevercmp.h: New function filevercmp comparing version strings.
85341         * lib/filevercmp.c: Implementation of filevercmp function.
85342         * modules/filevercmp: Module metadata.
85343         * tests/test-filevercmp.c: Unit test for new module.
85344         * modules/filevercmp-tests: Unit test metadata.
85345         * MODULES.html.sh: Add filevercmp module.
85347 2008-10-03  Bruno Haible  <bruno@clisp.org>
85349         * lib/c-ctype.h: Add comment.
85350         Reported by Jim Meyering.
85352 2008-10-02  Bruno Haible  <bruno@clisp.org>
85354         * modules/posix_spawn-internal (Depends-on): Add 'open'.
85356 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
85358         * build-aux/bootstrap: Allow renaming bootstrap, and change the
85359         name of bootstrap.conf accordingly.
85361 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
85363         * build-aux/bootstrap: Install git-merge-changelog configuration
85364         items into .gitconfig if needed.
85366 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
85368         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
85369         git repository, and initialize/update it accordingly.
85371 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
85373         * modules/fsync-tests: New file.
85374         * tests/test-fsync.c: New file.
85376         New module 'fsync'.
85377         * lib/fsync.c: New file.
85378         * m4/fsync.m4: New file.
85379         * modules/fsync: New file.
85380         * lib/unistd.in.h (fsync): New declaration.
85381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
85382         GNULIB_FSYNC and HAVE_FSYNC.
85383         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
85384         * MODULES.html.sh (posix_functions): Add fsync.
85385         * doc/posix-functions/fsync.texi: Mention the new module.
85387 2008-10-02  Jim Meyering  <meyering@redhat.com>
85389         fts.c: sync with similar code from coreutils' remove.c
85390         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
85391         Guard also with "#if defined __linux__", since for now at least,
85392         this code is Linux-kernel-specific.
85394 2008-10-02  Jim Meyering  <meyering@redhat.com>
85396         fts: bug fixes
85397         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
85398         Include <sys/vfs.h>, not <sys/statfs.h>.
85400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
85401         Include <sys/vfs.h>, not <sys/statfs.h>.
85403 2008-10-01  Bruno Haible  <bruno@clisp.org>
85405         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
85406         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
85407         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
85408         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
85409         * doc/posix-functions/posix_spawnp.texi: Likewise.
85410         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
85411         whether posix_spawn actually works.
85412         * m4/pipe.m4 (gl_PIPE): Likewise.
85413         * modules/execute (Files): Add m4/posix_spawn.m4.
85414         * modules/pipe (Files): Add m4/posix_spawn.m4.
85415         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
85417 2008-10-01  Jim Meyering  <meyering@redhat.com>
85419         remove trailing spaces
85420         * NEWS: Likewise.
85421         * lib/poll.c (poll): Likewise.
85422         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
85423         * lib/winsock.c (rpl_close): Likewise.
85424         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
85425         * modules/yield: Likewise.
85426         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
85427         * tests/test-sys_select.c (connect_to_socket): Likewise.
85429         fts.c: adjust a new interface to be more generally useful
85430         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
85431         (fts_build): Adjust caller.
85433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85435         * modules/cond-tests: New file.
85436         * tests/test-cond.c: New file.
85438 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85439             Bruno Haible  <bruno@clisp.org>
85441         * modules/cond (Dependencies): Add errno, time.
85442         * lib/glthread/cond.h: Include <time.h>.
85443         (gl_cond_define, gl_cond_define_initialized): Use the same definition
85444         across platforms.
85446 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85447             Bruno Haible  <bruno@clisp.org>
85449         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
85451 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85452             Bruno Haible  <bruno@clisp.org>
85454         * modules/tls-tests (Depends-on): Add thread, yield.
85455         (configure.ac): Remove all checks.
85456         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
85457         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
85458         gl_thread_self): Remove definitions. Include glthread/thread.h and
85459         glthread/yield.h instead.
85460         (test_tls): Pass an additional NULL argument to gl_thread_join.
85462 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85463             Bruno Haible  <bruno@clisp.org>
85465         * modules/lock-tests (Depends-on): Add thread, yield.
85466         (configure.ac): Remove all checks.
85467         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
85468         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
85469         gl_thread_self): Remove definitions. Include glthread/thread.h and
85470         glthread/yield.h instead.
85471         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
85472         additional NULL argument to gl_thread_join.
85474 2008-09-30  Bruno Haible  <bruno@clisp.org>
85476         Fix the Win32 implementation of the 'thread' module.
85477         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
85478         pointer type.
85479         (gl_thread_self): Invoke gl_thread_self_func.
85480         (gl_thread_self_func): New declaration.
85481         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
85482         (do_init_self_key, init_self_key): New functions.
85483         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
85484         Remove some fields.
85485         (running_threads, running_lock): Remove variables.
85486         (get_current_thread_handle): New function.
85487         (gl_thread_self_func, wrapper_func, glthread_create_func,
85488         glthread_join_func, gl_thread_exit_func): Largely rewritten and
85489         simplified.
85491 2008-09-30  Bruno Haible  <bruno@clisp.org>
85493         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
85494         files.
85496 2008-09-30  Jim Meyering  <meyering@redhat.com>
85498         fts.m4: correct the test for statfs.f_type
85499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
85500         when checking for statfs.f_type.
85502 2008-09-15  Simon Josefsson  <simon@josefsson.org>
85504         tests: avoid some compiler warnings
85505         * tests/test-memchr.c (main): Pass NULL indirectly.
85506         * tests/test-getdate.c (main): Remove unused variable 'ret'.
85508 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
85510         getdate.y: disallow countable dayshifts like "4 yesterday ago"
85511         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
85512         exactly specified dayshifts.
85513         (dayshift): New rule.
85514         (rel): Add dayshift.
85515         (relative_time_table) [tomorrow, yesterday, today, now]:
85516         Use tDAY_SHIFT in place of tDAY_UNIT.
85517         * tests/test-getdate.c: Add tests for now-disallowed countable
85518         dayshifts, e.g., "4 yesterday ago".
85520 2008-09-29  Bruno Haible  <bruno@clisp.org>
85522         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
85523         * tests/test-posix_spawn1.in.sh: Renamed from
85524         tests/test-posix_spawn.in.sh.
85525         * tests/test-posix_spawn2.c: New file.
85526         * tests/test-posix_spawn2.in.sh: New file.
85527         * modules/posix_spawnp-tests (Files): Update.
85528         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
85530 2008-09-29  Bruno Haible  <bruno@clisp.org>
85532         Propagate effects of putenv/setenv/unsetenv to child processes.
85533         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
85534         * lib/pipe.c (create_pipe): Likewise.
85536 2008-09-29  Bruno Haible  <bruno@clisp.org>
85538         Enable use of shell scripts as executables in mingw.
85539         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
85540         run the program as a shell script.
85541         * lib/pipe.c (create_pipe): Likewise.
85542         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
85543         resulting array.
85545 2008-09-29  Eric Blake  <ebb9@byu.net>
85547         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
85549 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
85551         * doc/posix-functions/accept.texi: Update mingw problems.
85552         * doc/posix-functions/bind.texi: Update mingw problems.
85553         * doc/posix-functions/close.texi: Update mingw problems.
85554         * doc/posix-functions/connect.texi: Update mingw problems.
85555         * doc/posix-functions/getpeername.texi: Update mingw problems.
85556         * doc/posix-functions/getsockname.texi: Update mingw problems.
85557         * doc/posix-functions/getsockopt.texi: Update mingw problems.
85558         * doc/posix-functions/ioctl.texi: Update mingw problems.
85559         * doc/posix-functions/listen.texi: Update mingw problems.
85560         * doc/posix-functions/recv.texi: Update mingw problems.
85561         * doc/posix-functions/recvfrom.texi: Update mingw problems.
85562         * doc/posix-functions/select.texi: Update mingw problems.
85563         * doc/posix-functions/send.texi: Update mingw problems.
85564         * doc/posix-functions/sendto.texi: Update mingw problems.
85565         * doc/posix-functions/setsockopt.texi: Update mingw problems.
85566         * doc/posix-functions/socket.texi: Update mingw problems.
85568 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
85569             Bruno Haible  <bruno@clisp.org>
85571         * lib/sys_select.in.h: Include sys/time.h.
85572         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
85573         * modules/sys_select: Depend on sys_time.
85574         * tests/test-sys_select.c: Test that sys/select.h defines struct
85575         timeval fully.
85577 2008-09-29  Bruno Haible  <bruno@clisp.org>
85579         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
85580         * lib/sys_select.in.h: Likewise.
85582 2008-09-29  Bruno Haible  <bruno@clisp.org>
85584         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
85586 2008-09-29  Bruno Haible  <bruno@clisp.org>
85588         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
85589         Set LIBSOCKET instead of augmenting LIBS.
85590         * modules/sockets (Link): New section.
85591         * modules/sockets-tests (test_sockets_LDADD): New variable.
85592         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
85593         * modules/poll-tests (test_poll_LDADD): New variable.
85594         * NEWS: Document the change.
85596 2008-09-29  Bruno Haible  <bruno@clisp.org>
85598         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
85599         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
85600         ARPA_INET_H directly.
85601         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
85603 2008-09-28  Bruno Haible  <bruno@clisp.org>
85605         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
85606         from gl_HEADER_SYS_SOCKET.
85607         (gl_HEADER_SYS_SOCKET): Invoke it.
85608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85610 2008-09-28  Bruno Haible  <bruno@clisp.org>
85612         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
85613         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
85614         Needed on OSF/1 4.0.
85616 2008-09-28  Bruno Haible  <bruno@clisp.org>
85618         Override open more carefully.
85619         * lib/open.c (orig_open): New function.
85620         (rpl_open): Use orig_open instead of open.
85621         * lib/fcntl.in.h: Add special invocation convention.
85622         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
85623         (gl_FUNC_OPEN): Invoke it.
85625         Override freopen more carefully.
85626         * lib/freopen.c (orig_freopen): New function.
85627         (rpl_freopen): Use orig_freopen instead of freopen.
85628         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
85629         (gl_FUNC_FREOPEN): Invoke it.
85631         Override fopen more carefully.
85632         * lib/fopen.c (orig_fopen): New function.
85633         (rpl_fopen): Use orig_fopen instead of fopen.
85634         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
85635         (gl_FUNC_FOPEN): Invoke it.
85636         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
85638 2008-09-28  Bruno Haible  <bruno@clisp.org>
85640         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
85641         SIGPIPE.
85643 2008-09-28  Bruno Haible  <bruno@clisp.org>
85645         * tests/test-sigaction.c (handler, main): Disable the check whether
85646         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
85647         glibc systems with LinuxThreads.
85649 2008-09-28  Bruno Haible  <bruno@clisp.org>
85651         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
85653         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
85654         with AIX xlc.
85655         * lib/fcntl.in.h (open): Likewise.
85656         Reported by Rainer Tammer <tammer@tammer.net>.
85658 2008-09-28  Bruno Haible  <bruno@clisp.org>
85660         * modules/posix_spawnp-tests: New file.
85661         * tests/test-posix_spawn.c: New file.
85662         * tests/test-posix_spawn.in.sh: New file.
85664         New module 'posix_spawnp'.
85665         * modules/posix_spawnp: New file.
85666         * lib/spawnp.c: New file, from GNU libc with modifications.
85667         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
85669         New module 'posix_spawn'.
85670         * modules/posix_spawn: New file.
85671         * lib/spawn.c: New file, from GNU libc with modifications.
85672         * doc/posix-functions/posix_spawn.texi: Mention the new module.
85674         New module 'posix_spawnattr_destroy'.
85675         * modules/posix_spawnattr_destroy: New file.
85676         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
85677         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
85678         module.
85680         New module 'posix_spawnattr_setsigmask'.
85681         * modules/posix_spawnattr_setsigmask: New file.
85682         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
85683         modifications.
85684         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
85685         new module.
85687         New module 'posix_spawnattr_getsigmask'.
85688         * modules/posix_spawnattr_getsigmask: New file.
85689         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
85690         modifications.
85691         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
85692         new module.
85694         New module 'posix_spawnattr_setsigdefault'.
85695         * modules/posix_spawnattr_setsigdefault: New file.
85696         * lib/spawnattr_setdefault.c: New file, from GNU libc with
85697         modifications.
85698         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
85699         new module.
85701         New module 'posix_spawnattr_getsigdefault'.
85702         * modules/posix_spawnattr_getsigdefault: New file.
85703         * lib/spawnattr_getdefault.c: New file, from GNU libc with
85704         modifications.
85705         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
85706         new module.
85708         New module 'posix_spawnattr_setschedpolicy'.
85709         * modules/posix_spawnattr_setschedpolicy: New file.
85710         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
85711         modifications.
85712         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
85713         new module.
85715         New module 'posix_spawnattr_getschedpolicy'.
85716         * modules/posix_spawnattr_getschedpolicy: New file.
85717         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
85718         modifications.
85719         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
85720         new module.
85722         New module 'posix_spawnattr_setschedparam'.
85723         * modules/posix_spawnattr_setschedparam: New file.
85724         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
85725         modifications.
85726         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
85727         new module.
85729         New module 'posix_spawnattr_getschedparam'.
85730         * modules/posix_spawnattr_getschedparam: New file.
85731         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
85732         modifications.
85733         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
85734         new module.
85736         New module 'posix_spawnattr_setpgroup'.
85737         * modules/posix_spawnattr_setpgroup: New file.
85738         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
85739         modifications.
85740         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
85741         module.
85743         New module 'posix_spawnattr_getpgroup'.
85744         * modules/posix_spawnattr_getpgroup: New file.
85745         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
85746         modifications.
85747         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
85748         module.
85750         New module 'posix_spawnattr_setflags'.
85751         * modules/posix_spawnattr_setflags: New file.
85752         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
85753         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
85754         module.
85756         New module 'posix_spawnattr_getflags'.
85757         * modules/posix_spawnattr_getflags: New file.
85758         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
85759         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
85760         module.
85762         New module 'posix_spawnattr_init'.
85763         * modules/posix_spawnattr_init: New file.
85764         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
85765         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
85766         module.
85768         New module 'posix_spawn_file_actions_destroy'.
85769         * modules/posix_spawn_file_actions_destroy: New file.
85770         * lib/spawn_faction_destroy.c: New file, from GNU libc with
85771         modifications.
85772         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
85773         the new module.
85775         New module 'posix_spawn_file_actions_addopen'.
85776         * modules/posix_spawn_file_actions_addopen: New file.
85777         * lib/spawn_faction_addopen.c: New file, from GNU libc with
85778         modifications.
85779         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
85780         the new module.
85782         New module 'posix_spawn_file_actions_adddup2'.
85783         * modules/posix_spawn_file_actions_adddup2: New file.
85784         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
85785         modifications.
85786         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
85787         the new module.
85789         New module 'posix_spawn_file_actions_addclose'.
85790         * modules/posix_spawn_file_actions_addclose: New file.
85791         * lib/spawn_faction_addclose.c: New file, from GNU libc with
85792         modifications.
85793         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
85794         the new module.
85796         New module 'posix_spawn_file_actions_init'.
85797         * modules/posix_spawn_file_actions_init: New file.
85798         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
85799         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
85800         new module.
85802         New module 'posix_spawn-internal'.
85803         * modules/posix_spawn-internal: New file.
85804         * lib/spawn_int.h: New file, from GNU libc with modifications.
85805         * lib/spawni.c: New file, from GNU libc with modifications.
85806         * m4/posix_spawn.m4: New file.
85808         New module 'spawn'.
85809         * modules/spawn: New file.
85810         * lib/spawn.in.h: New file, from GNU libc with modifications.
85811         * m4/spawn_h.m4: New file.
85812         * doc/posix-headers/spawn.texi: Mention the new module.
85814 2008-09-28  Bruno Haible  <bruno@clisp.org>
85816         * modules/sched-tests: New file.
85817         * tests/test-sched.c: New file.
85819         New module 'sched'.
85820         * modules/sched: New file.
85821         * lib/sched.in.h: New file.
85822         * m4/sched_h.m4: New file.
85823         * doc/posix-headers/sched.texi: Mention the new module.
85825 2008-09-27  Eric Blake  <ebb9@byu.net>
85827         Fix previous patch, and tweak references to $0.
85828         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
85829         (func_version, func_gnulib_dir): Don't call this program
85830         gnulib-tool.
85831         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
85832         with using $0 in function.
85833         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
85834         (func_fatal_error): Reuse the name the user invoked us with.
85836 2008-09-27  Bruno Haible  <bruno@clisp.org>
85838         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
85839         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
85840         (gl_ICONV_H): Not here.
85841         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
85842         instead of assigning ICONV_H directly.
85844         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
85845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
85846         WCHAR_H directly.
85848 2008-09-27  Bruno Haible  <bruno@clisp.org>
85850         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
85851         * modules/arpa_inet (Depends-on): Add link-warning.
85852         (Makefile.am): Insert the definition of GL_LINK-WARNING.
85853         * modules/unistd (Makefile.am): Likewise.
85855 2008-09-26  Bruno Haible  <bruno@clisp.org>
85857         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
85858         variables.
85859         (func_version): Essentially copied from gnulib-tool.
85860         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
85861         func_readlink): Copied from gnulib-tool.
85863 2008-09-26  Bruno Haible  <bruno@clisp.org>
85865         * gnulib-tool (func_version): Change directory to $gnulib_dir before
85866         invoking git-version-gen.
85868 2008-09-26  Bruno Haible  <bruno@clisp.org>
85870         * posix-modules: Update to directory names changed on 2008-01-19.
85871         Remove commas in output before splitting into words. No more need to
85872         avoid 'ftruncate' since 2007-02-19.
85874 2008-09-26  Bruno Haible  <bruno@clisp.org>
85876         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
85878 2008-09-26  Bruno Haible  <bruno@clisp.org>
85880         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
85881         * modules/fwriteerror (Depends-on): Add errno.
85883 2008-09-26  Bruno Haible  <bruno@clisp.org>
85885         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
85886         * tests/test-vc-list-files-cvs.sh: Likewise.
85888 2008-09-26  Bruno Haible  <bruno@clisp.org>
85890         * doc/posix-headers/sys_resource.texi: Reorder items.
85892 2008-09-26  Jim Meyering  <meyering@redhat.com>
85894         fts: tweak inode comparison function
85895         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
85896         inode numbers, as documented.
85898         fts: sort dirent entries on inode number before traversing
85899         This avoids a quadratic, seek-related performance penalty when
85900         operating on a directory containing many entries (measurable at 10k;
85901         3.5 hours at 2 million entries with a cold cache) on certain types
85902         of file systems, including ext3 and ext4, but not tmpfs.
85903         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
85904         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
85905         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
85906         (fs_handles_readdir_ordered_dirents_efficiently): New function.
85907         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
85908         (fts_build): Set the stat.st_ino member from D_INO.
85909         If it is likely to be useful, sort dirent entries on inode number.
85911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
85912         and the struct statfs.f_type member.
85913         * modules/fts (Depends-on): Add d-ino.
85915 2008-09-26  Bruno Haible  <bruno@clisp.org>
85917         * modules/sigpipe-die (Depends-on): Add sigpipe.
85919         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
85920         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
85921         and GNULIB_STDIO_H_SIGPIPE are set.
85922         * lib/stdio-write.c: New file.
85923         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
85924         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
85925         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
85926         REPLACE_STDIO_WRITE_FUNCS.
85927         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
85928         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
85929         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
85930         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
85931         * modules/stdio (Files): Add lib/stdio-write.c.
85932         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
85933         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
85934         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
85935         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
85936         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
85937         REPLACE_FPRINTF_POSIX.
85938         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
85939         REPLACE_PRINTF_POSIX.
85940         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
85941         REPLACE_VFPRINTF_POSIX.
85942         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
85943         REPLACE_VPRINTF_POSIX.
85944         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
85945         SIGPIPE issue.
85946         * doc/posix-functions/fputc.texi: Likewise.
85947         * doc/posix-functions/fputs.texi: Likewise.
85948         * doc/posix-functions/fwrite.texi: Likewise.
85949         * doc/posix-functions/printf.texi: Likewise.
85950         * doc/posix-functions/putc.texi: Likewise.
85951         * doc/posix-functions/putchar.texi: Likewise.
85952         * doc/posix-functions/puts.texi: Likewise.
85953         * doc/posix-functions/vfprintf.texi: Likewise.
85954         * doc/posix-functions/vprintf.texi: Likewise.
85956         * modules/safe-write (Depends-on): Add write.
85958         * modules/sigpipe-tests: New file.
85959         * tests/test-sigpipe.c: New file.
85960         * tests/test-sigpipe.sh: New file.
85962         * modules/write: New file.
85963         * lib/unistd.in.h: Include <sys/types.h>.
85964         (write): New declaration.
85965         * lib/write.c: New file.
85966         * m4/write.m4: New file.
85967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
85968         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
85969         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
85970         GNULIB_WRITE, REPLACE_WRITE.
85971         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
85972         and the SIGPIPE issue.
85974         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
85975         (raise): New declaration.
85976         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
85977         (ext_signal): New function.
85978         (rpl_raise): New function.
85979         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
85980         GNULIB_SIGNAL_H_SIGPIPE.
85981         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
85982         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
85984         * modules/sigpipe: New file.
85985         * m4/sigpipe.m4: New file.
85987 2008-09-25  Derek Price  <derek@ximbiot.com>
85988             Bruno Haible  <bruno@clisp.org>
85990         * gnulib-tool (func_import): Report all license incompatibilities, not
85991         just the first one.
85993 2008-09-25  Bruno Haible  <bruno@clisp.org>
85995         * gnulib-tool (func_import): When computing the edits, consider not
85996         only the Makefile.ams that exist but also those that will be generated.
85998 2008-09-25  Simon Josefsson  <simon@josefsson.org>
86000         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
86001         fixes gnulib-tool --test warning about duplicate dependency.
86003 2008-09-25  Bruno Haible  <bruno@clisp.org>
86005         * gnulib-tool: Don't ask the user to perform edits in the generated
86006         Makefile.ams.
86007         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
86008         apply to the Makefile.am being generated.
86009         (func_emit_tests_Makefile_am): Execute edits that apply to the
86010         Makefile.am being generated.
86011         (func_import): Setup list of Makefile.am edits before emitting the
86012         Makefile.ams, not at the end.
86013         (func_create_testdir): Update.
86014         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86016 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86018         * gnulib-tool (func_import): Store the --tests-base option in the
86019         comment in gnulib-cache.m4.
86021 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
86023         * NEWS: Document increased portability that sys_select now provides.
86025         * lib/sys_select.in.h: Install select wrapper.
86026         * lib/sys_socket.in.h: Use more descriptive name when there is no
86027         select wrapper.
86028         * lib/winsock-select.c: New.
86029         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
86030         Require gl_HEADER_SYS_SOCKET.
86031         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
86032         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
86033         * tests/test-sys_select.c: Add functional tests.
86035 2008-09-24  Eric Blake  <ebb9@byu.net>
86037         open, fopen: close fd leak in last patch
86038         * lib/open.c (rpl_open): Close fd before returning error.
86039         * lib/fopen.c (rpl_fopen): Close fd before returning error.
86040         * doc/posix-functions/open.texi (open): Document that Irix also
86041         has the bug.
86042         * doc/posix-functions/fopen.texi (fopen): Likewise.
86043         Reported by Paolo Bonzini.
86045 2008-09-24  Bruno Haible  <bruno@clisp.org>
86047         Ensure that a filename ending in a slash cannot be used to access a
86048         non-directory.
86049         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
86050         to check whether it's really a directory.
86051         * lib/fopen.c: Include fcntl.h, unistd.h.
86052         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
86053         and fdopen().
86054         * modules/fopen (Depends-on): Add unistd.
86055         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
86056         * tests/test-fopen.c (main): Likewise.
86057         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
86058         * doc/posix-functions/fopen.texi: Likewise.
86059         Reported by Eric Blake.
86061 2008-09-23  Eric Blake  <ebb9@byu.net>
86063         c-stack: avoid compiler optimizations when provoking overflow
86064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
86065         recursion harder to optimize, to ensure a stack overflow occurs.
86066         * tests/test-c-stack.c (recurse): Likewise.
86067         Borrowed from libsigsegv.
86069         c-stack: work around Irix sigaltstack bug
86070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
86071         whether sigaltstack uses wrong end of stack_t (copied in part from
86072         libsigsegv).
86073         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
86074         Irix bug, without requiring an over-allocation.
86075         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
86076         bug.
86078         fopen: document mingw bug on directories
86079         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
86080         not allowing a stream visiting a directory, even though reading
86081         from such a stream is not portable.
86083 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
86085         * lib/poll.c: Rewrite.
86086         * modules/poll: Depend on alloca.
86088 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
86090         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
86091         instead define prototypes for a full set of wrappers.  Ensure
86092         that Cygwin does not use the compatibility code, which is only
86093         for MinGW.
86094         * lib/winsock.c: New.
86095         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
86096         * modules/sys_socket: Add lib/winsock.c.
86098         * modules/poll-tests: Add errno and perror.
86099         * tests/test-poll.c: Use ioctl, not ioctlsocket.
86101 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
86103         * tests/test-poll.c: Downgrade minimum needed Winsock version.
86105 2008-09-23  Bruno Haible  <bruno@clisp.org>
86107         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
86108         * doc/glibc-functions/*: Likewise.
86110 2008-09-23  Simon Josefsson  <simon@josefsson.org>
86112         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
86113         success.
86115 2008-09-22  Eric Blake  <ebb9@byu.net>
86116             Bruno Haible  <bruno@clisp.org>
86118         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
86119         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
86120         supply %A but mishandle pseudo-NaN.
86121         Reported by Simon Josefsson.
86123 2008-09-21  Bruno Haible  <bruno@clisp.org>
86125         * tests/test-lock.c (main): Tweak skip message.
86126         * tests/test-tls.c (main): Likewise.
86128 2008-09-21  Bruno Haible  <bruno@clisp.org>
86130         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
86131         whether 'struct sigaction' has sa_sigaction here...
86132         (gl_PREREQ_SIG_HANDLER_H): ... not here.
86133         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
86135 2008-09-21  Bruno Haible  <bruno@clisp.org>
86137         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
86138         section.
86139         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
86140         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
86141         the new section.
86142         (Support for obsolete systems lacking POSIX:2001): New section.
86143         (String handling <string.h>): Move strdup to the new section.
86144         Suggested by Simon Josefsson and Paolo Bonzini.
86146 2008-09-21  Bruno Haible  <bruno@clisp.org>
86148         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
86149         exponents in %e and %g results on 'long double'. Needed for mingw's
86150         improved *printf functions.
86151         * tests/test-vasprintf-posix.c (test_function): Likewise.
86152         * tests/test-snprintf-posix.h (test_function): Likewise.
86153         * tests/test-sprintf-posix.h (test_function): Likewise.
86154         Reported by Eric Blake.
86156 2008-09-21  Bruno Haible  <bruno@clisp.org>
86158         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
86159         * tests/test-sprintf-posix.h (test_function): Likewise.
86161 2008-09-21  Bruno Haible  <bruno@clisp.org>
86163         * modules/getpass (Depends-on): Add strdup-posix.
86165         New module 'strdup-posix'.
86166         * modules/strdup-posix: New file.
86167         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
86168         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
86169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86170         REPLACE_STRDUP.
86171         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
86172         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
86173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86174         strdup-posix.
86176         * modules/strdup (Depends-on): Remove malloc-posix.
86178 2008-09-20  Bruno Haible  <bruno@clisp.org>
86180         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
86181         Wildenhues.
86183 2008-09-20  Bruno Haible  <bruno@clisp.org>
86185         Ensure that wint_t gets defined on IRIX 5.3.
86186         * lib/wchar.in.h (wint_t): Define if not defined by the system.
86187         * lib/wctype.in.h (wint_t): Likewise.
86188         (__wctype_wint_t): Remove type.
86189         (isw*): Use wint_t instead of __wctype_wint_t.
86190         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
86191         * modules/wchar (Files): Add m4/wint_t.m4.
86192         (Makefile.am): Substitute HAVE_WINT_T.
86193         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
86194         * tests/test-wctype.c: Check that wint_t is defined.
86195         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
86196         * doc/posix-headers/wctype.texi: Likewise.
86197         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86199 2008-09-18  Bruno Haible  <bruno@clisp.org>
86201         * gnulib-tool (func_exit): Update comment.
86203 2008-09-18  Simon Josefsson  <simon@josefsson.org>
86205         * modules/getaddrinfo (Depends-on): Remove strdup, this module
86206         assumes strdup exists and does not depend on strdup to return
86207         ENOMEM on out of memory conditions.
86209 2008-09-18  Bruno Haible  <bruno@clisp.org>
86211         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
86212         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
86213         digits for the exponent.
86215 2008-09-18  Jim Meyering  <meyering@redhat.com>
86216             Bruno Haible  <bruno@clisp.org>
86218         * lib/vasnprintf.c (decimal_point_char): Define also if
86219         NEED_PRINTF_INFINITE_LONG_DOUBLE.
86221 2008-09-16  Bruno Haible  <bruno@clisp.org>
86222         and Eric Blake  <ebb9@byu.net>
86224         vasnprintf: support Irix 5.3
86225         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
86226         that mishandle long double infinity.
86227         Reported by Tom G. Christensen.
86229 2008-09-16  Bruno Haible  <bruno@clisp.org>
86231         * doc/glibc-functions/scandir.texi: Mention the function is missing on
86232         Solaris 9.
86233         * doc/glibc-functions/alphasort.texi: Likewise.
86234         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
86236 2008-09-16  Jim Meyering  <meyering@redhat.com>
86238         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
86239         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
86240         a umask modification leak out of a subshell.  Otherwise, the
86241         opensolaris /bin/sh would be accepted and thus cause unwarranted
86242         failures in the coreutils test suite.
86244 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
86246         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
86247         to succeed.
86249 2008-09-16  Jim Meyering  <meyering@redhat.com>
86251         avoid spurious test failure when library is built without ACL support
86252         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
86253         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
86254         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
86255         * tests/test-copy-acl.sh: Likewise.
86257 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86259         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
86260         based on character occurrence counts.
86262 2008-09-15  Eric Blake  <ebb9@byu.net>
86264         tests: avoid some compiler warnings
86265         * tests/test-memchr.c (main): Pass NULL indirectly.
86266         * tests/test-closein.c (main): Avoid unused variable.
86268 2008-09-15  Bruno Haible  <bruno@clisp.org>
86270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
86271         are missing on OpenBSD 4.0 individually.
86272         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86274 2008-09-15  Bruno Haible  <bruno@clisp.org>
86276         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
86277         * doc/posix-functions/strerror.texi: Mention also Cygwin.
86278         * doc/posix-functions/perror.texi: Likewise.
86279         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
86280         is missing.
86281         Reported by Eric Blake.
86283         * lib/errno.in.h: Use replacement values >= 2000.
86284         Reported by Eric Blake.
86286 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86288         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
86289         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
86290         limit.
86291         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
86292         compareseq was aborted.
86294 2008-09-14  Bruno Haible  <bruno@clisp.org>
86296         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
86297         yvec_edit_count.
86298         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
86299         (fstrcmp_bounded): Simplify result computation accordingly.
86301 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86303         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
86304         (fstrcmp): Define in terms of fstrcmp_bounded.
86305         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
86306         lower_bound argument.
86307         Return quickly if the result is certainly < lower_bound.
86308         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
86310 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86312         * lib/diffseq.h (EARLY_ABORT): New macro.
86313         (compareseq): Change return type to bool. Return true when EARLY_ABORT
86314         evaluates to true.
86316 2008-09-14  Bruno Haible  <bruno@clisp.org>
86318         * modules/perror-tests: New file.
86319         * tests/test-perror.sh: New file.
86320         * tests/test-perror.c: New file.
86322         New module 'perror'.
86323         * lib/stdio.in.h (perror): New declaration.
86324         * lib/perror.c: New file.
86325         * m4/perror.m4: New file.
86326         * modules/perror: New file.
86327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
86328         * doc/posix-functions/perror.texi: Mention the perror module.
86329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
86330         REPLACE_PERROR.
86331         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
86332         REPLACE_PERROR.
86334 2008-09-14  Bruno Haible  <bruno@clisp.org>
86336         * modules/stdio (Makefile.am): Reorder to match the order in
86337         lib/stdio.in.h.
86338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
86340 2008-09-13  Bruno Haible  <bruno@clisp.org>
86342         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
86344 2008-09-13  Bruno Haible  <bruno@clisp.org>
86346         Extend strerror to cover the added errno values.
86347         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
86348         (rpl_strerror): Provide error messages for the added errno values and
86349         for the WSA* values.
86350         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
86351         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
86352         strerror.
86353         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
86354         * modules/strerror (Depends-on): Add errno.
86355         * doc/posix-functions/strerror.texi: Document the change.
86356         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
86357         and EOVERFLOW.
86359 2008-09-13  Bruno Haible  <bruno@clisp.org>
86361         * modules/EOVERFLOW: Remove file.
86362         * m4/eoverflow.m4: Remove file.
86363         * modules/EOVERFLOW-tests: Remove file.
86364         * tests/test-EOVERFLOW.c: Remove file.
86365         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
86366         * modules/ftell (Depends-on): Likewise.
86367         * modules/getdelim (Depends-on): Likewise.
86368         * modules/getugroups (Depends-on): Likewise.
86369         * modules/poll (Depends-on): Likewise.
86370         * modules/snprintf (Depends-on): Likewise.
86371         * modules/sprintf-posix (Depends-on): Likewise.
86372         * modules/vasnprintf (Depends-on): Likewise.
86373         * modules/vasprintf (Depends-on): Likewise.
86374         * modules/vfprintf-posix (Depends-on): Likewise.
86375         * modules/vsnprintf (Depends-on): Likewise.
86376         * modules/vsprintf-posix (Depends-on): Likewise.
86377         * modules/xvasprintf (Depends-on): Likewise.
86378         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86379         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
86380         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
86381         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
86382         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86383         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
86384         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
86385         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
86386         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86387         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
86388         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
86389         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
86390         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86391         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
86392         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
86393         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
86394         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86395         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
86396         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
86397         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
86398         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86399         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
86400         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
86401         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
86402         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
86403         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86404         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
86405         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
86406         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
86407         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
86408         * MODULES.html.sh: Remove EOVERFLOW.
86409         * NEWS: Mention the change.
86411 2008-09-13  Bruno Haible  <bruno@clisp.org>
86413         * modules/errno-tests: New file.
86414         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
86416         * lib/errno.in.h: New file.
86417         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
86418         * modules/errno: New file.
86419         * doc/posix-headers/errno.texi: Update documentation.
86420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
86422 2008-09-13  Bruno Haible  <bruno@clisp.org>
86424         * tests/test-poll.c: Use #if for native Windows, rather than testing
86425         __MSVCRT__.
86427 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86428             Bruno Haible  <bruno@clisp.org>
86430         * lib/glob.c: Don't include <pwd.h> on native Windows.
86431         (WINDOWS32): New macro.
86432         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
86434 2008-09-13  Bruno Haible  <bruno@clisp.org>
86436         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
86437         (ETIMEDOUT): Remove macro.
86438         (glthread_cond_timedwait_multithreaded): New declaration.
86439         (glthread_cond_timedwait): Use it.
86440         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
86441         (glthread_cond_timedwait_multithreaded): New function.
86443 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
86445         * modules/poll-tests: Do not check for io.h.
86446         * tests/test-poll.c: Check for __MSVCRT__ instead.
86448 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
86450         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
86451         * modules/poll-tests: Add inet_pton, stdbool, sockets.
86452         * tests/test-poll.c: Use them.  Use _pipe on Windows.
86454 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
86456         * modules/poll-tests: New.
86457         * tests/test-poll.c: New.
86459 2008-09-12  Eric Blake  <ebb9@byu.net>
86461         frexp: test for NetBSD failure on -0.0
86462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
86463         not all, bugs from NetBSD 3.0 have been fixed.
86464         * doc/posix-functions/frexp.texi (frexp): Document bug.
86465         Reported by Thomas Klausner.
86467         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
86468         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
86469         literal -0.0.
86470         Reported by Jonathan C. Patschke <jp@centtech.com>.
86472 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86474         * lib/glthread/cond.h: Use dummy implementation also if
86475         USE_WIN32_THREADS.
86477 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86479         * modules/fnmatch-posix (License): Change to LGPLv2+.
86480         * modules/fnmatch-gnu (License): Likewise.
86482 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86484         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
86486 2008-09-11  Jim Meyering  <meyering@redhat.com>
86488         * users.txt: Add gtk-vnc.
86490 2008-09-08  Simon Josefsson  <simon@josefsson.org>
86492         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
86493         rotate amounts.
86495         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
86496         required for 16-bit and 8-bit rotates.
86497         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
86498         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
86499         UINT8_MAX instead of hard-coded constants.
86500         Suggested by Paul Eggert.
86502 2008-09-07  Bruno Haible  <bruno@clisp.org>
86504         * tests/test-striconveh.c (main): Check behaviour when converting from
86505         UTF-7.
86507         Make striconveh work better with stateful encodings.
86508         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
86509         that iconv does not increment the inptr when returning -1/EINVAL.
86511 2008-09-07  Bruno Haible  <bruno@clisp.org>
86513         * build-aux/config.rpath: Update according to libtool-2.2.6.
86514         * build-aux/config.libpath: Likewise.
86516 2008-09-06  Bruno Haible  <bruno@clisp.org>
86518         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
86519         * lib/freadptr.c (freadptr): Likewise.
86520         * lib/freadseek.c (freadptrinc): Likewise.
86521         Reported by Simon Josefsson.
86523 2008-09-06  Bruno Haible  <bruno@clisp.org>
86525         * modules/freadptr (License): Change to LGPLv2+.
86526         * modules/freadseek (License): Likewise.
86527         Suggested by Eric Blake.
86529         * modules/memchr2 (License): Change to LGPLv2+.
86530         Approved by Eric Blake.
86532 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86533             Bruno Haible  <bruno@clisp.org>
86535         Make gnulib-tool work with native 'sed' on AIX.
86536         * gnulib-tool (sed_noop): New variable.
86537         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
86538         func_add_or_update, func_create_testdir): Use it to initialize sed
86539         script variables.
86540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86542 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
86543             Bruno Haible  <bruno@clisp.org>
86545         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
86546         also works after #include directives.
86548 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
86550         getdate.y: reject an out-of-range timezone value
86551         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
86552         the range [-24...+24].  When specified with only one or two digits,
86553         * tests/test-getdate.c: Tests for the fix.
86554         * doc/getdate.texi: Document this change.
86556 2008-09-03  Bruno Haible  <bruno@clisp.org>
86558         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
86560 2008-09-02  Simon Josefsson  <simon@josefsson.org>
86562         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
86563         <bruce.korb@gmail.com> with ideas from Ben Pfaff
86564         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
86565         Blake <ebb9@byu.net>.
86567         * tests/test-bitrotate.c: Add more test vectors.
86569 2008-09-02  Eric Blake  <ebb9@byu.net>
86571         vasnprintf-posix: handle large precision via %.*d
86572         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
86573         when handling it ourselves.
86574         * tests/test-vasnprintf-posix.c (test_function): Add test.
86575         * tests/test-snprintf-posix.h (test_function): Likewise.
86576         * tests/test-sprintf-posix.h (test_function): Likewise.
86577         * tests/test-vasprintf-posix.c (test_function): Likewise.
86578         Reported by Alain Guibert.
86580 2008-09-01  Eric Blake  <ebb9@byu.net>
86582         c-stack: make configure-time check more robust
86583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
86584         successful sigaction call.
86585         Reported by Tom G. Christensen.
86587 2008-09-01  Bruno Haible  <bruno@clisp.org>
86589         New module 'findprog-lgpl'.
86590         * modules/findprog-lgpl: New file.
86591         * lib/findprog-lgpl.c: New file.
86592         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
86593         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
86594         to decide whether to use strdup or xstrdup, concatenated_filename or
86595         xconcatenated_filename.
86597 2008-09-01  Bruno Haible  <bruno@clisp.org>
86599         Split module 'concat-filename' into 'concat-filename' (LGPL) and
86600         'xconcat-filename' (GPL).
86601         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
86602         (License): Change to LGPLv2+.
86603         * modules/xconcat-filename: New file.
86604         * lib/concat-filename.h (concatenated_filename): Change specification.
86605         (xconcatenated_filename): New declaration.
86606         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
86607         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
86608         memory situations.
86609         * lib/xconcat-filename.c: New file.
86610         * NEWS: Mention the change.
86611         * lib/findprog.c: Include concat-filename.h, not filename.h.
86612         (find_in_path): Use xconcatenated_filename instead of
86613         concatenated_filename.
86614         * lib/javacomp.c: Include concat-filename.h, not filename.h.
86615         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
86616         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
86617         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
86618         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
86619         instead of concatenated_filename.
86620         * lib/javaexec.c: Include concat-filename.h, not filename.h.
86621         (execute_java_class): Use xconcatenated_filename instead of
86622         concatenated_filename.
86623         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
86624         * modules/javacomp (Depends-on): Likewise.
86625         * modules/javaexec (Depends-on): Likewise.
86627 2008-09-01  Bruno Haible  <bruno@clisp.org>
86629         Split module 'filename' into 'filename' and 'concat-filename'.
86630         * modules/filename: Keep only lib/filename.h.
86631         (License): Change to LGPLv2+.
86632         * modules/concat-filename: New file, extracted from modules/filename.
86633         * lib/filename.h (concatenated_filename): Remove declaration.
86634         * lib/concat-filename.h: New file, extracted from lib/filename.h.
86635         * lib/concat-filename.c: Include concat-filename.h.
86636         * NEWS: Mention the change.
86638 2008-09-01  Simon Josefsson  <simon@josefsson.org>
86640         * lib/bitrotate.h (rotl8, rotr8): Add.
86642         * modules/bitrotate (configure.ac): Need
86643         AC_REQUIRE([AC_C_INLINE]).
86644         (Description): Mention stdint.h.  Reported by Bruno Haible
86645         <bruno@clisp.org>.
86647         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
86648         Paolo Bonzini <bonzini@gnu.org>.
86650 2008-08-31  Bruno Haible  <bruno@clisp.org>
86652         Assume Solaris specific bi-arch conventions on Solaris systems.
86653         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
86654         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
86655         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
86656         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
86657         like acl_libdirstem.
86658         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
86659         acl_libdirstem.
86660         * NEWS: Mention the change.
86661         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
86663 2008-08-31  Jim Meyering  <meyering@redhat.com>
86665         * lib/strftime.h: Add comments describing the two added arguments.
86667         remove duplicate #include directives
86668         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
86669         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
86671 2008-08-31  Bruno Haible  <bruno@clisp.org>
86673         New module 'sigpipe-die'.
86674         * modules/sigpipe-die: New file.
86675         * lib/sigpipe-die.h: New file.
86676         * lib/sigpipe-die.c: New file.
86677         * MODULES.html.sh (Signal handling): Add sigpipe-die.
86679 2008-08-31  Bruno Haible  <bruno@clisp.org>
86681         Don't override previously installed signal handlers.
86682         * lib/fatal-signal.c (saved_sigactions): New variable.
86683         (uninstall_handlers): Reset the signal to the saved handler, not
86684         to SIG_DFL (except when ignored).
86685         (install_handlers): Save the previous handlers.
86687 2008-08-30  Bruno Haible  <bruno@clisp.org>
86689         * gnulib-tool (func_reset_sigpipe): New function.
86690         (func_get_automake_snippet, func_modules_transitive_closure,
86691         func_import): Invoke it before a join command that reads from stdin,
86692         to avoid "echo: write error: Broken pipe" error messages on stderr.
86693         Reported by Sam Steingold <sds@gnu.org>.
86695 2008-08-30  Bruno Haible  <bruno@clisp.org>
86697         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
86698         Code copied from m4/open.m4.
86699         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
86700         access and the filename ends in a slash. Code copied from lib/open.c.
86701         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
86702         * tests/test-fopen.c (main): Check against bug with trailing slash.
86704 2008-08-29  Bruno Haible  <bruno@clisp.org>
86706         Avoid some "gcc -pedantic" warnings.
86707         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
86708         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
86709         * lib/dirent.in.h: Likewise.
86710         * lib/fcntl.in.h: Likewise.
86711         * lib/float.in.h: Likewise.
86712         * lib/iconv.in.h: Likewise.
86713         * lib/inttypes.in.h: Likewise.
86714         * lib/locale.in.h: Likewise.
86715         * lib/math.in.h: Likewise.
86716         * lib/netinet_in.in.h: Likewise.
86717         * lib/search.in.h: Likewise.
86718         * lib/signal.in.h: Likewise.
86719         * lib/stdarg.in.h: Likewise.
86720         * lib/stdint.in.h: Likewise.
86721         * lib/stdio.in.h: Likewise.
86722         * lib/stdlib.in.h: Likewise.
86723         * lib/string.in.h: Likewise.
86724         * lib/strings.in.h: Likewise.
86725         * lib/sys_select.in.h: Likewise.
86726         * lib/sys_socket.in.h: Likewise.
86727         * lib/sys_stat.in.h: Likewise.
86728         * lib/sys_time.in.h: Likewise.
86729         * lib/sysexits.in.h: Likewise.
86730         * lib/time.in.h: Likewise.
86731         * lib/unistd.in.h: Likewise.
86732         * lib/wchar.in.h: Likewise.
86733         * lib/wctype.in.h: Likewise.
86734         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
86735         * modules/fchdir (Makefile.am): Likewise.
86736         * modules/fcntl (Makefile.am): Likewise.
86737         * modules/float (Makefile.am): Likewise.
86738         * modules/iconv_open (Makefile.am): Likewise.
86739         * modules/inttypes (Makefile.am): Likewise.
86740         * modules/locale (Makefile.am): Likewise.
86741         * modules/math (Makefile.am): Likewise.
86742         * modules/netinet_in (Makefile.am): Likewise.
86743         * modules/search (Makefile.am): Likewise.
86744         * modules/signal (Makefile.am): Likewise.
86745         * modules/stdarg (Makefile.am): Likewise.
86746         * modules/stdint (Makefile.am): Likewise.
86747         * modules/stdio (Makefile.am): Likewise.
86748         * modules/stdlib (Makefile.am): Likewise.
86749         * modules/string (Makefile.am): Likewise.
86750         * modules/strings (Makefile.am): Likewise.
86751         * modules/sys_select (Makefile.am): Likewise.
86752         * modules/sys_socket (Makefile.am): Likewise.
86753         * modules/sys_stat (Makefile.am): Likewise.
86754         * modules/sys_time (Makefile.am): Likewise.
86755         * modules/sysexits (Makefile.am): Likewise.
86756         * modules/time (Makefile.am): Likewise.
86757         * modules/unistd (Makefile.am): Likewise.
86758         * modules/wchar (Makefile.am): Likewise.
86759         * modules/wctype (Makefile.am): Likewise.
86760         Reported by Reuben Thomas <rrt@sc3d.org>.
86762 2008-08-29  Bruno Haible  <bruno@clisp.org>
86764         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
86765         any more.
86767 2008-08-29  Simon Josefsson  <simon@josefsson.org>
86769         * MODULES.html.sh (Misc): Add bitrotate.
86771         * modules/bitrotate: New file.
86773         * lib/bitrotate.h: New file.
86775         * modules/bitrotate-tests: New file.
86777         * tests/test-bitrotate.c: New file.
86779         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
86780         on the bitrotate module.
86782         * lib/arctwo.c: Use new bitrotate module.
86784 2008-08-29  Jim Meyering  <meyering@redhat.com>
86786         bootstrap: merge changes from coreutils
86787         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
86788         of copied files.  Remove a kludge, now that this is fixed.
86789         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
86790         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
86791         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
86793 2008-08-29  Bruno Haible  <bruno@clisp.org>
86795         * MODULES.html.sh: Remove --cvs-urls option.
86797 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
86799         maint.mk: adjust to file name change
86800         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
86802 2008-08-28  Jim Meyering  <meyering@redhat.com>
86804         * modules/getndelim2 (License): Relicense to LGPLv2+.
86805         Approved by Richard Stallman for the version of 1995, and by
86806         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
86808 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
86810         * lib/getdelim.c (flockfile, funlockfile): Make all of them
86811         dummy if one is not available.  Do not touch them if
86812         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
86813         (getc_maybe_unlocked): New.
86814         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
86816 2008-08-26  Eric Blake  <ebb9@byu.net>
86818         doc/INSTALL: resync from autoconf
86819         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
86820         (INSTALL_PRELUDE): Delete; this is done more efficiently by
86821         moving...
86822         * install.texi [!autoconf]: ...here.  Resync from autoconf.
86823         * INSTALL: Regenerate.
86824         * INSTALL.ISO: New file.
86825         * INSTALL.UTF-8: Likewise.
86827 2008-08-26  Jim Meyering  <meyering@redhat.com>
86829         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
86830         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
86831         these definitions conditional, so that they may be overridden, too.
86833 2008-08-26  Bruno Haible  <bruno@clisp.org>
86835         Generate INSTALL file variants with prettier quotes.
86836         * doc/Makefile (INSTALL_PRELUDE): New macro.
86837         (INSTALL): Use it.
86838         (INSTALL.ISO, INSTALL.UTF-8): New rules.
86840 2008-08-26  Bruno Haible  <bruno@clisp.org>
86842         Run makeinfo in an English locale.
86843         * doc/Makefile (MAKEINFO): New variable.
86845 2008-08-26  Bruno Haible  <bruno@clisp.org>
86847         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
86848         Suggested by Eric Blake.
86850 2008-08-25  Bruno Haible  <bruno@clisp.org>
86852         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
86854 2008-08-25  Eric Blake  <ebb9@byu.net>
86856         c-stack: test that stack overflow can be caught
86857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
86858         that platform allows handling stack overflow; at least OS/2 EMX
86859         has sigaltstack, but crashes before transferring control to
86860         handler on stack overflow.
86861         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
86862         check for HAVE_STACK_OVERFLOW_HANDLING.
86863         Reported by Elbert Pol.
86865 2008-08-25  Bruno Haible  <bruno@clisp.org>
86867         * doc/posix-functions/strftime.texi: Fix description of strftime
86868         module.
86870 2008-08-24  Bruno Haible  <bruno@clisp.org>
86872         * tests/uniwidth/test-uc_width2.c: New file.
86873         * tests/uniwidth/test-uc_width2.sh: New file.
86874         * modules/uniwidth/width-tests (Files): Add the new files.
86875         (TESTS): Add uniwidth/test-uc_width2.sh.
86876         (TESTS_ENVIRONMENT): New variable.
86877         (check_PROGRAMS): Add test-uc_width2.
86878         (test_uc_width2_SOURCES): New variable.
86880         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
86881         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
86882         not 0x00AB.
86883         Reported by Alexander V. Lukyanov <lav@netis.ru>.
86885 2008-08-22  Eric Blake  <ebb9@byu.net>
86887         test-lock, test-tls: mention why a test is skipped
86888         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
86889         skipped.
86890         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
86892         count-one-bits: relax license
86893         * modules/count-one-bits (License): Relicense to LGPLv2+.
86894         Suggested by Ludovic Courtès, approved by Ben Pfaff.
86896 2008-08-22  Andreas Schwab  <schwab@suse.de>
86898         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
86899         Remove spurious space in assignment.
86901 2008-08-21  Simon Josefsson  <simon@josefsson.org>
86903         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
86904         Paul Eggert <eggert@CS.UCLA.EDU>.
86906 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
86908         * modules/gettext: Add m4/threadlib.m4.
86910 2008-08-19  Eric Blake  <ebb9@byu.net>
86912         test-c-stack: fix compilation failure on FreeBSD 5.0
86913         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
86914         headers before <sys/resource.h>.
86915         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
86916         the bug.
86917         Reported by Nelson H. F. Beebe.
86919         strverscmp: migrate from "strverscmp.h" to <string.h>
86920         * modules/string (Makefile.am): Add new hooks.
86921         * modules/strverscmp (Files): Remove strverscmp.h.
86922         (Depends-on): Add string.
86923         (configure.ac): Add indicator.
86924         (Include): Mention new header.
86925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
86926         defaults.
86927         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
86928         results.
86929         * lib/strverscmp.h: Delete.
86930         * lib/string.in.h (strverscmp): Provide declaration, when needed.
86931         * tests/test-strverscmp.c (includes): Adjust client.
86932         * lib/check-version.c (includes): Likewise.
86933         * NEWS: Document the change.
86935         strverscmp: add unit test
86936         * modules/strverscmp-tests: New file.
86937         * tests/test-strverscmp.c: Likewise.
86939 2008-08-19  Simon Josefsson  <simon@josefsson.org>
86941         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
86942         regarding Windows crypto stuff, from Mono.
86944 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
86946         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
86947         if present, for intel RND.  Return error on failures.
86949 2008-08-18  Ben Pfaff  <blp@gnu.org>
86951         gitlog-to-changelog: give better diagnostic for failed pipe-open
86952         * build-aux/gitlog-to-changelog: Improve error message: suggest
86953         that the version of Git may be too old.
86955 2008-08-18  Simon Josefsson  <simon@josefsson.org>
86957         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
86958         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
86960 2008-08-18  Bruno Haible  <bruno@clisp.org>
86962         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
86963         pthread_in_use().
86965 2008-08-18  Bruno Haible  <bruno@clisp.org>
86967         * lib/glthread/threadlib.c: Include <pthread.h>.
86969 2008-08-18  Bruno Haible  <bruno@clisp.org>
86971         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
86972         glthread_recursive_lock_* macros.
86973         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
86974         Fix syntax error.
86976 2008-08-18  Bruno Haible  <bruno@clisp.org>
86978         * lib/glthread/thread.c: Avoid forcing a context switch right after
86979         thread creation.
86981 2008-08-17  Bruno Haible  <bruno@clisp.org>
86983         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
86984         * lib/glthread/thread.h: Provide Win32 specific implementation.
86985         * modules/thread (Files): Add lib/glthread/thread.c.
86986         (Depends-on): Add lock.
86987         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
86989 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86991         New module 'yield'.
86992         * modules/yield: New file.
86993         * lib/glthread/yield.h: New file.
86994         * m4/yield.m4: New file.
86995         * MODULES.html.sh (Multithreading): Add yield.
86997 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86999         New module 'thread'.
87000         * modules/thread: New file.
87001         * lib/glthread/thread.h: New file.
87002         * m4/thread.m4: New file.
87003         * MODULES.html.sh (Multithreading): Add thread.
87005 2008-08-17  Bruno Haible  <bruno@clisp.org>
87007         * lib/glthread/lock.h: Include <stdlib.h> always.
87008         * lib/glthread/tls.h: Likewise.
87009         * lib/glthread/cond.h: Likewise.
87011 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87013         New module 'cond'.
87014         * modules/cond: New file.
87015         * lib/glthread/cond.h: New file.
87016         * lib/glthread/cond.c: New file.
87017         * m4/cond.m4: New file.
87018         * MODULES.html.sh (Multithreading): Add cond.
87020 2008-08-16  Eric Blake  <ebb9@byu.net>
87022         c-stack: fix regression on Irix 5.3 from 2008-06-21
87023         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
87024         sa_sigaction...
87025         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
87026         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
87027         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
87028         * modules/signal (Makefile.am): Use the value.
87029         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
87030         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
87031         * doc/posix-headers/signal.texi (signal.h): Document this
87032         portability issue.
87033         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
87034         Reported by Tom G. Christensen.
87036 2008-08-17  Bruno Haible  <bruno@clisp.org>
87038         New module 'threadlib'.
87039         * modules/threadlib: New file.
87040         * lib/glthread/threadlib.c: New file, extracted from
87041         lib/glthread/lock.c.
87042         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
87043         functions.
87044         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
87045         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
87046         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
87047         macros.
87048         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
87049         (gl_DISABLE_THREADS): Remove macro.
87050         * modules/lock (Files): Remove build-aux/config.rpath.
87051         (Depends-on): Remove havelib. Add threadlib.
87052         (configure.ac-early): Remove section.
87053         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
87054         * modules/tls (Depends-on): Remove lock. Add threadlib.
87055         (Link): New section, copied from threadlib.
87056         * MODULES.html.sh (Multithreading): Add threadlib.
87058 2008-08-14  Bruno Haible  <bruno@clisp.org>
87060         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
87061         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
87062         glthread_rwlock_unlock, glthread_rwlock_destroy,
87063         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
87064         glthread_recursive_lock_destroy): Define as macros always.
87065         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
87066         glthread_lock_lock.
87067         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
87068         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
87069         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
87070         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
87071         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
87072         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
87073         (glthread_recursive_lock_lock_func): Renamed from
87074         glthread_recursive_lock_lock.
87075         (glthread_recursive_lock_unlock_func): Renamed from
87076         glthread_recursive_lock_unlock.
87077         (glthread_recursive_lock_destroy_func): Renamed from
87078         glthread_recursive_lock_destroy.
87080 2008-08-14  Bruno Haible  <bruno@clisp.org>
87082         * lib/glthread/lock.h: Renamed from lib/lock.h.
87083         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
87084         * lib/glthread/tls.h: Renamed from lib/tls.h.
87085         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
87086         * lib/fstrcmp.c: Update includes.
87087         * lib/strsignal.c: Update includes.
87088         * modules/lock (Files, Makefile.am): Update.
87089         (Include): Change to "glthread/lock.h".
87090         * modules/tls (Files, Makefile.am): Update.
87091         (Include): Change to "glthread/tls.h".
87092         * tests/test-lock.c: Update includes.
87093         * tests/test-tls.c: Update includes.
87094         * NEWS: Mention the renamed header files.
87096 2008-08-11  Jim Meyering  <meyering@redhat.com>
87098         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
87100 2008-08-11  Eric Blake  <ebb9@byu.net>
87102         test-c-stack: avoid C99-ism
87103         * tests/test-c-stack.c (main): Fix whitespace, move declaration
87104         before statement.
87105         Reported by Alain Guibert.
87107 2008-08-10  Jim Meyering  <meyering@redhat.com>
87109         ensure that return value of uinttostr et al are not ignored
87110         * lib/inttostr.h (__GNUC_PREREQ): Define.
87111         (__attribute_warn_unused_result__): Define.
87112         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
87114 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
87116         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
87117         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
87119 2008-08-07  Jim Meyering  <meyering@redhat.com>
87121         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
87123         * modules/mkstemp (License): Relicense under LGPLv2+.
87124         * modules/tempname (License): Likewise.
87126 2008-08-06  Bruno Haible  <bruno@clisp.org>
87128         * lib/poll.c (poll): Further micro-optimization.
87130 2008-08-06  Jim Meyering  <meyering@redhat.com>
87132         inet_pton.c: use locale-independent tolower
87133         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
87134         (inet_pton6): Use c_tolower rather than tolower.
87135         * modules/inet_pton (Depends-on): Add c-ctype.
87137 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
87139         * lib/poll.c (poll): Avoid division when timeout is 0, cache
87140         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
87142 2008-08-06  Jim Meyering  <meyering@redhat.com>
87144         * modules/inet_pton (License): Relicense under LGPLv2+.
87146 2008-08-03  Bruno Haible  <bruno@clisp.org>
87148         Additional non-aborting API for lock and tls.
87149         * lib/lock.h: Include <errno.h>.
87150         (glthread_lock_init): New macro/function.
87151         (gl_lock_init): Define as wrapper around glthread_lock_init.
87152         (glthread_lock_lock): New macro/function.
87153         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
87154         (glthread_lock_unlock): New macro/function.
87155         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
87156         (glthread_lock_destroy): New macro/function.
87157         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
87158         (glthread_rwlock_init): New macro/function.
87159         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
87160         (glthread_rwlock_rdlock): New macro/function.
87161         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
87162         (glthread_rwlock_wrlock): New macro/function.
87163         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
87164         (glthread_rwlock_unlock): New macro/function.
87165         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
87166         (glthread_rwlock_destroy): New macro/function.
87167         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
87168         (glthread_recursive_lock_init): New macro/function.
87169         (gl_recursive_lock_init): Define as wrapper around
87170         glthread_recursive_lock_init.
87171         (glthread_recursive_lock_lock): New macro/function.
87172         (gl_recursive_lock_lock): Define as wrapper around
87173         glthread_recursive_lock_lock.
87174         (glthread_recursive_lock_unlock): New macro/function.
87175         (gl_recursive_lock_unlock): Define as wrapper around
87176         glthread_recursive_lock_unlock.
87177         (glthread_recursive_lock_destroy): New macro/function.
87178         (gl_recursive_lock_destroy): Define as wrapper around
87179         glthread_recursive_lock_destroy.
87180         (glthread_once): New macro/function.
87181         (gl_once): Define as wrapper around glthread_once.
87182         Update function declarations.
87183         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
87184         glthread_rwlock_init. Return error code.
87185         (glthread_rwlock_rdlock_multithreaded): Renamed from
87186         glthread_rwlock_rdlock. Return error code.
87187         (glthread_rwlock_wrlock_multithreaded): Renamed from
87188         glthread_rwlock_wrlock. Return error code.
87189         (glthread_rwlock_unlock_multithreaded): Renamed from
87190         glthread_rwlock_unlock. Return error code.
87191         (glthread_rwlock_destroy_multithreaded): Renamed from
87192         glthread_rwlock_destroy. Return error code.
87193         (glthread_recursive_lock_init_multithreaded): Renamed from
87194         glthread_recursive_lock_init. Return error code.
87195         (glthread_recursive_lock_lock_multithreaded): Renamed from
87196         glthread_recursive_lock_lock. Return error code.
87197         (glthread_recursive_lock_unlock_multithreaded): Renamed from
87198         glthread_recursive_lock_unlock. Return error code.
87199         (glthread_recursive_lock_destroy_multithreaded): Renamed from
87200         glthread_recursive_lock_destroy. Return error code.
87201         (glthread_once_call): Make static.
87202         (glthread_once_multithreaded): Renamed from glthread_once.
87203         * lib/tls.h: Include <errno.h>.
87204         (glthread_tls_key_init): New macro/function.
87205         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
87206         (glthread_tls_set): New macro/function.
87207         (gl_tls_set): Define as wrapper around glthread_tls_set.
87208         (glthread_tls_key_destroy): New macro/function.
87209         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
87210         Update function declarations.
87211         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
87212         glthread_tls_get.
87213         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87215 2008-08-04  Eric Blake  <ebb9@byu.net>
87217         gnumakefile: use space, not TAB, outside of targets
87218         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
87220 2008-08-02  Jim Meyering  <meyering@redhat.com>
87222         getdate.y: avoid locale-dependent date parsing failure
87223         In Turkish locales, getdate would fail to recognize keywords
87224         containing a lowercase "i".  The solution is not to rely on
87225         locale-sensitive case-conversion.
87226         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
87227         (lookup_word): Use c_toupper in place of toupper.
87228         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
87229         Reported by Vefa Bicakci <bicave@superonline.com> in
87230         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
87231         * modules/getdate (Depends-on): Add c-ctype.
87233 2008-08-02  Bruno Haible  <bruno@clisp.org>
87235         * gnulib-tool (func_import): When updating or creating a .gitignore
87236         file, prepend each added line with a slash, and ignore leading slashes
87237         from the existing lines.
87238         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87240 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87242         Portability fix for GNU make 3.79.1.
87243         * top/GNUmakefile: Avoid 'else COND', which older GNU make
87244         versions do not understand.
87246 2008-08-01  Bruno Haible  <bruno@clisp.org>
87248         Work around bug of HP-UX 10.20 cc with -0.0 literal.
87249         * tests/test-isnanf.h (zero): New variable.
87250         (main): Avoid literal -0.0f.
87251         * tests/test-isnand.h (zero): New variable.
87252         (main): Avoid literal -0.0.
87253         * tests/test-isnanl.h (zero): New variable.
87254         (main): Avoid literal -0.0L.
87255         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
87256         (test_float, test_double, test_long_double): Avoid literals -0.0f,
87257         -0.0, -0.0L.
87258         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
87259         (test_signbitd): Avoid literal -0.0.
87260         (test_signbitl): Avoid literal -0.0L.
87261         * tests/test-ceilf1.c (zero): New variable.
87262         (main): Avoid literal -0.0f.
87263         * tests/test-ceill.c (zero): New variable.
87264         (main): Avoid literal -0.0L.
87265         * tests/test-floorf1.c (zero): New variable.
87266         (main): Avoid literal -0.0f.
87267         * tests/test-floorl.c (zero): New variable.
87268         (main): Avoid literal -0.0L.
87269         * tests/test-roundf1.c (zero): New variable.
87270         (main): Avoid literal -0.0f.
87271         * tests/test-round1.c (zero): New variable.
87272         (main): Avoid literal -0.0.
87273         * tests/test-roundl.c (zero): New variable.
87274         (main): Avoid literal -0.0L.
87275         * tests/test-truncf1.c (zero): New variable.
87276         (main): Avoid literal -0.0f.
87277         * tests/test-trunc1.c (zero): New variable.
87278         (main): Avoid literal -0.0.
87279         * tests/test-truncl.c (zero): New variable.
87280         (main): Avoid literal -0.0L.
87281         * tests/test-frexp.c (zero): New variable.
87282         (main): Avoid literal -0.0.
87283         * tests/test-frexpl.c (zero): New variable.
87284         (main): Avoid literal -0.0L.
87285         * tests/test-ldexpl.c (zero): New variable.
87286         (main): Avoid literal -0.0L.
87287         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
87288         (zerod, zerol): New variables.
87289         (test_function): Avoid literals -0.0, -0.0L.
87290         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
87291         (zerod, zerol): New variables.
87292         (test_function): Avoid literals -0.0, -0.0L.
87293         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
87294         (zerod, zerol): New variables.
87295         (test_function): Avoid literals -0.0, -0.0L.
87296         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
87297         (zerod, zerol): New variables.
87298         (test_function): Avoid literals -0.0, -0.0L.
87299         * tests/test-strtod.c (zero): New variable.
87300         (main): Avoid literal -0.0.
87301         Reported by Jonathan C. Patschke <jp@centtech.com>.
87303 2008-07-31  Jim Meyering  <meyering@redhat.com>
87305         sha256.h: correct definition of SHA224_DIGEST_SIZE
87306         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
87307         Reported by Paulie Pena IV <paulie4@gmail.com>.
87308         Define as 224 / 8, rather than as a literal.
87309         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
87310         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
87311         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
87313 2008-07-31  Bruno Haible  <bruno@clisp.org>
87315         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
87316         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
87317         Reported by Jonathan Patschke <jp@centtech.com>.
87319 2008-07-31  Bruno Haible  <bruno@clisp.org>
87321         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
87322         Reported by Paolo Bonzini <bonzini@gnu.org>.
87324 2008-07-30  Eric Blake  <ebb9@byu.net>
87326         test-strtod: allow compilation without -lm
87327         * tests/test-strtod.c (main): Avoid link dependence on fabs.
87328         Reported by Dennis Clarke <blastwave@gmail.com>.
87330 2008-07-28  Jim Meyering  <meyering@redhat.com>
87332         bootstrap: work also when there are no .po files in po/
87333         * build-aux/bootstrap (update_po_files): Complete the change
87334         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
87336 2008-07-27  Jim Meyering  <meyering@redhat.com>
87338         * users.txt: Add zile.
87340 2008-07-26  Ben Pfaff  <blp@gnu.org>
87342         Add missing dependencies on new m4/exponent[fdl].m4 files.
87343         * modules/isnanf-nolibm: Add m4/exponentf.m4.
87344         * modules/isnand-nolibm: Add m4/exponentd.m4.
87345         * modules/isnanl-nolibm: Add m4/exponentl.m4.
87346         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
87347         m4/isnan[fdl].m4, because the macros actually used moved.
87348         Reported by Jim Meyering.
87350 2008-07-14  Ben Pfaff  <blp@gnu.org>
87352         Add isinf module.
87353         * lib/isinf.c: New file.
87354         * lib/math.in.h: Define isinf macro if we have decided to replace
87355         it.
87356         * m4/isinf.m4: New file.
87357         * m4/math_h.m4: Initialize and substitute variables for isinf
87358         module.
87359         * modules/isinf: New file.
87360         * modules/isinf-tests: New file.
87361         * modules/math: Add substitutions for new module.
87362         * tests/test-isinf.c: New file.
87363         * doc/posix-functions/isinf.texi: Mention new module.
87364         * MODULES.html.sh: Mention new module.
87366 2008-07-14  Ben Pfaff  <blp@gnu.org>
87368         Factor out some macros for use by additional modules.
87369         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
87370         exponentf.m4.
87371         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
87372         exponentd.m4.
87373         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
87374         file exponentl.m4.
87375         * m4/exponentf.m4: New file.
87376         * m4/exponentd.m4: New file.
87377         * m4/exponentl.m4: New file.
87378         * modules/isnanf: Use new file m4/exponentf.m4.
87379         * modules/isnand: Use new file m4/exponentd.m4.
87380         * modules/isnanl: Use new file m4/exponentl.m4.
87382 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
87384         mktime.c: normalize tp->tm_isdst value to -1/0/1.
87385         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
87386         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
87387         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
87389         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
87390         readlink on platforms without PATH_MAX.
87392 2008-07-21  Eric Blake  <ebb9@byu.net>
87394         Warn, not fail, on stale version.
87395         * top/GNUmakefile (_curr-ver): Tone down previous patch.
87397         Don't allow installation with stale devel version number.
87398         * top/GNUmakefile (_is-install-target): New macro.
87399         (_curr-ver): Forbid installation with stale version number.
87401 2008-07-20  Bruno Haible  <bruno@clisp.org>
87403         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
87404         TESTS_ENVIRONMENT.
87405         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
87407 2008-07-20  Bruno Haible  <bruno@clisp.org>
87409         * lib/c-stack.h (c_stack_action): Add documentation.
87410         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
87412 2008-07-20  Bruno Haible  <bruno@clisp.org>
87414         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
87415         * modules/readlink (License): Likewise.
87417 2008-07-17  Eric Blake  <ebb9@byu.net>
87419         * modules/c-stack (Link): Fix typo.
87421         Make c-stack use libsigsegv, when available.
87422         * modules/c-stack (Depends-on): Add libsigsegv.
87423         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
87424         needed.
87425         * lib/c-stack.c (SIGSTKSZ): Define fallback.
87426         (segv_handler, overflow_handler, c_stack_action)
87427         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
87428         implementation when libsigsegv is available, but only when using
87429         the library is necessary.
87430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
87431         comment, explaining why XSI check fails on Linux.
87432         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
87433         * tests/test-c-stack2.sh: Tweak skip message.
87434         * NEWS: Document new link-time requirements.
87436 2008-07-16  Eric Blake  <ebb9@byu.net>
87438         c-stack: Expose false positives when not using libsigsegv.
87439         * modules/c-stack-tests (Files): Expand test.
87440         * tests/test-c-stack.c (main): Add means to conditionally trigger
87441         non-overflow SIGSEGV.
87442         * tests/test-c-stack2.sh: New file.
87444 2008-07-14  Bruno Haible  <bruno@clisp.org>
87446         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
87447         Reported by Eric Blake.
87449 2008-07-14  Sam Steingold  <sds@gnu.org>
87450             Bruno Haible  <bruno@clisp.org>
87452         New module libsigsegv.
87453         * modules/libsigsegv: New file.
87454         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
87455         modifications.
87456         * MODULES.html.sh (Signal handling): New section.
87458 2008-07-14  Bruno Haible  <bruno@clisp.org>
87460         * modules/unictype/ctype-* (Description): Add the word "function".
87461         Improves the resulting doc in MODULES.html.
87463 2008-07-12  Ben Pfaff  <blp@gnu.org>
87465         Add longlong module.
87466         * modules/longlong: New file.
87468 2008-07-12  Bruno Haible  <bruno@clisp.org>
87470         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
87471         to empty.
87473 2008-07-10  Ben Pfaff  <blp@gnu.org>
87475         Add isnan module.
87476         * doc/posix-functions/isnan.texi: Mention new module.
87477         * lib/math.in.h: Define isnan macro if we have decided to replace
87478         it.
87479         * m4/isnan.m4: New file.
87480         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
87481         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
87482         also.
87483         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
87484         redundancy.
87485         * m4/math_h.m4: Initialize and substitute variables for isnan
87486         module.
87487         * modules/isnan: New file.
87488         * modules/isnan-tests: New file.
87489         * modules/math: Add substitutions for new module.
87490         * tests/test-isnan.c: New file.
87491         * MODULES.html.sh: Mention new module.
87493 2008-07-10  Ben Pfaff  <blp@gnu.org>
87495         Add isnanf module.
87496         * lib/isnanf.m4: New file.
87497         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
87498         (gl_HAVE_ISNANF_IN_LIBM): New macro.
87499         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
87500         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
87501         * modules/isnanf: New file.
87502         * modules/isnanf-tests: New file.
87503         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
87504         files.
87505         * tests/test-isnanf-nolibm.c: factored most of its contents into
87506         new file tests/test-isnanf.h.
87507         * tests/test-isnanf.h: New file.
87508         * tests/test-isnanf.c: New file.
87509         * MODULES.html.sh: Mention new module.
87510         * doc/glibc-functions/isnanf.texi: Mention new module.
87512 2008-07-10  Ben Pfaff  <blp@gnu.org>
87514         Add isnand module.
87515         * lib/isnand.h: New file.
87516         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
87517         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
87518         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
87519         functionality also.
87520         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
87521         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
87522         (gl_HAVE_ISNAND_IN_LIBM): New macro.
87523         * modules/isnand: New file.
87524         * modules/isnand-tests: New file.
87525         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
87526         files.
87527         * tests/test-isnand-nolibm.c: factored most of its contents into
87528         new file tests/test-isnand.h.
87529         * tests/test-isnand.h: New file.
87530         * tests/test-isnand.c: New file.
87531         * MODULES.html.sh: Mention new module.
87533 2008-07-10  Ben Pfaff  <blp@gnu.org>
87535         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
87536         * lib/isnand.h: Rename lib/isnand-nolibm.h.
87537         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
87538         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
87539         * modules/isnanf-nolibm: Update references to renamed files.
87540         * modules/isnand-nolibm: Likewise.
87541         * modules/isnanf-nolibm-tests: Likewise.
87542         * modules/isnand-nolibm-tests: Likewise.
87543         * lib/frexp.c: Likewise.
87544         * lib/isfinite.c: Likewise.
87545         * lib/signbitd.c: Likewise.
87546         * lib/signbitf.c: Likewise.
87547         * lib/vasnprintf.c: Likewise.
87548         * tests/test-ceilf1.c: Likewise.
87549         * tests/test-ceilf2.c: Likewise.
87550         * tests/test-floorf1.c: Likewise.
87551         * tests/test-floorf2.c: Likewise.
87552         * tests/test-frexp.c: Likewise.
87553         * tests/test-round1.c: Likewise.
87554         * tests/test-round2.c: Likewise.
87555         * tests/test-roundf1.c: Likewise.
87556         * tests/test-strtod.c: Likewise.
87557         * tests/test-trunc1.c: Likewise.
87558         * tests/test-trunc2.c: Likewise.
87559         * tests/test-truncf1.c: Likewise.
87560         * tests/test-truncf2.c: Likewise.
87561         * NEWS: Mention the renamed header files.
87563 2008-07-11  Jim Meyering  <meyering@redhat.com>
87565         vc-list-files: make the last-resort awk code more portable
87566         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
87567         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
87568         does not support it.
87570 2008-07-10  Eric Blake  <ebb9@byu.net>
87572         Work with tar's bootstrap.
87573         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
87574         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
87575         an m4 comment.
87577 2008-07-09  Jim Meyering  <meyering@redhat.com>
87579         posix-shell.m4: fix typo that made this test malfunction
87580         * m4/posix-shell.m4: Remove capitalization in variable name.
87582 2008-07-08  Bruno Haible  <bruno@clisp.org>
87584         * m4/onceonly.m4: Update comments.
87585         Reported by Ben Pfaff <blp@cs.stanford.edu>.
87587 2008-07-04  Jim Meyering  <meyering@redhat.com>
87589         * users.txt: Add vc-dwim.
87590         (bison, coreutils): Use the gitweb URL.
87592 2008-07-03  Jim Meyering  <meyering@redhat.com>
87594         * users.txt: Add libffcall.  From Sam Steingold.
87596 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
87598         getdate.y: do not ignore TZ with relative day, month or year offset
87599         * lib/getdate.y (get_date): Move the tz-handling block to follow the
87600         relative-date-handling, since otherwise, the latter would clobber the
87601         sole output (an updated Start value) of the tz-handling block.
87602         * tests/test-getdate.c: Tests for the fix
87604 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87606         Recognize 'foo_LIBRARIES += libgnu.a'.
87607         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
87608         makefile snippet has already specified an installation location,
87609         also using '+='.
87611 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
87613         getdate.y: factor out common actions
87614         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
87615         Use them in place of open-coded actions.
87617 2008-07-01  Simon Josefsson  <simon@josefsson.org>
87619         Add self-test for getdate module.
87620         * modules/getdate-tests: New file.
87621         * tests/test-getdate.c: New file.
87623 2008-06-29  Bruno Haible  <bruno@clisp.org>
87625         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
87626         .gitignore.
87627         Reported by Sylvain Beucler <beuc@beuc.net>.
87629 2008-06-29  Bruno Haible  <bruno@clisp.org>
87631         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
87632         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
87634 2008-06-29  Bruno Haible  <bruno@clisp.org>
87636         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
87637         EXTRA_DIST.
87638         Reported by Sylvain Beucler <beuc@beuc.net>.
87640 2008-06-26  Jim Meyering  <meyering@redhat.com>
87642         make several modules depend on the "open" module
87643         This provides slightly increased consistency when opening-for-write
87644         the name of a non-directory spelled with a trailing slash.
87645         * modules/chdir-safer: Likewise.
87646         * modules/chown: Likewise.
87647         * modules/clean-temp: Likewise.
87648         * modules/copy-file: Likewise.
87649         * modules/fchdir: Likewise.
87650         * modules/fcntl-safer: Likewise.
87651         * modules/pipe: Likewise.
87652         * modules/utime: Likewise.
87653         Prompted by Eric Blake and Bruno Haible.
87655 2008-06-24  Andreas Schwab  <schwab@suse.de>
87657         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
87658         literals can be used as initializers for global variables.
87660 2008-06-23  Eric Blake  <ebb9@byu.net>
87662         Make gnulib-cache.m4 easier to diff.
87663         * gnulib-tool (func_import): Allow newlines when reading cached
87664         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
87666 2008-06-23  Bruno Haible  <bruno@clisp.org>
87668         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
87669         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
87670         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
87671         m4/signalblocking.m4.
87672         (gl_PREREQ_SIGACTION): Don't invoke it.
87673         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
87674         gl_PREREQ_SIG_HANDLER_H.
87675         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
87676         Don't check for sigaction here.
87678 2008-06-23  Bruno Haible  <bruno@clisp.org>
87680         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
87681         (install_handlers): Don't set the SA_RESETHAND flag.
87683 2008-06-23  Bruno Haible  <bruno@clisp.org>
87685         * m4/sigaction.m4: Comment fixes.
87686         * lib/signal.in.h: Likewise.
87688 2008-06-23  Eric Blake  <ebb9@byu.net>
87690         Fix typo.
87691         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
87693         Avoid SA_ namespace.
87694         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
87695         Reported by Ralf Wildenhues.
87697         Avoid test failure due to SA_RESTORER.
87698         * tests/test-sigaction.c (SA_MASK): New macro.
87699         (main): Avoid failing due to extension flags being set.
87700         Reported by Jim Meyering.
87702         Revert use of sig-handler.h in sigprocmask.c.
87703         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
87704         it requires the existence of struct sigaction.
87705         * lib/sigprocmask.c (handler_t): Restore typedef.
87706         (rpl_signal, old_handlers): Use local type.
87708 2008-06-22  Bruno Haible  <bruno@clisp.org>
87710         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
87711         conditionally.
87712         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87714 2008-06-22  Bruno Haible  <bruno@clisp.org>
87716         * doc/posix-functions/siginterrupt.texi: Move note.
87718         * lib/signal.in.h (SA_RESTART): New macro.
87719         * lib/sigaction.c: Update comment.
87721         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
87723         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
87724         (gl_PREREQ_SIGPROCMASK): Invoke it.
87725         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
87727         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
87729         * lib/sigprocmask.c: Update a comment.
87731 2008-06-21  Eric Blake  <ebb9@byu.net>
87733         Use sigaction module rather than signal().
87734         * modules/c-stack (Depends-on): Add sigaction.
87735         * modules/fatal-signal (Depends-on): Likewise.
87736         * modules/nanosleep (Depends-on): Likewise.
87737         * modules/sigprocmask (Files): Add sig-handler.h.
87738         * modules/sigaction (Files): Likewise.
87739         * lib/sig-handler.h (get_handler): New file, suggested by Paul
87740         Eggert.
87741         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
87742         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
87743         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
87744         (init_fatal_signals): Likewise.
87745         * lib/nanosleep.c (rpl_nanosleep): Likewise.
87746         (siginterrupt): Delete fallback.
87747         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
87748         instead.
87749         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
87750         siginterrupt.
87752         New module sigaction, for mingw.
87753         * modules/sigaction: New module...
87754         * modules/sigaction-tests: ...and its test.
87755         * m4/sigaction.m4: New file.
87756         * lib/sigaction.c: Likewise.
87757         * tests/test-sigaction.c: Likewise.
87758         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
87759         * modules/signal (Makefile.am): Likewise.
87760         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
87761         needed.
87762         * doc/posix-headers/signal.texi (signal.h): Mention provided
87763         types.
87764         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
87765         that sigaction is preferable.
87766         * doc/posix-functions/sigaction.texi (sigaction): Mention new
87767         module.
87768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87769         sigaction.
87771         Improve robustness of sigprocmask by overriding signal.
87772         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
87773         is in use.
87774         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
87775         (SIGKILL, SIGSTOP): Provide fallbacks.
87776         (rpl_signal): Implement.
87777         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
87778         signal can be called inside handlers.
87780         Fix nanosleep module on mingw.
87781         * modules/nanosleep (Depends-on): Add sys_select.
87782         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
87784         Fix licensing of sigprocmask.
87785         * modules/raise (License): Relicense as LGPL.
87787 2008-06-21  Bruno Haible  <bruno@clisp.org>
87789         * lib/propername.c (proper_name_utf8): Don't use the transliterated
87790         result if it contains question marks.
87791         Reported by Michael Geng <linux@michaelgeng.de>.
87793 2008-06-19  Bruno Haible  <bruno@clisp.org>
87795         Fix CVS-ism.
87796         * doc/gnulib.texi: Include updated-stamp.texi.
87797         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
87798         (updated-stamp.texi): New rule.
87799         (gnulib.info): Depend on it.
87800         * doc/.gitignore: Add updated-stamp.texi.
87801         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
87803 2008-06-19  Bruno Haible  <bruno@clisp.org>
87805         * doc/Makefile (gnulib.info): Update and simplify dependencies.
87806         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
87808 2008-06-19  Eric Blake  <ebb9@byu.net>
87810         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
87811         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
87812         Reported by Stepan Kasal.
87814 2008-06-18  Bruno Haible  <bruno@clisp.org>
87816         * lib/fatal-signal.c (init_fatal_signals): Add comment.
87817         Reported by Eric Blake.
87819 2008-06-18  Eric Blake  <ebb9@byu.net>
87821         Work around cygwin 1.5.25 strsignal bug.
87822         * tests/test-strsignal.c: Allow for const char *.
87823         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
87825 2008-06-18  Simon Josefsson  <simon@josefsson.org>
87827         * users.txt: Update URL to article and add author/date
87828         information.
87830 2008-06-17  Bruno Haible  <bruno@clisp.org>
87832         New macro gl_DISABLE_THREADS.
87833         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
87834         if the user did not pass --enable-threads or --disable-threads option.
87835         (gl_DISABLE_THREADS): New macro.
87836         Reported by Eric Blake <ebb9@byu.net>.
87838 2008-06-17  Bruno Haible  <bruno@clisp.org>
87840         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
87841         when the macro ignores it.
87842         Based on a patch by Eric Blake <ebb9@byu.net>.
87844 2008-06-17  Bruno Haible  <bruno@clisp.org>
87846         * modules/tls (License): Change to LGPLv2+.
87847         Reported by Eric Blake.
87849 2008-06-17  Eric Blake  <ebb9@byu.net>
87851         Simplify c-stack prerequisites.
87852         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
87853         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
87854         no longer requires <ucontext.h> to exist.  Optimize setrlimit
87855         check.
87856         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
87857         <sys/resource.h>.
87859         Move c-stack test into testsuite.
87860         * modules/c-stack-tests: New file.
87861         * lib/c-stack.c [DEBUG]: Move test program...
87862         * tests/test-c-stack.c: ...into this new file.  Skip rather than
87863         fail test if sigaltstack is lacking.
87864         * tests/test-c-stack.sh: New driver file.
87866 2008-06-16  Eric Blake  <ebb9@byu.net>
87868         Use raise module consistently.
87869         * modules/fatal-signal (Depends-on): Add raise.
87870         * modules/sigprocmask (Depends-on): Likewise.
87871         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
87872         * lib/sigprocmask.c (sigprocmask): Likewise.
87873         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
87874         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
87876         Fix compliance bug in sigpending.
87877         * lib/sigprocmask.c (sigpending): Return pending array via
87878         parameter, not return value.
87880 2008-06-14  Eric Blake  <ebb9@byu.net>
87882         Improve obstack-printf test code.
87883         * tests/test-obstack-printf.c (test_function): Fix comment, and
87884         simplify usage of obstack_* in macros.  Add a test for coverage.
87885         Reported by Bruno Haible.
87887 2008-06-14  Bruno Haible  <bruno@clisp.org>
87889         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
87890         array size as a constant, not as a const variable.
87891         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
87892         AC_USE_SYSTEM_EXTENSIONS.
87893         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
87894         Test whether the obstack_printf function actually exists.
87895         * modules/obstack-printf (Depends-on): Add extensions.
87896         (Include): Remove obstack.h.
87897         * modules/obstack-printf-posix (Depends-on): Add extensions.
87898         (Include): Remove obstack.h.
87900 2008-06-13  Eric Blake  <ebb9@byu.net>
87902         Add obstack-printf and obstack-printf-posix modules.
87903         * modules/obstack-printf: New file.
87904         * modules/obstack-printf-posix: Likewise.
87905         * MODULES.html.sh (Misc): Mention them.
87906         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87907         Likewise.
87908         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87909         Likewise.
87910         * modules/stdio (Makefile.am): Accomodate new modules.
87911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87912         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
87913         Declare.
87914         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
87915         functions.
87916         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
87917         (gl_REPLACE_OBSTACK_PRINTF): New macros
87918         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
87919         * tests/test-obstack-printf.c: New file.
87920         * modules/obstack-printf-tests: Likewise.
87921         * modules/obstack-printf-posix-tests: Likewise.
87923 2008-06-11  Bruno Haible  <bruno@clisp.org>
87925         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
87926         * lib/open.c: Include errno.h.
87927         (open): Fail when attempting to write to a file that has a trailing
87928         slash.
87929         * tests/test-open.c (main): Test against trailing slash bug.
87930         * doc/posix-functions/open.texi: Mention the trailing slash bug.
87932 2008-06-10  Bruno Haible  <bruno@clisp.org>
87934         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
87935         for $? to work inside the trap command, with various /bin/sh-s.
87936         * tests/test-vc-list-files-cvs.sh: Likewise.
87938 2008-06-10  Bruno Haible  <bruno@clisp.org>
87940         * lib/acl-internal.h: Don't include gettext.h here.
87941         * lib/set-mode-acl.c: Include gettext.h here.
87942         * lib/copy-acl.c: Likewise.
87944 2008-06-10  Bruno Haible  <bruno@clisp.org>
87946         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
87947         * lib/wait-process.c (wait_subprocess): Likewise.
87948         * lib/execute.h (execute): Add termsigp argument.
87949         * lib/execute.c (execute): Likewise.
87950         * lib/csharpcomp.c (compile_csharp_using_pnet,
87951         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
87952         * lib/csharpexec.c (execute_csharp_using_pnet,
87953         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
87954         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
87955         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
87956         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
87957         is_jikes_present): Update.
87958         * lib/javaexec.c (execute_java_class): Update.
87959         * lib/javaversion.c (execute_and_read_line): Update.
87960         * NEWS: Document the changes.
87961         Reported by Eric Blake.
87963 2008-06-10  Eric Blake  <ebb9@byu.net>
87965         Add missing include.
87966         * tests/test-strstr.c (includes): Add <signal.h>.
87967         * tests/test-strcasestr.c (includes): Likewise.
87968         * tests/test-memmem.c (includes): Likewise.
87970 2008-06-10  Bruno Haible  <bruno@clisp.org>
87972         * lib/wait-process.c (wait_subprocess): Add an assertion.
87974 2008-06-10  Bruno Haible  <bruno@clisp.org>
87976         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
87978 2008-06-10  Bruno Haible  <bruno@clisp.org>
87980         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
87981         using alarm().
87982         * tests/test-strcasestr.c (main): Likewise.
87983         * tests/test-strstr.c (main): Likewise.
87985 2008-06-09  Bruno Haible  <bruno@clisp.org>
87987         Work around the Solaris 10 ACE ACLs ABI change.
87988         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
87989         declare if ACL_NO_TRIVIAL is present.
87990         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
87991         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
87992         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
87993         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
87994         define if ACL_NO_TRIVIAL is present.
87995         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
87996         and use the current ABI.
87997         (file_has_acl): Use same #if condition as elsewhere.
87998         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
87999         in use, and use the current ABI.
88000         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
88001         Reported by Jim Meyering.
88003 2008-06-09  Eric Blake  <ebb9@byu.net>
88005         Work around environments that (stupidly) ignore SIGALRM.
88006         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
88007         before using alarm().
88008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88009         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
88010         Reported by Ian Beckwith <ianb@erislabs.net>.
88012         Produce autobuild blurb earlier in log.
88013         * modules/autobuild (configure.ac-early): Move AB_INIT here.
88015 2008-06-09  Jim Meyering  <meyering@redhat.com>
88016         and Ondřej Vašík  <ovasik@redhat.com>
88018         utimens.c: correct kernel bug work-around
88019         Ondřej Vašík found that the invalid return value of 280 indicates
88020         failure, not success, and the kernel bug we're trying to work
88021         around affects not just the utimensat call, but also the fallback
88022         futimens call.
88023         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
88024         not success.
88025         [HAVE_FUTIMENS]: Use the same work-around, here.
88027 2008-06-09  Jim Meyering  <meyering@redhat.com>
88029         add more guards around definition of ACE_-related code
88030         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
88031         ALLOW and ACE_OWNER are also defined.
88033 2008-06-08  Bruno Haible  <bruno@clisp.org>
88035         * lib/acl-internal.h: Add me as co-author.
88036         * lib/file-has-acl.c: Likewise.
88037         * lib/set-mode-acl.c: Likewise.
88038         * lib/copy-acl.c: Likewise.
88040 2008-06-08  Bruno Haible  <bruno@clisp.org>
88042         Add support for AIX ACLs.
88043         * lib/acl-internal.h (acl_nontrivial): New declaration.
88044         * lib/file-has-acl.c (acl_nontrivial): New function.
88045         (file_has_acl): Add implementation using AIX 4 ACL API.
88046         * lib/set-mode-acl.c (qset_acl): Likewise.
88047         * lib/copy-acl.c (qcopy_acl): Likewise.
88049 2008-06-08  Bruno Haible  <bruno@clisp.org>
88051         Add support for HP-UX ACLs.
88052         * lib/acl-internal.h (acl_nontrivial): New declaration.
88053         * lib/file-has-acl.c (acl_nontrivial): New function.
88054         (file_has_acl): Add implementation using HP-UX 11 ACL API.
88055         * lib/set-mode-acl.c (qset_acl): Likewise.
88056         * lib/copy-acl.c (qcopy_acl): Likewise.
88058 2008-06-08  Bruno Haible  <bruno@clisp.org>
88060         Add support for Cygwin ACLs.
88061         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
88062         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
88063         the chmod_or_fchmod call.
88064         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
88066 2008-06-08  Bruno Haible  <bruno@clisp.org>
88068         Fix bug with setuid modes in Solaris 10+ code.
88069         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
88070         succeeded, when the mode contains some special bits.
88072 2008-06-08  Bruno Haible  <bruno@clisp.org>
88074         Add support for Solaris 7..10 ACLs.
88075         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
88076         declarations.
88077         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
88078         functions.
88079         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
88080         * lib/set-mode-acl.c (qset_acl): Likewise.
88081         * lib/copy-acl.c (qcopy_acl): Likewise.
88083 2008-06-08  Bruno Haible  <bruno@clisp.org>
88085         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
88086         declaration.
88087         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
88088         (acl_access_nontrivial): Remove MacOS X case.
88089         (file_has_acl): Use acl_extended_nontrivial.
88090         * lib/copy-acl.c (qcopy_acl): Likewise.
88092 2008-06-08  Bruno Haible  <bruno@clisp.org>
88094         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
88096 2008-06-08  Jim Meyering  <meyering@redhat.com>
88098         * modules/acl (Maintainer): Add Bruno Haible.
88100 2008-06-07  Bruno Haible  <bruno@clisp.org>
88102         Improve support for Tru64 ACLs.
88103         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
88104         ACL on OSF/1.
88106 2008-06-07  Bruno Haible  <bruno@clisp.org>
88108         Add support for MacOS X ACLs.
88109         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
88110         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
88111         * lib/set-mode-acl.c (qset_acl): Likewise.
88112         * lib/copy-acl.c (qcopy_acl): Likewise.
88114 2008-06-07  Bruno Haible  <bruno@clisp.org>
88116         Fix memory leak introduced on 2008-05-22.
88117         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
88118         use.
88120 2008-06-07  Bruno Haible  <bruno@clisp.org>
88122         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
88123         to construct an empty ACL.
88125 2008-06-07  Bruno Haible  <bruno@clisp.org>
88127         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
88128         precisely.
88129         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
88131 2008-06-07  Bruno Haible  <bruno@clisp.org>
88133         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
88134         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
88136 2008-06-07  Bruno Haible  <bruno@clisp.org>
88138         * doc/posix-functions/_setjmp.texi: Explain the use of this function
88139         regardless of POSIX.
88140         * doc/posix-functions/_longjmp.texi: Likewise.
88141         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
88142         SystemV platform in this case.
88144 2008-06-06  Eric Blake  <ebb9@byu.net>
88146         Document abort() bugs.
88147         * doc/posix-functions/abort.texi (abort): Mention anomalies.
88149         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
88150         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
88151         sigsetjmp.
88152         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
88153         siglongjmp, but only as a macro.
88154         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
88155         is obsolete.
88156         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
88158         Tweak documentation to cover cygwin argz bugs.
88159         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
88160         argz bug fix; no code change needed since no cygwin releases
88161         occurred between the last fix and the bug being tested.
88162         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
88163         module and recently fixed cygwin bugs.
88164         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
88165         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
88166         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
88167         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
88168         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
88169         Likewise.
88170         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
88171         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
88172         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
88173         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
88174         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
88175         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
88176         Likewise.
88178         Avoid gcc warning on cygwin.
88179         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
88180         !ACL_NO_TRIVIAL]: Avoid unused variable.
88182 2008-06-05  Eric Blake  <ebb9@byu.net>
88184         Be tolerant of UNKNOWN version in gnulib-tool test dir.
88185         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
88186         git-version-gen fails to come up with a version.
88187         Reported by Simon Josefsson.
88189 2008-06-05  Jim Meyering  <meyering@redhat.com>
88190             Paul Eggert  <eggert@cs.ucla.edu>
88192         utimens.c: work around a probable Linux kernel bug
88193         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
88194         appears to be a kernel bug that causes utimensat to return 280
88195         instead of 0, indicating success.
88197 2008-06-04  Bruno Haible  <bruno@clisp.org>
88199         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
88200         2008-06-01 commit.
88202 2008-06-04  Bruno Haible  <bruno@clisp.org>
88204         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
88205         * lib/file-has-acl.c (acl_access_nontrivial): New function.
88206         (file_has_acl): Use it. Save errno afterwards.
88207         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
88209 2008-06-03  Bruno Haible  <bruno@clisp.org>
88211         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
88212         draft code. Simplify #ifs.
88213         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
88214         Put Solaris code after POSIX-draft code. Fix comments regarding
88215         Solaris 10, HP-UX. Mention Cygwin.
88216         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
88218 2008-06-03  Eric Blake  <ebb9@byu.net>
88220         Provide fallback for older kernels.
88221         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
88222         Provide runtime fallback if kernel lacks support.
88223         Reported by Mike Frysinger.
88225 2008-06-02  Bruno Haible  <bruno@clisp.org>
88227         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
88228         it exists.
88230 2008-06-02  Bruno Haible  <bruno@clisp.org>
88232         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
88233         * lib/copy-acl.c (qcopy_acl): Update comment.
88235 2008-06-02  Bruno Haible  <bruno@clisp.org>
88237         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
88238         like ACL APIs.
88240 2008-06-02  Bruno Haible  <bruno@clisp.org>
88242         * tests/test-file-has-acl.sh: Use different code for Cygwin.
88243         * tests/test-set-mode-acl.sh: Likewise.
88244         * tests/test-copy-acl.sh: Likewise.
88245         * tests/test-copy-file.sh: Likewise.
88247 2008-06-02  Bruno Haible  <bruno@clisp.org>
88249         * tests/test-file-has-acl.sh: Remove unused code.
88251 2008-06-01  Bruno Haible  <bruno@clisp.org>
88253         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
88254         (copy_acl): Just a wrapper around qcopy_acl that emits the error
88255         messages.
88256         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
88258 2008-06-01  Bruno Haible  <bruno@clisp.org>
88260         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
88261         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
88262         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
88263         APIs.
88264         * modules/acl-tests (configure.ac): Remove tests now contained in
88265         m4/acl.m4.
88267 2008-06-02  Jim Meyering  <meyering@redhat.com>
88269         announce-gen: use a better key-server host name
88270         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
88271         it may be more consistently reliable.  Suggested by Werner Koch
88272         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
88274 2008-06-01  Bruno Haible  <bruno@clisp.org>
88276         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
88277         Reported by Voroskoi Andras <voroskoi@gmail.com>.
88279 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
88281         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
88283 2008-06-01  Bruno Haible  <bruno@clisp.org>
88285         New ACL tests.
88286         * tests/test-file-has-acl.sh: New file.
88287         * tests/test-file-has-acl.c: New file.
88288         * tests/test-set-mode-acl.sh: New file.
88289         * tests/test-set-mode-acl.c: New file.
88290         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
88291         * tests/test-copy-acl.c: New file.
88292         * modules/acl-tests: New file, based on modules/copy-file-tests.
88293         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
88294         (Depends-on): Add acl-tests.
88295         (configure.ac): Remove checks.
88296         (Makefile.am): Don't create test-sameacls program here any more.
88298 2008-06-01  Bruno Haible  <bruno@clisp.org>
88300         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
88301         * tests/test-sameacls.c: Include progname.h.
88302         (main): Invoke set_program_name. Portability fixes for MacOS X,
88303         Solaris, HP-UX.
88305 2008-06-01  Bruno Haible  <bruno@clisp.org>
88307         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
88308         function.
88309         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
88311 2008-06-01  Bruno Haible  <bruno@clisp.org>
88313         * modules/rpmatch (Depends-on): Add strdup.
88315 2008-06-01  Bruno Haible  <bruno@clisp.org>
88317         * lib/pipe.c: Include unistd-safer.h.
88318         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
88319         * modules/pipe (Depends-on): Add unistd-safer.
88321 2008-05-30  Simon Josefsson  <simon@josefsson.org>
88323         * modules/autobuild (configure.ac): Call AB_INIT.
88325 2008-05-30  Simon Josefsson  <simon@josefsson.org>
88327         * tests/test-getaddrinfo.c: Don't print debug messages by default.
88328         Suggested by Bruno Haible <bruno@clisp.org>.
88330 2008-05-30  Simon Josefsson  <simon@josefsson.org>
88332         * tests/test-base64.c: Cast size_t to unsigned long when invoking
88333         printf.  Use %lu instead of %d.  Reported by Bruno Haible
88334         <bruno@clisp.org>.
88336 2008-05-29  Eric Blake  <ebb9@byu.net>
88338         Prefer new POSIX 200x interfaces over futimesat.
88339         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
88340         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
88341         when available.
88342         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
88344 2008-05-28  Bruno Haible  <bruno@clisp.org>
88346         * modules/stpcpy (License): Change to LGPLv2+.
88347         Requested by David Lutterkort <dlutter@redhat.com>.
88349 2008-05-27  Bruno Haible  <bruno@clisp.org>
88351         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
88352         current mingw.
88353         Reported by Jose E. Marchesi <jemarch@gnu.org>.
88355 2008-05-27  Bruno Haible  <bruno@clisp.org>
88357         * modules/iconv_open (Link): New section, from module 'iconv'.
88358         * modules/striconv (Link): Likewise.
88359         * modules/striconveh (Link): Likewise.
88360         * modules/xstriconv (Link): Likewise.
88361         * modules/unicodeio (Link): Likewise.
88362         * modules/propername (Link): Likewise.
88363         Reported by Jim Meyering.
88365 2008-05-26  Jim Meyering  <meyering@redhat.com>
88367         sha256: do not artificially restrict buffer length to be < 2^32
88368         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
88369         uint32_t to size_t.
88370         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
88371         to match.
88373         avoid unaligned access errors, e.g., on sparc
88374         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
88375         direct access through a possibly-unaligned uint64* pointer.
88376         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
88377         direct access through a possibly-unaligned uint32* pointer.
88378         Prompted by this patch from Tom "spot" Callaway:
88379         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
88381         sha512.c: fix typo in comment
88382         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
88384 2008-05-25  Bruno Haible  <bruno@clisp.org>
88386         * lib/set-mode-acl.c: Renamed from lib/acl.c.
88387         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
88388         (Makefile.am): Update lib_SOURCES.
88390 2008-05-25  Bruno Haible  <bruno@clisp.org>
88392         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
88394 2008-05-25  Jim Meyering  <meyering@redhat.com>
88396         useless-if-before-free: freed expr may have white-space differences
88397         * build-aux/useless-if-before-free: Recognize cases in which the
88398         freed expression differs from the tested one in embedded white
88399         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
88400         $1 was used, so we can't make any regexp shy.  Improved tests now
88401         detect this.
88403         useless-if-before-free: accept white space in the expression.
88404         * build-aux/useless-if-before-free: For now, any white space
88405         in the expression must be identical in the free argument.
88407         useless-if-before-free: efficiency tweak
88408         * build-aux/useless-if-before-free: Make the expression-matching
88409         regexp "shy".
88410         Make the *outer* regexp shy, not the expr-matching one.
88412         update code-in-comment to accept cast of free arg
88413         * build-aux/useless-if-before-free: Update regexp.
88415 2008-05-25  Bruno Haible  <bruno@clisp.org>
88417         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
88418         * modules/copy-file-tests (Files, Makefile.am): Update.
88419         * tests/test-copy-file.c (func_test_copy): Update.
88421 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
88423         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
88425 2008-05-23  Bruno Haible  <bruno@clisp.org>
88427         Improve support for ACLs on OSF/1.
88428         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
88429         Remove fallback for unknown flavors of ACLs.
88431 2008-05-22  Bruno Haible  <bruno@clisp.org>
88433         Add support for ACLs on OSF/1.
88434         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
88435         replacements.
88436         (acl_free_text): New macro fallback.
88437         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
88438         acl_free.
88439         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
88440         acl_free_text function. Require AC_C_INLINE.
88442 2008-05-22  Bruno Haible  <bruno@clisp.org>
88444         Make copy_acl work on MacOS X 10.5.
88445         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
88446         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
88447         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
88448         If MODE_INSIDE_ACL, don't assume that every system has the same text
88449         representation for ACLs as FreeBSD.
88450         * lib/copy-acl.c (copy_acl): Add support for platforms with
88451         !MODE_INSIDE_ACL.
88452         * lib/file-has-acl.c (file_has_acl): Likewise.
88453         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
88454         FreeBSD, MacOS X, or IRIX, respectively.
88456 2008-05-22  Bruno Haible  <bruno@clisp.org>
88458         * lib/acl.h: Don't include <sys/acl.h>.
88459         (GETACLCNT): Move fallback to lib/acl-internal.h.
88460         * lib/acl-internal.h: Include <sys/acl.h> here.
88461         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
88463 2008-05-22  Bruno Haible  <bruno@clisp.org>
88465         Split off copy_acl function to separate file.
88466         * lib/copy-acl.c: New file, extracted from lib/acl.c.
88467         * lib/acl.c (copy_acl): Moved function to separate file.
88468         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
88469         * modules/acl (Files): Add lib/copy-acl.c.
88470         (Makefiles.am): Augment lib_SOURCES.
88472 2008-05-22  Bruno Haible  <bruno@clisp.org>
88474         * modules/copy-file-tests: New file.
88475         * tests/test-copy-file.sh: New file.
88476         * tests/test-copy-file.c: New file.
88477         * tests/test-copy-file-sameacls.c: New file.
88479 2008-05-22  Eric Blake  <ebb9@byu.net>
88481         Avoid gcc warning.
88482         * tests/test-memcmp.c (main): Pass NULL indirectly.
88484 2008-05-21  Bruno Haible  <bruno@clisp.org>
88486         Add reference doc about ACLs.
88487         * doc/acl-resources.txt: New file.
88488         * doc/acl-cygwin.txt: New file.
88490 2008-05-21  Bruno Haible  <bruno@clisp.org>
88492         Avoid one more warning from gcc.
88493         * lib/vasnprintf.c (IF_LINT): Update comments.
88494         (VASNPRINTF): Use it also for the 'prefix' array initializer.
88496 2008-05-21  Jim Meyering  <meyering@redhat.com>
88498         avoid a warning from gcc
88499         * lib/vasnprintf.c (IF_LINT): Define.
88500         (scale10_round_decimal_long_double):
88501         Use it to avoid a "may be used uninitialized" warning.
88502         (scale10_round_decimal_double): Likewise.
88504 2008-05-21  Simon Josefsson  <simon@josefsson.org>
88506         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
88507         declared.
88509 2008-05-20  Bruno Haible  <bruno@clisp.org>
88511         * tests/test-memcmp.c (main): Test also the sign of the result. Test
88512         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
88514 2008-05-20  Simon Josefsson  <simon@josefsson.org>
88516         * modules/memcmp-tests: New file.
88517         * tests/test-memcmp.c: New file.
88519 2008-05-19  Bruno Haible  <bruno@clisp.org>
88521         * modules/propername (Notice, configure.ac): Put quoted "..." into
88522         --keyword option.
88523         * lib/propername.h: Update comments accordingly.
88524         Reported by Eric Blake.
88526 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
88528         * modules/getpass-gnu (Depends-on): Add fseeko.
88530 2008-05-19  Simon Josefsson  <simon@josefsson.org>
88532         * modules/base64-tests: New file.
88534 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
88536         * lib/base64.c (base64_decode_ctx): If a decode context structure
88537         was passed in use it to ignore newlines.  If a context structure
88538         was _not_ passed in, continue to treat newlines as garbage (this
88539         is the historical behavior).  Formerly base64_decode.
88540         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
88541         takes a decode context structure.
88542         * lib/base64.h (base64_decode): Macro for four-argument calls.
88543         (base64_decode_alloc): Likewise.
88544         * lib/base64.c (base64_decode_ctx): If a decode context structure
88545         was passed in use it to ignore newlines.  If a context structure
88546         was _not_ passed in, continue to treat newlines as garbage (this
88547         is the historical behavior).  Formerly base64_decode.
88548         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
88549         takes a decode context structure.
88550         * lib/base64.h (base64_decode): Macro for four-argument calls.
88551         (base64_decode_alloc): Likewise.
88553 2008-05-19  Jim Meyering  <meyering@redhat.com>
88555         avoid a warning from gcc
88556         * lib/trim.c (IF_LINT): Define.
88557         (trim2): Use it to avoid a "may be used uninitialized" warning.
88559         Fix doc typo.
88560         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
88562 2008-05-19  Bruno Haible  <bruno@clisp.org>
88564         * doc/glibc-functions/getpass.texi: Document limits of other
88565         implementations.
88567 2008-05-19  Simon Josefsson  <simon@josefsson.org>
88568             Bruno Haible <bruno@clisp.org>
88570         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
88572 2008-05-18  Bruno Haible  <bruno@clisp.org>
88574         * modules/propername: New file, from GNU gettext.
88575         * lib/propername.h: New file, from GNU gettext.
88576         * lib/propername.c: New file, from GNU gettext.
88577         * MODULES.html.sh (Internationalization functions): Add propername.
88579 2008-05-16  Jim Meyering  <meyering@redhat.com>
88580             Bruno Haible  <bruno@clisp.org>
88582         Avoid some warnings from "gcc -Wshadow".
88583         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
88585 2008-05-15  Eric Blake  <ebb9@byu.net>
88587         Extend previous patch to cygwin 1.7.0.
88588         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
88589         fast implementation in cygwin >= 1.7.0.
88590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88593 2008-05-15  Bruno Haible  <bruno@clisp.org>
88595         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
88596         implementation in glibc >= 2.9.
88597         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88600 2008-05-15  Bruno Haible  <bruno@clisp.org>
88602         * MODULES.html.sh (Internationalization functions): Remove linebreak.
88603         (Unicode string functions): Add unilbrk/*.
88604         Reported by Karl Berry.
88606 2008-05-15  Eric Blake  <ebb9@byu.net>
88608         Fix violation of <stdbool.h> replacement in regex.
88609         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
88610         * lib/regexec.c (re_search_internal): Likewise.
88611         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
88613 2008-05-15  Jim Meyering  <meyering@redhat.com>
88615         avoid distracting test output when git or cvs is not found
88616         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
88617         * tests/test-vc-list-files-git.sh: Likewise.
88619 2008-05-15  Eric Blake  <ebb9@byu.net>
88621         Glibc finally accepted the memmem speedup code, bugzilla #5514.
88622         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
88623         glibc version.
88624         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
88625         * doc/posix-functions/strstr.texi (strstr): Likewise.
88626         * lib/str-two-way.h (MAX): Sychronize with glibc.
88628 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
88630         * lib/regcomp.c (optimize_utf8): Add a note on why we test
88631         opr.ctx_type.
88632         (calc_first): Initialize constraint field.
88633         (duplicate_node_closure): Use it instead of special casing ANCHORS.
88634         Fix grammar.
88635         (duplicate_node): Merge constraint field for all node types.
88636         (calc_eclosure_iter): Look at constraint field for all node types.
88637         * lib/regex_internal.c (create_cd_newstate): Don't look at
88638         opr.ctx_type.
88640 2008-05-14  Bruno Haible  <bruno@clisp.org>
88642         Help GCC to do better code generation.
88643         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
88644         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
88645         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
88646         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
88647         Declare with attribute 'malloc' if supported.
88649 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
88651         use "echo STR|wc -c" rather than unportable "expr length STR"
88652         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
88653         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
88655 2008-05-14  Jim Meyering  <meyering@redhat.com>
88657         use dd ibs=$n count=1 ... rather than less-portable head -c$n
88658         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
88659         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
88660         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
88661         via Collin Lasse.
88663 2008-05-14  Eric Blake  <ebb9@byu.net>
88665         Avoid quadratic growth in gl_LIBSOURCES.
88666         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
88667         Suggested by Bruno Haible.
88669         Test xmemdup0.
88670         * modules/xmemdup0-tests: New file.
88671         * tests/test-xmemdup0.c: Likewise.
88673 2008-05-13  Eric Blake  <ebb9@byu.net>
88675         Split xmemdup0 into its own module.
88676         * modules/xmemdup0: New file.
88677         * lib/xmemdup0.h: Likewise.
88678         * lib/xmemdup0.c: Likewise.
88679         * MODULES.html.sh (Memory management functions): Add xmemdup0.
88680         * lib/xalloc.h (xmemdup0): Remove.
88681         * lib/xmalloc.c (xmemdup0): Likewise.
88683 2008-05-13  Eric Blake  <ebb9@byu.net>
88684             Bruno Haible  <bruno@clisp.org>
88686         Reduce number of forks required during autoconf.
88687         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
88688         and gl_LIBSOURCES_DIR.
88689         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
88690         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
88691         m4_syscmd per file.
88692         <m4_foreach_w>: Move...
88693         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
88695 2008-05-13  Eric Blake  <ebb9@byu.net>
88697         * gnulib-tool: Fix various comment typos.
88699 2008-05-12  Bruno Haible  <bruno@clisp.org>
88701         Tailor the linebreaking algorithm.
88702         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
88704 2008-05-12  Bruno Haible  <bruno@clisp.org>
88706         Update to Unicode 5.0.0.
88707         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
88708         LBP_JV, LBP_JT. Redistribute values.
88709         (unilbrk_table): Change size.
88710         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
88711         Unicode TR#14 rev. 22.
88712         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
88713         LBP_JV, LBP_JT. Redistribute values.
88714         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
88715         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
88716         Update.
88717         * lib/unilbrk/lbrkprop1.h: Regenerated.
88718         * lib/unilbrk/lbrkprop2.h: Regenerated.
88719         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
88720         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
88721         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
88722         Likewise.
88723         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
88724         Likewise.
88725         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
88726         result.
88727         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
88728         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
88729         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
88730         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
88731         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
88732         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
88734 2008-05-11  Bruno Haible  <bruno@clisp.org>
88736         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
88738 2008-05-11  Bruno Haible  <bruno@clisp.org>
88740         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
88741         * modules/unilbrk/gen-lbrk: New file.
88743 2008-05-11  Bruno Haible  <bruno@clisp.org>
88745         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
88746         * m4/sha512.m4 (gl_SHA512): Likewise.
88748 2008-05-11  Jim Meyering  <meyering@redhat.com>
88750         New modules: crypto/sha256, crypto/sha512 (from coreutils)
88751         * modules/crypto/sha256: New file.
88752         * modules/crypto/sha512: Likewise.
88753         * lib/sha256.c: Likewise.
88754         * lib/sha256.h: Likewise.
88755         * lib/sha512.c: Likewise.
88756         * lib/sha512.h: Likewise.
88757         * lib/u64.h: Likewise.
88758         * m4/sha256.m4: Likewise.
88759         * m4/sha512.m4: Likewise.
88760         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
88762 2008-05-10  Bruno Haible  <bruno@clisp.org>
88764         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
88765         (Input/Output <stdio.h>): Add xprintf.
88766         (Signal handling <signal.h>): Add strsignal.
88767         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
88768         (Core language properties): Add func.
88769         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
88770         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
88771         strings.
88772         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
88773         (Input/output): New section.
88774         (File system functions): Add openat-die, stat-macros.
88775         (Networking functions): Add sockets.
88776         (Unicode string functions): Add unictype/*.
88777         (Support for building libraries and executables): Add gperf.
88778         (Support for building documentation): Add agpl-3.0.
88779         (Misc): Add nocrash.
88781 2008-05-10  Bruno Haible  <bruno@clisp.org>
88783         * modules/unictype/gen-ctype: New file.
88785 2008-05-10  Jim Meyering  <meyering@redhat.com>
88787         Make chdir-safer.c more efficient on a system with no symlinks.
88788         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
88789         also if ELOOP is zero.  Suggested by Bruno Haible.
88791         Make chdir-safer.c slightly safer.
88792         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
88793         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
88795         Avoid compile failure on systems without ELOOP (like mingw).
88796         * lib/chdir-safer.c (ELOOP): Define if not already defined.
88797         Reported by Bruno Haible.
88799 2008-05-10  Bruno Haible  <bruno@clisp.org>
88801         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
88802         (is_utf8_encoding): Use a case-insensitive comparison.
88803         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
88804         streq.
88806 2008-05-10  Bruno Haible  <bruno@clisp.org>
88808         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
88809         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
88810         * lib/unilbrk/ulc-common.h (iconv_string_length,
88811         iconv_string_keeping_offsets): Remove declarations.
88812         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
88813         Don't include <iconv.h>, streq.h, xsize.h.
88814         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
88815         conversion.
88816         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
88817         <iconv.h>, streq.h, xsize.h.
88818         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
88819         conversion.
88820         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
88821         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
88822         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
88823         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
88825 2008-05-10  Bruno Haible  <bruno@clisp.org>
88827         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
88828         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
88830         * modules/unilbrk/u32-width-linebreaks-tests: New file.
88831         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
88833         * modules/unilbrk/u16-width-linebreaks-tests: New file.
88834         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
88836         * modules/unilbrk/u8-width-linebreaks-tests: New file.
88837         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
88839         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
88840         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
88842         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
88843         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
88845         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
88846         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
88848         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
88849         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
88851 2008-05-10  Bruno Haible  <bruno@clisp.org>
88853         Split up 'linebreak' module.
88854         * lib/unilbrk.h: New file, based on lib/linebreak.h.
88855         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
88856         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
88857         modifications.
88858         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
88859         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
88860         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
88861         lib/linebreak.c.
88862         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
88863         lib/linebreak.c.
88864         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
88865         lib/linebreak.c.
88866         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
88867         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
88868         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
88869         lib/linebreak.c.
88870         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
88871         lib/linebreak.c.
88872         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
88873         lib/linebreak.c.
88874         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
88875         lib/linebreak.c.
88876         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
88877         lib/linebreak.c.
88878         * modules/unilbrk/base: New file.
88879         * modules/unilbrk/tables: New file.
88880         * modules/unilbrk/u8-possible-linebreaks: New file.
88881         * modules/unilbrk/u16-possible-linebreaks: New file.
88882         * modules/unilbrk/u32-possible-linebreaks: New file.
88883         * modules/unilbrk/ulc-common: New file.
88884         * modules/unilbrk/ulc-possible-linebreaks: New file.
88885         * modules/unilbrk/u8-width-linebreaks: New file.
88886         * modules/unilbrk/u16-width-linebreaks: New file.
88887         * modules/unilbrk/u32-width-linebreaks: New file.
88888         * modules/unilbrk/ulc-width-linebreaks: New file.
88889         * lib/linebreak.h: Remove file.
88890         * lib/linebreak.c: Remove file.
88891         * m4/linebreak.m4: Remove file.
88892         * modules/linebreak: Remove file.
88893         * NEWS: Mention the changes.
88895 2008-05-09  Eric Blake  <ebb9@byu.net>
88897         Add xmemdup0.
88898         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
88899         implementation.
88900         * lib/xmalloc.c (xmemdup0): New C implementation.
88902 2008-05-08  Bruno Haible  <bruno@clisp.org>
88904         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
88906 2008-05-07  Eric Blake  <ebb9@byu.net>
88908         Support cross-compilation of <wctype.h>.
88909         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
88910         AC_CACHE_CHECK.
88912 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
88914         * build-aux/vc-list-files: Add support for bzr.
88916 2008-05-03  Jim Meyering  <meyering@redhat.com>
88918         avoid failed assertion with tight malloc
88919         * tests/test-getndelim2.c: Correct an off-by-one assertion.
88921 2008-05-03  Simon Josefsson  <simon@josefsson.org>
88923         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
88924         are needed from arpa/inet.h.
88925         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
88926         Reported by Bruno Haible.
88928 2008-05-02  Jim Meyering  <meyering@redhat.com>
88930         avoid compilation error on FreeBSD 6
88931         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
88933 2008-05-01  Jim Meyering  <meyering@redhat.com>
88935         useless-if-before-free: correct --help's exit status description
88936         * build-aux/useless-if-before-free (usage): Like grep, exit 0
88937         for one or more matches, etc.  Reported by Bruno Haible.
88939         vc-list-files: make the stand-alone gnulib test work
88940         * modules/vc-list-files-tests (configure.ac):
88941         Define and AC_SUBST abs_aux_dir.
88942         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
88943         $(abs_top_srcdir) to each script and having each of them
88944         duplicate the work of setting PATH, set PATH here, using
88945         the new variable, abs_aux_dir instead.
88946         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
88947         * tests/test-vc-list-files-git.sh: Likewise.
88948         Reported by Bruno Haible.
88950 2008-05-01  Bruno Haible  <bruno@clisp.org>
88952         * lib/getndelim2.c (getndelim2): Fix newsize computation during
88953         reallocation. Rename 'done' to 'found_delimiter'.
88955 2008-05-01  Jim Meyering  <meyering@redhat.com>
88957         vc-list-files: accommodate /bin/sh like the one from Solaris 10
88958         * build-aux/vc-list-files: Use `...`, not $(...).
88960 2008-04-30  Jim Meyering  <meyering@redhat.com>
88962         add tests for vc-list-files
88963         * modules/vc-list-files-tests: New module.
88964         * tests/test-vc-list-files-cvs.sh: New file.
88965         * tests/test-vc-list-files-git.sh: New file.
88967         avoid a warning from gcc
88968         * lib/getndelim2.c (IF_LINT): Define.
88969         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
88971         vc-list-files: work properly with build-aux/cvsu, too
88972         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
88973         to all cvs-based clauses.
88975         vc-list-files: work properly in the CVS+awk case, too
88976         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
88978         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
88979         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
88980         take more than one file argument, so .  Add quotes, just in case $dir
88981         ever contains a shell meta-character.  Prompted by Soren Hansen in
88982         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
88984 2008-04-29  Eric Blake  <ebb9@byu.net>
88986         Optimize getndelim2 to use block operations when possible.
88987         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
88988         freadseek, and memchr2.
88989         * lib/getndelim2.c (getndelim2): Use them for block reads.
88991 2008-04-29  Bruno Haible  <bruno@clisp.org>
88993         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
88994         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88995         * modules/inet_ntop (Depends-on): Add extensions.
88996         * modules/inet_pton (Depends-on): Likewise.
88997         Reported by Simon Josefsson.
88999 2008-04-29  Jim Meyering  <meyering@redhat.com>
89001         When the is more than one match in a block, match all of them.
89002         * build-aux/useless-if-before-free: Iterate through each block
89003         until there are no more matches.
89005         Fix broken useless-if-before-free script.
89006         * build-aux/useless-if-before-free: Fix typo: missing "?" after
89007         the expression to match cast of argument to free-like function.
89009 2008-04-29  Eric Blake  <ebb9@byu.net>
89011         Use new header.
89012         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
89014 2008-04-29  Jim Meyering  <meyering@redhat.com>
89016         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
89017         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
89018         by gnulib to exist and to declare e.g., inet_ntop.
89019         Don't include "inet_ntop.h", now removed.
89021         * m4/arpa_inet_h.m4: Remove trailing blanks.
89023 2008-04-29  Eric Blake  <ebb9@byu.net>
89025         Silence valgrind on safe reads beyond potential array bounds.
89026         * lib/rawmemchr.valgrind: New file.
89027         * lib/strchrnul.valgrind: Likewise.
89028         * modules/rawmemchr (Files): Distribute new file.
89029         * modules/strchrnul (Files): Likewise.
89030         Suggested by Bruno Haible.
89032 2008-04-29  Bruno Haible  <bruno@clisp.org>
89034         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
89035         (inet_ntop, inet_pton): Change portability warning's wording.
89036         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
89037         Invoke gl_CHECK_NEXT_HEADERS.
89038         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
89039         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
89040         set ARPA_INET_H.
89041         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
89042         * modules/arpa_inet (Description): No longer only for systems that
89043         lack it.
89044         (Depends-on): Add include_next.
89045         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
89046         HAVE_ARPA_INET_H.
89048 2008-04-29  Jim Meyering  <meyering@redhat.com>
89050         * modules/mkdir (License): Re-license as LGPLv2+.
89052 2008-04-29  Bruno Haible  <bruno@clisp.org>
89054         * modules/rawmemchr (Maintainer): Set to Eric.
89055         * modules/strchrnul (Maintainer): Likewise.
89057 2008-04-29  Simon Josefsson  <simon@josefsson.org>
89059         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
89060         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
89062         * modules/arpa_inet (arpa/inet.h): Use them.
89064 2008-04-28  Eric Blake  <ebb9@byu.net>
89066         Test getndelim2.
89067         * modules/getndelim2-tests: New file.
89068         * tests/test-getndelim2.c: Likewise.
89069         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
89070         stream.
89071         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
89073         * MODULES.html.sh: Document new module.
89075 2008-04-20  Bruno Haible  <bruno@clisp.org>
89077         * lib/c-stack.c (die): Use raise.
89078         * modules/c-stack (Depends-on): Add raise.
89080 2008-04-28  Bruno Haible  <bruno@clisp.org>
89082         Expect rpmatch to be declared.
89083         * lib/yesno.c (rpmatch): Remove declaration.
89085         Declare rpmatch.
89086         * lib/stdlib.in.h (rpmatch): New declaration.
89087         * lib/rpmatch.c: Include <stdlib.h> first.
89088         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
89089         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
89090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
89091         HAVE_RPMATCH.
89092         * modules/rpmatch (Depends-on): Add stdlib, extensions.
89093         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89094         (Include): Set to <stdlib.h>.
89095         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
89096         HAVE_RPMATCH.
89097         * NEWS: Document the change.
89099 2008-04-28  Bruno Haible  <bruno@clisp.org>
89101         Change rpmatch to use nl_langinfo when appropriate.
89102         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
89103         (N_): New macro.
89104         (localized_pattern): New function/macro.
89105         (try): Remove match, nomatch arguments. Copy the pattern into safe
89106         memory before caching it.
89107         (rpmatch): Use localized_pattern. Add translator comments.
89108         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
89109         Suggested by Eric Blake.
89110         * modules/rpmatch (Depends-on): Add stdbool.
89112 2008-04-28  Eric Blake  <ebb9@byu.net>
89114         Add rawmemchr module, matching glibc.
89115         * modules/string (Makefile.am): New indicator.
89116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
89117         * lib/string.in.h (rawmemchr): Declare when appropriate.
89118         * modules/rawmemchr: New file.
89119         * m4/rawmemchr.m4: Likewise.
89120         * lib/rawmemchr.c: Likewise.
89121         * modules/rawmemchr-tests: Likewise.
89122         * tests/test-rawmemchr.c: Likewise.
89123         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
89124         module.
89125         * modules/strchrnul (Depends-on): Add rawmemchr.
89126         * lib/strchrnul.c (strchrnul): Optimize a corner case.
89128         Whitespace cleanup.
89129         * tests/test-strchrnul.c: Reindent.
89130         * lib/strchrnul.c: Likewise.
89132         Optimize and test strchrnul.
89133         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
89134         * modules/strchrnul-tests: New file.
89135         * tests/test-strchrnul.c: Likewise.
89137         Remove intprops dependency.
89138         * modules/memchr (Depends-on): Remove intprops.
89139         * modules/memrchr (Depends-on): Likewise.
89140         * modules/memchr2 (Depends-on): Likewise.
89141         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
89142         * lib/memrchr.c (__memrchr): Likewise.
89143         * lib/memrchr2.c (memchr2): Likewise.
89144         Reported by Simon Josefsson.
89146 2008-04-28  Simon Josefsson  <simon@josefsson.org>
89148         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
89149         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89151 2008-04-28  Simon Josefsson  <simon@josefsson.org>
89153         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
89155         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
89157         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
89159         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
89160         declarations.
89161         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
89163         * m4/inet_pton.m4: Don't check for header files.
89165         * m4/inet_ntop.m4: Don't check for header files.
89167 2008-04-28  Simon Josefsson  <simon@josefsson.org>
89169         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
89170         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
89171         trigger for cygwin).
89172         Reported by Bruno Haible  <bruno@clisp.org>.
89174 2008-04-28  Bruno Haible  <bruno@clisp.org>
89176         * doc/posix-functions/strdup.texi: Mention mingw problem.
89178 2008-04-27  Bruno Haible  <bruno@clisp.org>
89180         * modules/stat-time-tests (Depends-on): Add sleep.
89181         * tests/test-stat-time.c (force_unlink): New function.
89182         (cleanup): Use it.
89183         (test_mtime): Remove the ctime related tests.
89184         (test_ctime): New function, containing the ctime related tests.
89185         (main): Call test_ctime, except on native Windows platforms.
89187 2008-04-27  Bruno Haible  <bruno@clisp.org>
89189         * lib/rpmatch.c (rpmatch): Add some comments.
89190         Reported by James Youngman <jay@gnu.org>.
89192 2008-04-27  Bruno Haible  <bruno@clisp.org>
89194         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
89195         quiet NaNs.
89197 2008-04-27  Bruno Haible  <bruno@clisp.org>
89199         Make test-yesno.sh work on mingw.
89200         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
89201         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
89202         (main): Set stdin to binary mode.
89203         * modules/yesno-tests (Depends-on): Add binary-io.
89205 2008-04-27  Bruno Haible  <bruno@clisp.org>
89207         Fix 'isfinite' on x86, x86_64, ia64 platforms.
89208         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
89209         argument that lie outside the IEEE 854 domain.
89210         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
89211         (gl_ISFINITE): Use it.
89212         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
89214 2008-04-27  Bruno Haible  <bruno@clisp.org>
89216         Allow local renaming in config.h.
89217         * lib/memrchr.c (memrchr): Don't undefine outside libc.
89219 2008-04-27  Bruno Haible  <bruno@clisp.org>
89221         * lib/memchr.c (__memchr): Change type of 'i'.
89222         * lib/memchr2.c (memchr2): Likewise.
89224 2008-04-26  Eric Blake  <ebb9@byu.net>
89225         and Bruno Haible  <bruno@clisp.org>
89227         Optimize and test memrchr.
89228         * modules/memrchr (Depends-on): Add intprops.
89229         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
89230         * modules/memrchr-tests: New file.
89231         * tests/test-memrchr.c: New file.
89233 2008-04-26  Bruno Haible  <bruno@clisp.org>
89235         Add tentative support for DragonFly BSD.
89236         * lib/stdio-impl.h: Add macros for DragonFly BSD.
89237         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
89238         fp.
89239         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
89240         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
89241         * lib/fpurge.c (fpurge): Likewise.
89242         * lib/freadable.c (freaadable): Likewise.
89243         * lib/freadahead.c (freadahead): Likewise.
89244         * lib/freading.c (freading): Likewise.
89245         * lib/freadptr.c (freadptr): Likewise.
89246         * lib/freadseek.c (freadptrinc): Likewise.
89247         * lib/fseeko.c (fseeko): Likewise.
89248         * lib/fseterr.c (fseterr): Likewise.
89249         * lib/fwritable.c (fwritable): Likewise.
89250         * lib/fwriting.c (fwriting): Likewise.
89252 2008-04-26  Bruno Haible  <bruno@clisp.org>
89254         * lib/stdio-impl.h: New file.
89255         * lib/fbufmode.c: Include stdio-impl.h.
89256         (fbufmode): Use fp_, remove redundant #defines.
89257         * lib/fflush.c: Include stdio-impl.h.
89258         (clear_ungetc_buffer): Remove redundant #defines.
89259         * lib/fpurge.c: Include stdio-impl.h.
89260         (fpurge): Remove redundant #defines.
89261         * lib/freadable.c: Include stdio-impl.h.
89262         (freadable): Remove redundant #defines.
89263         * lib/freadahead.c: Include stdio-impl.h.
89264         (freadahead): Remove redundant #defines.
89265         * lib/freading.c: Include stdio-impl.h.
89266         (freading): Remove redundant #defines.
89267         * lib/freadptr.c: Include stdio-impl.h.
89268         (freadptr): Remove redundant #defines.
89269         * lib/freadseek.c: Include stdio-impl.h.
89270         (freadptrinc): Remove redundant #defines.
89271         * lib/fseeko.c: Include stdio-impl.h.
89272         (rpl_fseeko): Remove redundant #defines.
89273         * lib/fseterr.c: Include stdio-impl.h.
89274         (fseterr): Remove redundant #defines.
89275         * lib/fwritable.c: Include stdio-impl.h.
89276         (fwritable: Remove redundant #defines.
89277         * lib/fwriting.c: Include stdio-impl.h.
89278         (fwriting): Remove redundant #defines.
89279         * modules/fbufmode (Files): Add lib/stdio-impl.h.
89280         * modules/fflush (Files): Likewise.
89281         * modules/fpurge (Files): Likewise.
89282         * modules/freadable (Files): Likewise.
89283         * modules/freadahead (Files): Likewise.
89284         * modules/freading (Files): Likewise.
89285         * modules/freadptr (Files): Likewise.
89286         * modules/freadseek (Files): Likewise.
89287         * modules/fseeko (Files): Likewise.
89288         * modules/fseterr (Files): Likewise.
89289         * modules/fwritable (Files): Likewise.
89290         * modules/fwriting (Files): Likewise.
89292 2008-04-26  Bruno Haible  <bruno@clisp.org>
89294         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
89295         restore_seek_optimization, update_fpos_cache): New functions, extracted
89296         from rpl_fflush.
89297         (rpl_fflush): Use them.
89298         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
89299         (gl_REPLACE_FFLUSH): Use it.
89301 2008-04-26  Bruno Haible  <bruno@clisp.org>
89303         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
89304         on Solaris.
89305         * tests/test-xstrtoimax.sh: Likewise.
89306         * tests/test-xstrtoumax.sh: Likewise.
89307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89309 2008-04-26  Bruno Haible  <bruno@clisp.org>
89311         * modules/memchr-tests: New file.
89312         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
89314 2008-04-26  Eric Blake  <ebb9@byu.net>
89315             Bruno Haible  <bruno@clisp.org>
89317         * lib/memchr.c: Include intprops.h.
89318         (__memchr): Optimize parallel detection of matching bytes. Rename local
89319         variables. Add explanatory comments.
89321 2008-04-26  Bruno Haible  <bruno@clisp.org>
89323         Fix module 'memchr', broken since 2000-10-28.
89324         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
89326 2008-04-26  Bruno Haible  <bruno@clisp.org>
89328         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
89329         comments.
89331 2008-04-25  Eric Blake  <ebb9@byu.net>
89333         Use native fstatat on cygwin 1.7.0.
89334         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
89335         first.
89337 2008-04-23  Eric Blake  <ebb9@byu.net>
89339         Improve memchr2 performance.
89340         * lib/memchr2.c (memchr2): Further optimize parallel detection of
89341         NUL bytes.
89342         * modules/memchr2 (Depends-on): Use intprops.h.
89344 2008-04-23  Simon Josefsson  <simon@josefsson.org>
89346         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
89347         an inline function instead of a CPP macro.  Patch by Ben Pfaff
89348         <blp@cs.stanford.edu>.
89350 2008-04-23  Simon Josefsson  <simon@josefsson.org>
89352         * lib/arpa_inet.in.h: New file.
89354         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
89355         (Makefile.am): Sed in substitute header file.
89357         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
89358         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
89360         * modules/inet_ntop (configure.ac): Use
89361         gl_ARPA_INET_MODULE_INDICATOR.
89363         * modules/inet_pton (configure.ac): Use
89364         gl_ARPA_INET_MODULE_INDICATOR.
89366 2008-04-22  Jim Meyering  <meyering@redhat.com>
89368         * modules/verify (License): Re-license as LGPLv2+.
89370 2008-04-22  Simon Josefsson  <simon@josefsson.org>
89372         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
89373         parameter to void* as per POSIX standard (MinGW uses char*).
89375 2008-04-21  Bruno Haible  <bruno@clisp.org>
89377         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
89378         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
89379         Define to replacements if REPLACE_ISWCNTRL is 1.
89380         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
89381         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
89382         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
89383         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
89384         what it fixes.
89385         * doc/posix-functions/iswalpha.texi: Likewise.
89386         * doc/posix-functions/iswblank.texi: Likewise.
89387         * doc/posix-functions/iswcntrl.texi: Likewise.
89388         * doc/posix-functions/iswdigit.texi: Likewise.
89389         * doc/posix-functions/iswgraph.texi: Likewise.
89390         * doc/posix-functions/iswlower.texi: Likewise.
89391         * doc/posix-functions/iswprint.texi: Likewise.
89392         * doc/posix-functions/iswpunct.texi: Likewise.
89393         * doc/posix-functions/iswspace.texi: Likewise.
89394         * doc/posix-functions/iswupper.texi: Likewise.
89395         * doc/posix-functions/iswxdigit.texi: Likewise.
89396         Reported by Alain Guibert.
89398 2008-04-21  Bruno Haible  <bruno@clisp.org>
89400         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
89401         Patch by Alain Guibert.
89403 2008-04-21  Bruno Haible  <bruno@clisp.org>
89405         Fix test failures on mingw.
89406         * tests/test-xstrtol.c (print_no_progname): New function.
89407         (main): Install it in error_print_progname hook.
89408         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
89409         * tests/test-xstrtoimax.sh: Likewise.
89410         * tests/test-xstrtoumax.sh: Likewise.
89412 2008-04-21  Bruno Haible  <bruno@clisp.org>
89414         Fix test failure on mingw.
89415         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
89417 2008-04-21  Bruno Haible  <bruno@clisp.org>
89419         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
89420         Actually assign a value.
89422 2008-04-20  Bruno Haible  <bruno@clisp.org>
89424         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
89425         take 2.
89426         * lib/canonicalize.c (canonicalize_file_name): Elide if the
89427         'canonicalize-lgpl' module is also used.
89428         * lib/canonicalize-lgpl.c: Undo last change.
89429         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
89431 2008-04-20  Bruno Haible  <bruno@clisp.org>
89433         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
89434         config.h. Provide _mkdir based fallback for mingw.
89435         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
89436         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
89437         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
89438         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
89439         rather than defining mkdir in config.h.
89440         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
89441         (gl_SYS_STAT_H_DEFAULTS): New macro.
89442         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
89443         HAVE_IO_H any more.
89444         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
89445         HAVE_DECL_MKDIR and HAVE_IO_H.
89447 2008-04-20  Bruno Haible  <bruno@clisp.org>
89449         * lib/isapipe.c: Port to native Windows platforms.
89451 2008-04-20  Bruno Haible  <bruno@clisp.org>
89453         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
89455 2008-04-21  Eric Blake  <ebb9@byu.net>
89457         Work around preprocessors that don't handle UINTMAX_MAX.
89458         * lib/memchr2.c (memchr2): Avoid embedded #if.
89459         Reported by Alain Guibert, fix suggested by Bruno Haible.
89461 2008-04-21  Simon Josefsson  <simon@josefsson.org>
89463         * doc/posix-functions/strftime.texi (strftime): Explain better
89464         Windows incompatibility.  Suggested by Micah Cowan
89465         <micah@cowan.name>.
89467 2008-04-20  Bruno Haible  <bruno@clisp.org>
89469         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
89470         unistr/u8-mblen.
89472 2008-04-20  Bruno Haible  <bruno@clisp.org>
89474         Fix test failure on platforms with non-GNU iconv.
89475         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
89476         (U_TO_U8): Use it, rather than u16_to_u8.
89477         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
89478         units at the end of the input string.
89479         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
89481 2008-04-20  Bruno Haible  <bruno@clisp.org>
89483         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
89484         when the resulting length is 0.
89485         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
89487 2008-04-20  Bruno Haible  <bruno@clisp.org>
89489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
89490         works.
89491         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
89493 2008-04-20  Bruno Haible  <bruno@clisp.org>
89495         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
89496         * modules/tsearch-tests (configure.ac): Test for initstate function.
89498 2008-04-20  Bruno Haible  <bruno@clisp.org>
89500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
89501         for nlink_t if missing.
89502         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
89504 2008-04-19  Bruno Haible  <bruno@clisp.org>
89506         Work around snprintf bug on Linux libc5.
89507         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
89508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89509         gl_SNPRINTF_SIZE1.
89510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89511         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
89512         that test failed.
89513         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
89514         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
89515         * modules/snprintf (Files): Add m4/printf.m4.
89516         * modules/vsnprintf (Files): Likewise.
89517         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
89518         * doc/posix-functions/vsnprintf.texi: Likewise.
89520 2008-04-19  Bruno Haible  <bruno@clisp.org>
89522         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
89523         from 0.0058 to less than 10^-7.
89525 2008-04-19  Bruno Haible  <bruno@clisp.org>
89527         Fix rounding when a precision is given.
89528         * lib/vasnprintf.c (is_borderline): New function.
89529         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
89530         9...9x.
89531         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
89532         %e, %g.
89533         * tests/test-vasprintf-posix.c (test_function): Likewise.
89534         * tests/test-snprintf-posix.h (test_function): Likewise.
89535         * tests/test-sprintf-posix.h (test_function): Likewise.
89536         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
89537         * tests/test-printf-posix.h (test_function): Likewise.
89538         * tests/test-printf-posix.output: Update.
89539         Reported by John Darrington <john@darrington.wattle.id.au> via
89540         Ben Pfaff <blp@cs.stanford.edu>.
89542 2008-04-18  Simon Josefsson  <simon@josefsson.org>
89544         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
89545         Suggested by Bruno Haible <bruno@clisp.org>.
89547 2008-04-17  Bruno Haible  <bruno@clisp.org>
89549         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
89550         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
89551         implementation.
89552         Patch by Bruce Merry <bmerry@gmail.com>.
89554 2008-04-17  Simon Josefsson  <simon@josefsson.org>
89556         * doc/posix-functions/strftime.texi (strftime): Mention that %e
89557         doesn't work under Windows.
89559 2008-04-16  Bruno Haible  <bruno@clisp.org>
89561         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
89562         New macros.
89563         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
89564         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
89565         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
89566         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
89567         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
89568         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
89569         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
89570         macros.
89571         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
89572         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
89573         Northern Sotho, Uighur.
89575 2008-04-16  Bruno Haible  <bruno@clisp.org>
89577         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
89578         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
89579         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
89580         Reported by Daniel Bergström <daniel@octocode.com>.
89582 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
89583             Bruno Haible  <bruno@clisp.org>
89585         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
89586         function.
89587         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
89588         New functions, mostly extracted from gl_locale_name_default.
89589         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
89591 2008-04-16  Eric Blake  <ebb9@byu.net>
89593         Adjust strtod detection to catch glibc 2.7 bug.
89594         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
89595         Reported by John Gatewood Ham.
89597 2008-04-16  Bruno Haible  <bruno@clisp.org>
89599         Add tentative support for Linux libc5.
89600         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
89601         * lib/fpurge.c (fpurge): Likewise.
89602         * lib/freadable.c (freadable): Likewise.
89603         * lib/freadahead.c (freadahead): Likewise.
89604         * lib/freading.c (freading): Likewise.
89605         * lib/freadptr.c (freadptr): Likewise.
89606         * lib/freadseek.c (freadptrinc): Likewise.
89607         * lib/fseeko.c (rpl_fseeko): Likewise.
89608         * lib/fseterr.c (fseterr): Likewise.
89609         * lib/fwritable.c (fwritable): Likewise.
89610         * lib/fwriting.c (fwriting): Likewise.
89611         Reported by Alain Guibert <alguibert+bts@free.fr>.
89613 2008-04-15  Bruno Haible  <bruno@clisp.org>
89615         * modules/mathl (configure.ac): Define module indicator.
89617 2008-04-15  Bruno Haible  <bruno@clisp.org>
89619         * lib/logl.c (logl): Remove unused variables.
89621 2008-04-15  Bruno Haible  <bruno@clisp.org>
89623         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
89624         fails.
89626 2008-04-15  Bruno Haible  <bruno@clisp.org>
89628         * lib/trim.c (trim2): Fix argument of isspace() macro.
89630 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
89632         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
89633         to 0.
89634         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
89636 2008-04-14  Bruno Haible  <bruno@clisp.org>
89638         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
89639         AC_LANG_PROGRAM argument.
89640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
89641         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
89642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
89643         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
89644         * m4/math_h.m4 (gl_MATH_H): Likewise.
89645         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
89646         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89647         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
89648         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
89649         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
89650         * m4/regex.m4 (gl_REGEX): Likewise.
89651         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
89652         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
89653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89654         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
89655         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
89656         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
89658         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
89660 2008-04-14  Jim Meyering  <meyering@redhat.com>
89662         test-strtod: fix typos: s/abs/fabs/
89663         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
89665 2008-04-13  Bruno Haible  <bruno@clisp.org>
89667         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
89668         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
89669         module is also used and while not building the reloc-wrapper.
89671 2008-04-13  Bruno Haible  <bruno@clisp.org>
89673         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
89675 2008-04-13  Bruno Haible  <bruno@clisp.org>
89677         Fix AIX compilation failure introduced on 2008-04-02.
89678         * tests/test-frexp.c (exp): Undefine before redefining.
89679         * tests/test-frexpl.c (exp): Likewise.
89681 2008-04-13  Bruno Haible  <bruno@clisp.org>
89683         Work around a HP-UX stdio bug.
89684         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
89685         * tests/test-ftello.c (main): Likewise.
89686         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
89687         * doc/posix-functions/ftello.texi: Likewise.
89689 2008-04-13  Bruno Haible  <bruno@clisp.org>
89691         Make test-signbit pass on HP-UX/hppa.
89692         * tests/test-signbit.c (minus_zerol): New variable.
89693         (test_signbitl): Use it.
89695 2008-04-13  Bruno Haible  <bruno@clisp.org>
89697         Make truncl work on OSF/1 4.0.
89698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
89699         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
89700         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
89701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
89702         HAVE_DECL_TRUNCL.
89703         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
89704         HAVE_DECL_TRUNCL.
89705         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
89707 2008-04-13  Bruno Haible  <bruno@clisp.org>
89709         * lib/unictype.h: Remove trailing comma from enumeration definitions.
89711 2008-04-13  Bruno Haible  <bruno@clisp.org>
89713         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
89714         expression, so as to avoid HP-UX 11 cc compiler bug.
89716 2008-04-13  Bruno Haible  <bruno@clisp.org>
89718         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
89720 2008-04-13  Bruno Haible  <bruno@clisp.org>
89722         * lib/git-merge-changelog.c: Remove empty declaration outside of
89723         functions.
89725 2008-04-13  Bruno Haible  <bruno@clisp.org>
89727         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
89729 2008-04-13  Bruno Haible  <bruno@clisp.org>
89731         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
89732         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
89733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
89734         also if it exists but lacks definitions of the SHUT_* macros.
89735         * modules/sys_socket (Description): Update.
89736         Reported by Elbert Pol <e.pol@chello.nl>.
89738 2008-04-13  Bruno Haible  <bruno@clisp.org>
89740         * lib/localcharset.c (OS2): Don't redefine if already defined.
89741         Reported by Elbert Pol <e.pol@chello.nl>.
89743 2008-04-13  Bruno Haible  <bruno@clisp.org>
89745         * lib/binary-io.h [__EMX__]: Include <io.h>.
89746         Reported by Elbert Pol <e.pol@chello.nl>.
89748 2008-04-12  Bruno Haible  <bruno@clisp.org>
89750         * lib/fpucw.h: Enable the definitions also for x86_64.
89751         Needed for NetBSD/x86_64.
89752         Reported by Thomas Klausner <tk@giga.or.at>.
89754 2008-04-12  Bruno Haible  <bruno@clisp.org>
89756         * tests/test-strtod.c: Include isnand.h.
89757         (main): Use isnand instead of isnan.
89758         Reported by Jim Meyering.
89760 2008-04-12  Bruno Haible  <bruno@clisp.org>
89762         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
89763         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
89765 2008-04-12  Jim Meyering  <meyering@redhat.com>
89767         * m4/math_h.m4 (gl_MATH_H): Fix typos.
89769 2008-04-12  Bruno Haible  <bruno@clisp.org>
89771         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
89772         Reported by Elbert Pol <e.pol@chello.nl>.
89774 2008-04-12  Eric Blake  <ebb9@byu.net>
89776         Work around Solaris 10 math.h bug.
89777         * m4/math_h.m4 (gl_MATH_H): Check for bug.
89778         (gl_MATH_H_DEFAULTS): Set up default.
89779         * modules/math (Makefile.am): Replace new indicators.
89780         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
89781         * tests/test-math.c (main): Test this.
89782         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
89783         * doc/posix-headers/math.texi (math.h): Mention bug.
89784         Reported by Nelson H. F. Beebe and Jim Meyering.
89786 2008-04-11  Bruno Haible  <bruno@clisp.org>
89788         Adapt to future versions of Apple GCC.
89789         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
89790         Reported by Peter O'Gorman <peter@pogma.com>.
89792 2008-04-11  Bruno Haible  <bruno@clisp.org>
89794         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
89796 2008-04-11  Bruno Haible  <bruno@clisp.org>
89798         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
89800         * modules/getaddrinfo-tests (Makefile.am): Define
89801         test_getaddrinfo_LDADD.
89803 2008-04-11  Bruno Haible  <bruno@clisp.org>
89805         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
89806         (init): Fix syntax error.
89807         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
89808         is declared.
89810 2008-04-11  Bruno Haible  <bruno@clisp.org>
89812         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
89813         * modules/glob (Depends-on): Add stdbool.
89815 2008-04-11  Bruno Haible  <bruno@clisp.org>
89817         * lib/trim.c: Include <string.h>.
89819 2008-04-11  Eric Blake  <ebb9@byu.net>
89821         Avoid compile failure on OS/2.
89822         * lib/regex_internal.h (internal_function): Disable optimization
89823         on OS/2 (__EMX__), where it caused compiler error.
89824         Reported by Elbert Pol.
89826 2008-04-11  Bruno Haible  <bruno@clisp.org>
89828         Flush the standard error stream before aborting. Needed on mingw.
89829         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
89830         * tests/test-array_list.c (ASSERT): Likewise.
89831         * tests/test-array_oset.c (ASSERT): Likewise.
89832         * tests/test-avltree_list.c (ASSERT): Likewise.
89833         * tests/test-avltree_oset.c (ASSERT): Likewise.
89834         * tests/test-avltreehash_list.c (ASSERT): Likewise.
89835         * tests/test-binary-io.c (ASSERT): Likewise.
89836         * tests/test-byteswap.c (ASSERT): Likewise.
89837         * tests/test-c-ctype.c (ASSERT): Likewise.
89838         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
89839         * tests/test-c-strcasestr.c (ASSERT): Likewise.
89840         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
89841         * tests/test-c-strstr.c (ASSERT): Likewise.
89842         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
89843         * tests/test-canonicalize.c (ASSERT): Likewise.
89844         * tests/test-carray_list.c (ASSERT): Likewise.
89845         * tests/test-ceilf1.c (ASSERT): Likewise.
89846         * tests/test-ceilf2.c (ASSERT): Likewise.
89847         * tests/test-ceill.c (ASSERT): Likewise.
89848         * tests/test-count-one-bits.c (ASSERT): Likewise.
89849         * tests/test-fbufmode.c (ASSERT): Likewise.
89850         * tests/test-fflush2.c (ASSERT): Likewise.
89851         * tests/test-floorf1.c (ASSERT): Likewise.
89852         * tests/test-floorf2.c (ASSERT): Likewise.
89853         * tests/test-floorl.c (ASSERT): Likewise.
89854         * tests/test-fopen.c (ASSERT): Likewise.
89855         * tests/test-fpending.c (ASSERT): Likewise.
89856         * tests/test-fprintf-posix.c (ASSERT): Likewise.
89857         * tests/test-fpurge.c (ASSERT): Likewise.
89858         * tests/test-freadable.c (ASSERT): Likewise.
89859         * tests/test-freadahead.c (ASSERT): Likewise.
89860         * tests/test-freading.c (ASSERT): Likewise.
89861         * tests/test-freadptr.c (ASSERT): Likewise.
89862         * tests/test-freadptr2.c (ASSERT): Likewise.
89863         * tests/test-freadseek.c (ASSERT): Likewise.
89864         * tests/test-freopen.c (ASSERT): Likewise.
89865         * tests/test-frexp.c (ASSERT): Likewise.
89866         * tests/test-frexpl.c (ASSERT): Likewise.
89867         * tests/test-fseek.c (ASSERT): Likewise.
89868         * tests/test-fseeko.c (ASSERT): Likewise.
89869         * tests/test-fstrcmp.c (ASSERT): Likewise.
89870         * tests/test-ftell.c (ASSERT): Likewise.
89871         * tests/test-ftello.c (ASSERT): Likewise.
89872         * tests/test-func.c (ASSERT): Likewise.
89873         * tests/test-fwritable.c (ASSERT): Likewise.
89874         * tests/test-fwriting.c (ASSERT): Likewise.
89875         * tests/test-getdelim.c (ASSERT): Likewise.
89876         * tests/test-getline.c (ASSERT): Likewise.
89877         * tests/test-i-ring.c (ASSERT): Likewise.
89878         * tests/test-iconv-utf.c (ASSERT): Likewise.
89879         * tests/test-iconv.c (ASSERT): Likewise.
89880         * tests/test-isfinite.c (ASSERT): Likewise.
89881         * tests/test-isnand.c (ASSERT): Likewise.
89882         * tests/test-isnanf.c (ASSERT): Likewise.
89883         * tests/test-isnanl.h (ASSERT): Likewise.
89884         * tests/test-ldexpl.c (ASSERT): Likewise.
89885         * tests/test-linked_list.c (ASSERT): Likewise.
89886         * tests/test-linkedhash_list.c (ASSERT): Likewise.
89887         * tests/test-localename.c (ASSERT): Likewise.
89888         * tests/test-lseek.c (ASSERT): Likewise.
89889         * tests/test-mbscasecmp.c (ASSERT): Likewise.
89890         * tests/test-mbscasestr1.c (ASSERT): Likewise.
89891         * tests/test-mbscasestr2.c (ASSERT): Likewise.
89892         * tests/test-mbscasestr3.c (ASSERT): Likewise.
89893         * tests/test-mbscasestr4.c (ASSERT): Likewise.
89894         * tests/test-mbschr.c (ASSERT): Likewise.
89895         * tests/test-mbscspn.c (ASSERT): Likewise.
89896         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
89897         * tests/test-mbspbrk.c (ASSERT): Likewise.
89898         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
89899         * tests/test-mbsrchr.c (ASSERT): Likewise.
89900         * tests/test-mbsspn.c (ASSERT): Likewise.
89901         * tests/test-mbsstr1.c (ASSERT): Likewise.
89902         * tests/test-mbsstr2.c (ASSERT): Likewise.
89903         * tests/test-mbsstr3.c (ASSERT): Likewise.
89904         * tests/test-memchr2.c (ASSERT): Likewise.
89905         * tests/test-memmem.c (ASSERT): Likewise.
89906         * tests/test-open.c (ASSERT): Likewise.
89907         * tests/test-printf-frexp.c (ASSERT): Likewise.
89908         * tests/test-printf-frexpl.c (ASSERT): Likewise.
89909         * tests/test-printf-posix.c (ASSERT): Likewise.
89910         * tests/test-quotearg.c (ASSERT): Likewise.
89911         * tests/test-rbtree_list.c (ASSERT): Likewise.
89912         * tests/test-rbtree_oset.c (ASSERT): Likewise.
89913         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
89914         * tests/test-round1.c (ASSERT): Likewise.
89915         * tests/test-roundf1.c (ASSERT): Likewise.
89916         * tests/test-roundl.c (ASSERT): Likewise.
89917         * tests/test-signbit.c (ASSERT): Likewise.
89918         * tests/test-sleep.c (ASSERT): Likewise.
89919         * tests/test-snprintf-posix.c (ASSERT): Likewise.
89920         * tests/test-snprintf.c (ASSERT): Likewise.
89921         * tests/test-sprintf-posix.c (ASSERT): Likewise.
89922         * tests/test-stat-time.c (ASSERT): Likewise.
89923         * tests/test-strcasestr.c (ASSERT): Likewise.
89924         * tests/test-strerror.c (ASSERT): Likewise.
89925         * tests/test-striconv.c (ASSERT): Likewise.
89926         * tests/test-striconveh.c (ASSERT): Likewise.
89927         * tests/test-striconveha.c (ASSERT): Likewise.
89928         * tests/test-strsignal.c (ASSERT): Likewise.
89929         * tests/test-strstr.c (ASSERT): Likewise.
89930         * tests/test-strtod.c (ASSERT): Likewise.
89931         * tests/test-trunc1.c (ASSERT): Likewise.
89932         * tests/test-trunc2.c (ASSERT): Likewise.
89933         * tests/test-truncf1.c (ASSERT): Likewise.
89934         * tests/test-truncf2.c (ASSERT): Likewise.
89935         * tests/test-truncl.c (ASSERT): Likewise.
89936         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
89937         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
89938         * tests/test-vasnprintf.c (ASSERT): Likewise.
89939         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
89940         * tests/test-vasprintf.c (ASSERT): Likewise.
89941         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
89942         * tests/test-vprintf-posix.c (ASSERT): Likewise.
89943         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
89944         * tests/test-vsnprintf.c (ASSERT): Likewise.
89945         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
89946         * tests/test-wcwidth.c (ASSERT): Likewise.
89947         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
89948         * tests/test-xprintf-posix.c (ASSERT): Likewise.
89949         * tests/test-xvasprintf.c (ASSERT): Likewise.
89950         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
89951         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
89952         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
89953         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
89954         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
89955         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
89956         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
89957         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
89958         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
89959         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
89960         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
89961         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
89962         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
89963         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
89964         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
89965         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
89966         * tests/unictype/test-block_list.c (ASSERT): Likewise.
89967         * tests/unictype/test-block_of.c (ASSERT): Likewise.
89968         * tests/unictype/test-block_test.c (ASSERT): Likewise.
89969         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
89970         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
89971         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
89972         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
89973         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
89974         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
89975         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
89976         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
89977         * tests/unictype/test-combining.c (ASSERT): Likewise.
89978         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
89979         * tests/unictype/test-digit.c (ASSERT): Likewise.
89980         * tests/unictype/test-mirror.c (ASSERT): Likewise.
89981         * tests/unictype/test-numeric.c (ASSERT): Likewise.
89982         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
89983         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
89984         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
89985         * tests/unictype/test-scripts.c (ASSERT): Likewise.
89986         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
89987         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
89988         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
89989         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
89990         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
89991         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
89992         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
89993         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
89994         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
89995         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
89996         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
89997         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
89998         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
89999         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
90000         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
90001         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
90002         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
90003         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
90004         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
90005         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
90006         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
90007         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
90008         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
90009         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
90010         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
90011         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
90012         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
90013         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
90014         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
90015         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
90016         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
90017         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
90018         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
90019         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
90020         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
90021         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
90022         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
90023         Reported by Eric Blake.
90025 2008-04-11  Bruno Haible  <bruno@clisp.org>
90027         * lib/wchar.in.h: Tweak comment.
90029 2008-04-11  Bruno Haible  <bruno@clisp.org>
90031         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
90032         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
90033         gl_COMMON.
90034         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
90036 2008-04-11  Bruno Haible  <bruno@clisp.org>
90038         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
90040 2008-04-11  Simon Josefsson  <simon@josefsson.org>
90042         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
90043         of attempting to use non-existing /dev/*random.  Based on patch
90044         from Adam Strzelecki <ono@java.pl> in
90045         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
90047 2008-04-08  Bruno Haible  <bruno@clisp.org>
90049         Add tentative support for emx+gcc.
90050         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
90051         * lib/fpurge.c (fpurge): Likewise.
90052         * lib/freadable.c (freadable): Likewise.
90053         * lib/freadahead.c (freadahead): Likewise.
90054         * lib/freading.c (freading): Likewise.
90055         * lib/freadptr.c (freadptr): Likewise.
90056         * lib/freadseek.c (freadptrinc): Likewise.
90057         * lib/fseeko.c (rpl_fseeko): Likewise.
90058         * lib/fseterr.c (fseterr): Likewise.
90059         * lib/fwritable.c (fwritable): Likewise.
90060         * lib/fwriting.c (fwriting): Likewise.
90061         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
90063 2008-04-09  Eric Blake  <ebb9@byu.net>
90065         Avoid some autoconf warnings.
90066         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
90067         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
90068         * m4/afs.m4 (gl_AFS): Likewise.
90069         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
90070         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
90071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90072         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
90073         (gl_INTEGER_TYPE_SUFFIX): Likewise.
90074         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
90075         (AC_CHECK_DECLS_ONCE): Likewise.
90076         Rename file...
90077         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
90078         gnulib-tool requires autoconf 2.59 or better.
90079         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
90081 2008-04-08  Eric Blake  <ebb9@byu.net>
90083         Use 'git describe --match' if present (added in git 1.5.5).
90084         * build-aux/git-version-gen: Limit result to tags that match 'v*'
90085         if possible.
90087 2008-04-08  Bruno Haible  <bruno@clisp.org>
90089         Add tentative support for OpenServer.
90090         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
90091         _ptr, _cnt.
90092         * lib/fpurge.c (fpurge): Likewise.
90093         * lib/freadable.c (freadable): Likewise.
90094         * lib/freadahead.c (freadahead): Likewise.
90095         * lib/freading.c (freading): Likewise.
90096         * lib/freadptr.c (freadptr): Likewise.
90097         * lib/freadseek.c (freadptrinc): Likewise.
90098         * lib/fseeko.c (rpl_fseeko): Likewise.
90099         * lib/fseterr.c (fseterr): Likewise.
90100         * lib/fwritable.c (fwritable): Likewise.
90101         * lib/fwriting.c (fwriting): Likewise.
90102         Reported by Roger Cornelius <rac@tenzing.org> and
90103         Brian K. White <brian@aljex.com>.
90105 2008-04-06  Jim Meyering  <meyering@redhat.com>
90107         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
90109 2008-04-06  Bruno Haible  <bruno@clisp.org>
90111         Avoid possible error with non-ASCII bytes in UTF-8 locales.
90112         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
90113         * tests/test-printf-posix.sh: Likewise.
90114         * tests/test-vfprintf-posix.sh: Likewise.
90115         * tests/test-vprintf-posix.sh: Likewise.
90116         * tests/test-xprintf-posix.sh: Likewise.
90118 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90120         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
90121         hide error from 'ls', needed on OS/2.
90122         Report by Elbert Pol <elbert.pol@gmail.com>.
90124 2008-04-04  Eric Blake  <ebb9@byu.net>
90126         Make test-fseeko.c failures meaningful.
90127         * tests/test-fseeko.c: Print line number on failure.
90128         * tests/test-fseek.c: Likewise.
90129         Reported by Nelson H. F. Beebe.
90131         Improve strtod bug detection check.
90132         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
90133         required for Solaris 10.
90134         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
90136 2008-04-04  Bruno Haible  <bruno@clisp.org>
90138         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
90139         by m4/setenv.m4.
90141 2008-04-03  Eric Blake  <ebb9@byu.net>
90143         Ensure sane .version contents.
90144         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
90145         version string.
90146         * build-aux/git-version-gen: Improve documentation.
90148         Make GNU make output nicer.
90149         * top/GNUmakefile [!_have-Makefile]: Add dependency on
90150         MAKECMDGOALS to enforce message for all command line targets.  Set
90151         srcdir for use in maint.mk.
90153         Another maintainer tweak.
90154         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
90155         a target that regenerates version.
90157 2008-04-03  Jim Meyering  <meyering@redhat.com>
90159         vc-list-files: don't cause coreutils "make po-check" failure
90160         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
90162 2008-04-03  Eric Blake  <ebb9@byu.net>
90164         Allow VPATH usage of vc-list-files.
90165         * build-aux/vc-list-files (scriptversion): Add timestamp.
90166         (options): Add --help, --version, -C.
90167         (CVS): Support installed cvsu.
90169 2008-04-02  Bruno Haible  <bruno@clisp.org>
90171         Avoid some "statement with no effect" warnings from gcc.
90172         * tests/test-wctype.c (main): Explicitly ignore unused values.
90173         Reported by Jim Meyering.
90175 2008-04-02  Jim Meyering  <meyering@redhat.com>
90177         Avoid some warnings from "gcc -Wshadow".
90178         * tests/test-frexp.c (exp): Define to a different identifier.
90179         * tests/test-frexpl.c (exp): Likewise.
90181 2008-04-03  Jim Meyering  <meyering@redhat.com>
90183         bootstrap: remove dangling *.[ch] symlinks from lib
90184         * build-aux/bootstrap [dangling symlink removal]: Move find's
90185         -depth option to precede all others, to avoid a warning.
90186         Remove *.[ch] files too, and from "$source_base" (usually lib/).
90188 2008-04-02  Bruno Haible  <bruno@clisp.org>
90190         Avoid some warnings from "gcc -Wshadow".
90191         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
90192         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
90193         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
90194         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
90195         Reported by Jim Meyering.
90197 2008-04-01  Bruno Haible  <bruno@clisp.org>
90199         Fix test to work on IRIX 6.5 with cc.
90200         * tests/test-math.c (numeric_equal): New function.
90201         (main): Use it.
90203 2008-04-01  Bruno Haible  <bruno@clisp.org>
90205         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
90207 2008-04-01  Bruno Haible  <bruno@clisp.org>
90209         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
90210         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
90211         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
90212         (Depends-on): Remove math.
90214         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
90215         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
90216         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
90217         (Depends-on): Remove math.
90219         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
90220         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
90221         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
90222         (Depends-on): Remove math.
90223         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
90224         (Depends-on): Remove math.
90226         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
90227         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
90228         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
90229         (Depends-on): Remove math.
90230         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
90231         (Depends-on): Remove math.
90233         * tests/test-round1.c: Include nan.h.
90234         (main): Use NaNd instead of NAN.
90235         * modules/round-tests (Files): Add tests/nan.h.
90237         * tests/test-trunc1.c: Include nan.h.
90238         (main): Use NaNd instead of NAN.
90239         * modules/trunc-tests (Files): Add tests/nan.h.
90241         * tests/test-roundf1.c: Include nan.h.
90242         (main): Use NaNf instead of NAN.
90243         * modules/roundf-tests (Files): Add tests/nan.h.
90245         * tests/test-truncf1.c: Include nan.h.
90246         (main): Use NaNf instead of NAN.
90247         * modules/truncf-tests (Files): Add tests/nan.h.
90249         * tests/test-ceilf1.c: Include nan.h.
90250         (main): Use NaNf instead of NAN.
90251         * modules/ceilf-tests (Files): Add tests/nan.h.
90253         * tests/test-floorf1.c: Include nan.h.
90254         (main): Use NaNf instead of NAN.
90255         * modules/floorf-tests (Files): Add tests/nan.h.
90257         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
90258         (main): Use NaNf instead of NAN.
90259         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
90261         * tests/test-isnand.c: Include nan.h instead of <math.h>.
90262         (main): Use NaNd instead of NAN.
90263         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
90265         * tests/test-frexp.c: Include nan.h.
90266         (main): Use NaNd instead of NAN.
90267         * modules/frexp-tests (Files): Add tests/nan.h.
90269         * lib/isnan.c: Don't include <math.h>.
90270         (FUNC): Don't use NAN macro.
90271         * modules/isnand-nolibm (Depends-on): Remove math.
90272         * modules/isnanf-nolibm (Depends-on): Remove math.
90273         * modules/isnanl (Depends-on): Remove math.
90274         * modules/isnanl-nolibm (Depends-on): Remove math.
90276         * tests/nan.h: New file.
90278 2008-04-01  Eric Blake  <ebb9@byu.net>
90280         Fix typos.
90281         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
90282         values to be the right type.
90284         For now, cater to gnulib strtod inaccuracies.
90285         * tests/test-strtod.c (main): Allow 1-ulp error on expected
90286         fractional results.  While not as nice from a QoI perspective, it
90287         is a quicker patch than correctly implementing decimal to binary
90288         rounding.
90290 2008-03-31  Eric Blake  <ebb9@byu.net>
90292         Guarantee a definition of NAN.
90293         * lib/math.in.h (NAN): Define if missing.
90294         * tests/test-math.c (main): Test it.
90295         * doc/posix-headers/math.texi (math.h): Document this.
90296         * lib/isnan.c (rpl_isnand): Use it.
90297         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
90298         * tests/test-floorf1.c (NaN): Likewise.
90299         * tests/test-frexp.c (NaN): Likewise.
90300         * tests/test-isnand.c (NaN): Likewise.
90301         * tests/test-isnanf.c (NaN): Likewise.
90302         * tests/test-round1.c (NaN): Likewise.
90303         * tests/test-roundf1.c (NaN): Likewise.
90304         * tests/test-snprintf-posix.h (NaN): Likewise.
90305         * tests/test-sprintf-posix.h (NaN): Likewise.
90306         * tests/test-trunc1.c (NaN): Likewise.
90307         * tests/test-truncf1.c (NaN): Likewise.
90308         * tests/test-vasnprintf-posix.c (NaN): Likewise.
90309         * tests/test-vasprintf-posix.c (NaN): Likewise.
90310         * modules/isnand-nolibm (Depends-on): Add math.
90311         * modules/isnanf-nolibm (Depends-on): Likewise.
90312         * modules/isnanl (Depends-on): Likewise.
90313         * modules/isnanl-nolibm (Depends-on): Likewise.
90314         * modules/snprintf-posix-tests (Depends-on): Likewise.
90315         * modules/sprintf-posix-tests (Depends-on): Likewise.
90316         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
90317         * modules/vsprintf-posix-tests (Depends-on): Likewise.
90318         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
90319         * modules/vasprintf-posix-tests (Depends-on): Likewise.
90321 2008-03-31  Bruno Haible  <bruno@clisp.org>
90323         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
90324         * doc/posix-functions/strtod.texi: Likewise.
90326 2008-03-31  Bruno Haible  <bruno@clisp.org>
90328         * tests/test-strtod.c (main): Don't use C99 syntax.
90330 2008-03-31  Bruno Haible  <bruno@clisp.org>
90332         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
90333         Reported by Eric Blake.
90335 2008-03-31  Jim Meyering  <meyering@redhat.com>
90337         Don't compare actual signbit return values.
90338         * tests/test-strtod.c (main): Rather, compare only their
90339         zero/non-zero nature.
90341 2008-03-31  Eric Blake  <ebb9@byu.net>
90343         More strtod documentation.
90344         * doc/posix-functions/strtod.texi (strtod): Interpret more test
90345         failures as distinct bugs.
90347 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
90349         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
90350         Problem reported by Erik Benada in
90351         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
90353 2008-03-30  Bruno Haible  <bruno@clisp.org>
90355         * tests/test-strtod.c: Add comments about which assertion fails on which
90356         platform.
90357         * doc/posix-functions/strtod.texi: Add info about many more platforms.
90359 2008-03-30  Eric Blake  <ebb9@byu.net>
90361         Test signbit behavior on zeros.
90362         * tests/test-signbit.c (test_signbitf): Add tests for zero.
90363         (test_signbitd, test_signbitl): Likewise.
90365         More strtod touchups.
90366         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
90367         sign of negative underflow, for now.  Use .5, not .1.
90368         * doc/posix-functions/strtod.texi (strtod): Mention these
90369         limitations.
90370         Reported by Jim Meyering.
90372 2008-03-30  Bruno Haible  <bruno@clisp.org>
90374         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
90375         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
90377 2008-03-30  Bruno Haible  <bruno@clisp.org>
90379         Avoid failure when attempting to return empty iconv results on some
90380         platforms.
90381         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
90382         allocation, don't report ENOMEM when the resulting string is empty.
90384 2008-03-30  Bruno Haible  <bruno@clisp.org>
90386         Fix buffer overrun.
90387         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
90388         Don't consider the width for tmp_length. Check count against tmp_length
90389         before doing the padding. Ensure enough allocation during padding.
90391 2008-03-30  Eric Blake  <ebb9@byu.net>
90393         strtod touchups.
90394         * lib/strtod.c (strtod): Avoid compiler warnings.
90395         Reported by Jim Meyering.
90397 2008-03-30  Bruno Haible  <bruno@clisp.org>
90399         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
90400         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
90401         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
90402         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
90403         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
90404         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
90405         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
90406         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
90408         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
90409         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
90410         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
90411         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
90412         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
90413         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
90414         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
90415         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
90417         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
90418         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
90419         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
90420         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
90421         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
90422         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
90423         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
90424         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
90426         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
90427         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
90429         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
90430         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
90432         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
90433         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
90435         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
90436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
90437         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
90439         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
90440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
90441         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
90443         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
90444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
90445         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
90447         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
90448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
90449         * modules/vasprintf (Depends-on): Add EOVERFLOW.
90451         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
90452         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
90453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
90454         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
90455         (Depends-on): Add EOVERFLOW.
90456         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
90457         (Depends-on): Add EOVERFLOW.
90458         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
90459         (Depends-on): Add EOVERFLOW.
90460         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
90461         (Depends-on): Add EOVERFLOW.
90462         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
90463         (Depends-on): Add EOVERFLOW.
90464         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
90465         (Depends-on): Add EOVERFLOW.
90466         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
90467         (Depends-on): Add EOVERFLOW.
90468         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
90469         (Depends-on): Add EOVERFLOW.
90471         * lib/sprintf.c (EOVERFLOW): Remove fallback.
90472         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
90473         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
90475         * lib/snprintf.c (EOVERFLOW): Remove fallback.
90476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
90477         * modules/snprintf (Depends-on): Add EOVERFLOW.
90479         * lib/poll.c (EOVERFLOW): Remove fallback.
90480         * modules/poll (Depends-on): Add EOVERFLOW.
90482         * lib/getugroups.c (EOVERFLOW): Remove fallback.
90483         * modules/getugroups (Depends-on): Add EOVERFLOW.
90485         * lib/getdelim.c (EOVERFLOW): Remove fallback.
90486         * modules/getdelim (Depends-on): Add EOVERFLOW.
90488         * lib/ftell.c (EOVERFLOW): Remove fallback.
90489         * modules/ftell (Depends-on): Add EOVERFLOW.
90491         * lib/fprintf.c (EOVERFLOW): Remove fallback.
90492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
90493         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
90495         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
90497         * modules/EOVERFLOW-tests: New file.
90498         * tests/test-EOVERFLOW.c: New file.
90500         * modules/EOVERFLOW: New file.
90501         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
90503 2008-03-30  Bruno Haible  <bruno@clisp.org>
90505         Fix bug introduced on 2007-06-10.
90506         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
90507         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
90509 2008-03-30  Bruno Haible  <bruno@clisp.org>
90511         Improve freadseek's efficiency after ungetc.
90512         * lib/freadseek.c: Include freadahead.h.
90513         (freadptrinc): New function, extracted from freadseek.
90514         (freadseek): Use it in a loop. Use freadahead to determine the number
90515         of loop iterations.
90516         * modules/freadseek (Depends-on): Add freadahead.
90517         (configure.ac): Require AC_C_INLINE.
90519 2008-03-30  Bruno Haible  <bruno@clisp.org>
90521         * lib/freadseek.c (freadseek): Don't ignore the return value of
90522         freadptr.
90524 2008-03-29  Eric Blake  <ebb9@byu.net>
90526         Add hex float support.
90527         * modules/strtod (Depends-on): Add c-ctype.
90528         (Link): Mention POW_LIB.
90529         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
90530         whitespace between 'e' and exponent.
90531         * tests/test-strtod.c (main): Enable hex float tests.
90532         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
90533         now provides.
90535         Document various strtod bugs, with some fixes.
90536         * doc/posix-functions/strtod.texi (strtod): Document bugs with
90537         "-0x", "inf", "nan", and hex constants.
90538         * doc/posix-functions/atof.texi (atof): Likewise.
90539         * modules/stdlib (Makefile.am): Support strtod.
90540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
90541         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
90542         detect additional strtod bugs.
90543         * lib/stdlib.in.h (rpl_strtod): Add declarations.
90544         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
90545         bool where appropriate.  Parse 'inf' and 'nan'.
90546         * tests/test-strtod.c: New file.
90547         * modules/strtod (Depends-on): Add stdbool, stdlib.
90548         (configure.ac): Turn on module indicator.
90549         * modules/strtod-tests: New module.
90551 2008-03-29  Eric Blake  <ebb9@byu.net>
90553         Fix ftell on mingw.
90554         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
90555         * modules/ftell-tests (Depends-on): Add binary-io.
90556         * modules/ftello-tests (Depends-on): Likewise.
90557         * tests/test-ftell.c (main): Enhance test to cover behavior after
90558         ungetc.  Enforce binary mode.
90559         * tests/test-ftello.c (main): Likewise.
90561         Pass test-freadseek on cygwin.
90562         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
90563         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
90564         ungetc buffer.
90566         * tests/test-fflush2.c (main): Fix typo.
90568 2008-03-29  Bruno Haible  <bruno@clisp.org>
90570         * tests/test-fflush2.c (main): Temporarily disable the contents of
90571         this test.
90572         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
90573         Reported by Eric Blake.
90575 2008-03-28  Simon Josefsson  <simon@josefsson.org>
90577         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
90578         (GC_SHA224_DIGEST_SIZE): Add.
90580         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
90581         (gc_hash_digest_length): Likewise.
90582         (gc_hash_buffer): Likewise.
90584 2008-03-25  Bruno Haible  <bruno@clisp.org>
90586         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
90587         detail which gettext release to use.
90588         Reported by Simon Josefsson.
90590 2008-03-26  Jim Meyering  <meyering@redhat.com>
90592         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
90593         * modules/gnumakefile (clean-GNUmakefile): Also, use
90594         test ... && ... || : syntax rather than if-then ... fi.
90596         gnumakefile: Don't double-quote-expand $(VPATH) value.
90597         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
90599 2008-03-24  Eric Blake  <ebb9@byu.net>
90601         Alter GNUmakefile to install into top directory.
90602         * modules/maintainer-makefile: Split, and add dependency...
90603         * modules/gnumakefile: to this new module.
90604         * build-aux/GNUmakefile: Move...
90605         * top/GNUmakefile: ...here.
90606         * build-aux/maint.mk: Move...
90607         * top/maint.mk: ...here.
90608         * MODULES.html.sh (Support for maintaining...): Document new
90609         module.
90611 2008-03-23  Bruno Haible  <bruno@clisp.org>
90613         * gnulib-tool: New options --vc-files, --no-vc-files.
90614         (func_usage): Document them.
90615         (vc_files): New variable.
90616         (func_import): Consider vc_files.
90617         (func_create_testdir): Set vc_files to empty.
90618         Suggested by Jim Meyering and Karl Berry.
90620 2008-03-23  Bruno Haible  <bruno@clisp.org>
90622         Fix regex compilation error on HP-UX 11.
90623         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
90624         * modules/regex (Files): Add m4/mbstate_t.m4.
90625         Reported by Ton Voon <ton.voon@altinity.com>.
90627 2008-03-23  Bruno Haible  <bruno@clisp.org>
90629         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
90631 2008-03-23  Eric Blake  <ebb9@byu.net>
90632             Bruno Haible  <bruno@clisp.org>
90634         Install files from top/ in the destination directory.
90635         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
90636         augmentation also for the files from top/.
90637         (func_import, func_create_testdir): Rewrite file names:
90638         top/filename -> filename.
90640 2008-03-23  Bruno Haible  <bruno@clisp.org>
90642         Tweak "gnulib --version" output.
90643         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
90645 2008-03-23  Bruno Haible  <bruno@clisp.org>
90647         Tweak "gnulib --version" output.
90648         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
90649         rather than contents of ChangeLog, when possible.
90651 2008-03-21  Eric Blake  <ebb9@byu.net>
90653         More --version tweaks.
90654         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
90655         date of last ChangeLog entry.
90657 2008-03-21  Jim Meyering  <meyering@redhat.com>
90659         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
90661 2008-03-20  Eric Blake  <ebb9@byu.net>
90663         VPATH fix.
90664         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
90666 2008-03-20  Simon Josefsson  <simon@josefsson.org>
90668         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
90669         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
90671 2008-03-20  Eric Blake  <ebb9@byu.net>
90673         Sync GNUmakefile with coreutils.
90674         * build-aux/GNUmakefile (have-Makefile): Rename...
90675         (_have-Makefile): ...to this, for namespace consideration.
90676         (GNUmakefile.cfg): Include, if present.
90677         (_autoreconf): Define a default.
90678         (_is-dist-target): New rule for rebuilds to pick up intra-release
90679         version.
90680         (maint-cfg.mk): Rename...
90681         (cfg.mk): ...to this.
90683 2008-03-18  Jim Meyering  <meyering@redhat.com>
90685         New script and module: mktempd
90686         * MODULES.html.sh (maint+release support): Add mktempd.
90687         * build-aux/mktempd: New file.
90688         * modules/mktempd: New file.
90690 2008-03-15  Jim Meyering  <meyering@redhat.com>
90692         Undo last change.
90693         * lib/sha1.c, lib/md5.c: 63 != ~63.
90694         Reported by Andreas Schwab.
90696         sha1.c, md5.c: Hoist a redundant expression.
90697         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
90698         "ctx->buflen" only once, before calling *_process_block.
90699         * lib/md5.c (md5_process_bytes): Likewise.
90701 2008-03-14  Eric Blake  <ebb9@byu.net>
90703         Bump copyright year in files generated by gnulib-tool.
90704         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
90705         gnulib-tool, rather than hard-coding it.
90707         Fix 'gnulib-tool --version' output to work with git.
90708         * gnulib-tool (func_gnulib_dir): New function, extracted from...
90709         (startup): ...here.
90710         (func_version): Use it to invoke git-version-gen, rather than
90711         relying on CVS keyword expansion.  Modernize wording.
90712         (cvsdatestamp, last_checkin_date, version): Kill unused
90713         variables.
90715 2008-03-12  Jim Meyering  <meyering@redhat.com>
90717         Recognize optional cast of the argument to free.
90718         * build-aux/useless-if-before-free: Update regexps.
90720         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
90722 2008-03-11  Bruno Haible  <bruno@clisp.org>
90724         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
90725         by a single package.
90726         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
90727         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
90728         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
90729         Reported by Sam Steingold <sds@gnu.org>.
90731 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
90733         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
90734         repositories.
90736 2008-03-11  Bruno Haible  <bruno@clisp.org>
90738         Avoid conflicts between local macro definitions.
90739         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
90740         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
90742 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
90743             Bruno Haible  <bruno@clisp.org>
90745         Make va_copy work with some version of xlc on AIX 5.1.
90746         * lib/stdarg.in.h: New file.
90747         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
90748         On AIX, use a <stdarg.h> file substitute.
90749         * modules/stdarg (Files): Add lib/stdarg.in.h.
90750         (Depends-on): Add include_next.
90751         (Makefile.am): Build a stdarg.h substitute if requested.
90752         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
90754 2008-03-10  Bruno Haible  <bruno@clisp.org>
90756         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
90757         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90758         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
90760 2008-03-10  Bruno Haible  <bruno@clisp.org>
90762         * modules/stdlib (Depends-on): Add include_next, remove
90763         absolute-header.
90765 2008-03-09  Bruno Haible  <bruno@clisp.org>
90767         * lib/freadahead.h (freadahead): Document more precisely.
90768         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
90769         the sum of both buffer sizes.
90770         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
90771         * NEWS: Document the change.
90773 2008-03-09  Bruno Haible  <bruno@clisp.org>
90775         Extend freadptr to return also the buffer size.
90776         * lib/freadptr.h (freadptr): Add sizep argument.
90777         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
90778         (freadptr): Add sizep argument. Determine buffer size like freadahead
90779         does.
90780         * tests/test-freadptr.c: Don't include freadahead.h.
90781         (main): Adapt for new calling convention of freadptr.
90782         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
90783         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
90784         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
90785         tests/test-freadptr2.sh.
90786         (Depends): Remove freadahead.
90787         (TESTS): Add test-freadptr2.sh.
90788         (check_PROGRAMS): Add test-freadptr2.
90790 2008-03-09  Bruno Haible  <bruno@clisp.org>
90792         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
90793         Report and solution by Simon Josefsson.
90795 2008-03-06  Bruno Haible  <bruno@clisp.org>
90797         Make fflush after ungetc work on BSD platforms.
90798         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
90799         * tests/test-fflush2.c: New file.
90800         * tests/test-fflush2.sh: New file.
90801         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
90802         tests/test-fflush2.c.
90803         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
90804         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
90806 2008-03-06  Eric Blake  <ebb9@byu.net>
90808         Likewise for ftello.
90809         * modules/ftello (Dependencies): Add extensions.
90810         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
90812 2008-03-06  Bruno Haible  <bruno@clisp.org>
90814         * modules/fseeko (Dependencies): Add extensions.
90815         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
90816         Needed on glibc systems.
90818 2008-03-06  Bruno Haible  <bruno@clisp.org>
90820         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
90821         email address.
90822         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90824 2008-03-06  Bruno Haible  <bruno@clisp.org>
90826         * users.txt: Add libgnupdf.
90828 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
90830         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
90831         (Header File Substitutes, Function Substitutes,
90832         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
90833         (Build robot for gnulib): Fix typo.
90835 2008-03-06  Bruno Haible  <bruno@clisp.org>
90837         * doc/gnulib-tool.texi (VCS Issues): Small updates.
90838         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90840 2008-03-06  Bruno Haible  <bruno@clisp.org>
90842         * doc/func.texi: New file, extracted from doc/gnulib.texi.
90843         * doc/gnulib.texi: Include it.
90845 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90847         * modules/func (License): Change license to unlimited; there was
90848         no LGPL parts in the module anyway.
90850 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90852         * modules/__func__: Renamed to modules/func.
90853         * modules/__func__-tests: Renamed to modules/func-tests.
90854         * tests/test-__func__.c: Renamed to tests/test-func.c.
90855         * m4/__func__.m4: Renamed to m4/func.m4.
90856         * doc/gnulib.texi (__func__): Section renamed to func.
90857         Suggested by Eric Blake <ebb9@byu.net>.
90859 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90861         * doc/gnulib.texi (__func__): Use C99 terminology when talking
90862         about __func__.  Make example self-contained.  Suggested by Eric
90863         Blake <ebb9@byu.net>.
90865         * tests/test-__func__.c (main): Avoid extraneous () around __func.
90866         Suggested by Eric Blake <ebb9@byu.net>.
90868 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90870         * modules/__func__: New file.
90871         * modules/__func__-tests: New file.
90872         * tests/test-__func__.c: New file.
90873         * m4/__func__.m4: New file.
90874         * doc/gnulib.texi (__func__): Document __func__ module.
90876 2008-03-05  Simon Josefsson  <simon@josefsson.org>
90878         * modules/byteswap (License): Re-license as LGPLv2+.
90880 2008-03-05  Simon Josefsson  <simon@josefsson.org>
90882         * doc/Makefile: Add pdf target.
90884 2008-03-05  Simon Josefsson  <simon@josefsson.org>
90886         * modules/inline (License): Use 'unlimited', since there are only
90887         *.m4 files in this module.
90889 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
90890             Bruno Haible  <bruno@clisp.org>
90892         Add support for HP C 7.1 on OpenVMS 8.3.
90893         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
90895 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
90897         Update VMS specifics.
90898         * lib/getopt.c [VMS]: Remove include of unixlib.h.
90900 2008-03-02  Jim Meyering  <meyering@redhat.com>
90902         Remove the last dependency on the "free" module.
90903         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
90904         Reported by Bob Proulx.
90906         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
90908         Remove useless "if" tests before free.  Deprecate "free" module.
90909         * doc/posix-functions/free.texi: Mention that this
90910         module is no longer useful.
90911         * modules/free (Notice): Say this module is obsolete.
90912         * modules/readutmp (Depends-on): Remove free.
90913         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
90914         * lib/putenv.c (putenv): Likewise.
90915         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
90916         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
90917         * tests/test-c-strcasestr.c (main): Likewise.
90918         * tests/test-c-strstr.c (main): Likewise.
90919         * tests/test-mbscasestr1.c (main): Likewise.
90920         * tests/test-mbscasestr2.c (main): Likewise.
90921         * tests/test-mbsstr1.c (main): Likewise.
90922         * tests/test-mbsstr2.c (main): Likewise.
90923         * tests/test-memmem.c (main): Likewise.
90924         * tests/test-strcasestr.c (main): Likewise.
90925         * tests/test-striconv.c (main): Likewise.
90926         * tests/test-striconveh.c (main): Likewise.
90927         * tests/test-striconveha.c (main): Likewise.
90928         * tests/test-strstr.c (main): Likewise.
90930         * build-aux/git-version-gen: Adjust a comment and the Usage string.
90932         bootstrap: sync from coreutils again
90933         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
90935 2008-03-01  Jim Meyering  <meyering@redhat.com>
90937         bootstrap: sync from coreutils
90938         * build-aux/bootstrap (update_po_files): Copy a .po file into place
90939         also when the target doesn't exist.
90941 2008-03-01  Eric Blake  <ebb9@byu.net>
90943         Fix bugs in last patch.
90944         * lib/memchr2.c (memchr2): Fix typo.
90945         * tests/test-memchr2.c: Test previous bug, and don't use GNU
90946         extension.
90947         Reported by Bruce Korb.
90949         New module 'memchr2'.
90950         * modules/memchr2: New file.
90951         * modules/memchr2-tests: Likewise.
90952         * lib/memchr2.h: Likewise.
90953         * lib/memchr2.c: Likewise, based on memchr.c.
90954         * tests/test-memchr2.c: New test.
90955         * MODULES.html.sh (String handling): Add memchr2.
90957 2008-02-29  Bruno Haible  <bruno@clisp.org>
90959         * modules/freadseek-tests: New file.
90960         * tests/test-freadseek.sh: New file.
90961         * tests/test-freadseek.c: New file.
90963         New module 'freadseek'.
90964         * modules/freadseek: New file.
90965         * lib/freadseek.h: New file.
90966         * lib/freadseek.c: New file.
90967         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
90969 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
90971         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
90972         wydawca.
90974         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
90975         program_invocation_name and program_invocation_short_name are
90976         present.
90978 2008-02-28  Bruno Haible  <bruno@clisp.org>
90980         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
90981         * tests/test-freadptr.sh: Also test non-seekable stdin.
90983 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
90985         * build-aux/bootstrap (source_base, m4_base)
90986         (doc_base, tests_base): New variables.
90987         (gnulib_tool_options): Do not hardcode base directories, use
90988         the above variables instead.
90990 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
90992         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
90994 2008-02-28  Bruno Haible  <bruno@clisp.org>
90996         * modules/freadptr-tests: New file.
90997         * tests/test-freadptr.sh: New file.
90998         * tests/test-freadptr.c: New file.
91000         New module 'freadptr'.
91001         * modules/freadptr: New file.
91002         * lib/freadptr.h: New file.
91003         * lib/freadptr.c: New file.
91004         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
91006 2008-02-26  Karl Berry  <karl@freefriends.org>
91008         Sync from Libtool:
91009         * libltdl/argz.c (argz_add, argz_count): New functions.
91010         * libltdl/argz.in.h: Declare them.
91011         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
91013 2008-02-22  Bruno Haible  <bruno@clisp.org>
91015         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
91016         is a pointer type.  Needed for HP-UX 10.
91017         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
91018         * doc/posix-functions/gmtime_r.texi: Likewise.
91019         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
91021 2008-02-24  Bruno Haible  <bruno@clisp.org>
91023         * modules/environ-tests: New file.
91024         * tests/test-environ.c: New file.
91026         New module 'environ'.
91027         * modules/environ: New file.
91028         * lib/unistd.in.h (environ): New declaration.
91029         * m4/environ.m4: New file.
91030         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
91031         after use.
91032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
91033         HAVE_DECL_ENVIRON.
91034         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
91035         HAVE_DECL_ENVIRON.
91036         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
91037         wrong claim that 'environ' is missing on some systems.
91038         * modules/execute (Depends-on): Add environ.
91039         * lib/execute.c (environ): Remove fallback declaration.
91040         * modules/pipe (Depends-on): Add environ.
91041         * lib/pipe.c (environ): Remove fallback declaration.
91042         * modules/setenv (Depends-on): Add environ.
91043         * lib/setenv.c (environ): Remove fallback declaration.
91044         * modules/unsetenv (Depends-on): Add environ.
91045         * lib/unsetenv.c (environ): Remove fallback declaration.
91046         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
91047         m4/environ.m4.
91048         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
91049         (gl_PREREQ_UNSETENV): Likewise.
91051 2008-02-24  Bruno Haible  <bruno@clisp.org>
91053         * doc/posix-functions/environ.texi: Document the MacOS X problem.
91055 2008-02-20  Bob Proulx  <bob@proulx.com>
91057         Enable use of older two part flavor 'git describe'.
91058         * build-aux/git-version-gen: If using the older two part flavor of
91059         git version then recreate the third part now present in the
91060         newer three part flavor of git describe.
91062 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
91064         * lib/fts.c (fts_build): Typo correction to comment.
91066 2008-02-17  Bruno Haible  <bruno@clisp.org>
91068         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
91069         generating no-op conflicts.
91071 2008-02-17  Bruno Haible  <bruno@clisp.org>
91073         Speed up by 10%.
91074         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
91075         result_entries, rather than an index-based loop.
91077 2008-02-17  Bruno Haible  <bruno@clisp.org>
91079         Speed up by 25%.
91080         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
91081         'hashcode_cached'.
91082         (entry_create): New function.
91083         (entry_hashcode): Use the cached hashcode if possible.
91084         (read_changelog_file, try_split_merged_entry): Use entry_create.
91086 2008-02-17  Bruno Haible  <bruno@clisp.org>
91088         Speed up from O(n^2) to O(n) for long ChangeLog files.
91089         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
91090         (read_changelog_file): Change implementation of entries_reversed list
91091         to rbtreehash.
91092         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
91094 2008-02-17  Bruno Haible  <bruno@clisp.org>
91096         New option --split-merged-entry.
91097         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
91098         (find_paragraph_end, try_split_merged_entry): New functions.
91099         (long_options): Add option --split-merged-entry.
91100         (usage): Document option --split-merged-entry.
91101         (main): Implement option --split-merged-entry.
91102         Reported by Eric Blake.
91104 2008-02-17  Bruno Haible  <bruno@clisp.org>
91106         * lib/git-merge-changelog.c: Include c-strstr.h.
91107         (main): Support the "git pull --rebase" situation.
91108         * modules/git-merge-changelog (Depends-on): Add c-strstr.
91109         Reported by Eric Blake.
91111 2008-02-16  Eric Blake  <ebb9@byu.net>
91113         Avoid doubling \ in common case of "c-maybe" quoting style.
91114         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
91115         eliding outer quotes.
91116         * lib/quotearg.h: Document this.
91117         * tests/test-quotearg.c (result_strings, inputs, results_g)
91118         (flag_results, locale_results): Test it by adding a new string to
91119         each test group.
91120         (compare_strings): Test new string.
91122 2008-02-13  Eric Blake  <ebb9@byu.net>
91124         Avoid trigraph quoting in default output.
91125         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
91126         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
91127         unless explicitly requested.
91128         * tests/test-quotearg.c (flag_results, main): Add additional tests.
91130 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
91132         Don't rely on signed integer overflowing to negative value.
91133         * lib/getugroups.c (getugroups): Include <limits.h>.
91134         Instead, compare against INT_MAX, and increment only if the test passes.
91136 2008-02-13  Jim Meyering  <meyering@redhat.com>
91137         and Eric Blake  <ebb9@byu.net>
91139         Avoid shadowing warning and compile errors on Linux.
91140         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
91141         forwarding macros on Linux.
91142         (dcgettext): Define a stub, for Linux.
91143         (results_g, main): Avoid warnings.
91145 2008-02-12  Eric Blake  <ebb9@byu.net>
91147         Silence warning in last patch.
91148         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
91150         Quotearg part 4: add tests, fix c-maybe colon quoting.
91151         * lib/quotearg.h: Improve documentation.
91152         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
91153         escapes when adding outer quotes.  When quoting trigraphs, use
91154         valid C notation.  When quoting NUL, omit extra characters if next
91155         character is not digit.  Alter prototype.
91156         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
91157         callers.
91158         * modules/quotearg-tests: New module.
91159         * tests/test-quotearg.c: New test.
91161 2008-02-07  Eric Blake  <ebb9@byu.net>
91163         Quotearg part 3: add flag to control outer quote elision.
91164         * lib/quotearg.h (c_maybe_quoting_style): New style.
91165         (enum quoting_flags): Better documentation of flags.
91166         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
91167         c-maybe style.
91168         (quotearg_buffer_restyled): Handle new flag to elide outer
91169         quotes.
91171         Quotearg part 2: add flag that can control NUL elision.
91172         * lib/quotearg.h (set_quoting_flags): New prototype.
91173         * lib/quotearg.c (struct quoting_options): Add flag field.
91174         (set_quoting_flags): New function.
91175         (quotearg_buffer_restyled): Add flags parameter.
91176         (quotearg_alloc_mem): Set the flag if length cannot be returned.
91177         (quotearg_n_options): Set the flag, since length cannot be
91178         returned.
91179         (quoting_options_from_style): Default flags correctly.
91181         Quotearg part 1: more wrappers, restore quotearg_char state.
91182         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
91183         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
91184         (quotearg_colon_mem): New wrappers.
91185         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
91186         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
91187         functions.
91188         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
91189         (quotearg_colon_mem): New functions.
91191 2008-02-11  Bruno Haible  <bruno@clisp.org>
91193         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
91194         library in the current directory: it does not work with parallel make.
91195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91197 2008-02-11  Bruno Haible  <bruno@clisp.org>
91199         * .gitattributes: New file.
91201 2008-02-11  Jim Meyering  <meyering@redhat.com>
91203         useless-if-before-free: Fix reversed exit values.
91204         * build-aux/useless-if-before-free: Use correct values
91205         for EXIT_MATCH and EXIT_NO_MATCH.
91207         * build-aux/useless-if-before-free: Close stdout carefully.
91209 2008-02-10  Bruno Haible  <bruno@clisp.org>
91211         New module 'git-merge-changelog'.
91212         * modules/git-merge-changelog: New file.
91213         * lib/git-merge-changelog.c: New file.
91215 2008-02-10  Jim Meyering  <meyering@redhat.com>
91217         useless-if-before-free: New option: --list (-l).
91219         useless-if-before-free: Don't exit immediately upon open failure.
91220         * build-aux/useless-if-before-free: Exit 2 for errors.
91221         Upon failure to open a file, don't exit immediately.
91222         Rather, just warn and continue with any remaining files.
91224 2008-02-10  Bruno Haible  <bruno@clisp.org>
91226         New abstract list operation 'node_set_value'.
91227         * lib/gl_list.h (gl_list_node_set_value): New function.
91228         (struct gl_list_implementation): New field node_set_value.
91229         * lib/gl_list.c (gl_list_node_set_value): New function.
91230         * lib/gl_array_list.c (gl_array_node_set_value): New function.
91231         (gl_array_list_implementation): Update.
91232         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
91233         (gl_carray_list_implementation): Update.
91234         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
91235         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
91236         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
91237         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
91238         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
91239         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
91240         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
91241         Update.
91242         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
91243         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
91244         (gl_sublist_list_implementation): Update.
91246 2008-02-10  Bruno Haible  <bruno@clisp.org>
91248         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
91249         Needed when ELEMENT is #defined to 'some_type *'.
91251 2008-02-10  Jim Meyering  <meyering@redhat.com>
91253         New script and module: useless-if-before-free
91254         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
91255         * build-aux/useless-if-before-free: New file.
91256         * modules/useless-if-before-free: New file.
91258         * build-aux/gitlog-to-changelog: Use committer date, not author date.
91260         xstrtol_error: Fix typo.
91261         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
91262         s/exit_failure/exit_status/.
91264 2008-02-09  Jim Meyering  <meyering@redhat.com>
91266         New script and module: gitlog-to-changelog
91267         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
91268         * modules/gitlog-to-changelog: New file.
91269         * build-aux/gitlog-to-changelog: New file.
91271 2008-02-08  Jim Meyering  <meyering@redhat.com>
91273         Avoid two "parameter unused" warnings.
91274         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
91275         Mark "st" as used.
91277         Use "git COMMAND", not "git-COMMAND".
91278         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
91279         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
91280         * build-aux/git-version-gen: Use "git status", not "git-status".
91282 2008-02-07  Bruno Haible  <bruno@clisp.org>
91284         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
91285         Avoids a crash on Windows Vista.
91286         Reported by Adam Strzelecki <ono@java.pl> via
91287         Simon Josefsson <simon@josefsson.org>.
91289 2008-02-06  Bruno Haible  <bruno@clisp.org>
91291         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
91292         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
91293         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
91294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
91295         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
91296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
91297         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
91298         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
91299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
91300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
91304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91306         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
91307         left-adjust flag.
91308         * tests/test-snprintf-posix.h (test_function): Likewise.
91309         * tests/test-sprintf-posix.h (test_function): Likewise.
91310         * tests/test-vasprintf-posix.c (test_function): Likewise.
91311         * doc/posix-functions/fprintf.texi: Update.
91312         * doc/posix-functions/printf.texi: Update.
91313         * doc/posix-functions/snprintf.texi: Update.
91314         * doc/posix-functions/sprintf.texi: Update.
91315         * doc/posix-functions/vfprintf.texi: Update.
91316         * doc/posix-functions/vprintf.texi: Update.
91317         * doc/posix-functions/vsnprintf.texi: Update.
91318         * doc/posix-functions/vsprintf.texi: Update.
91319         Reported by Peter Fales <psfales@alcatel-lucent.com>.
91321 2008-02-06  Bruno Haible  <bruno@clisp.org>
91323         Fix bug introduced on 2008-01-26.
91324         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
91326 2008-02-06  Bruno Haible  <bruno@clisp.org>
91328         Fix bug introduced on 2007-06-10.
91329         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
91330         !NEED_PRINTF_FLAG_ZERO.
91332 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
91334         getloadavg: use libperfstat on AIX5
91335         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
91337 2008-02-03  Bruno Haible  <bruno@clisp.org>
91339         * lib/diffseq.h: Add comments about required #includes.
91340         Reported by Michael Biggs <gnulib@doubleplum.net>.
91342 2008-02-01  Bruno Haible  <bruno@clisp.org>
91344         * users.txt: Add gnuit.
91346 2008-01-31  Bruno Haible  <bruno@clisp.org>
91348         * lib/md4.c (set_uint32): Mark as inline.
91349         * lib/md5.c (set_uint32): Likewise.
91350         * lib/sha1.c (set_uint32): Likewise.
91351         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
91352         * m4/md5.m4 (gl_MD5): Likewise.
91353         * m4/sha1.m4 (gl_SHA1): Likewise.
91355 2008-01-31  Jim Meyering  <meyering@redhat.com>
91357         Use "sizeof VAR", rather than a literal "4".
91358         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
91359         * lib/md4.c (md4_read_ctx): Likewise.
91360         * lib/sha1.c (sha1_read_ctx): Likewise.
91362 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91364         * tests/test-sha1.c: New file, based on test-md5.c.
91366         * modules/crypto/sha1-tests: New file.
91368 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91370         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
91372 2008-01-31  Jim Meyering  <meyering@redhat.com>
91374         Prefer "sizeof v" over the equivalent "4".
91375         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
91376         * lib/md5.c (set_uint32): Likewise.
91377         * lib/sha1.c (set_uint32): Likewise.
91379 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91381         * lib/sha1.c (set_uint32): Mark function as static.
91383 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91385         md2: clarify comments to say that alignment is not required.
91386         * lib/md2.h: Remove warning about alignment in comment.
91387         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
91388         never been required.
91390 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91392         md4: adapt alignment constraint fix from sha1.
91393         * lib/md4.c (set_uint32): New function, from sha1.c
91394         (md4_read_ctx): Use it.
91395         (md4_finish_ctx): Doc fix.
91396         * lib/md4.h: Doc fix.
91398 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91400         md5: adapt alignment constraint fix from sha1.
91401         * lib/md5.c (set_uint32): New function, from sha1.c
91402         (md5_read_ctx): Use it.
91403         (md5_finish_ctx): Doc fix.
91404         * lib/md5.h: Doc fix.
91406 2008-01-30  Peter Palfrader  <weasel@debian.org>
91408         sha1: remove the result buffer alignment constraint
91409         * lib/sha1.c (set_uint32): New function.
91410         (sha1_read_ctx): Rewrite to remove the result buffer alignment
91411         constraint.
91412         (sha1_finish_ctx): Remove comment warning about alignment constraint.
91413         * lib/sha1.h: Likewise.
91415 2008-01-30  Andreas Schwab  <schwab@suse.de>
91416             Bruno Haible  <bruno@clisp.org>
91418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
91419         correct definition of LDBL_MIN_EXP.
91421 2008-01-30  Karl Berry  <karl@gnu.org>
91423         * config/srclist-update: try to preserve x bit on updates.
91424         * config/srclistvars.sh: update for karl.
91426 2008-01-29  Jim Meyering  <meyering@redhat.com>
91428         vasnprintf.c: Avoid warning about unused label
91429         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
91430         "overflow" label definition and associated code with the
91431         same cpp condition that guards the sole use of that label.
91433 2008-01-26  Bruno Haible  <bruno@clisp.org>
91435         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
91436         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
91437         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
91438         * lib/isnanl-nolibm.h (isnanl): Likewise.
91439         Reported by Paul Eggert <eggert@cs.ucla.edu>.
91441 2008-01-26  Bruno Haible  <bruno@clisp.org>
91443         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
91444         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
91446 2008-01-26  Bruno Haible  <bruno@clisp.org>
91448         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
91449         GCC >= 4.0 built-in.
91450         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
91452 2008-01-26  Bruno Haible  <bruno@clisp.org>
91454         Rename isnan, applicable to 'double' only, to isnand.
91455         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
91456         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
91457         (configure.ac): Update.
91458         (Include): Replace "isnan.h" with "isnand.h".
91459         * m4/isnand.m4: Renamed from m4/isnan.m4.
91460         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
91461         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
91462         instead of isnan.c.
91463         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
91464         instead of HAVE_ISNAN_IN_LIBC.
91465         (isnand): Renamed from isnan.
91466         * lib/isnand.c: New file.
91467         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
91468         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
91469         (Makefile.am): Update.
91470         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
91471         Include isnand.h instead of isnan.h.
91472         (main): Test isnand instead of isnan.
91473         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
91474         isnan-nolibm.
91475         * modules/frexp (Depends-on): Likewise.
91476         * modules/frexp-tests (Depends-on): Likewise.
91477         * modules/frexp-nolibm (Depends-on): Likewise.
91478         * modules/frexp-nolibm-tests (Depends-on): Likewise.
91479         * modules/isfinite (Depends-on): Likewise.
91480         * modules/round-tests (Depends-on): Likewise.
91481         * modules/signbit (Depends-on): Likewise.
91482         * modules/signbit-tests (Depends-on): Likewise.
91483         * modules/snprintf-posix (Depends-on): Likewise.
91484         * modules/sprintf-posix (Depends-on): Likewise.
91485         * modules/trunc-tests (Depends-on): Likewise.
91486         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91487         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91488         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91489         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91491         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91492         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91493         * modules/vasnprintf-posix (Depends-on): Likewise.
91494         * modules/vasprintf-posix (Depends-on): Likewise.
91495         * modules/vfprintf-posix (Depends-on): Likewise.
91496         * modules/vsnprintf-posix (Depends-on): Likewise.
91497         * modules/vsprintf-posix (Depends-on): Likewise.
91498         * lib/frexp.c: Include isnand.h instead of isnan.h.
91499         (ISNAN): Set to isnand instead of isnan.
91500         * lib/isfinite.c: Include isnand.h instead of isnan.h.
91501         (gl_isfinited): Use isnand instead of isnan.
91502         * lib/signbitd.c: Include isnand.h instead of isnan.h.
91503         (gl_signbitd): Use isnand instead of isnan.
91504         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
91505         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
91506         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
91507         (main): Use isnand instead of isnan.
91508         * tests/test-round1.c: Include isnand.h.
91509         (main): Use isnand instead of isnan.
91510         * tests/test-round2.c: Include isnand.h instead of isnan.h.
91511         (ISNAN): Set to isnand instead of isnan.
91512         * tests/test-trunc1.c: Include isnand.h.
91513         (main): Use isnand instead of isnan.
91514         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
91515         (equal): Use isnand instead of isnan.
91516         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
91517         isnand-nolibm.
91518         * NEWS: Mention the change.
91520 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
91521             Bruno Haible  <bruno@clisp.org>
91523         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
91524         the GCC builtins for signbits are present and set
91525         REPLACE_SIGNBIT_USING_GCC if so.
91526         * lib/math.in.h (signbit): Define using GCC builtins if
91527         REPLACE_SIGNBIT_USING_GCC is set.
91528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
91529         REPLACE_SIGNBIT_USING_GCC.
91530         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
91532 2008-01-25  Jim Meyering  <meyering@redhat.com>
91534         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
91535         * lib/poll.c: Include <config.h>, not "config.h".
91536         * tests/test-getaddrinfo.c: Likewise.
91538 2008-01-25  Simon Josefsson  <simon@josefsson.org>
91540         * modules/sockets-tests: New file.
91542 2008-01-24  Simon Josefsson  <simon@josefsson.org>
91544         * modules/sockets: New module, can be used to call WSA_Startup and
91545         WSA_Cleanup when needed.
91547         * lib/sockets.h, lib/sockets.c: New files.
91549         * m4/sockets.m4: New file.
91551         * tests/test-sockets.c: New file.
91553 2008-01-19  Bruno Haible  <bruno@clisp.org>
91555         * doc/posix-headers: Renamed from doc/headers.
91556         * doc/posix-functions: Renamed from doc/functions.
91557         * doc/gnulib.texi: Update.
91559 2008-01-19  Bruno Haible  <bruno@clisp.org>
91561         * doc/glibc-functions/strcasestr.texi: Include contents of
91562         doc/functions/strcasestr.texi, fixing the list of platforms.
91563         * doc/functions/strcasestr.texi: Remove file.
91565 2008-01-19  Bruno Haible  <bruno@clisp.org>
91567         * doc/glibc-functions/memmem.texi: Include contents of
91568         doc/functions/memmem.texi.
91569         * doc/functions/memmem.texi: Remove file.
91571 2008-01-18  Bruno Haible  <bruno@clisp.org>
91573         * doc/glibc-functions/*.texi: New files.
91574         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
91575         to use the new files.
91577 2008-01-17  Bruno Haible  <bruno@clisp.org>
91579         * tests/test-gethostname.c (main): Fix printf statement.
91581 2008-01-17  Simon Josefsson  <simon@josefsson.org>
91583         * modules/gethostname-tests: New file.
91585         * tests/test-gethostname.c: New file.
91587 2008-01-17  Simon Josefsson  <simon@josefsson.org>
91589         * lib/gethostname.c: Include string.h unconditionally, strncpy is
91590         used by the UNAME case.  Reported by Bruno Haible
91591         <bruno@clisp.org>.
91593 2008-01-17  Eric Blake  <ebb9@byu.net>
91595         Convert c-strcasestr to be more efficient.
91596         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
91597         (Depends-on): Add c-strcase, remove malloca, strnlen.
91598         * tests/test-c-strcasestr.c (main): Enhance test.
91599         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
91601 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91603         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
91604         Use it in creating po/Makevars.
91606 2008-01-15  Simon Josefsson  <simon@josefsson.org>
91608         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
91609         Applications that requires it should initialize libgcrypt
91610         manually.
91612 2008-01-16  Simon Josefsson  <simon@josefsson.org>
91614         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
91616 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
91618         Fix problem with getdate on mingw32 reported by Simon Josefsson
91619         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
91620         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
91621         tzname", when deciding whether to declare tzname.
91622         * lib/strftime.c (tzname): Likewise.
91624 2008-01-15  Bruno Haible  <bruno@clisp.org>
91626         Work around a MacOS X 10.5 bug in frexpl().
91627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
91628         * doc/functions/frexpl.texi: Document the bug.
91629         Reported by Elias Pipping <pipping@gentoo.org>.
91631 2008-01-14  Eric Blake  <ebb9@byu.net>
91633         Touch up previous patch.
91634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
91635         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
91637         Convert strcasestr module to use Two-Way algorithm.
91638         * modules/strcasestr-simple: New module, based on the old
91639         strcasestr, but with Two-Way rather than KMP.
91640         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
91641         * lib/string.in.h (rpl_strcasestr): Declare.
91642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
91643         performance.
91644         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
91645         * modules/string (Makefile.am): Support strcasestr.
91646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
91647         * modules/strcasestr-tests (Depends-on): Check for alarm.
91648         * tests/test-strcasestr.c: Augment test.
91649         * lib/str-two-way.h: Clean up stray macro.
91650         * NEWS: Document new module.
91651         * MODULES.html.sh (string handling): Likewise.
91652         * doc/functions/strcasestr.texi: New file.
91653         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
91654         here, since it is not a POSIX function.
91656 2008-01-14  Colin Watson  <cjwatson@debian.org>
91657             Bruno Haible  <bruno@clisp.org>
91659         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
91660         works fine; if not, set REPLACE_STRSIGNAL.
91661         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
91662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91663         REPLACE_STRSIGNAL.
91664         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
91665         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
91666         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
91668 2008-01-14  Bruno Haible  <bruno@clisp.org>
91670         * modules/strsignal (Include): Change to <string.h>.
91672 2008-01-14  Colin Watson  <cjwatson@debian.org>
91674         * modules/argp (Notice): Add a notice recommending to change
91675         XGETTEXT_OPTIONS.
91676         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
91678 2008-01-13  Colin Watson  <cjwatson@debian.org>
91680         * modules/strsignal-tests: New file.
91681         * tests/test-strsignal.c: New file.
91683         * lib/strsignal.c: New file, from glibc with modifications.
91684         * lib/siglist.h: New file, from glibc with modifications.
91685         * lib/string.in.h (strsignal): New declaration.
91686         * m4/strsignal.m4: New file.
91687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91688         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
91689         * modules/strsignal: New file.
91690         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
91691         HAVE_DECL_STRSIGNAL.
91693 2008-01-13  Bruno Haible  <bruno@clisp.org>
91695         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
91696         locale encoding is not ASCII. Needed for OpenBSD 4.0.
91697         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
91698         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91700 2008-01-13  Bruno Haible  <bruno@clisp.org>
91702         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
91703         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
91704         * lib/argp.h (__attribute__): Likewise.
91705         * lib/c-stack.c (__attribute__): Likewise.
91706         * lib/error.h (__attribute__): Likewise.
91707         * lib/fts.c (__attribute__): Likewise.
91708         * lib/openat.h (__attribute__): Likewise.
91709         * lib/stdio.in.h (__attribute__): Likewise.
91710         * lib/string.in.h (__attribute__): Likewise.
91711         * lib/utimens.c (__attribute__): Likewise.
91712         * lib/vasnprintf.h (__attribute__): Likewise.
91713         * lib/xalloc.h (__attribute__): Likewise.
91714         * lib/xprintf.h (__attribute__): Likewise.
91715         * lib/xstrtol.h (__attribute__): Likewise.
91716         * lib/xvasprintf.h (__attribute__): Likewise.
91718 2008-01-12  Bruno Haible  <bruno@clisp.org>
91720         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
91721         * doc/glibc-headers/a.out.texi: New file.
91722         * doc/glibc-headers/aliases.texi: New file.
91723         * doc/glibc-headers/alloca.texi: New file.
91724         * doc/glibc-headers/ar.texi: New file.
91725         * doc/glibc-headers/argp.texi: New file.
91726         * doc/glibc-headers/argz.texi: New file.
91727         * doc/glibc-headers/byteswap.texi: New file.
91728         * doc/glibc-headers/crypt.texi: New file.
91729         * doc/glibc-headers/endian.texi: New file.
91730         * doc/glibc-headers/envz.texi: New file.
91731         * doc/glibc-headers/err.texi: New file.
91732         * doc/glibc-headers/error.texi: New file.
91733         * doc/glibc-headers/execinfo.texi: New file.
91734         * doc/glibc-headers/fpu_control.texi: New file.
91735         * doc/glibc-headers/fstab.texi: New file.
91736         * doc/glibc-headers/fts.texi: New file.
91737         * doc/glibc-headers/getopt.texi: New file.
91738         * doc/glibc-headers/ieee754.texi: New file.
91739         * doc/glibc-headers/ifaddrs.texi: New file.
91740         * doc/glibc-headers/libintl.texi: New file.
91741         * doc/glibc-headers/mcheck.texi: New file.
91742         * doc/glibc-headers/mntent.texi: New file.
91743         * doc/glibc-headers/obstack.texi: New file.
91744         * doc/glibc-headers/paths.texi: New file.
91745         * doc/glibc-headers/printf.texi: New file.
91746         * doc/glibc-headers/pty.texi: New file.
91747         * doc/glibc-headers/resolv.texi: New file.
91748         * doc/glibc-headers/shadow.texi: New file.
91749         * doc/glibc-headers/sysexits.texi: New file.
91750         * doc/glibc-headers/ttyent.texi: New file.
91752 2008-01-12  Jim Meyering  <meyering@redhat.com>
91754         announce-gen: emit Gnulib's git-based version string.
91755         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
91756         New option --gnulib-version=V, where V is expected to be
91757         the output of running git describe in the gnulib directory.
91758         (get_tool_versions): Request feedback on xdelta.  I suspect it's
91759         not useful, and plan to stop publishing an xdelta file with each
91760         coreutils release.
91762         * build-aux/announce-gen: Also check for lzma-compressed files.
91764 2008-01-11  Bruno Haible  <bruno@clisp.org>
91766         * tests/test-memmem.c (main): Increase maximum allowed time.
91767         * tests/test-strstr.c (main): Likewise.
91769 2008-01-11  Bruno Haible  <bruno@clisp.org>
91771         * doc/functions/memmem.texi: Add more precisions about platforms.
91772         * doc/functions/strstr.texi: Likewise.
91774 2008-01-10  Eric Blake  <ebb9@byu.net>
91776         * m4/strstr.m4: Delete cruft from copy-n-paste.
91777         Reported by Bruno Haible.
91779 2008-01-10  Bruno Haible  <bruno@clisp.org>
91781         Make c-strstr rely on strstr.
91782         * lib/c-strstr.c: Don't include str-kmp.h.
91783         (c_strstr): Define in terms of strstr.
91784         * modules/c-strstr (Files): Remove lib/str-kmp.h.
91785         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
91787 2008-01-10  Bruno Haible  <bruno@clisp.org>
91789         * doc/gnulib.texi (String Functions in C Locale): New section.
91790         * doc/c-ctype.texi: New file.
91791         * doc/c-strcase.texi: New file.
91792         * doc/c-strcaseeq.texi: New file.
91793         * doc/c-strcasestr.texi: New file.
91794         * doc/c-strstr.texi: New file.
91795         * doc/c-strtod.texi: New file.
91796         * doc/c-strtold.texi: New file.
91798 2008-01-10  Eric Blake  <ebb9@byu.net>
91800         * lib/relocatable.h: Fix a comment.
91802 2008-01-10  Eric Blake  <ebb9@byu.net>
91804         Share two-way algorithm.
91805         * lib/str-two-way.h: New file, merged from...
91806         * lib/memmem.c: ...here...
91807         * lib/strstr.c: ...and here.
91808         * modules/memmem (Files): Use it.
91809         * modules/strstr (Files): Likewise.
91811         Avoid quadratic strstr implementations.
91812         * lib/strstr.c: New file.
91813         * m4/strstr.m4: Likewise.
91814         * modules/strstr: Likewise.
91815         * modules/strstr-tests: Likewise.
91816         * tests/test-strstr.c: Likewise.
91817         * lib/string.in.h (rpl_strstr): Declare.
91818         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
91819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
91820         * modules/string (Makefile.am): Likewise.
91821         * MODULES.html.sh (string handling): Mention new module.
91822         * doc/functions/strstr.texi (strstr): Document the bug.
91824 2008-01-10  Bruno Haible  <bruno@clisp.org>
91826         * lib/relocatable.h (relocate): State whether result is freshly
91827         allocated or not.
91828         * lib/relocatable.c (relocate): Return a freshly allocated string
91829         instead of a pointer to a privately held string.
91830         Reported by Sylvain Beucler <beuc@gnu.org>.
91832 2008-01-10  Colin Watson  <cjwatson@debian.org>
91834         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
91835         s/S_ISNLK/S_ISLNK/.
91837 2008-01-09  Bruno Haible  <bruno@clisp.org>
91839         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
91840         and other files.
91841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
91842         if it's only a guess.
91843         * modules/memmem: Simplify by depending on memmem-simple.
91845 2008-01-09  Bruno Haible  <bruno@clisp.org>
91847         Work around OpenBSD 4.0 tdelete() bug.
91848         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
91849         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
91850         macros and don't redefine the enum values.
91851         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
91852         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
91853         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
91855 2008-01-09  Bruno Haible  <bruno@clisp.org>
91857         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
91858         (main): Don't perform the tests if setlocale did not install a UTF-8
91859         locale. Needed on OpenBSD 4.0.
91860         * modules/wcwidth-tests (Depends-on): Add localcharset.
91862 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
91864         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
91865         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
91866         * NEWS: announce this.
91867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
91869 2008-01-09  Simon Josefsson  <simon@josefsson.org>
91870         and Eric Blake  <ebb9@byu.net>
91872         Add memmem-simple module.
91873         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
91874         (gl_FUNC_MEMMEM): Separate performance from presence checks.
91875         * modules/memmem-simple: New file.
91876         * modules/memmem (Description): Tweak.
91877         * MODULES.html.sh (string handling): Mention new module.
91878         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
91879         addressed by memmem-simple.
91880         * NEWS: Document the difference.
91882 2008-01-09  Eric Blake  <ebb9@byu.net>
91884         Give gcc some memmem optimization hints.
91885         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
91886         (strcasestr): Declare as pure.
91887         * modules/memmem (Maintainer): Claim my implementation.
91889 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91891         Support AIX 6.1 and higher.
91892         * build-aux/config.libpath: Likewise.
91893         * build-aux/config.rpath: Likewise.
91895 2008-01-08  Jim Meyering  <meyering@redhat.com>
91896             Bruno Haible  <bruno@clisp.org>
91898         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
91899         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
91900         Reported by Peter Fales in
91901         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
91903 2008-01-08  Bruno Haible  <bruno@clisp.org>
91905         * modules/unictype/category-of (Depends-on): Add
91906         unictype/category-none.
91907         * modules/unictype/category-and-tests (Depends-on): Add
91908         unictype/category-{L,N,Lu,Nd}.
91909         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
91910         * modules/unictype/category-or-tests (Depends-on): Add
91911         unictype/category-{L,N}.
91912         * modules/unictype/category-name-tests (Depends-on): Add
91913         unictype/category-{Z,Nl}.
91914         Reported by Simon Josefsson.
91916 2008-01-08  Bruno Haible  <bruno@clisp.org>
91918         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
91919         convention better.
91920         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
91921         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
91922         Reported by Peter Miller <millerp@canb.auug.org.au>.
91924 2008-01-08  Eric Blake  <ebb9@byu.net>
91926         Rewrite memmem to guarantee linear complexity without malloc.
91927         * lib/memmem.c (memmem): Use Two-Way rather than
91928         Knuth-Morris-Pratt, to allow O(1) space usage.
91929         (critical_factorization, two_way_short_needle)
91930         (two_way_long_needle): New functions.
91931         (knuth_morris_pratt): Delete.
91932         * modules/memmem (Depends-on): No longer need malloca or stdbool.
91933         Add stdint.
91934         * tests/test-memmem.c (main): Add tests for periodic needle and
91935         sublinear performance.
91936         * doc/functions/memmem.texi (memmem): Document other deficiencies
91937         in cygwin and older glibc.
91939 2008-01-08  Bruno Haible  <bruno@clisp.org>
91941         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
91942         augmentation.
91944 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
91946         Add a configure time option: --disable-acl.
91947         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
91948         AC_ARG_ENABLE(acl).
91950 2008-01-06  Simon Josefsson  <simon@josefsson.org>
91952         * tests/test-localename.c: Don't include obsolete "setenv.h".
91954         * modules/localename-tests (Depends-on): Need unsetenv.
91956 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91958         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
91960 2008-01-06  Colin Watson  <cjwatson@debian.org>
91962         * users.txt: Add man-db.
91964 2008-01-07  Bruno Haible  <bruno@clisp.org>
91966         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
91967         previous section name.
91969 2008-01-07  Bruno Haible  <bruno@clisp.org>
91971         * lib/progname.c (set_program_name): Don't strip off a leading
91972         "lt-" prefix outside a .libs directory.
91973         Suggested by Paul Eggert.
91975 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
91976             Bruno Haible  <bruno@clisp.org>
91978         Improve memory cleanup in 'relocatable' module.
91979         * lib/relocatable.h (compute_curr_prefix): Change return type to
91980         'char *'.
91981         * lib/relocatable.c (compute_curr_prefix): Change return type to
91982         'char *'. Free curr_installdir after use.
91983         (relocate): Free curr_prefix_better after use.
91984         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
91986 2008-01-01  Bruno Haible  <bruno@clisp.org>
91988         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
91989         failure on older glibc systems.
91990         Reported by Peter Fales <psfales@alcatel-lucent.com>.
91992 2008-01-05  Eric Blake  <ebb9@byu.net>
91994         Avoid quadratic system memmem.
91995         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
91996         Reported by Ralf Wildenhues.
91998         Fix memmem test for mingw.
91999         * modules/memmem-tests (configure.ac): Check for alarm.
92000         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
92001         it.
92002         * doc/functions/memmem.texi: New file.
92003         * doc/gnulib.texi (Function Substitutes): Add memmem.
92004         Reported by Bruno Haible.
92006 2008-01-04  Bruno Haible  <bruno@clisp.org>
92008         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
92009         Require gl_HEADER_STRINGS_H_DEFAULTS, not
92010         gl_HEADER_STRING_H_DEFAULTS.
92012 2008-01-04  Eric Blake  <ebb9@byu.net>
92014         Shorten duration of memmem test.
92015         * tests/test-memmem.c (main): Use alarm to declare failure if test
92016         is taking too long.
92017         Reported by Ralf Wildenhues.
92019 2007-12-21  Simon Josefsson  <simon@josefsson.org>
92021         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
92022         string, needed by strerror.
92024 2008-01-03  Colin Watson  <cjwatson@debian.org>
92025             Bruno Haible  <bruno@clisp.org>
92027         * doc/gnulib-tool.texi (Localization): New section.
92029 2008-01-02  Bruno Haible  <bruno@clisp.org>
92031         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
92032         variables to 'unsigned char *' type.
92033         Reported by Paul Eggert.
92035 2008-01-02  Jim Meyering  <jim@meyering.net>
92037         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
92039 2007-12-31  Jim Meyering  <jim@meyering.net>
92041         Avoid use of private FTS type name.
92042         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
92044 2007-12-30  Karl Berry  <karl@gnu.org>
92046         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
92047         work around defect in Texinfo and/or the standalone Info browser.
92049 2007-12-30  Bruno Haible  <bruno@clisp.org>
92051         Unify 5 copies of the KMP code.
92052         * lib/str-kmp.h: New file.
92053         * lib/c-strcasestr.c: Include str-kmp.h.
92054         (knuth_morris_pratt): Remove function.
92055         (c_strcasestr): Update.
92056         * lib/c-strstr.c: Include str-kmp.h.
92057         (knuth_morris_pratt): Remove function.
92058         (c_strcasestr): Update.
92059         * lib/mbscasestr.c: Include str-kmp.h.
92060         (knuth_morris_pratt_unibyte): Remove function.
92061         * lib/mbsstr.c: Include str-kmp.h.
92062         (knuth_morris_pratt_unibyte): Remove function.
92063         * lib/strcasestr.c: Include str-kmp.h.
92064         (knuth_morris_pratt): Remove function.
92065         (strcasestr): Update.
92066         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
92067         * modules/c-strstr (Files): Likewise.
92068         * modules/mbscasestr (Files): Likewise.
92069         * modules/mbsstr (Files): Likewise.
92070         * modules/strcasestr (Files): Likewise.
92071         Suggested by Paul Eggert.
92073 2007-12-30  Bruno Haible  <bruno@clisp.org>
92075         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
92076         defined.
92078 2007-12-30  Bruno Haible  <bruno@clisp.org>
92080         * lib/xmalloca.h: Include xalloc.h.
92081         (xnmalloca): New macro.
92083 2007-12-30  Bruno Haible  <bruno@clisp.org>
92085         * lib/malloca.h (nmalloca): New macro.
92086         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
92087         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
92088         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
92089         knuth_morris_pratt_multibyte): Likewise.
92090         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
92091         knuth_morris_pratt_multibyte): Likewise.
92092         * lib/memmem.c (knuth_morris_pratt): Likewise.
92093         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
92095 2007-12-25  Bruno Haible  <bruno@clisp.org>
92097         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
92098         * lib/glob.c: Don't include openat.h.
92099         (link_exists2_p): Add back the code that deals with the
92100         !GLOB_ALTDIRFUNC case.
92101         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
92102         let it do the filename concatenation.
92103         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
92104         * modules/glob (Depends-on): Remove openat.
92106 2007-12-31  Bruno Haible  <bruno@clisp.org>
92108         * modules/dirfd (License): Change to LGPLv2+.
92109         Approved by Jim Meyering.
92111 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
92113         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
92114         when multiplying M by sizeof (size_t).
92116 2007-12-10  Martin Lambers  <marlam@marlam.de>
92118         Override getpagesize on mingw.
92119         * lib/getpagesize.c: New file.
92120         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
92121         * modules/getpagesize (Files): Add lib/getpagesize.c.
92122         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
92123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
92124         REPLACE_GETPAGESIZE.
92125         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
92127 2007-12-25  Bruno Haible  <bruno@clisp.org>
92129         * modules/localcharset (Notice): New field.
92130         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
92131         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
92133 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
92134             Bruno Haible  <bruno@clisp.org>
92136         Avoid using the syntax symbol() in formatted documentation.
92137         * MODULES.html.sh (func_module): When replacing symbol() with a
92138         hyperlink, remove the parentheses. Show an error if some remain.
92139         Recognize and render the '...' syntax.
92140         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
92141         Rework. Add paragraph about GCC's inlining.
92142         * doc/alloca.texi: Likewise.
92143         * doc/error.texi: Remove parentheses from symbol reference.
92144         * doc/gnulib-intro.texi: Likewise.
92145         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
92146         * modules/fnmatch (Description): Reword to say "the ... function".
92147         * modules/full-read (Description): Likewise.
92148         * modules/full-write (Description): Likewise.
92149         * modules/safe-read (Description): Likewise.
92150         * modules/safe-write (Description): Likewise.
92151         * modules/strchrnul (Description): Likewise.
92152         * modules/trim (Description): Likewise.
92153         * modules/error (Description): Remove parentheses from symbol
92154         references.
92155         * modules/verror (Description): Likewise.
92156         Reported by Karl Berry.
92158 2007-12-25  Bruno Haible  <bruno@clisp.org>
92160         Fixup after 2007-10-16 commit.
92161         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
92163 2007-12-24  Bruno Haible  <bruno@clisp.org>
92165         Make --enable-relocatable work with DESTDIR.
92166         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
92167         to compute installdir from destprog.
92168         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
92169         also set the RELOC_DESTDIR variable.
92170         Reported by Левашев Иван <octagram@bluebottle.com>.
92172 2007-12-24  Bruno Haible  <bruno@clisp.org>
92174         Fix link error due to xalloc_die().
92175         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
92176         of xreadlink.
92177         * lib/relocwrapper.c: Update comments.
92178         * build-aux/install-reloc: Remove xreadlink.c from file list.
92179         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
92180         xreadlink.c.
92181         Reported by Левашев Иван <octagram@bluebottle.com>.
92183 2007-12-24  Bruno Haible  <bruno@clisp.org>
92185         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
92186         * lib/setenv.h: Remove file.
92187         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
92188         lib/setenv.h.
92189         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
92190         (Depends-on): Add stdlib.
92191         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
92192         gl_FUNC_UNSETENV.
92193         (Include): Replace setenv.h with <stdlib.h>.
92194         * modules/unsetenv: New file.
92195         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
92196         * lib/unsetenv.c: Include <stdlib.h> first.
92197         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
92198         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
92199         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
92200         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
92201         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
92202         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
92203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
92204         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
92205         * doc/functions/unsetenv.texi: Update.
92206         * modules/xsetenv (Depends-on): Add unsetenv.
92207         * modules/getdate (Depends-on): Likewise.
92208         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
92209         * lib/xsetenv.c: Don't include setenv.h.
92210         * lib/getdate.y: Likewise.
92211         * lib/relocwrapper.c: Likewise.
92212         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
92213         (Depends-on): Add stdlib.
92214         * NEWS: Mention the changes.
92215         Reported by Левашев Иван <octagram@bluebottle.com>.
92217 2007-12-23  Bruno Haible  <bruno@clisp.org>
92219         * lib/memmem.c (memmem): Use lowercase variable names. Tab
92220         indentation.
92222 2007-12-23  Bruno Haible  <bruno@clisp.org>
92224         * lib/c-strcasestr.c: Add more comments.
92225         * lib/c-strstr.c: Likewise.
92226         * lib/mbscasestr.c: Likewise.
92227         * lib/mbsstr.c: Likewise.
92228         * lib/strcasestr.c: Likewise.
92229         * lib/memmem.c: Likewise.
92231 2007-12-23  Bruno Haible  <bruno@clisp.org>
92233         * tests/test-memmem.c: Include <string.h> first.
92235 2007-12-22  Bruno Haible  <bruno@clisp.org>
92237         * gnulib-tool (func_create_testdir): Change $auxdir while generating
92238         the contents of $testsbase.
92239         Reported by Ralf Wildenhues.
92241 2007-12-22  Bruno Haible  <bruno@clisp.org>
92243         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
92244         two variables local_ldadd_before, local_ldadd_last.
92246 2007-12-20  Eric Blake  <ebb9@byu.net>
92248         Work around circular library issue when cross-compiling.
92249         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
92250         that progname.o does not need to pull in rpl_memcmp.
92252 2007-12-19  Eric Blake  <ebb9@byu.net>
92254         Fix memmem to avoid O(n^2) worst-case complexity.
92255         * lib/memmem.c (knuth_morris_pratt): New function.
92256         (memmem): Use it if first few naive iterations fail.
92257         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
92258         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
92259         * modules/memchr (License): Likewise.
92260         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
92261         malloca.
92262         * tests/test-memmem.c: Rewrite, borrowing ideas from
92263         test-mbsstr1.c; the old version wouldn't even compile!
92264         * modules/memmem-tests: New file.
92265         * lib/string.in.h (rpl_memmem): Add declaration.
92266         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
92267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
92268         REPLACE_MEMMEM.
92270 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92272         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
92273         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
92274         before any system include files, and undef after them all.  This
92275         should fix a problem on VMS reported by John E. Malmberg in
92276         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
92278 2007-12-17  Eric Blake  <ebb9@byu.net>
92280         Revert addition of verify, for BSD/OS.
92281         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
92282         can't handle large files, for the sake of obsolete platforms.
92283         * modules/fseeko (Depends-on): Remove verify.
92284         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
92285         * doc/functions/ftello.texi (ftello): Likewise.
92286         * doc/functions/fgetpos.texi (fgetpos): Likewise.
92287         Reported by Larry Jones.
92289 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
92291         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
92292         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
92294 2007-12-17  Jim Meyering  <meyering@redhat.com>
92296         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
92297         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
92298         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
92299         * modules/getcwd (Depends-on): Add openat.
92300         Reported by Petr Salinger.
92302 2007-12-17  Bruno Haible  <bruno@clisp.org>
92304         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
92305         avoid a segmentation fault of the configure test on x86_64 systems.
92307 2007-12-15  Jim Meyering  <meyering@redhat.com>
92309         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
92311 2007-12-13  Eric Blake  <ebb9@byu.net>
92313         Another fseek test.
92314         * tests/test-fseek.c (main): Also test ungetc handling.
92315         * tests/test-fseeko.c (main): Likewise.
92316         * modules/fseeko (Depends-on): Add verify.
92317         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
92318         large.
92319         Reported by Larry Jones.
92321         Fix fseeko on mingw.
92322         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
92323         seek.
92325         Beef up fseek tests.
92326         * tests/test-fseek.c (main): Also test eof handling.
92327         * tests/test-fseeko.c (main): Likewise.
92328         Reported by Larry Jones.
92330 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
92332         Fix fseeko on BSD-based platforms.
92333         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
92334         successful seek.
92336 2007-12-12  Eric Blake  <ebb9@byu.net>
92338         Allow circular dependency of separate libtests.a
92339         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
92340         when use_libtests.
92342 2007-12-11  Eric Blake  <ebb9@byu.net>
92344         Fix bug with -0.0L in previous patch.
92345         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
92346         * tests/test-isnan.c (main): Also test on zeroes.
92347         * tests/test-isnanf.c (main): Likewise.
92348         * tests/test-isnanl.h (main): Likewise.
92350         Detect pseudo-denormals on x86 even when cross-compiling.
92351         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
92352         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
92353         invalid bit patterns that happen to satisfy ==.
92355         Avoid link failures with separate libtests.a.
92356         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
92357         last, to satisfy circular dependencies.
92359 2007-12-11  Eric Blake  <ebb9@byu.net>
92360         and Bruno Haible  <bruno@clisp.org>
92362         Fix OpenBSD 4.0 <float.h> handling of long double.
92363         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
92364         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
92365         * doc/headers/float.texi (float.h): Document OpenBSD bug.
92367 2007-12-11  Jim Meyering  <meyering@redhat.com>
92369         * users.txt: Add libvirt.
92371         Support versions of autoconf prior to 2.59c.
92372         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
92373         if it is not already defined.
92375 2007-12-09  Bruno Haible  <bruno@clisp.org>
92377         Let 'gnulib-tool --import' collect sources needed for the tests in
92378         tests/ rather than in lib/.
92379         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
92380         argument. If true, add rules to generate libtests.a, and put libtests.a
92381         into $(LDADD). Consider source files in subdirectories and set
92382         uses_subdirs.
92383         (func_emit_initmacro_start, func_emit_initmacro_end,
92384         func_emit_initmacro_done): Pass all arguments explicitly.
92385         (func_import): Determine two module lists main_modules,
92386         testsrelated_modules. Determine use_libtests. Determine two variables
92387         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
92388         instead of just sed_transform_lib_file. Determine two variables
92389         main_files and testsrelated_files. Compute 'files' as the union of
92390         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
92391         func_add_or_update. In the generated gnulib-comp.m4, collect the
92392         object files for tests/ in different variables than those for lib/.
92393         Substitute LIBTESTS_LIBDEPS.
92394         (func_create_testdir): Combine the uses_subdirs results from
92395         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
92397 2007-12-09  Bruno Haible  <bruno@clisp.org>
92399         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
92400         the build-aux directory.
92402 2007-12-09  Bruno Haible  <bruno@clisp.org>
92404         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
92405         introduced on 2006-09-09.
92407 2007-12-07  Jim Meyering  <meyering@redhat.com>
92409         Let these macros work also with autoconf-2.59.
92410         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
92411         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
92412         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
92414 2007-12-06  Jim Meyering  <meyering@redhat.com>
92416         Avoid a configure-time syntax error in gl_FUNC_ACL.
92417         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
92418         function in each branch, before testing the cache variable.
92420 2007-12-04  Eric Blake  <ebb9@byu.net>
92422         Make scripts executable.
92423         * build-aux/config.guess: Add execute permissions.
92424         * build-aux/config.sub: Likewise.
92425         * build-aux/gendocs.sh: Likewise.
92427         Fix frexp on mingw.
92428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
92429         cross-compiling.
92430         * doc/functions/frexp.texi (frexp): Document the bug.
92432         Make cygwin fseeko check more reliable.
92433         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
92434         version numbers, rather than unrelated feature check.
92435         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
92436         * doc/functions/ftello.texi (ftello): Likewise.
92437         Reported by Bruno Haible.
92439         * m4/strerror.m4: Bump version number.
92441 2007-12-03  Bruno Haible  <bruno@clisp.org>
92443         * doc/functions/mprotect.texi: Mention the mingw problem.
92445 2007-12-03  Eric Blake  <ebb9@byu.net>
92447         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
92448         REPLACE_STRERROR is initialized before this macro.
92450 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
92452         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
92453         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
92454         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
92455         put -lsec in even for programs other than 'ls'.  This fixes a problem
92456         for gettext reported by Bruno Haible in
92457         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
92458         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
92459         Add support for Solaris 10.  This isn't efficient, but should get the
92460         job done for now.
92462 2007-12-03  James Youngman  <jay@gnu.org>
92464         * doc/regexprops-generic.texi: change "an close-group" to "a
92465         close-group" and "illegal" to "not allowed".
92467 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92469         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
92470         pr_byname.h. Needed for the rare case when the maintainer has done
92471         "make maintainer-clean" in the source directory and then attempts a
92472         build outside the source directory.
92473         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
92474         scripts_byname.h.
92476 2007-12-02  Martin Lambers  <marlam@marlam.de>
92477             Bruno Haible  <bruno@clisp.org>
92479         * lib/getpagesize.h: Remove file.
92480         * lib/unistd.in.h: Include declaration of getpagesize here.
92481         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
92482         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
92483         HAVE_SYS_PARAM_H.
92484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
92485         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
92486         * modules/getpagesize (Files): Remove lib/getpagesize.h.
92487         (Depends-on): Add unistd.
92488         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92489         (Include): Use <unistd.h> instead of getpagesize.h.
92490         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
92491         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
92492         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
92493         gl_GETPAGESIZE invocation, already handled by module dependency.
92494         * lib/pagealign_alloc.c: Don't include getpagesize.h.
92496 2007-12-02  Bruno Haible  <bruno@clisp.org>
92498         * modules/strings-tests: New file.
92499         * tests/test-strings.c: New file.
92501         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
92502         * lib/strings.in.h: New file.
92503         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
92504         * m4/strings_h.m4: New file.
92505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
92506         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
92507         * modules/strings: New file.
92508         * modules/string (Makefile.am): Update.
92509         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
92510         Reported by Karl Berry.
92512 2007-12-01  Eric Blake  <ebb9@byu.net>
92514         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
92515         accommodate fix in cygwin 1.5.25.
92517 2007-12-01  Jim Meyering  <meyering@redhat.com>
92519         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
92520         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
92521         that would inhibit utf8-optimization of a regexp containing line-
92522         or buffer-anchors, e.g., `^', `$'.
92524 2007-11-30  Bruno Haible  <bruno@clisp.org>
92526         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
92527         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
92528         glthread_recursive_lock_init.
92529         * lib/lock.c (glthread_recursive_lock_init)
92530         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
92531         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92533 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
92535         New function qset_acl, like set_acl but with syscall semantics.
92536         * lib/acl.h (qset_acl): New decl.
92537         * lib/acl.c (qset_acl): New function.
92538         (set_acl): Use new function.  Use more-consistent diagnostics.
92540 2007-11-28  Jim Meyering  <meyering@redhat.com>
92542         * modules/physmem (License): Change from GPL to LGPLv2+.
92544 2007-11-26  Bruno Haible  <bruno@clisp.org>
92546         * lib/vasnprintf.c (decode_long_double): Don't abort if the
92547         'long double' type has excess precision.
92548         Reported by Jim Meyering in
92549         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
92551 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92553         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
92554         Sync from <http://gnu.org/licenses>.
92555         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
92556         with license text from same location.
92557         * doc/maintain.texi, doc/standards.texi:  Sync from
92558         <http://savannah.gnu.org/projects/gnustandards>.
92560 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
92561         and Jim Meyering  <meyering@redhat.com>
92563         Adjust getdate' grammar to accept a slightly more regular language.
92564         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
92565         Before, the former was rejected.
92566         * lib/getdate.y (digits_to_date_time): New function, factored
92567         out of ...
92568         (number): ...here.  Just call digits_to_date_time.
92569         (hybrid): New non-terminal to handle an <unsigned number,
92570         signed relative offset> sequence consistently.
92572 2007-11-18  Jim Meyering  <meyering@redhat.com>
92574         Pull my changes from coreutils:
92575         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
92576         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
92577         use of $gnulib_tool_option_extras, so that it's separated from the
92578         preceding argument.
92580         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
92581         * build-aux/bootstrap (cp_mark_as_generated): Create any required
92582         parent destination directories before copying a file into place.
92584 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
92586         bootstrap: work also with 4-argument variant of AC_INIT
92587         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
92589 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92591         Port test-getaddrinfo to Solaris.
92592         Problem reported by Bruno Haible in
92593         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
92594         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
92595         explanation of setting 'hints'.
92596         Don't reject an implementation merely because it returns EAI_SERVICE.
92597         (EAI_SERVICE): Define to 0 if not defined.
92599 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
92601         The license of gnu-make and posix-shell is now "GPLed build tool".
92602         * modules/gnu-make (License): Likewise.
92603         * modules/posix-shell (License): Likewise.
92605         New module posix-shell, for determining a POSIX shell
92606         or perhaps something that is close enough to a POSIX shell.
92607         * m4/posix-shell.m4: New file.
92608         * modules/posix-shell: New file.
92610         * MODULES.html.sh: Mention new module.
92612         New module gnu-make, for determining whether we're using GNU Make.
92613         * m4/gnu-make.m4: New file.
92614         * modules/gnu-make: New file.
92615         * MODULES.html.sh: Mention new module.
92617 2007-11-14  Jim Meyering  <meyering@redhat.com>
92619         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
92620         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
92621         use this macro to create a function _definition_.
92622         Remove useless "#undef ARGMATCH_DIE".
92624 2007-11-14  Bruno Haible  <bruno@clisp.org>
92626         * lib/config.charset: Update for OpenBSD 4.1.
92627         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
92629 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
92631         Document 64-bit #if problems in stdint.texi.
92632         * doc/headers/stdint.texi (stdint.h): Mention problems with
92633         64-bit-#if, and how to work around them.
92635         Don't insist on 'long long int' support in the preprocessor.  It
92636         breaks too many things.  For example, PRIdMAX still uses a 'long
92637         long int' format with the latest Sun compiler, even though
92638         HAVE_LONG_LONG_INT isn't defined due to that compiler's
92639         preprocessor problem.  This causes the latest coreutils to dump
92640         core on Solaris 10 sparc with the Sun C compiler.
92641         Instead, fix the 2007-10-16 problem in a different way, by evaluating
92642         the troublesome expressions at configure-time, not at #if-time.
92643         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
92644         preprocessor.
92645         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
92646         compile-time C checks, done at 'configure'-time.
92647         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
92648         * modules/inttypes (Makefile): Substitute the new symbols that
92649         gl_INTTYPES_H now generates.
92650         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
92652 2007-11-12  Bruno Haible  <bruno@clisp.org>
92654         Tests for Unicode character classification functions.
92656         * modules/unictype/bidicategory-byname-tests: New file.
92657         * modules/unictype/bidicategory-name-tests: New file.
92658         * modules/unictype/bidicategory-of-tests: New file.
92659         * modules/unictype/bidicategory-test-tests: New file.
92660         * modules/unictype/block-list-tests: New file.
92661         * modules/unictype/block-of-tests: New file.
92662         * modules/unictype/block-test-tests: New file.
92663         * modules/unictype/category-C-tests: New file.
92664         * modules/unictype/category-Cc-tests: New file.
92665         * modules/unictype/category-Cf-tests: New file.
92666         * modules/unictype/category-Cn-tests: New file.
92667         * modules/unictype/category-Co-tests: New file.
92668         * modules/unictype/category-Cs-tests: New file.
92669         * modules/unictype/category-L-tests: New file.
92670         * modules/unictype/category-Ll-tests: New file.
92671         * modules/unictype/category-Lm-tests: New file.
92672         * modules/unictype/category-Lo-tests: New file.
92673         * modules/unictype/category-Lt-tests: New file.
92674         * modules/unictype/category-Lu-tests: New file.
92675         * modules/unictype/category-M-tests: New file.
92676         * modules/unictype/category-Mc-tests: New file.
92677         * modules/unictype/category-Me-tests: New file.
92678         * modules/unictype/category-Mn-tests: New file.
92679         * modules/unictype/category-N-tests: New file.
92680         * modules/unictype/category-Nd-tests: New file.
92681         * modules/unictype/category-Nl-tests: New file.
92682         * modules/unictype/category-No-tests: New file.
92683         * modules/unictype/category-P-tests: New file.
92684         * modules/unictype/category-Pc-tests: New file.
92685         * modules/unictype/category-Pd-tests: New file.
92686         * modules/unictype/category-Pe-tests: New file.
92687         * modules/unictype/category-Pf-tests: New file.
92688         * modules/unictype/category-Pi-tests: New file.
92689         * modules/unictype/category-Po-tests: New file.
92690         * modules/unictype/category-Ps-tests: New file.
92691         * modules/unictype/category-S-tests: New file.
92692         * modules/unictype/category-Sc-tests: New file.
92693         * modules/unictype/category-Sk-tests: New file.
92694         * modules/unictype/category-Sm-tests: New file.
92695         * modules/unictype/category-So-tests: New file.
92696         * modules/unictype/category-Z-tests: New file.
92697         * modules/unictype/category-Zl-tests: New file.
92698         * modules/unictype/category-Zp-tests: New file.
92699         * modules/unictype/category-Zs-tests: New file.
92700         * modules/unictype/category-and-not-tests: New file.
92701         * modules/unictype/category-and-tests: New file.
92702         * modules/unictype/category-byname-tests: New file.
92703         * modules/unictype/category-name-tests: New file.
92704         * modules/unictype/category-none-tests: New file.
92705         * modules/unictype/category-of-tests: New file.
92706         * modules/unictype/category-or-tests: New file.
92707         * modules/unictype/category-test-withtable-tests: New file.
92708         * modules/unictype/combining-class-tests: New file.
92709         * modules/unictype/ctype-alnum-tests: New file.
92710         * modules/unictype/ctype-alpha-tests: New file.
92711         * modules/unictype/ctype-blank-tests: New file.
92712         * modules/unictype/ctype-cntrl-tests: New file.
92713         * modules/unictype/ctype-digit-tests: New file.
92714         * modules/unictype/ctype-graph-tests: New file.
92715         * modules/unictype/ctype-lower-tests: New file.
92716         * modules/unictype/ctype-print-tests: New file.
92717         * modules/unictype/ctype-punct-tests: New file.
92718         * modules/unictype/ctype-space-tests: New file.
92719         * modules/unictype/ctype-upper-tests: New file.
92720         * modules/unictype/ctype-xdigit-tests: New file.
92721         * modules/unictype/decimal-digit-tests: New file.
92722         * modules/unictype/digit-tests: New file.
92723         * modules/unictype/mirror-tests: New file.
92724         * modules/unictype/numeric-tests: New file.
92725         * modules/unictype/property-alphabetic-tests: New file.
92726         * modules/unictype/property-ascii-hex-digit-tests: New file.
92727         * modules/unictype/property-bidi-arabic-digit-tests: New file.
92728         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
92729         * modules/unictype/property-bidi-block-separator-tests: New file.
92730         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
92731         * modules/unictype/property-bidi-common-separator-tests: New file.
92732         * modules/unictype/property-bidi-control-tests: New file.
92733         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
92734         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
92735         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
92736         * modules/unictype/property-bidi-european-digit-tests: New file.
92737         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
92738         * modules/unictype/property-bidi-left-to-right-tests: New file.
92739         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
92740         * modules/unictype/property-bidi-other-neutral-tests: New file.
92741         * modules/unictype/property-bidi-pdf-tests: New file.
92742         * modules/unictype/property-bidi-segment-separator-tests: New file.
92743         * modules/unictype/property-bidi-whitespace-tests: New file.
92744         * modules/unictype/property-byname-tests: New file.
92745         * modules/unictype/property-combining-tests: New file.
92746         * modules/unictype/property-composite-tests: New file.
92747         * modules/unictype/property-currency-symbol-tests: New file.
92748         * modules/unictype/property-dash-tests: New file.
92749         * modules/unictype/property-decimal-digit-tests: New file.
92750         * modules/unictype/property-default-ignorable-code-point-tests: New file.
92751         * modules/unictype/property-deprecated-tests: New file.
92752         * modules/unictype/property-diacritic-tests: New file.
92753         * modules/unictype/property-extender-tests: New file.
92754         * modules/unictype/property-format-control-tests: New file.
92755         * modules/unictype/property-grapheme-base-tests: New file.
92756         * modules/unictype/property-grapheme-extend-tests: New file.
92757         * modules/unictype/property-grapheme-link-tests: New file.
92758         * modules/unictype/property-hex-digit-tests: New file.
92759         * modules/unictype/property-hyphen-tests: New file.
92760         * modules/unictype/property-id-continue-tests: New file.
92761         * modules/unictype/property-id-start-tests: New file.
92762         * modules/unictype/property-ideographic-tests: New file.
92763         * modules/unictype/property-ids-binary-operator-tests: New file.
92764         * modules/unictype/property-ids-trinary-operator-tests: New file.
92765         * modules/unictype/property-ignorable-control-tests: New file.
92766         * modules/unictype/property-iso-control-tests: New file.
92767         * modules/unictype/property-join-control-tests: New file.
92768         * modules/unictype/property-left-of-pair-tests: New file.
92769         * modules/unictype/property-line-separator-tests: New file.
92770         * modules/unictype/property-logical-order-exception-tests: New file.
92771         * modules/unictype/property-lowercase-tests: New file.
92772         * modules/unictype/property-math-tests: New file.
92773         * modules/unictype/property-non-break-tests: New file.
92774         * modules/unictype/property-not-a-character-tests: New file.
92775         * modules/unictype/property-numeric-tests: New file.
92776         * modules/unictype/property-other-alphabetic-tests: New file.
92777         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
92778         * modules/unictype/property-other-grapheme-extend-tests: New file.
92779         * modules/unictype/property-other-id-continue-tests: New file.
92780         * modules/unictype/property-other-id-start-tests: New file.
92781         * modules/unictype/property-other-lowercase-tests: New file.
92782         * modules/unictype/property-other-math-tests: New file.
92783         * modules/unictype/property-other-uppercase-tests: New file.
92784         * modules/unictype/property-paired-punctuation-tests: New file.
92785         * modules/unictype/property-paragraph-separator-tests: New file.
92786         * modules/unictype/property-pattern-syntax-tests: New file.
92787         * modules/unictype/property-pattern-white-space-tests: New file.
92788         * modules/unictype/property-private-use-tests: New file.
92789         * modules/unictype/property-punctuation-tests: New file.
92790         * modules/unictype/property-quotation-mark-tests: New file.
92791         * modules/unictype/property-radical-tests: New file.
92792         * modules/unictype/property-sentence-terminal-tests: New file.
92793         * modules/unictype/property-soft-dotted-tests: New file.
92794         * modules/unictype/property-space-tests: New file.
92795         * modules/unictype/property-terminal-punctuation-tests: New file.
92796         * modules/unictype/property-test-tests: New file.
92797         * modules/unictype/property-titlecase-tests: New file.
92798         * modules/unictype/property-unassigned-code-value-tests: New file.
92799         * modules/unictype/property-unified-ideograph-tests: New file.
92800         * modules/unictype/property-uppercase-tests: New file.
92801         * modules/unictype/property-variation-selector-tests: New file.
92802         * modules/unictype/property-white-space-tests: New file.
92803         * modules/unictype/property-xid-continue-tests: New file.
92804         * modules/unictype/property-xid-start-tests: New file.
92805         * modules/unictype/property-zero-width-tests: New file.
92806         * modules/unictype/scripts-tests: New file.
92807         * modules/unictype/syntax-c-ident-tests: New file.
92808         * modules/unictype/syntax-c-whitespace-tests: New file.
92809         * modules/unictype/syntax-java-ident-tests: New file.
92810         * modules/unictype/syntax-java-whitespace-tests: New file.
92811         * tests/unictype/test-bidi_byname.c: New file.
92812         * tests/unictype/test-bidi_name.c: New file.
92813         * tests/unictype/test-bidi_of.c: New file.
92814         * tests/unictype/test-bidi_test.c: New file.
92815         * tests/unictype/test-block_list.c: New file.
92816         * tests/unictype/test-block_of.c: New file.
92817         * tests/unictype/test-block_test.c: New file.
92818         * tests/unictype/test-categ_and.c: New file.
92819         * tests/unictype/test-categ_and_not.c: New file.
92820         * tests/unictype/test-categ_byname.c: New file.
92821         * tests/unictype/test-categ_name.c: New file.
92822         * tests/unictype/test-categ_none.c: New file.
92823         * tests/unictype/test-categ_of.c: New file.
92824         * tests/unictype/test-categ_or.c: New file.
92825         * tests/unictype/test-categ_test_withtable.c: New file.
92826         * tests/unictype/test-combining.c: New file.
92827         * tests/unictype/test-decdigit.c: New file.
92828         * tests/unictype/test-digit.c: New file.
92829         * tests/unictype/test-mirror.c: New file.
92830         * tests/unictype/test-numeric.c: New file.
92831         * tests/unictype/test-pr_byname.c: New file.
92832         * tests/unictype/test-pr_test.c: New file.
92833         * tests/unictype/test-predicate-part1.h: New file.
92834         * tests/unictype/test-predicate-part2.h: New file.
92835         * tests/unictype/test-scripts.c: New file.
92836         * tests/unictype/test-sy_c_ident.c: New file.
92837         * tests/unictype/test-sy_java_ident.c: New file.
92839         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
92840         for Unicode 5.0.0.
92841         * tests/unictype/test-categ_Cc.c: Likewise.
92842         * tests/unictype/test-categ_Cf.c: Likewise.
92843         * tests/unictype/test-categ_Cn.c: Likewise.
92844         * tests/unictype/test-categ_Co.c: Likewise.
92845         * tests/unictype/test-categ_Cs.c: Likewise.
92846         * tests/unictype/test-categ_L.c: Likewise.
92847         * tests/unictype/test-categ_Ll.c: Likewise.
92848         * tests/unictype/test-categ_Lm.c: Likewise.
92849         * tests/unictype/test-categ_Lo.c: Likewise.
92850         * tests/unictype/test-categ_Lt.c: Likewise.
92851         * tests/unictype/test-categ_Lu.c: Likewise.
92852         * tests/unictype/test-categ_M.c: Likewise.
92853         * tests/unictype/test-categ_Mc.c: Likewise.
92854         * tests/unictype/test-categ_Me.c: Likewise.
92855         * tests/unictype/test-categ_Mn.c: Likewise.
92856         * tests/unictype/test-categ_N.c: Likewise.
92857         * tests/unictype/test-categ_Nd.c: Likewise.
92858         * tests/unictype/test-categ_Nl.c: Likewise.
92859         * tests/unictype/test-categ_No.c: Likewise.
92860         * tests/unictype/test-categ_P.c: Likewise.
92861         * tests/unictype/test-categ_Pc.c: Likewise.
92862         * tests/unictype/test-categ_Pd.c: Likewise.
92863         * tests/unictype/test-categ_Pe.c: Likewise.
92864         * tests/unictype/test-categ_Pf.c: Likewise.
92865         * tests/unictype/test-categ_Pi.c: Likewise.
92866         * tests/unictype/test-categ_Po.c: Likewise.
92867         * tests/unictype/test-categ_Ps.c: Likewise.
92868         * tests/unictype/test-categ_S.c: Likewise.
92869         * tests/unictype/test-categ_Sc.c: Likewise.
92870         * tests/unictype/test-categ_Sk.c: Likewise.
92871         * tests/unictype/test-categ_Sm.c: Likewise.
92872         * tests/unictype/test-categ_So.c: Likewise.
92873         * tests/unictype/test-categ_Z.c: Likewise.
92874         * tests/unictype/test-categ_Zl.c: Likewise.
92875         * tests/unictype/test-categ_Zp.c: Likewise.
92876         * tests/unictype/test-categ_Zs.c: Likewise.
92877         * tests/unictype/test-ctype_alnum.c: Likewise.
92878         * tests/unictype/test-ctype_alpha.c: Likewise.
92879         * tests/unictype/test-ctype_blank.c: Likewise.
92880         * tests/unictype/test-ctype_cntrl.c: Likewise.
92881         * tests/unictype/test-ctype_digit.c: Likewise.
92882         * tests/unictype/test-ctype_graph.c: Likewise.
92883         * tests/unictype/test-ctype_lower.c: Likewise.
92884         * tests/unictype/test-ctype_print.c: Likewise.
92885         * tests/unictype/test-ctype_punct.c: Likewise.
92886         * tests/unictype/test-ctype_space.c: Likewise.
92887         * tests/unictype/test-ctype_upper.c: Likewise.
92888         * tests/unictype/test-ctype_xdigit.c: Likewise.
92889         * tests/unictype/test-decdigit.h: Likewise.
92890         * tests/unictype/test-digit.h: Likewise.
92891         * tests/unictype/test-numeric.h: Likewise.
92892         * tests/unictype/test-pr_alphabetic.c: Likewise.
92893         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
92894         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
92895         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
92896         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
92897         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
92898         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
92899         * tests/unictype/test-pr_bidi_control.c: Likewise.
92900         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
92901         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
92902         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
92903         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
92904         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
92905         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
92906         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
92907         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
92908         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
92909         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
92910         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
92911         * tests/unictype/test-pr_combining.c: Likewise.
92912         * tests/unictype/test-pr_composite.c: Likewise.
92913         * tests/unictype/test-pr_currency_symbol.c: Likewise.
92914         * tests/unictype/test-pr_dash.c: Likewise.
92915         * tests/unictype/test-pr_decimal_digit.c: Likewise.
92916         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
92917         * tests/unictype/test-pr_deprecated.c: Likewise.
92918         * tests/unictype/test-pr_diacritic.c: Likewise.
92919         * tests/unictype/test-pr_extender.c: Likewise.
92920         * tests/unictype/test-pr_format_control.c: Likewise.
92921         * tests/unictype/test-pr_grapheme_base.c: Likewise.
92922         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
92923         * tests/unictype/test-pr_grapheme_link.c: Likewise.
92924         * tests/unictype/test-pr_hex_digit.c: Likewise.
92925         * tests/unictype/test-pr_hyphen.c: Likewise.
92926         * tests/unictype/test-pr_id_continue.c: Likewise.
92927         * tests/unictype/test-pr_id_start.c: Likewise.
92928         * tests/unictype/test-pr_ideographic.c: Likewise.
92929         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
92930         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
92931         * tests/unictype/test-pr_ignorable_control.c: Likewise.
92932         * tests/unictype/test-pr_iso_control.c: Likewise.
92933         * tests/unictype/test-pr_join_control.c: Likewise.
92934         * tests/unictype/test-pr_left_of_pair.c: Likewise.
92935         * tests/unictype/test-pr_line_separator.c: Likewise.
92936         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
92937         * tests/unictype/test-pr_lowercase.c: Likewise.
92938         * tests/unictype/test-pr_math.c: Likewise.
92939         * tests/unictype/test-pr_non_break.c: Likewise.
92940         * tests/unictype/test-pr_not_a_character.c: Likewise.
92941         * tests/unictype/test-pr_numeric.c: Likewise.
92942         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
92943         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
92944         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
92945         * tests/unictype/test-pr_other_id_continue.c: Likewise.
92946         * tests/unictype/test-pr_other_id_start.c: Likewise.
92947         * tests/unictype/test-pr_other_lowercase.c: Likewise.
92948         * tests/unictype/test-pr_other_math.c: Likewise.
92949         * tests/unictype/test-pr_other_uppercase.c: Likewise.
92950         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
92951         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
92952         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
92953         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
92954         * tests/unictype/test-pr_private_use.c: Likewise.
92955         * tests/unictype/test-pr_punctuation.c: Likewise.
92956         * tests/unictype/test-pr_quotation_mark.c: Likewise.
92957         * tests/unictype/test-pr_radical.c: Likewise.
92958         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
92959         * tests/unictype/test-pr_soft_dotted.c: Likewise.
92960         * tests/unictype/test-pr_space.c: Likewise.
92961         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
92962         * tests/unictype/test-pr_titlecase.c: Likewise.
92963         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
92964         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
92965         * tests/unictype/test-pr_uppercase.c: Likewise.
92966         * tests/unictype/test-pr_variation_selector.c: Likewise.
92967         * tests/unictype/test-pr_white_space.c: Likewise.
92968         * tests/unictype/test-pr_xid_continue.c: Likewise.
92969         * tests/unictype/test-pr_xid_start.c: Likewise.
92970         * tests/unictype/test-pr_zero_width.c: Likewise.
92971         * tests/unictype/test-sy_c_whitespace.c: Likewise.
92972         * tests/unictype/test-sy_java_whitespace.c: Likewise.
92974 2007-11-12  Bruno Haible  <bruno@clisp.org>
92976         Unicode character classification functions.
92977         * lib/unictype.h: New file.
92978         * modules/unictype/base: New file.
92979         * modules/unictype/category-L: New file.
92980         * modules/unictype/category-Lu: New file.
92981         * modules/unictype/category-Ll: New file.
92982         * modules/unictype/category-Lt: New file.
92983         * modules/unictype/category-Lm: New file.
92984         * modules/unictype/category-Lo: New file.
92985         * modules/unictype/category-M: New file.
92986         * modules/unictype/category-Mn: New file.
92987         * modules/unictype/category-Mc: New file.
92988         * modules/unictype/category-Me: New file.
92989         * modules/unictype/category-N: New file.
92990         * modules/unictype/category-Nd: New file.
92991         * modules/unictype/category-Nl: New file.
92992         * modules/unictype/category-No: New file.
92993         * modules/unictype/category-P: New file.
92994         * modules/unictype/category-Pc: New file.
92995         * modules/unictype/category-Pd: New file.
92996         * modules/unictype/category-Ps: New file.
92997         * modules/unictype/category-Pe: New file.
92998         * modules/unictype/category-Pi: New file.
92999         * modules/unictype/category-Pf: New file.
93000         * modules/unictype/category-Po: New file.
93001         * modules/unictype/category-S: New file.
93002         * modules/unictype/category-Sm: New file.
93003         * modules/unictype/category-Sc: New file.
93004         * modules/unictype/category-Sk: New file.
93005         * modules/unictype/category-So: New file.
93006         * modules/unictype/category-Z: New file.
93007         * modules/unictype/category-Zs: New file.
93008         * modules/unictype/category-Zl: New file.
93009         * modules/unictype/category-Zp: New file.
93010         * modules/unictype/category-C: New file.
93011         * modules/unictype/category-Cc: New file.
93012         * modules/unictype/category-Cf: New file.
93013         * modules/unictype/category-Cs: New file.
93014         * modules/unictype/category-Co: New file.
93015         * modules/unictype/category-Cn: New file.
93016         * modules/unictype/category-or: New file.
93017         * modules/unictype/category-of: New file.
93018         * modules/unictype/category-test: New file.
93019         * modules/unictype/category-test-withtable: New file.
93020         * modules/unictype/category-byname: New file.
93021         * modules/unictype/category-none: New file.
93022         * modules/unictype/category-and: New file.
93023         * modules/unictype/category-and-not: New file.
93024         * modules/unictype/category-name: New file.
93025         * modules/unictype/combining-class: New file.
93026         * modules/unictype/category-all: New file.
93027         * modules/unictype/bidicategory-all: New file.
93028         * modules/unictype/bidicategory-byname: New file.
93029         * modules/unictype/bidicategory-name: New file.
93030         * modules/unictype/bidicategory-of: New file.
93031         * modules/unictype/bidicategory-test: New file.
93032         * modules/unictype/decimal-digit: New file.
93033         * modules/unictype/digit: New file.
93034         * modules/unictype/numeric: New file.
93035         * modules/unictype/mirror: New file.
93036         * modules/unictype/property-white-space: New file.
93037         * modules/unictype/property-alphabetic: New file.
93038         * modules/unictype/property-other-alphabetic: New file.
93039         * modules/unictype/property-not-a-character: New file.
93040         * modules/unictype/property-default-ignorable-code-point: New file.
93041         * modules/unictype/property-other-default-ignorable-code-point: New
93042         file.
93043         * modules/unictype/property-deprecated: New file.
93044         * modules/unictype/property-logical-order-exception: New file.
93045         * modules/unictype/property-variation-selector: New file.
93046         * modules/unictype/property-private-use: New file.
93047         * modules/unictype/property-unassigned-code-value: New file.
93048         * modules/unictype/property-uppercase: New file.
93049         * modules/unictype/property-other-uppercase: New file.
93050         * modules/unictype/property-lowercase: New file.
93051         * modules/unictype/property-other-lowercase: New file.
93052         * modules/unictype/property-titlecase: New file.
93053         * modules/unictype/property-soft-dotted: New file.
93054         * modules/unictype/property-id-start: New file.
93055         * modules/unictype/property-other-id-start: New file.
93056         * modules/unictype/property-id-continue: New file.
93057         * modules/unictype/property-other-id-continue: New file.
93058         * modules/unictype/property-xid-start: New file.
93059         * modules/unictype/property-xid-continue: New file.
93060         * modules/unictype/property-pattern-white-space: New file.
93061         * modules/unictype/property-pattern-syntax: New file.
93062         * modules/unictype/property-join-control: New file.
93063         * modules/unictype/property-grapheme-base: New file.
93064         * modules/unictype/property-grapheme-extend: New file.
93065         * modules/unictype/property-other-grapheme-extend: New file.
93066         * modules/unictype/property-grapheme-link: New file.
93067         * modules/unictype/property-bidi-control: New file.
93068         * modules/unictype/property-bidi-left-to-right: New file.
93069         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
93070         * modules/unictype/property-bidi-arabic-right-to-left: New file.
93071         * modules/unictype/property-bidi-european-digit: New file.
93072         * modules/unictype/property-bidi-eur-num-separator: New file.
93073         * modules/unictype/property-bidi-eur-num-terminator: New file.
93074         * modules/unictype/property-bidi-arabic-digit: New file.
93075         * modules/unictype/property-bidi-common-separator: New file.
93076         * modules/unictype/property-bidi-block-separator: New file.
93077         * modules/unictype/property-bidi-segment-separator: New file.
93078         * modules/unictype/property-bidi-whitespace: New file.
93079         * modules/unictype/property-bidi-non-spacing-mark: New file.
93080         * modules/unictype/property-bidi-boundary-neutral: New file.
93081         * modules/unictype/property-bidi-pdf: New file.
93082         * modules/unictype/property-bidi-embedding-or-override: New file.
93083         * modules/unictype/property-bidi-other-neutral: New file.
93084         * modules/unictype/property-hex-digit: New file.
93085         * modules/unictype/property-ascii-hex-digit: New file.
93086         * modules/unictype/property-ideographic: New file.
93087         * modules/unictype/property-unified-ideograph: New file.
93088         * modules/unictype/property-radical: New file.
93089         * modules/unictype/property-ids-binary-operator: New file.
93090         * modules/unictype/property-ids-trinary-operator: New file.
93091         * modules/unictype/property-zero-width: New file.
93092         * modules/unictype/property-space: New file.
93093         * modules/unictype/property-non-break: New file.
93094         * modules/unictype/property-iso-control: New file.
93095         * modules/unictype/property-format-control: New file.
93096         * modules/unictype/property-dash: New file.
93097         * modules/unictype/property-hyphen: New file.
93098         * modules/unictype/property-punctuation: New file.
93099         * modules/unictype/property-line-separator: New file.
93100         * modules/unictype/property-paragraph-separator: New file.
93101         * modules/unictype/property-quotation-mark: New file.
93102         * modules/unictype/property-sentence-terminal: New file.
93103         * modules/unictype/property-terminal-punctuation: New file.
93104         * modules/unictype/property-currency-symbol: New file.
93105         * modules/unictype/property-math: New file.
93106         * modules/unictype/property-other-math: New file.
93107         * modules/unictype/property-paired-punctuation: New file.
93108         * modules/unictype/property-left-of-pair: New file.
93109         * modules/unictype/property-combining: New file.
93110         * modules/unictype/property-composite: New file.
93111         * modules/unictype/property-decimal-digit: New file.
93112         * modules/unictype/property-numeric: New file.
93113         * modules/unictype/property-diacritic: New file.
93114         * modules/unictype/property-extender: New file.
93115         * modules/unictype/property-ignorable-control: New file.
93116         * modules/unictype/property-test: New file.
93117         * modules/unictype/property-byname: New file.
93118         * modules/unictype/property-all: New file.
93119         * modules/unictype/scripts: New file.
93120         * modules/unictype/scripts-all: New file.
93121         * modules/unictype/block-of: New file.
93122         * modules/unictype/block-test: New file.
93123         * modules/unictype/block-list: New file.
93124         * modules/unictype/block-all: New file.
93125         * modules/unictype/syntax-c-whitespace: New file.
93126         * modules/unictype/syntax-java-whitespace: New file.
93127         * modules/unictype/syntax-c-ident: New file.
93128         * modules/unictype/syntax-java-ident: New file.
93129         * modules/unictype/ctype-alnum: New file.
93130         * modules/unictype/ctype-alpha: New file.
93131         * modules/unictype/ctype-cntrl: New file.
93132         * modules/unictype/ctype-digit: New file.
93133         * modules/unictype/ctype-graph: New file.
93134         * modules/unictype/ctype-lower: New file.
93135         * modules/unictype/ctype-print: New file.
93136         * modules/unictype/ctype-punct: New file.
93137         * modules/unictype/ctype-space: New file.
93138         * modules/unictype/ctype-upper: New file.
93139         * modules/unictype/ctype-xdigit: New file.
93140         * modules/unictype/ctype-blank: New file.
93141         * lib/unictype/bidi_byname.c: New file.
93142         * lib/unictype/bidi_name.c: New file.
93143         * lib/unictype/bidi_of.c: New file.
93144         * lib/unictype/bidi_test.c: New file.
93145         * lib/unictype/bitmap.h: New file.
93146         * lib/unictype/block_test.c: New file.
93147         * lib/unictype/blocks.c: New file.
93148         * lib/unictype/categ_C.c: New file.
93149         * lib/unictype/categ_Cc.c: New file.
93150         * lib/unictype/categ_Cf.c: New file.
93151         * lib/unictype/categ_Cn.c: New file.
93152         * lib/unictype/categ_Co.c: New file.
93153         * lib/unictype/categ_Cs.c: New file.
93154         * lib/unictype/categ_L.c: New file.
93155         * lib/unictype/categ_Ll.c: New file.
93156         * lib/unictype/categ_Lm.c: New file.
93157         * lib/unictype/categ_Lo.c: New file.
93158         * lib/unictype/categ_Lt.c: New file.
93159         * lib/unictype/categ_Lu.c: New file.
93160         * lib/unictype/categ_M.c: New file.
93161         * lib/unictype/categ_Mc.c: New file.
93162         * lib/unictype/categ_Me.c: New file.
93163         * lib/unictype/categ_Mn.c: New file.
93164         * lib/unictype/categ_N.c: New file.
93165         * lib/unictype/categ_Nd.c: New file.
93166         * lib/unictype/categ_Nl.c: New file.
93167         * lib/unictype/categ_No.c: New file.
93168         * lib/unictype/categ_P.c: New file.
93169         * lib/unictype/categ_Pc.c: New file.
93170         * lib/unictype/categ_Pd.c: New file.
93171         * lib/unictype/categ_Pe.c: New file.
93172         * lib/unictype/categ_Pf.c: New file.
93173         * lib/unictype/categ_Pi.c: New file.
93174         * lib/unictype/categ_Po.c: New file.
93175         * lib/unictype/categ_Ps.c: New file.
93176         * lib/unictype/categ_S.c: New file.
93177         * lib/unictype/categ_Sc.c: New file.
93178         * lib/unictype/categ_Sk.c: New file.
93179         * lib/unictype/categ_Sm.c: New file.
93180         * lib/unictype/categ_So.c: New file.
93181         * lib/unictype/categ_Z.c: New file.
93182         * lib/unictype/categ_Zl.c: New file.
93183         * lib/unictype/categ_Zp.c: New file.
93184         * lib/unictype/categ_Zs.c: New file.
93185         * lib/unictype/categ_and.c: New file.
93186         * lib/unictype/categ_and_not.c: New file.
93187         * lib/unictype/categ_byname.c: New file.
93188         * lib/unictype/categ_name.c: New file.
93189         * lib/unictype/categ_none.c: New file.
93190         * lib/unictype/categ_of.c: New file.
93191         * lib/unictype/categ_or.c: New file.
93192         * lib/unictype/categ_test.c: New file.
93193         * lib/unictype/combining.c: New file.
93194         * lib/unictype/ctype_alnum.c: New file.
93195         * lib/unictype/ctype_alpha.c: New file.
93196         * lib/unictype/ctype_blank.c: New file.
93197         * lib/unictype/ctype_cntrl.c: New file.
93198         * lib/unictype/ctype_digit.c: New file.
93199         * lib/unictype/ctype_graph.c: New file.
93200         * lib/unictype/ctype_lower.c: New file.
93201         * lib/unictype/ctype_print.c: New file.
93202         * lib/unictype/ctype_punct.c: New file.
93203         * lib/unictype/ctype_space.c: New file.
93204         * lib/unictype/ctype_upper.c: New file.
93205         * lib/unictype/ctype_xdigit.c: New file.
93206         * lib/unictype/decdigit.c: New file.
93207         * lib/unictype/digit.c: New file.
93208         * lib/unictype/identsyntaxmap.h: New file.
93209         * lib/unictype/mirror.c: New file.
93210         * lib/unictype/numeric.c: New file.
93211         * lib/unictype/pr_alphabetic.c: New file.
93212         * lib/unictype/pr_ascii_hex_digit.c: New file.
93213         * lib/unictype/pr_bidi_arabic_digit.c: New file.
93214         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
93215         * lib/unictype/pr_bidi_block_separator.c: New file.
93216         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
93217         * lib/unictype/pr_bidi_common_separator.c: New file.
93218         * lib/unictype/pr_bidi_control.c: New file.
93219         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
93220         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
93221         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
93222         * lib/unictype/pr_bidi_european_digit.c: New file.
93223         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
93224         * lib/unictype/pr_bidi_left_to_right.c: New file.
93225         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
93226         * lib/unictype/pr_bidi_other_neutral.c: New file.
93227         * lib/unictype/pr_bidi_pdf.c: New file.
93228         * lib/unictype/pr_bidi_segment_separator.c: New file.
93229         * lib/unictype/pr_bidi_whitespace.c: New file.
93230         * lib/unictype/pr_byname.c: New file.
93231         * lib/unictype/pr_byname.gperf: New file.
93232         * lib/unictype/pr_combining.c: New file.
93233         * lib/unictype/pr_composite.c: New file.
93234         * lib/unictype/pr_currency_symbol.c: New file.
93235         * lib/unictype/pr_dash.c: New file.
93236         * lib/unictype/pr_decimal_digit.c: New file.
93237         * lib/unictype/pr_default_ignorable_code_point.c: New file.
93238         * lib/unictype/pr_deprecated.c: New file.
93239         * lib/unictype/pr_diacritic.c: New file.
93240         * lib/unictype/pr_extender.c: New file.
93241         * lib/unictype/pr_format_control.c: New file.
93242         * lib/unictype/pr_grapheme_base.c: New file.
93243         * lib/unictype/pr_grapheme_extend.c: New file.
93244         * lib/unictype/pr_grapheme_link.c: New file.
93245         * lib/unictype/pr_hex_digit.c: New file.
93246         * lib/unictype/pr_hyphen.c: New file.
93247         * lib/unictype/pr_id_continue.c: New file.
93248         * lib/unictype/pr_id_start.c: New file.
93249         * lib/unictype/pr_ideographic.c: New file.
93250         * lib/unictype/pr_ids_binary_operator.c: New file.
93251         * lib/unictype/pr_ids_trinary_operator.c: New file.
93252         * lib/unictype/pr_ignorable_control.c: New file.
93253         * lib/unictype/pr_iso_control.c: New file.
93254         * lib/unictype/pr_join_control.c: New file.
93255         * lib/unictype/pr_left_of_pair.c: New file.
93256         * lib/unictype/pr_line_separator.c: New file.
93257         * lib/unictype/pr_logical_order_exception.c: New file.
93258         * lib/unictype/pr_lowercase.c: New file.
93259         * lib/unictype/pr_math.c: New file.
93260         * lib/unictype/pr_non_break.c: New file.
93261         * lib/unictype/pr_not_a_character.c: New file.
93262         * lib/unictype/pr_numeric.c: New file.
93263         * lib/unictype/pr_other_alphabetic.c: New file.
93264         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
93265         * lib/unictype/pr_other_grapheme_extend.c: New file.
93266         * lib/unictype/pr_other_id_continue.c: New file.
93267         * lib/unictype/pr_other_id_start.c: New file.
93268         * lib/unictype/pr_other_lowercase.c: New file.
93269         * lib/unictype/pr_other_math.c: New file.
93270         * lib/unictype/pr_other_uppercase.c: New file.
93271         * lib/unictype/pr_paired_punctuation.c: New file.
93272         * lib/unictype/pr_paragraph_separator.c: New file.
93273         * lib/unictype/pr_pattern_syntax.c: New file.
93274         * lib/unictype/pr_pattern_white_space.c: New file.
93275         * lib/unictype/pr_private_use.c: New file.
93276         * lib/unictype/pr_punctuation.c: New file.
93277         * lib/unictype/pr_quotation_mark.c: New file.
93278         * lib/unictype/pr_radical.c: New file.
93279         * lib/unictype/pr_sentence_terminal.c: New file.
93280         * lib/unictype/pr_soft_dotted.c: New file.
93281         * lib/unictype/pr_space.c: New file.
93282         * lib/unictype/pr_terminal_punctuation.c: New file.
93283         * lib/unictype/pr_test.c: New file.
93284         * lib/unictype/pr_titlecase.c: New file.
93285         * lib/unictype/pr_unassigned_code_value.c: New file.
93286         * lib/unictype/pr_unified_ideograph.c: New file.
93287         * lib/unictype/pr_uppercase.c: New file.
93288         * lib/unictype/pr_variation_selector.c: New file.
93289         * lib/unictype/pr_white_space.c: New file.
93290         * lib/unictype/pr_xid_continue.c: New file.
93291         * lib/unictype/pr_xid_start.c: New file.
93292         * lib/unictype/pr_zero_width.c: New file.
93293         * lib/unictype/scripts.c: New file.
93294         * lib/unictype/sy_c_ident.c: New file.
93295         * lib/unictype/sy_c_whitespace.c: New file.
93296         * lib/unictype/sy_java_ident.c: New file.
93297         * lib/unictype/sy_java_whitespace.c: New file.
93299         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
93300         Unicode 5.0.0.
93301         * lib/unictype/blocks.h: Likewise.
93302         * lib/unictype/categ_C.h: Likewise.
93303         * lib/unictype/categ_Cc.h: Likewise.
93304         * lib/unictype/categ_Cf.h: Likewise.
93305         * lib/unictype/categ_Cn.h: Likewise.
93306         * lib/unictype/categ_Co.h: Likewise.
93307         * lib/unictype/categ_Cs.h: Likewise.
93308         * lib/unictype/categ_L.h: Likewise.
93309         * lib/unictype/categ_Ll.h: Likewise.
93310         * lib/unictype/categ_Lm.h: Likewise.
93311         * lib/unictype/categ_Lo.h: Likewise.
93312         * lib/unictype/categ_Lt.h: Likewise.
93313         * lib/unictype/categ_Lu.h: Likewise.
93314         * lib/unictype/categ_M.h: Likewise.
93315         * lib/unictype/categ_Mc.h: Likewise.
93316         * lib/unictype/categ_Me.h: Likewise.
93317         * lib/unictype/categ_Mn.h: Likewise.
93318         * lib/unictype/categ_N.h: Likewise.
93319         * lib/unictype/categ_Nd.h: Likewise.
93320         * lib/unictype/categ_Nl.h: Likewise.
93321         * lib/unictype/categ_No.h: Likewise.
93322         * lib/unictype/categ_P.h: Likewise.
93323         * lib/unictype/categ_Pc.h: Likewise.
93324         * lib/unictype/categ_Pd.h: Likewise.
93325         * lib/unictype/categ_Pe.h: Likewise.
93326         * lib/unictype/categ_Pf.h: Likewise.
93327         * lib/unictype/categ_Pi.h: Likewise.
93328         * lib/unictype/categ_Po.h: Likewise.
93329         * lib/unictype/categ_Ps.h: Likewise.
93330         * lib/unictype/categ_S.h: Likewise.
93331         * lib/unictype/categ_Sc.h: Likewise.
93332         * lib/unictype/categ_Sk.h: Likewise.
93333         * lib/unictype/categ_Sm.h: Likewise.
93334         * lib/unictype/categ_So.h: Likewise.
93335         * lib/unictype/categ_Z.h: Likewise.
93336         * lib/unictype/categ_Zl.h: Likewise.
93337         * lib/unictype/categ_Zp.h: Likewise.
93338         * lib/unictype/categ_Zs.h: Likewise.
93339         * lib/unictype/categ_of.h: Likewise.
93340         * lib/unictype/combining.h: Likewise.
93341         * lib/unictype/ctype_alnum.h: Likewise.
93342         * lib/unictype/ctype_alpha.h: Likewise.
93343         * lib/unictype/ctype_blank.h: Likewise.
93344         * lib/unictype/ctype_cntrl.h: Likewise.
93345         * lib/unictype/ctype_digit.h: Likewise.
93346         * lib/unictype/ctype_graph.h: Likewise.
93347         * lib/unictype/ctype_lower.h: Likewise.
93348         * lib/unictype/ctype_print.h: Likewise.
93349         * lib/unictype/ctype_punct.h: Likewise.
93350         * lib/unictype/ctype_space.h: Likewise.
93351         * lib/unictype/ctype_upper.h: Likewise.
93352         * lib/unictype/ctype_xdigit.h: Likewise.
93353         * lib/unictype/decdigit.h: Likewise.
93354         * lib/unictype/digit.h: Likewise.
93355         * lib/unictype/mirror.h: Likewise.
93356         * lib/unictype/numeric.h: Likewise.
93357         * lib/unictype/pr_alphabetic.h: Likewise.
93358         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
93359         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
93360         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
93361         * lib/unictype/pr_bidi_block_separator.h: Likewise.
93362         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
93363         * lib/unictype/pr_bidi_common_separator.h: Likewise.
93364         * lib/unictype/pr_bidi_control.h: Likewise.
93365         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
93366         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
93367         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
93368         * lib/unictype/pr_bidi_european_digit.h: Likewise.
93369         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
93370         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
93371         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
93372         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
93373         * lib/unictype/pr_bidi_pdf.h: Likewise.
93374         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
93375         * lib/unictype/pr_bidi_whitespace.h: Likewise.
93376         * lib/unictype/pr_combining.h: Likewise.
93377         * lib/unictype/pr_composite.h: Likewise.
93378         * lib/unictype/pr_currency_symbol.h: Likewise.
93379         * lib/unictype/pr_dash.h: Likewise.
93380         * lib/unictype/pr_decimal_digit.h: Likewise.
93381         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
93382         * lib/unictype/pr_deprecated.h: Likewise.
93383         * lib/unictype/pr_diacritic.h: Likewise.
93384         * lib/unictype/pr_extender.h: Likewise.
93385         * lib/unictype/pr_format_control.h: Likewise.
93386         * lib/unictype/pr_grapheme_base.h: Likewise.
93387         * lib/unictype/pr_grapheme_extend.h: Likewise.
93388         * lib/unictype/pr_grapheme_link.h: Likewise.
93389         * lib/unictype/pr_hex_digit.h: Likewise.
93390         * lib/unictype/pr_hyphen.h: Likewise.
93391         * lib/unictype/pr_id_continue.h: Likewise.
93392         * lib/unictype/pr_id_start.h: Likewise.
93393         * lib/unictype/pr_ideographic.h: Likewise.
93394         * lib/unictype/pr_ids_binary_operator.h: Likewise.
93395         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
93396         * lib/unictype/pr_ignorable_control.h: Likewise.
93397         * lib/unictype/pr_iso_control.h: Likewise.
93398         * lib/unictype/pr_join_control.h: Likewise.
93399         * lib/unictype/pr_left_of_pair.h: Likewise.
93400         * lib/unictype/pr_line_separator.h: Likewise.
93401         * lib/unictype/pr_logical_order_exception.h: Likewise.
93402         * lib/unictype/pr_lowercase.h: Likewise.
93403         * lib/unictype/pr_math.h: Likewise.
93404         * lib/unictype/pr_non_break.h: Likewise.
93405         * lib/unictype/pr_not_a_character.h: Likewise.
93406         * lib/unictype/pr_numeric.h: Likewise.
93407         * lib/unictype/pr_other_alphabetic.h: Likewise.
93408         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
93409         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
93410         * lib/unictype/pr_other_id_continue.h: Likewise.
93411         * lib/unictype/pr_other_id_start.h: Likewise.
93412         * lib/unictype/pr_other_lowercase.h: Likewise.
93413         * lib/unictype/pr_other_math.h: Likewise.
93414         * lib/unictype/pr_other_uppercase.h: Likewise.
93415         * lib/unictype/pr_paired_punctuation.h: Likewise.
93416         * lib/unictype/pr_paragraph_separator.h: Likewise.
93417         * lib/unictype/pr_pattern_syntax.h: Likewise.
93418         * lib/unictype/pr_pattern_white_space.h: Likewise.
93419         * lib/unictype/pr_private_use.h: Likewise.
93420         * lib/unictype/pr_punctuation.h: Likewise.
93421         * lib/unictype/pr_quotation_mark.h: Likewise.
93422         * lib/unictype/pr_radical.h: Likewise.
93423         * lib/unictype/pr_sentence_terminal.h: Likewise.
93424         * lib/unictype/pr_soft_dotted.h: Likewise.
93425         * lib/unictype/pr_space.h: Likewise.
93426         * lib/unictype/pr_terminal_punctuation.h: Likewise.
93427         * lib/unictype/pr_titlecase.h: Likewise.
93428         * lib/unictype/pr_unassigned_code_value.h: Likewise.
93429         * lib/unictype/pr_unified_ideograph.h: Likewise.
93430         * lib/unictype/pr_uppercase.h: Likewise.
93431         * lib/unictype/pr_variation_selector.h: Likewise.
93432         * lib/unictype/pr_white_space.h: Likewise.
93433         * lib/unictype/pr_xid_continue.h: Likewise.
93434         * lib/unictype/pr_xid_start.h: Likewise.
93435         * lib/unictype/pr_zero_width.h: Likewise.
93436         * lib/unictype/scripts.h: Likewise.
93437         * lib/unictype/scripts_byname.gperf: Likewise.
93438         * lib/unictype/sy_c_ident.h: Likewise.
93439         * lib/unictype/sy_c_whitespace.h: Likewise.
93440         * lib/unictype/sy_java_ident.h: Likewise.
93441         * lib/unictype/sy_java_whitespace.h: Likewise.
93443         * lib/unictype/Makefile: New file.
93444         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
93445         glibc.
93446         * lib/unictype/3level.h: New file, copied from glibc.
93447         * lib/unictype/3levelbit.h: New file.
93449 2007-11-11  Bruno Haible  <bruno@clisp.org>
93451         * modules/gperf: New file.
93452         * modules/iconv_open (Depends-on): Add it.
93453         (Makefile.am): Remove the GPERF definition.
93455 2007-11-11  Bruno Haible  <bruno@clisp.org>
93457         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
93458         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
93460 2007-11-11  Bruno Haible  <bruno@clisp.org>
93462         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
93463         (usage): Remove function.
93465 2007-11-11  Bruno Haible  <bruno@clisp.org>
93467         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
93468         gl_FUNC_CEILF_LIBS.
93469         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
93470         gl_FUNC_CEIL_LIBS.
93471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
93472         gl_FUNC_CEILL_LIBS.
93473         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
93474         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
93475         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
93477 2007-11-11  Bruno Haible  <bruno@clisp.org>
93479         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
93480         roundf were declared but do not exist on functions.
93481         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
93482         roundl were declared but do not exist on functions.
93483         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
93484         HAVE_FLOORL_AND_CEILL, respectively.
93485         Needed for Sun C on Solaris 10.
93487 2007-11-11  Bruno Haible  <bruno@clisp.org>
93489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
93490         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
93491         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
93492         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
93493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
93494         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
93495         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
93496         HAVE_DECL_ROUNDF.
93497         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
93498         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
93499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
93500         of HAVE_DECL_ROUND*.
93501         * modules/math (Makefile.am): Update.
93503 2007-11-10  Bruno Haible  <bruno@clisp.org>
93505         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
93506         ptrdiff_t as m4/intl.m4.
93508 2007-11-10  Jim Meyering  <meyering@redhat.com>
93510         Avoid link failure for the argmatch test.
93511         * tests/test-argmatch.c (usage): Define function to avoid a link
93512         failure: argmatch_die requires a usage function.
93514 2007-11-09  Bruno Haible  <bruno@clisp.org>
93516         * doc/functions/snprintf.texi: Mention BeOS deficiency.
93517         * doc/functions/vsnprintf.texi: Likewise.
93518         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
93519         with a size argument < 2.
93521 2007-11-09  Bruno Haible  <bruno@clisp.org>
93523         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
93524         buffer. Fixes an inefficiency introduced on 2007-11-03.
93526 2007-11-09  Bruno Haible  <bruno@clisp.org>
93528         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
93529         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
93531 2007-11-08  Jim Meyering  <meyering@redhat.com>
93533         Change cache variable name prefix "jm_" to "gl_" everywhere.
93534         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
93535         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
93536         * m4/uptime.m4: s/gl_/jm_/
93538 2007-11-07  Bruno Haible  <bruno@clisp.org>
93540         Update to GNU gettext 0.17.
93541         * m4/intl.m4: Update to GNU gettext 0.17.
93542         * m4/po.m4: Likewise.
93543         * modules/gettext (Files): Remove m4/ulonglong.m4.
93544         (configure.ac): Require gettext infrastructure from version 0.17.
93546 2007-11-06  Bruno Haible  <bruno@clisp.org>
93548         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
93549         symbolic values are not defined in a public header.
93550         * lib/freadable.c (freadable) [QNX]: Likewise.
93551         * lib/freadahead.c (freadahead) [QNX]: Likewise.
93552         * lib/freading.c (freading) [QNX]: Likewise.
93553         * lib/fseterr.c (fseterr) [QNX]: Likewise.
93554         * lib/fwritable.c (fwritable) [QNX]: Likewise.
93555         * lib/fwriting.c (fwriting) [QNX]: Likewise.
93556         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
93557         Reported by Alain Magloire.
93559         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
93561 2007-11-05  Bruno Haible  <bruno@clisp.org>
93563         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
93564         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
93565         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
93566         Reported by Eric Blake.
93568 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93569             Bruno Haible  <bruno@clisp.org>
93571         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
93572         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
93573         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
93574         (malloc): Undefine also before including <stdlib.h>.
93575         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
93576         Needed on OSF/1 4.0.
93578 2007-11-05  Jim Meyering  <meyering@redhat.com>
93580         git-version-gen: sync from coreutils.
93581         * build-aux/git-version-gen: Add comments.
93582         Change the first '-' to '.' in the snapshot version string,
93583         e.g., 6.9-377-08144 -> 6.9.377-08144
93584         Remove first parameter.
93585         Don't declare a version "-dirty" merely because a time
93586         stamp has changed.
93588 2007-11-04  Bruno Haible  <bruno@clisp.org>
93590         * lib/lock.h: Protect all macro definitions containing an 'if'
93591         statement through a "do { ... } while (0)".
93592         * lib/tls.h: Likewise.
93594 2007-11-04  Bruno Haible  <bruno@clisp.org>
93596         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
93598 2007-11-04  Bruno Haible  <bruno@clisp.org>
93600         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
93601         * modules/fprintf-posix (Depends-on): Add nocrash.
93602         * modules/snprintf-posix (Depends-on): Likewise.
93603         * modules/sprintf-posix (Depends-on): Likewise.
93604         * modules/vasnprintf-posix (Depends-on): Likewise.
93605         * modules/vasprintf-posix (Depends-on): Likewise.
93606         * modules/vfprintf-posix (Depends-on): Likewise.
93607         * modules/vsnprintf-posix (Depends-on): Likewise.
93608         * modules/vsprintf-posix (Depends-on): Likewise.
93609         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93610         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93611         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93612         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93613         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93614         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93615         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93617 2007-11-04  Bruno Haible  <bruno@clisp.org>
93619         * modules/nocrash: New file.
93620         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
93621         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
93623 2007-11-04  Bruno Haible  <bruno@clisp.org>
93625         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
93626         precision handling.
93627         * tests/test-vasprintf-posix.c (test_function): Likewise.
93628         * tests/test-snprintf-posix.h (test_function): Likewise.
93629         * tests/test-sprintf-posix.h (test_function): Likewise.
93631         Fix *printf behaviour for large precisions on mingw and BeOS.
93632         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
93633         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
93634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
93635         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93637         gl_PRINTF_PRECISION and test its result. Invoke
93638         gl_PREREQ_VASNPRINTF_PRECISION.
93639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93646         * doc/functions/fprintf.texi: Update.
93647         * doc/functions/printf.texi: Update.
93648         * doc/functions/snprintf.texi: Update.
93649         * doc/functions/sprintf.texi: Update.
93650         * doc/functions/vfprintf.texi: Update.
93651         * doc/functions/vprintf.texi: Update.
93652         * doc/functions/vsnprintf.texi: Update.
93653         * doc/functions/vsprintf.texi: Update.
93655 2007-11-04  Bruno Haible  <bruno@clisp.org>
93657         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
93659 2007-11-04  Bruno Haible  <bruno@clisp.org>
93661         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
93662         Reported by Sylvain Beucler <beuc@gnu.org>.
93664 2007-11-03  Bruno Haible  <bruno@clisp.org>
93666         * tests/test-fprintf-posix2.sh: New file.
93667         * tests/test-fprintf-posix2.c: New file.
93668         * modules/fprintf-posix-tests (Files): Add them.
93669         (TESTS): Add test-fprintf-posix2.sh.
93670         (configure.ac): Check for getrlimit and setrlimit.
93671         (check_PROGRAMS): Add test-fprintf-posix2.
93673         * tests/test-printf-posix2.sh: New file.
93674         * tests/test-printf-posix2.c: New file.
93675         * modules/printf-posix-tests (Files): Add them.
93676         (TESTS): Add test-printf-posix2.sh.
93677         (configure.ac): Check for getrlimit and setrlimit.
93678         (check_PROGRAMS): Add test-printf-posix2.
93680         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
93681         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
93682         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
93683         (decode_double): New function, copied from decode_long_double.
93684         (scale10_round_decimal_decoded): New function, extracted from
93685         scale10_round_decimal_long_double.
93686         (scale10_round_decimal_long_double): Use it.
93687         (scale10_round_decimal_double): New function.
93688         (floorlog10): New function.
93689         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
93690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
93691         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93692         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93693         gl_PRINTF_ENOMEM and test its result. Invoke
93694         gl_PREREQ_VASNPRINTF_ENOMEM.
93695         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93702         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
93703         * modules/snprintf-posix (Depends-on): Likewise.
93704         * modules/sprintf-posix (Depends-on): Likewise.
93705         * modules/vasnprintf-posix (Depends-on): Likewise.
93706         * modules/vasprintf-posix (Depends-on): Likewise.
93707         * modules/vfprintf-posix (Depends-on): Likewise.
93708         * modules/vsnprintf-posix (Depends-on): Likewise.
93709         * modules/vsprintf-posix (Depends-on): Likewise.
93710         * doc/functions/fprintf.texi: Update.
93711         * doc/functions/printf.texi: Update.
93712         * doc/functions/snprintf.texi: Update.
93713         * doc/functions/sprintf.texi: Update.
93714         * doc/functions/vfprintf.texi: Update.
93715         * doc/functions/vprintf.texi: Update.
93716         * doc/functions/vsnprintf.texi: Update.
93717         * doc/functions/vsprintf.texi: Update.
93719 2007-11-03  Bruno Haible  <bruno@clisp.org>
93721         * modules/frexp-nolibm-tests: New file.
93723         * modules/frexp-nolibm: New file.
93724         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
93726 2007-11-03  Bruno Haible  <bruno@clisp.org>
93728         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
93729         value is C99 compliant.
93730         Needed for OSF/1 5.1.
93732 2007-11-03  Bruno Haible  <bruno@clisp.org>
93734         Fix out-of-memory handling of vasnprintf.
93735         * lib/printf-parse.c: Include <errno.h>.
93736         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
93737         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
93738         is already set.
93740 2007-11-02  Eric Blake  <ebb9@byu.net>
93742         Fix tests on cygwin.
93743         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
93745 2007-11-01  Bruno Haible  <bruno@clisp.org>
93747         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
93748         warning.
93749         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
93750         needed for POSIX compatibility.
93752 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
93754         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
93755         for compatibility with GNU.
93757 2007-11-01  Bruno Haible  <bruno@clisp.org>
93759         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
93760         (putenv): Renamed from rpl_putenv. Change argument type from
93761         'const char *' to 'char *'.
93762         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
93763         of defining putenv in config.h, just set REPLACE_PUTENV.
93764         * modules/putenv (Depends-on): Add stdlib.
93765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93766         (Include): Use <stdlib.h>.
93767         * lib/stdlib.in.h (putenv): New declaration.
93768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
93769         REPLACE_PUTENV.
93770         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
93771         REPLACE_PUTENV.
93772         Needed for MacOS X 10.5.0.
93773         Reported by Peter O'Gorman <peter@pogma.com>.
93775 2007-11-01  Jim Meyering  <meyering@redhat.com>
93777         Treat an empty date string exactly like "0".
93778         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
93779         if the remaining date string (to be parsed) is empty, use "0".
93780         Reported by Mischa Molhoek and discussed in this thread:
93781         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
93783 2007-10-31  Bruno Haible  <bruno@clisp.org>
93785         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
93786         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
93787         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
93788         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
93789         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
93790         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
93792 2007-10-31  Bruno Haible  <bruno@clisp.org>
93794         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
93795         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
93796         (AC_TYPE_LONG_LONG_INT): Use it.
93797         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
93798         it as well.
93799         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
93800         to m4/longlong.m4.
93801         * modules/stdint (Files): Remove m4/ulonglong.m4.
93802         * modules/strtoull (Files): Use m4/longlong.m4 instead of
93803         m4/ulonglong.m4.
93804         * modules/strtoumax (Files): Likewise.
93806 2007-10-30  Bruno Haible  <bruno@clisp.org>
93808         * modules/xvasprintf-posix: New file.
93809         Suggested by Eric Blake.
93811 2007-10-30  Bruno Haible  <bruno@clisp.org>
93813         * modules/xprintf-posix-tests: New file.
93814         * tests/test-xprintf-posix.sh: New file.
93815         * tests/test-xprintf-posix.c: New file.
93816         * tests/test-xfprintf-posix.c: New file.
93818         * modules/xprintf-posix: New file.
93820 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93822         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
93823         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
93824         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
93826 2007-10-29  Bruno Haible  <bruno@clisp.org>
93828         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
93829         contain the special marker '_cv_'.
93830         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
93831         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
93832         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
93833         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
93834         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
93835         Reported by Ralf Wildenhues.
93837 2007-10-29  Bruno Haible  <bruno@clisp.org>
93839         * gnulib-tool (func_import): When --lgpl is not specified, set
93840         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
93841         GPLv3.
93842         Reported by Simon Josefsson.
93844 2007-10-28  Bruno Haible  <bruno@clisp.org>
93846         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
93847         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
93848         HAVE_DECL_ISFINITE.
93849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
93850         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
93851         HAVE_DECL_ISFINITE.
93853 2007-10-28  Bruno Haible  <bruno@clisp.org>
93855         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
93856         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
93858 2007-10-28  Bruno Haible  <bruno@clisp.org>
93860         Fix link errors with Sun C 5.0 on Solaris 10.
93861         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
93862         function is declared but not present in the compiler's libm.
93863         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
93864         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
93865         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
93866         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
93867         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
93868         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
93869         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
93870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
93871         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
93872         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
93873         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
93874         HAVE_DECL_FLOORL.
93876 2007-10-28  Bruno Haible  <bruno@clisp.org>
93878         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
93879         gl_FUNC_FLOORL. Cache the result.
93880         (gl_FUNC_FLOORL): Use it.
93881         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
93882         gl_FUNC_CEILL. Cache the result.
93883         (gl_FUNC_CEILL): Use it.
93885         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
93886         gl_FUNC_FLOOR. Cache the result.
93887         (gl_FUNC_FLOOR): Use it.
93888         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
93889         gl_FUNC_CEIL. Cache the result.
93890         (gl_FUNC_CEIL): Use it.
93892         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
93893         gl_FUNC_FLOORF. Cache the result.
93894         (gl_FUNC_FLOORF): Use it.
93895         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
93896         gl_FUNC_CEILF. Cache the result.
93897         (gl_FUNC_CEILF): Use it.
93899 2007-10-28  Bruno Haible  <bruno@clisp.org>
93901         * gnulib-tool: Allow specifying the LGPL version number through
93902         --lgpl=2 or --lgpl=3.
93903         (func_usage): Document --lgpl with argument.
93904         Handle --lgpl=... arguments.
93905         (func_import): Recognize also gl_LGPL calls with an argument. When
93906         --lgpl=2 is used and the module's license is just LGPL, report an
93907         error. Set sed_transform_lib_file according to the lgpl variable. In
93908         the generated files, use --lgpl or gl_LGPL invocations with argument,
93909         if necessary.
93910         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
93911         an LGPv2+ license.
93912         * doc/gnulib-tool.texi (Modified imports): Update explanation of
93913         gl_LGPL macro.
93915 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93916             Bruno Haible  <bruno@clisp.org>
93918         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
93919         (u16_uctomb_aux): Likewise.
93920         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
93921         !HAVE_INLINE.
93922         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
93924 2007-10-28  Bruno Haible  <bruno@clisp.org>
93926         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
93927         Invoke AM_GETTEXT_OPTION if it exists.
93928         * modules/vasprintf: Likewise.
93929         * modules/verror: Likewise.
93930         * modules/xprintf: Likewise.
93931         * modules/xvasprintf: Likewise.
93933 2007-10-27  Ben Pfaff  <blp@gnu.org>
93935         * lib/math.in.h: Define isfinite macro and prototypes for
93936         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
93937         implementations.
93938         * m4/math_h.m4: New substitutions for isfinite module.
93939         * lib/isfinite.c: New file.
93940         * m4/isfinite.m4: New file.
93941         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
93942         * modules/isfinite: New file.
93943         * modules/isfinite-tests: New file.
93944         * tests/tests-isfinite.c: New file.
93945         * doc/functions/isfinite.texi: Mention isfinite module.
93946         * MODULES.html.sh: Mention new module.
93948 2007-10-27  Ben Pfaff  <blp@gnu.org>
93950         Ralf Wildenhues reported that Tru64 4.0D declares the round
93951         functions but does not have definitions.
93952         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
93953         cannot be found in any library, set the output variable to
93954         "missing" instead of "".
93955         * m4/round.m4: Also use our substitute if we cannot find round in
93956         any library, even if it is declared.
93957         * m4/roundf.m4: Likewise for roundf.
93958         * m4/roundl.m4: Likewise for roundl.
93959         * lib/math.in.h: Undefine roundf, round, roundl before defining
93960         their replacements, to allow for hypothetical systems where these
93961         may be defined as macros but not available in libraries.
93963 2007-10-27  Bruno Haible  <bruno@clisp.org>
93965         * doc/gnulib.texi: Invoke @firstparagraphindent.
93966         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
93967         changes in gnulib.
93968         (Source changes): New section.
93970 2007-10-26  Bruno Haible  <bruno@clisp.org>
93972         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
93973         borrowed from autoconf.
93975 2007-10-26  Bruno Haible  <bruno@clisp.org>
93977         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
93978         strerror returned the empty string. Needed on HP-UX 11.00.
93980 2007-10-24  Micah Cowan  <micah@cowan.name>
93982         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
93983         * build-aux/bootstrap: Remove support for now-unnecessary option,
93984         --cvs-user, and envvars CVS_USER, CVS_RSH.
93986 2007-10-24  Jim Meyering  <meyering@redhat.com>
93988         Avoid diagnostics from sha1sum when there is no cached checksum.
93989         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
93990         if the po.s1 file hasn't been created yet.
93992         * build-aux/bootstrap: Sync from coreutils:
93993         2007-10-24  Jim Meyering  <meyering@redhat.com>
93994         Get gnulib from the git repository, not from an obsolete cvs one.
93995         * build-aux/bootstrap: Suggestion from Micah Cowan.
93996         2007-10-04  Jim Meyering  <jim@meyering.net>
93997         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
93998         (update_po_files): Work also when there are no .po files in po/.
94000 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
94002         * README: Append ".git" to git and cg examples.
94003         Problem reported by Benoit Sigoure.
94005 2007-10-23  Micah Cowan  <micah@cowan.name>
94007         * users.txt: Add wget.
94009 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94011         Fix linking of some unistdio tests on FreeBSD.
94012         * modules/unistdio/u16-vsnprintf-tests
94013         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
94014         * modules/unistdio/u16-vsprintf-tests
94015         (test_u16_vsnprintf1_LDADD): Likewise.
94016         * modules/unistdio/u32-vsnprintf-tests
94017         (test_u32_vsnprintf1_LDADD): Likewise.
94018         * modules/unistdio/u32-vsprintf-tests
94019         (test_u32_vsprintf1_LDADD): Likewise.
94020         * modules/unistdio/u8-vsnprintf-tests
94021         (test_u8_vsnprintf1_LDADD): Likewise.
94022         * modules/unistdio/u8-vsprintf-tests
94023         (test_u8_vsprintf1_LDADD): Likewise.
94024         * modules/unistdio/ulc-vsnprintf-tests
94025         (test_ulc_vsnprintf1_LDADD): Likewise.
94026         * modules/unistdio/ulc-vsprintf-tests
94027         (test_ulc_vsprintf1_LDADD): Likewise.
94029         Fix linking of some uniconv tests on FreeBSD.
94030         * modules/uniconv/u16-conv-from-enc-tests
94031         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
94032         * modules/uniconv/u16-conv-to-enc-tests
94033         (test_u16_conv_to_enc_LDADD): Likewise.
94034         * modules/uniconv/u16-strconv-from-enc-tests
94035         (test_u16_strconv_from_enc_LDADD): Likewise.
94036         * modules/uniconv/u16-strconv-to-enc-tests
94037         (test_u16_strconv_to_enc_LDADD): Likewise.
94038         * modules/uniconv/u32-conv-from-enc-tests
94039         (test_u32_conv_from_enc_LDADD): Likewise.
94040         * modules/uniconv/u32-conv-to-enc-tests
94041         (test_u32_conv_to_enc_LDADD): Likewise.
94042         * modules/uniconv/u32-strconv-from-enc-tests
94043         (test_u32_strconv_from_enc_LDADD): Likewise.
94044         * modules/uniconv/u32-strconv-to-enc-tests
94045         (test_u32_strconv_to_enc_LDADD): Likewise.
94046         * modules/uniconv/u8-conv-from-enc-tests
94047         (test_u8_conv_from_enc_LDADD): Likewise.
94048         * modules/uniconv/u8-conv-to-enc-tests
94049         (test_u8_conv_to_enc_LDADD): Likewise.
94050         * modules/uniconv/u8-strconv-from-enc-tests
94051         (test_u8_strconv_from_enc_LDADD): Likewise.
94052         * modules/uniconv/u8-strconv-to-enc-tests
94053         (test_u8_strconv_to_enc_LDADD): Likewise.
94055 2007-10-22  Bruno Haible  <bruno@clisp.org>
94057         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
94058         size.
94060 2007-10-22  Eric Blake  <ebb9@byu.net>
94062         Tweak x*printf documentation.
94063         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
94064         variable name and comments.
94065         Suggested by Bruno Haible.
94067 2007-10-22  Bruno Haible  <bruno@clisp.org>
94069         * lib/acl.c (copy_acl): Fix file name in comment.
94071 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
94073         Fix Tru64 problem with stdbool.h.
94074         * lib/stdbool.in.h (false, true):
94075         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
94076         Don't declare as an enum in this situation; it runs afoul of Tru64.
94077         Problem reported by Steven M. Schweda in
94078         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
94080 2007-10-22  Eric Blake  <ebb9@byu.net>
94082         Also wrap vf?printf.
94083         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
94084         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
94085         (xvprintf, xvfprintf): New functions.
94087 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94089         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
94090         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
94092         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
94093         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
94095 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
94097         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
94098         by Bruno Haible.
94100 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94102         * lib/getloadavg.c
94103         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
94104         Undef `sys' after including sys/table.h, for Tru64 4.0D.
94106         * tests/test-i-ring.c: Work for C89.
94108 2007-10-22  Bruno Haible  <bruno@clisp.org>
94110         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
94111         -1u, in preprocessor expression, so that we don't test for the bug
94112         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
94113         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
94115 2007-10-22  Eric Blake  <ebb9@byu.net>
94117         * tests/test-yesno.sh: Silence stderr during test.
94119 2007-10-22  Simon Josefsson  <simon@josefsson.org>
94121         * modules/crypto/gc-camellia: New file.
94123         * m4/gc-camellia.m4: New file.
94125         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
94127         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
94129 2007-10-22  Simon Josefsson  <simon@josefsson.org>
94131         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
94132         --help to stdout.  Reported by sms@antinode.org (Steven
94133         M. Schweda).
94135 2007-10-22  Simon Josefsson  <simon@josefsson.org>
94137         * users.txt: Fix link to libksba.
94139 2007-10-21  Ben Pfaff  <blp@gnu.org>
94141         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
94142         round.c roundf implementation that depends on floorf and ceilf to
94143         be tested unconditionally.
94145 2007-10-21  Ben Pfaff  <blp@gnu.org>
94147         * m4/check-libm-func.m4: Removed.
94148         * m4/check-math-lib.m4: New file.
94149         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
94150         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
94151         definition and lack of AC_LIBOBJ([roundf]).
94152         * m4/roundl.m4: Ditto, and similarly for roundl.
94153         * modules/round: Reference new m4 file.
94154         * modules/roundf: Ditto.
94155         * modules/roundl: Ditto.
94156         * tests/test-round2.c (main): Use ROUND instead of round.
94157         Bug report from Bruno Haible.
94159 2007-10-21  Bruno Haible  <bruno@clisp.org>
94161         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
94162         context.
94164 2007-10-21  Bruno Haible  <bruno@clisp.org>
94166         * tests/test-wcwidth.c (main): Allow negative result for some control
94167         characters.
94169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
94170         Needed on OSF/1 5.1.
94172 2007-10-21  Bruno Haible  <bruno@clisp.org>
94174         * tests/test-floorf1.c: Include isnanf.h.
94175         (main): Use isnanf() instead of isnan().
94176         * tests/test-ceilf1.c: Include isnanf.h.
94177         (main): Use isnanf() instead of isnan().
94178         * tests/test-truncf1.c: Include isnanf.h.
94179         (main): Use isnanf() instead of isnan().
94180         * tests/test-roundf1.c: Include isnanf.h.
94181         (main): Use isnanf() instead of isnan().
94183 2007-10-21  Eric Blake  <ebb9@byu.net>
94185         * users.txt: Update URL for m4.
94187 2007-10-21  Bruno Haible  <bruno@clisp.org>
94189         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
94191 2007-10-21  Bruno Haible  <bruno@clisp.org>
94193         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
94194         Git's management files if the CVS files are not present.
94196 2007-10-20  Bruno Haible  <bruno@clisp.org>
94198         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
94199         gcc-3.4.x.
94201 2007-10-20  Ben Pfaff  <blp@gnu.org>
94203         * lib/math.in.h: Declare round, roundf, roundl if we are providing
94204         implementations.
94205         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
94206         * lib/round.c: New file.
94207         * lib/roundf.c: New file.
94208         * lib/roundl.c: New file.
94209         * m4/round.m4: New file.
94210         * m4/roundf.m4: New file.
94211         * m4/roundl.m4: New file.
94212         * m4/check-libm-func-m4: New file.
94213         * modules/math: Replace round, roundf, roundl related @VARS@ in
94214         math.in.h.
94215         * modules/round: New file.
94216         * modules/round-tests: New file.
94217         * modules/roundf: New file.
94218         * modules/roundf-tests: New file.
94219         * modules/roundl: New file.
94220         * modules/roundl-tests: New file.
94221         * tests/test-round1.c: New file.
94222         * tests/test-round2.c: New file.
94223         * tests/test-roundf1.c: New file.
94224         * tests/test-roundf2.c: New file.
94225         * tests/test-roundl.c: New file.
94226         * doc/functions/round.texi: Mention round module.
94227         * doc/functions/roundf.texi: Mention roundf module.
94228         * doc/functions/roundl.texi: Mention roundl module.
94229         * MODULES.html.sh: Mention new modules.
94230         Thanks to Bruno Haible for suggestions.
94232 2007-10-20  Jim Meyering  <meyering@redhat.com>
94234         * lib/xprintf.c: Include <config.h> unconditionally.
94236         Change xprintf's license to GPL.
94237         * modules/xprintf (License): s/LGPL/GPL/, since this module
94238         depends on modules (exit and exitfail) which are GPL.
94239         Suggestion from Bruno Haible.
94241         xprintf fixes.
94242         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
94243         Use a clearer diagnostic.
94244         Patch from Bruno Haible.
94246 2007-10-20  Bruno Haible  <bruno@clisp.org>
94248         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
94249         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
94250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94252 2007-10-20  Bruno Haible  <bruno@clisp.org>
94254         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
94255         precision in the comparison result > x - 1 or similar.
94256         * tests/test-ceilf2.c (correct_result_p): Likewise.
94257         * tests/test-truncf2.c (correct_result_p): Likewise.
94258         * tests/test-trunc2.c (correct_result_p): Likewise.
94259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94261 2007-10-20  Bruno Haible  <bruno@clisp.org>
94263         * modules/ceil: New file.
94264         * m4/ceil.m4: New file.
94265         * doc/functions/ceil.texi: Mention the 'ceil' module.
94267 2007-10-20  Bruno Haible  <bruno@clisp.org>
94269         * modules/floor: New file.
94270         * m4/floor.m4: New file.
94271         * doc/functions/floor.texi: Mention the 'floor' module.
94273 2007-10-20  Bruno Haible  <bruno@clisp.org>
94275         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
94276         of %a.
94277         * modules/floorf-tests (Depends-on): Likewise.
94278         * modules/truncf-tests (Depends-on): Likewise.
94279         * modules/trunc-tests (Depends-on): Likewise.
94280         Reported by Ben Pfaff.
94282 2007-10-19  Jim Meyering  <meyering@redhat.com>
94284         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
94285         Don't bother testing specific errno values.  Just test ferror.
94287         New module: xprintf
94288         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
94290 2007-10-19  Bruno Haible  <bruno@clisp.org>
94292         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
94293         syntax.
94294         * modules/javaexec (Makefile.am): Likewise.
94295         * modules/relocatable-prog (Makefile.am): Likewise.
94296         Suggested by Jim Meyering.
94298 2007-10-18  Bruno Haible  <bruno@clisp.org>
94300         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
94301         Reported by Jim Meyering.
94303 2007-10-18  Eric Blake  <ebb9@byu.net>
94305         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
94307 2007-10-18  Bruno Haible  <bruno@clisp.org>
94309         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
94310         the format string into writable memory. Needed in Fortify conditions.
94312 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
94313             Bruno Haible  <bruno@clisp.org>
94315         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
94316         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
94317         * modules/trim (Depends-on): Add mbchar.
94318         (configure.ac): Add gl_FUNC_MBRTOWC.
94319         (Makefile.am): Augment lib_SOURCES.
94321 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
94323         Modify glob.c to use fstatat and dirfd, to simplify it.
94324         Suggested by Eric Blake.
94325         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
94326         Don't include <stdbool.h>; not used.
94327         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
94328         (link_exists_p): Simplify implementation, since we can now assume
94329         dirfd and fstatat.
94330         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
94332 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94334         * gnulib-tool (func_get_dependencies): Fix sed script to
94335         match only tests.
94337 2007-10-17  Bruno Haible  <bruno@clisp.org>
94339         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
94340         allow locale names without encoding suffix.
94341         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
94342         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
94344 2007-10-16  Bruno Haible  <bruno@clisp.org>
94346         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
94347         * lib/getgroups.c (getgroups): Likewise.
94348         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
94350 2007-10-16  Bruno Haible  <bruno@clisp.org>
94352         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
94353         * modules/malloc-posix (License): Likewise.
94354         * modules/realloc-posix (License): Likewise.
94355         * modules/calloc-posix (License): Likewise.
94356         * modules/intprops (License): Change from GPL to LGPL, with
94357         Paul Eggert's approval.
94359 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
94361         Merge glibc changes into lib/glob.c.
94363         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
94364         2007-10-15 04:59:03 UTC.  Here are the changes:
94366         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
94368         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
94370         * lib/glob.c: Add some branch prediction throughout.
94372         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
94374         [BZ #5103]
94375         * lib/glob.c (glob): Recognize patterns starting \/.
94377         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
94379         [BZ #3996]
94380         * lib/glob.c (attribute_hidden): Define if not defined.
94381         (glob): Unescape dirname, filename or username when needed and not
94382         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
94383         is NULL.  Handle unescaped [ in pattern without closing ].
94384         Don't pass GLOB_CHECK down to recursive glob for directories.
94385         (__glob_pattern_type): New function.
94386         (__glob_pattern_p): Implement using __glob_pattern_type.
94387         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
94388         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
94389         Remove unreachable code.
94391         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
94393         * lib/glob.c (glob_in_dir): Add some comments and asserts to
94394         explain why there are no leaks.
94396         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
94398         [BZ #3253]
94399         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
94400         time, rather allocate increasingly bigger arrays of pointers, if
94401         possible with alloca, if too large with malloc.
94403 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
94405         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
94406         Problem reported by H.Merijn Brand in
94407         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
94408         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
94409         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
94411 2007-10-15  Bruno Haible  <bruno@clisp.org>
94413         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
94414         with explicit rpl_ prefix.
94415         * lib/fopen.c (fopen): Likewise.
94416         * lib/freopen.c (freopen): Likewise.
94417         * lib/iconv.c (iconv): Likewise.
94418         * lib/iconv_close.c (iconv_close): Likewise.
94420 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94422         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
94424 2007-10-15  Bruno Haible  <bruno@clisp.org>
94426         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
94427         <stddef.h> instead of <stdlib.h> since we only need NULL.
94428         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94430 2007-10-15  Bruno Haible  <bruno@clisp.org>
94432         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
94433         Replace paragraph talking about LIBOBJS.
94434         Reported by Colin Watson <cjwatson@debian.org>.
94436 2007-10-15  Bruno Haible  <bruno@clisp.org>
94438         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
94439         <stdlib.h> before using NULL.
94441 2007-10-15  Simon Josefsson  <simon@josefsson.org>
94443         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
94444         Reported by Albert Chin <china@thewrittenword.com>.
94446 2007-10-14  Bruno Haible  <bruno@clisp.org>
94448         * modules/iconv_open-utf-tests: New file.
94449         * tests/test-iconv-utf.c: New file.
94451         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
94452         * modules/iconv_open-utf: New file.
94453         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
94454         (iconv, iconv_close): New declarations.
94455         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
94456         be defined.
94457         (iconv_open): Add special handling of conversion between UTF-8 and
94458         UTF-{16,32}{BE,LE}.
94459         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
94460         * lib/iconv_close.c: New file.
94461         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
94462         gl_FUNC_ICONV_OPEN.
94463         (gl_FUNC_ICONV_OPEN): Use it.
94464         (gl_FUNC_ICONV_OPEN_UTF): New macro.
94465         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
94466         and REPLACE_ICONV_UTF.
94467         * modules/iconv_open (Depends-on): Add c-strcase.
94468         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
94469         ICONV_CONST.
94470         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
94472 2007-10-13  Albert Chin  <china@thewrittenword.com>
94473             Bruno Haible  <bruno@clisp.org>
94475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
94476         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
94478 2007-10-13  Bruno Haible  <bruno@clisp.org>
94480         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
94481         defined, use the ISO C99 inline semantics.
94482         * lib/argp.h (ARGP_EI): Likewise.
94484 2007-10-13  Bruno Haible  <bruno@clisp.org>
94486         Handle 'inline' change in gcc 4.3.0.
94487         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
94488         argp_fmtstream_write, argp_fmtstream_set_lmargin,
94489         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
94490         argp_fmtstream_point): Disable 'extern' declaration if the function
94491         definition is going to be provided inline.
94492         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
94493         semantics, not the ISO C99 inline semantics.
94494         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
94495         'extern' declaration if the function definition is going to be provided
94496         inline.
94497         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
94498         the GNU C inline semantics, not the ISO C99 inline semantics. With
94499         GCC 4.2, avoid a warning.
94501 2007-10-13  Bruno Haible  <bruno@clisp.org>
94503         * lib/freading.h (freading): Enable the use of __freading for
94504         glibc >= 2.7.
94505         * lib/freading.c (freading): Likewise.
94507 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94509         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
94510         "warning: C99 inline functions are not supported; using GNU89".
94512 2007-10-12  Bruno Haible  <bruno@clisp.org>
94514         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
94515         of 2.
94516         * tests/test-ceilf2.c: New file.
94517         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
94519         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
94520         * modules/ceilf-tests: Update.
94522 2007-10-12  Bruno Haible  <bruno@clisp.org>
94524         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
94525         of 2.
94526         * tests/test-floorf2.c: New file.
94527         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
94529         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
94530         * modules/floorf-tests: Update.
94532 2007-10-12  Bruno Haible  <bruno@clisp.org>
94534         * tests/test-trunc2.c: New file.
94535         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
94537         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
94538         * modules/trunc-tests: Update.
94540 2007-10-12  Bruno Haible  <bruno@clisp.org>
94542         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
94543         of 2.
94544         * tests/test-truncf2.c: New file.
94545         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
94547         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
94548         * modules/truncf-tests: Update.
94550 2007-10-11  Eric Blake  <ebb9@byu.net>
94552         Don't claim strerror is broken on Interix.
94553         * doc/functions/strerror.texi (strerror): Known broken systems are
94554         now Solaris 8, and not Interix.
94555         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
94556         Interix on cross-compile.
94557         Reported by Martin Koeppe in
94558         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
94560 2007-10-11  Bruno Haible  <bruno@clisp.org>
94562         * modules/i-ring-tests: New file.
94563         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
94564         instead of assert.
94566 2007-10-11  Bruno Haible  <bruno@clisp.org>
94568         * modules/filenamecat-tests: New file.
94569         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
94570         * lib/filenamecat.c: Remove test code.
94572 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94574         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
94576         * lib/strerror.c: Include <string.h> always, to test interface,
94577         and to remove the need for the dummy.
94578         Include intprops.h to compute width instead of doing it ourselves
94579         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
94580         (strerror): Define it to return NULL if there's no system strerror.
94581         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
94582         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
94583         ancient pre-strerror Unix systems well any more.  Saying "unknown
94584         system error" is enough.
94585         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
94586         simpler strerror.c implementation.
94587         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
94588         Simplify the tests to reflect the simpler strerror implementation.
94589         * modules/strerror (Depends-on): Add intprops.
94591 2007-10-09  Eric Blake  <ebb9@byu.net>
94593         Silence test-fpending.
94594         * modules/fpending-tests (Files): Add wrapper script.
94595         * tests/test-fpending.sh: New file.
94597 2007-10-09  Bruno Haible  <bruno@clisp.org>
94599         * MODULES.html.sh (func_module): Don't create a hyperlink for
94600         function names like 'printf_frexp'.
94601         (Misc): Add crc, memxor.
94602         (Characteristics of floating types): New section.
94603         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
94604         isnanf-nolibm, signbit, trunc, truncf, truncl.
94605         (Enhancements for ISO C 99 functions): New subsection Input/output.
94606         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
94607         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
94608         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
94609         (Compatibility checks for POSIX:2001 functions): Add clock-time.
94610         (Enhancements for POSIX:2001 functions): Add chdir-long.
94611         (File system functions): Add areadlink, chdir-safer, read-file.
94612         Remove cycle-check.
94613         (File system as inode set): New section.
94614         (Date and time): Add gethrxtime.
94615         (Multithreading): Add openmp.
94616         (Internationalization functions): Add localename.
94617         (Unicode string functions): Add unistr/u*-mbsnlen.
94618         (Support for maintaining and releasing projects): Add git-version-gen.
94619         (Lone files): Remove directories.
94621 2007-10-08  Ben Pfaff  <blp@gnu.org>
94623         * lib/xmalloca.h: Fix typo in comment.
94625 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
94627         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
94628         when avoiding problems with integer overflow.  Use a portable test
94629         instead.
94631 2007-10-08  Simon Josefsson  <simon@josefsson.org>
94633         * modules/dummy (License): Change to LGPLv2+.
94634         * modules/float (License): Likewise
94635         * modules/realloc (License): Likewise
94636         * modules/stdlib (License): Likewise
94638 2007-10-07  Bruno Haible  <bruno@clisp.org>
94640         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
94641         * floor.c (TWO_MANT_DIG): Likewise.
94642         * ceil.c (TWO_MANT_DIG): Likewise.
94643         Reported by Ben Pfaff.
94645 2007-10-07  Bruno Haible  <bruno@clisp.org>
94647         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
94648         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
94649         * lib/frexp.c (FUNC): Likewise.
94650         * lib/printf-frexp.h (printf_frexp): Likewise.
94651         * lib/printf-frexpl.h (printf_frexpl): Likewise.
94652         * lib/printf-frexp.c (FUNC): Likewise.
94653         Suggested by Jim Meyering.
94655 2007-10-07  Jim Meyering  <meyering@redhat.com>
94657         Make xnanosleep's integer overflow test more robust.
94658         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
94659         so that gcc-4.3.0 doesn't optimize away this test for overflow.
94661 2007-10-07  Bruno Haible  <bruno@clisp.org>
94663         * NEWS: Mention the license change.
94665         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
94666         abbreviations in the modules files.
94668         Change copyright notice from GPLv2+ to GPLv3+.
94669         * README: Change copyright notice.
94670         * MODULES.html.sh: Likewise.
94671         * build-aux/bootstrap.conf: Likewise.
94672         * build-aux/config.libpath: Likewise.
94673         * build-aux/csharpcomp.sh.in: Likewise.
94674         * build-aux/csharpexec.sh.in: Likewise.
94675         * build-aux/install-reloc: Likewise.
94676         * build-aux/javacomp.sh.in: Likewise.
94677         * build-aux/javaexec.sh.in: Likewise.
94678         * build-aux/ldd.sh.in: Likewise.
94679         * build-aux/reloc-ldflags: Likewise.
94680         * build-aux/relocatable.sh.in: Likewise.
94681         * build-aux/x-to-1.in: Likewise.
94682         * check-module: Likewise.
94683         * config/srclistvars.sh: Likewise.
94684         * gnulib-tool: Likewise.
94685         * lib/acl-internal.h: Likewise.
94686         * lib/acl.c: Likewise.
94687         * lib/acl.h: Likewise.
94688         * lib/acl_entries.c: Likewise.
94689         * lib/areadlink-with-size.c: Likewise.
94690         * lib/areadlink.c: Likewise.
94691         * lib/areadlink.h: Likewise.
94692         * lib/argmatch.c: Likewise.
94693         * lib/argmatch.h: Likewise.
94694         * lib/argp-ba.c: Likewise.
94695         * lib/argp-eexst.c: Likewise.
94696         * lib/argp-fmtstream.c: Likewise.
94697         * lib/argp-fmtstream.h: Likewise.
94698         * lib/argp-fs-xinl.c: Likewise.
94699         * lib/argp-help.c: Likewise.
94700         * lib/argp-namefrob.h: Likewise.
94701         * lib/argp-parse.c: Likewise.
94702         * lib/argp-pin.c: Likewise.
94703         * lib/argp-pv.c: Likewise.
94704         * lib/argp-pvh.c: Likewise.
94705         * lib/argp-xinl.c: Likewise.
94706         * lib/argp.h: Likewise.
94707         * lib/at-func.c: Likewise.
94708         * lib/atanl.c: Likewise.
94709         * lib/backupfile.c: Likewise.
94710         * lib/backupfile.h: Likewise.
94711         * lib/basename.c: Likewise.
94712         * lib/binary-io.h: Likewise.
94713         * lib/byteswap.in.h: Likewise.
94714         * lib/c-stack.c: Likewise.
94715         * lib/c-stack.h: Likewise.
94716         * lib/c-strcasestr.c: Likewise.
94717         * lib/c-strcasestr.h: Likewise.
94718         * lib/c-strstr.c: Likewise.
94719         * lib/c-strstr.h: Likewise.
94720         * lib/c-strtod.c: Likewise.
94721         * lib/calloc.c: Likewise.
94722         * lib/canon-host.c: Likewise.
94723         * lib/canon-host.h: Likewise.
94724         * lib/canonicalize-lgpl.c: Likewise.
94725         * lib/canonicalize.c: Likewise.
94726         * lib/canonicalize.h: Likewise.
94727         * lib/ceil.c: Likewise.
94728         * lib/ceilf.c: Likewise.
94729         * lib/ceill.c: Likewise.
94730         * lib/chdir-long.c: Likewise.
94731         * lib/chdir-long.h: Likewise.
94732         * lib/chdir-safer.c: Likewise.
94733         * lib/chdir-safer.h: Likewise.
94734         * lib/chown.c: Likewise.
94735         * lib/classpath.c: Likewise.
94736         * lib/classpath.h: Likewise.
94737         * lib/clean-temp.c: Likewise.
94738         * lib/clean-temp.h: Likewise.
94739         * lib/cloexec.c: Likewise.
94740         * lib/close-stream.c: Likewise.
94741         * lib/closein.c: Likewise.
94742         * lib/closein.h: Likewise.
94743         * lib/closeout.c: Likewise.
94744         * lib/closeout.h: Likewise.
94745         * lib/concat-filename.c: Likewise.
94746         * lib/copy-file.c: Likewise.
94747         * lib/copy-file.h: Likewise.
94748         * lib/count-one-bits.h: Likewise.
94749         * lib/crc.c: Likewise.
94750         * lib/crc.h: Likewise.
94751         * lib/creat-safer.c: Likewise.
94752         * lib/csharpcomp.c: Likewise.
94753         * lib/csharpcomp.h: Likewise.
94754         * lib/csharpexec.c: Likewise.
94755         * lib/csharpexec.h: Likewise.
94756         * lib/cycle-check.c: Likewise.
94757         * lib/cycle-check.h: Likewise.
94758         * lib/diacrit.c: Likewise.
94759         * lib/diacrit.h: Likewise.
94760         * lib/diffseq.h: Likewise.
94761         * lib/dirchownmod.c: Likewise.
94762         * lib/dirent.in.h: Likewise.
94763         * lib/dirfd.c: Likewise.
94764         * lib/dirfd.h: Likewise.
94765         * lib/dirname.c: Likewise.
94766         * lib/dirname.h: Likewise.
94767         * lib/dummy.c: Likewise.
94768         * lib/dup-safer.c: Likewise.
94769         * lib/dup2.c: Likewise.
94770         * lib/eealloc.h: Likewise.
94771         * lib/error.c: Likewise.
94772         * lib/error.h: Likewise.
94773         * lib/euidaccess.c: Likewise.
94774         * lib/exclude.c: Likewise.
94775         * lib/exclude.h: Likewise.
94776         * lib/execute.c: Likewise.
94777         * lib/execute.h: Likewise.
94778         * lib/exitfail.c: Likewise.
94779         * lib/exitfail.h: Likewise.
94780         * lib/expl.c: Likewise.
94781         * lib/fatal-signal.c: Likewise.
94782         * lib/fatal-signal.h: Likewise.
94783         * lib/fbufmode.c: Likewise.
94784         * lib/fbufmode.h: Likewise.
94785         * lib/fchdir.c: Likewise.
94786         * lib/fchmodat.c: Likewise.
94787         * lib/fchownat.c: Likewise.
94788         * lib/fcntl--.h: Likewise.
94789         * lib/fcntl-safer.h: Likewise.
94790         * lib/fcntl.in.h: Likewise.
94791         * lib/fd-safer.c: Likewise.
94792         * lib/fflush.c: Likewise.
94793         * lib/file-has-acl.c: Likewise.
94794         * lib/file-set.c: Likewise.
94795         * lib/file-type.c: Likewise.
94796         * lib/file-type.h: Likewise.
94797         * lib/fileblocks.c: Likewise.
94798         * lib/filemode.c: Likewise.
94799         * lib/filemode.h: Likewise.
94800         * lib/filename.h: Likewise.
94801         * lib/filenamecat.c: Likewise.
94802         * lib/filenamecat.h: Likewise.
94803         * lib/findprog.c: Likewise.
94804         * lib/findprog.h: Likewise.
94805         * lib/float.in.h: Likewise.
94806         * lib/floor.c: Likewise.
94807         * lib/floorf.c: Likewise.
94808         * lib/floorl.c: Likewise.
94809         * lib/fopen-safer.c: Likewise.
94810         * lib/fopen.c: Likewise.
94811         * lib/fpending.c: Likewise.
94812         * lib/fpending.h: Likewise.
94813         * lib/fprintf.c: Likewise.
94814         * lib/fprintftime.h: Likewise.
94815         * lib/fpucw.h: Likewise.
94816         * lib/fpurge.c: Likewise.
94817         * lib/fpurge.h: Likewise.
94818         * lib/freadable.c: Likewise.
94819         * lib/freadable.h: Likewise.
94820         * lib/freadahead.c: Likewise.
94821         * lib/freadahead.h: Likewise.
94822         * lib/freading.c: Likewise.
94823         * lib/freading.h: Likewise.
94824         * lib/free.c: Likewise.
94825         * lib/freopen.c: Likewise.
94826         * lib/frexp.c: Likewise.
94827         * lib/frexpl.c: Likewise.
94828         * lib/fseek.c: Likewise.
94829         * lib/fseterr.c: Likewise.
94830         * lib/fseterr.h: Likewise.
94831         * lib/fstatat.c: Likewise.
94832         * lib/fstrcmp.c: Likewise.
94833         * lib/fstrcmp.h: Likewise.
94834         * lib/fsusage.c: Likewise.
94835         * lib/fsusage.h: Likewise.
94836         * lib/ftell.c: Likewise.
94837         * lib/ftello.c: Likewise.
94838         * lib/fts-cycle.c: Likewise.
94839         * lib/fts.c: Likewise.
94840         * lib/fts_.h: Likewise.
94841         * lib/full-read.c: Likewise.
94842         * lib/full-read.h: Likewise.
94843         * lib/full-write.c: Likewise.
94844         * lib/full-write.h: Likewise.
94845         * lib/fwritable.c: Likewise.
94846         * lib/fwritable.h: Likewise.
94847         * lib/fwriteerror.c: Likewise.
94848         * lib/fwriteerror.h: Likewise.
94849         * lib/fwriting.c: Likewise.
94850         * lib/fwriting.h: Likewise.
94851         * lib/gcd.c: Likewise.
94852         * lib/gcd.h: Likewise.
94853         * lib/getcwd.c: Likewise.
94854         * lib/getdate.h: Likewise.
94855         * lib/getdate.y: Likewise.
94856         * lib/getdomainname.c: Likewise.
94857         * lib/getdomainname.h: Likewise.
94858         * lib/getgroups.c: Likewise.
94859         * lib/gethostname.c: Likewise.
94860         * lib/gethrxtime.c: Likewise.
94861         * lib/gethrxtime.h: Likewise.
94862         * lib/getloadavg.c: Likewise.
94863         * lib/getndelim2.c: Likewise.
94864         * lib/getndelim2.h: Likewise.
94865         * lib/getnline.c: Likewise.
94866         * lib/getnline.h: Likewise.
94867         * lib/getopt.c: Likewise.
94868         * lib/getopt.in.h: Likewise.
94869         * lib/getopt1.c: Likewise.
94870         * lib/getopt_int.h: Likewise.
94871         * lib/getpagesize.h: Likewise.
94872         * lib/getsubopt.c: Likewise.
94873         * lib/gettime.c: Likewise.
94874         * lib/getugroups.c: Likewise.
94875         * lib/getugroups.h: Likewise.
94876         * lib/getusershell.c: Likewise.
94877         * lib/gl_anyavltree_list1.h: Likewise.
94878         * lib/gl_anyavltree_list2.h: Likewise.
94879         * lib/gl_anyhash_list1.h: Likewise.
94880         * lib/gl_anyhash_list2.h: Likewise.
94881         * lib/gl_anylinked_list1.h: Likewise.
94882         * lib/gl_anylinked_list2.h: Likewise.
94883         * lib/gl_anyrbtree_list1.h: Likewise.
94884         * lib/gl_anyrbtree_list2.h: Likewise.
94885         * lib/gl_anytree_list1.h: Likewise.
94886         * lib/gl_anytree_list2.h: Likewise.
94887         * lib/gl_anytree_oset.h: Likewise.
94888         * lib/gl_anytreehash_list1.h: Likewise.
94889         * lib/gl_anytreehash_list2.h: Likewise.
94890         * lib/gl_array_list.c: Likewise.
94891         * lib/gl_array_list.h: Likewise.
94892         * lib/gl_array_oset.c: Likewise.
94893         * lib/gl_array_oset.h: Likewise.
94894         * lib/gl_avltree_list.c: Likewise.
94895         * lib/gl_avltree_list.h: Likewise.
94896         * lib/gl_avltree_oset.c: Likewise.
94897         * lib/gl_avltree_oset.h: Likewise.
94898         * lib/gl_avltreehash_list.c: Likewise.
94899         * lib/gl_avltreehash_list.h: Likewise.
94900         * lib/gl_carray_list.c: Likewise.
94901         * lib/gl_carray_list.h: Likewise.
94902         * lib/gl_linked_list.c: Likewise.
94903         * lib/gl_linked_list.h: Likewise.
94904         * lib/gl_linkedhash_list.c: Likewise.
94905         * lib/gl_linkedhash_list.h: Likewise.
94906         * lib/gl_list.c: Likewise.
94907         * lib/gl_list.h: Likewise.
94908         * lib/gl_oset.c: Likewise.
94909         * lib/gl_oset.h: Likewise.
94910         * lib/gl_rbtree_list.c: Likewise.
94911         * lib/gl_rbtree_list.h: Likewise.
94912         * lib/gl_rbtree_oset.c: Likewise.
94913         * lib/gl_rbtree_oset.h: Likewise.
94914         * lib/gl_rbtreehash_list.c: Likewise.
94915         * lib/gl_rbtreehash_list.h: Likewise.
94916         * lib/gl_sublist.c: Likewise.
94917         * lib/gl_sublist.h: Likewise.
94918         * lib/group-member.c: Likewise.
94919         * lib/group-member.h: Likewise.
94920         * lib/hard-locale.c: Likewise.
94921         * lib/hard-locale.h: Likewise.
94922         * lib/hash-pjw.c: Likewise.
94923         * lib/hash-pjw.h: Likewise.
94924         * lib/hash-triple.c: Likewise.
94925         * lib/hash.c: Likewise.
94926         * lib/hash.h: Likewise.
94927         * lib/human.c: Likewise.
94928         * lib/human.h: Likewise.
94929         * lib/i-ring.c: Likewise.
94930         * lib/i-ring.h: Likewise.
94931         * lib/idcache.c: Likewise.
94932         * lib/imaxabs.c: Likewise.
94933         * lib/imaxdiv.c: Likewise.
94934         * lib/inet_pton.c: Likewise.
94935         * lib/inet_pton.h: Likewise.
94936         * lib/intprops.h: Likewise.
94937         * lib/inttostr.c: Likewise.
94938         * lib/inttostr.h: Likewise.
94939         * lib/inttypes.in.h: Likewise.
94940         * lib/isapipe.c: Likewise.
94941         * lib/isdir.c: Likewise.
94942         * lib/isnan.c: Likewise.
94943         * lib/isnan.h: Likewise.
94944         * lib/isnanf.c: Likewise.
94945         * lib/isnanf.h: Likewise.
94946         * lib/isnanl-nolibm.h: Likewise.
94947         * lib/isnanl.c: Likewise.
94948         * lib/isnanl.h: Likewise.
94949         * lib/javacomp.c: Likewise.
94950         * lib/javacomp.h: Likewise.
94951         * lib/javaexec.c: Likewise.
94952         * lib/javaexec.h: Likewise.
94953         * lib/javaversion.c: Likewise.
94954         * lib/javaversion.h: Likewise.
94955         * lib/javaversion.java: Likewise.
94956         * lib/lbrkprop.h: Likewise.
94957         * lib/lchmod.h: Likewise.
94958         * lib/lchown.c: Likewise.
94959         * lib/ldexpl.c: Likewise.
94960         * lib/linebreak.c: Likewise.
94961         * lib/linebreak.h: Likewise.
94962         * lib/linebuffer.c: Likewise.
94963         * lib/linebuffer.h: Likewise.
94964         * lib/locale.in.h: Likewise.
94965         * lib/logl.c: Likewise.
94966         * lib/long-options.c: Likewise.
94967         * lib/long-options.h: Likewise.
94968         * lib/lstat.c: Likewise.
94969         * lib/lstat.h: Likewise.
94970         * lib/math.in.h: Likewise.
94971         * lib/mbchar.c: Likewise.
94972         * lib/mbchar.h: Likewise.
94973         * lib/mbfile.h: Likewise.
94974         * lib/mbiter.h: Likewise.
94975         * lib/mbscasecmp.c: Likewise.
94976         * lib/mbscasestr.c: Likewise.
94977         * lib/mbschr.c: Likewise.
94978         * lib/mbscspn.c: Likewise.
94979         * lib/mbslen.c: Likewise.
94980         * lib/mbsncasecmp.c: Likewise.
94981         * lib/mbsnlen.c: Likewise.
94982         * lib/mbspbrk.c: Likewise.
94983         * lib/mbspcasecmp.c: Likewise.
94984         * lib/mbsrchr.c: Likewise.
94985         * lib/mbssep.c: Likewise.
94986         * lib/mbsspn.c: Likewise.
94987         * lib/mbsstr.c: Likewise.
94988         * lib/mbstok_r.c: Likewise.
94989         * lib/mbswidth.c: Likewise.
94990         * lib/mbswidth.h: Likewise.
94991         * lib/mbuiter.h: Likewise.
94992         * lib/memcasecmp.c: Likewise.
94993         * lib/memcasecmp.h: Likewise.
94994         * lib/memchr.c: Likewise.
94995         * lib/memcmp.c: Likewise.
94996         * lib/memcoll.c: Likewise.
94997         * lib/memcoll.h: Likewise.
94998         * lib/memcpy.c: Likewise.
94999         * lib/memrchr.c: Likewise.
95000         * lib/mkancesdirs.c: Likewise.
95001         * lib/mkdir-p.c: Likewise.
95002         * lib/mkdir-p.h: Likewise.
95003         * lib/mkdir.c: Likewise.
95004         * lib/mkdirat.c: Likewise.
95005         * lib/mkdtemp.c: Likewise.
95006         * lib/mkstemp-safer.c: Likewise.
95007         * lib/mkstemp.c: Likewise.
95008         * lib/modechange.c: Likewise.
95009         * lib/modechange.h: Likewise.
95010         * lib/mountlist.c: Likewise.
95011         * lib/mountlist.h: Likewise.
95012         * lib/mpsort.c: Likewise.
95013         * lib/nanosleep.c: Likewise.
95014         * lib/obstack.c: Likewise.
95015         * lib/obstack.h: Likewise.
95016         * lib/open-safer.c: Likewise.
95017         * lib/open.c: Likewise.
95018         * lib/openat-die.c: Likewise.
95019         * lib/openat-priv.h: Likewise.
95020         * lib/openat-proc.c: Likewise.
95021         * lib/openat.c: Likewise.
95022         * lib/openat.h: Likewise.
95023         * lib/pagealign_alloc.c: Likewise.
95024         * lib/pagealign_alloc.h: Likewise.
95025         * lib/physmem.c: Likewise.
95026         * lib/physmem.h: Likewise.
95027         * lib/pipe-safer.c: Likewise.
95028         * lib/pipe.c: Likewise.
95029         * lib/pipe.h: Likewise.
95030         * lib/posixtm.c: Likewise.
95031         * lib/posixtm.h: Likewise.
95032         * lib/posixver.c: Likewise.
95033         * lib/printf-frexp.c: Likewise.
95034         * lib/printf-frexp.h: Likewise.
95035         * lib/printf-frexpl.c: Likewise.
95036         * lib/printf-frexpl.h: Likewise.
95037         * lib/printf.c: Likewise.
95038         * lib/progname.c: Likewise.
95039         * lib/progname.h: Likewise.
95040         * lib/progreloc.c: Likewise.
95041         * lib/putenv.c: Likewise.
95042         * lib/quote.c: Likewise.
95043         * lib/quote.h: Likewise.
95044         * lib/quotearg.c: Likewise.
95045         * lib/quotearg.h: Likewise.
95046         * lib/raise.c: Likewise.
95047         * lib/readline.c: Likewise.
95048         * lib/readline.h: Likewise.
95049         * lib/readlink.c: Likewise.
95050         * lib/readtokens.c: Likewise.
95051         * lib/readtokens.h: Likewise.
95052         * lib/readtokens0.c: Likewise.
95053         * lib/readtokens0.h: Likewise.
95054         * lib/readutmp.c: Likewise.
95055         * lib/readutmp.h: Likewise.
95056         * lib/realloc.c: Likewise.
95057         * lib/relocwrapper.c: Likewise.
95058         * lib/rename-dest-slash.c: Likewise.
95059         * lib/rename.c: Likewise.
95060         * lib/rmdir.c: Likewise.
95061         * lib/rpmatch.c: Likewise.
95062         * lib/safe-read.c: Likewise.
95063         * lib/safe-read.h: Likewise.
95064         * lib/safe-write.c: Likewise.
95065         * lib/safe-write.h: Likewise.
95066         * lib/same-inode.h: Likewise.
95067         * lib/same.c: Likewise.
95068         * lib/same.h: Likewise.
95069         * lib/save-cwd.c: Likewise.
95070         * lib/save-cwd.h: Likewise.
95071         * lib/savedir.c: Likewise.
95072         * lib/savedir.h: Likewise.
95073         * lib/savewd.c: Likewise.
95074         * lib/savewd.h: Likewise.
95075         * lib/search.in.h: Likewise.
95076         * lib/setenv.c: Likewise.
95077         * lib/setenv.h: Likewise.
95078         * lib/settime.c: Likewise.
95079         * lib/sh-quote.c: Likewise.
95080         * lib/sh-quote.h: Likewise.
95081         * lib/sig2str.c: Likewise.
95082         * lib/sig2str.h: Likewise.
95083         * lib/signal.in.h: Likewise.
95084         * lib/signbitd.c: Likewise.
95085         * lib/signbitf.c: Likewise.
95086         * lib/signbitl.c: Likewise.
95087         * lib/sigprocmask.c: Likewise.
95088         * lib/sincosl.c: Likewise.
95089         * lib/sleep.c: Likewise.
95090         * lib/sprintf.c: Likewise.
95091         * lib/sqrtl.c: Likewise.
95092         * lib/stat-time.h: Likewise.
95093         * lib/stdio--.h: Likewise.
95094         * lib/stdio-safer.h: Likewise.
95095         * lib/stdlib--.h: Likewise.
95096         * lib/stdlib-safer.h: Likewise.
95097         * lib/stdlib.in.h: Likewise.
95098         * lib/stpcpy.c: Likewise.
95099         * lib/stpncpy.c: Likewise.
95100         * lib/strchrnul.c: Likewise.
95101         * lib/strcspn.c: Likewise.
95102         * lib/strerror.c: Likewise.
95103         * lib/strftime.c: Likewise.
95104         * lib/strftime.h: Likewise.
95105         * lib/striconveh.c: Likewise.
95106         * lib/striconveh.h: Likewise.
95107         * lib/striconveha.c: Likewise.
95108         * lib/striconveha.h: Likewise.
95109         * lib/stripslash.c: Likewise.
95110         * lib/strnlen1.c: Likewise.
95111         * lib/strnlen1.h: Likewise.
95112         * lib/strtod.c: Likewise.
95113         * lib/strtoimax.c: Likewise.
95114         * lib/strtok_r.c: Likewise.
95115         * lib/strtol.c: Likewise.
95116         * lib/strtoll.c: Likewise.
95117         * lib/strtoul.c: Likewise.
95118         * lib/strtoull.c: Likewise.
95119         * lib/sysexits.in.h: Likewise.
95120         * lib/tempname.c: Likewise.
95121         * lib/tempname.h: Likewise.
95122         * lib/timespec.h: Likewise.
95123         * lib/tls.c: Likewise.
95124         * lib/tls.h: Likewise.
95125         * lib/tmpdir.c: Likewise.
95126         * lib/tmpdir.h: Likewise.
95127         * lib/tmpfile-safer.c: Likewise.
95128         * lib/tmpfile.c: Likewise.
95129         * lib/trigl.c: Likewise.
95130         * lib/trigl.h: Likewise.
95131         * lib/trim.c: Likewise.
95132         * lib/trim.h: Likewise.
95133         * lib/trunc.c: Likewise.
95134         * lib/truncf.c: Likewise.
95135         * lib/truncl.c: Likewise.
95136         * lib/tsearch.c: Likewise.
95137         * lib/unicodeio.c: Likewise.
95138         * lib/unicodeio.h: Likewise.
95139         * lib/unistd--.h: Likewise.
95140         * lib/unistd-safer.h: Likewise.
95141         * lib/unistdio/ulc-fprintf.c: Likewise.
95142         * lib/unistdio/ulc-vfprintf.c: Likewise.
95143         * lib/unlinkdir.c: Likewise.
95144         * lib/unlinkdir.h: Likewise.
95145         * lib/unlocked-io.h: Likewise.
95146         * lib/unsetenv.c: Likewise.
95147         * lib/userspec.c: Likewise.
95148         * lib/utime.c: Likewise.
95149         * lib/utimecmp.c: Likewise.
95150         * lib/utimecmp.h: Likewise.
95151         * lib/utimens.c: Likewise.
95152         * lib/verify.h: Likewise.
95153         * lib/verror.c: Likewise.
95154         * lib/verror.h: Likewise.
95155         * lib/version-etc-fsf.c: Likewise.
95156         * lib/version-etc.c: Likewise.
95157         * lib/version-etc.h: Likewise.
95158         * lib/vfprintf.c: Likewise.
95159         * lib/vprintf.c: Likewise.
95160         * lib/vsprintf.c: Likewise.
95161         * lib/w32spawn.h: Likewise.
95162         * lib/wait-process.c: Likewise.
95163         * lib/wait-process.h: Likewise.
95164         * lib/wcwidth.c: Likewise.
95165         * lib/write-any-file.c: Likewise.
95166         * lib/xalloc-die.c: Likewise.
95167         * lib/xalloc.h: Likewise.
95168         * lib/xasprintf.c: Likewise.
95169         * lib/xgetcwd.c: Likewise.
95170         * lib/xgetcwd.h: Likewise.
95171         * lib/xgetdomainname.c: Likewise.
95172         * lib/xgetdomainname.h: Likewise.
95173         * lib/xgethostname.c: Likewise.
95174         * lib/xmalloc.c: Likewise.
95175         * lib/xmalloca.c: Likewise.
95176         * lib/xmalloca.h: Likewise.
95177         * lib/xmemcoll.c: Likewise.
95178         * lib/xnanosleep.c: Likewise.
95179         * lib/xreadlink.c: Likewise.
95180         * lib/xreadlink.h: Likewise.
95181         * lib/xsetenv.c: Likewise.
95182         * lib/xsetenv.h: Likewise.
95183         * lib/xstriconv.c: Likewise.
95184         * lib/xstriconv.h: Likewise.
95185         * lib/xstrndup.c: Likewise.
95186         * lib/xstrndup.h: Likewise.
95187         * lib/xstrtod.c: Likewise.
95188         * lib/xstrtod.h: Likewise.
95189         * lib/xstrtol-error.c: Likewise.
95190         * lib/xstrtol.c: Likewise.
95191         * lib/xstrtol.h: Likewise.
95192         * lib/xtime.h: Likewise.
95193         * lib/xvasprintf.c: Likewise.
95194         * lib/xvasprintf.h: Likewise.
95195         * lib/yesno.c: Likewise.
95196         * lib/yesno.h: Likewise.
95197         * posix-modules: Likewise.
95198         * tests/test-alloca-opt.c: Likewise.
95199         * tests/test-arcfour.c: Likewise.
95200         * tests/test-arctwo.c: Likewise.
95201         * tests/test-argmatch.c: Likewise.
95202         * tests/test-argp-2.sh: Likewise.
95203         * tests/test-argp.c: Likewise.
95204         * tests/test-arpa_inet.c: Likewise.
95205         * tests/test-array_list.c: Likewise.
95206         * tests/test-array_oset.c: Likewise.
95207         * tests/test-atexit.c: Likewise.
95208         * tests/test-avltree_list.c: Likewise.
95209         * tests/test-avltree_oset.c: Likewise.
95210         * tests/test-avltreehash_list.c: Likewise.
95211         * tests/test-base64.c: Likewise.
95212         * tests/test-binary-io.c: Likewise.
95213         * tests/test-byteswap.c: Likewise.
95214         * tests/test-c-ctype.c: Likewise.
95215         * tests/test-c-strcasecmp.c: Likewise.
95216         * tests/test-c-strcasestr.c: Likewise.
95217         * tests/test-c-strncasecmp.c: Likewise.
95218         * tests/test-c-strstr.c: Likewise.
95219         * tests/test-canonicalize-lgpl.c: Likewise.
95220         * tests/test-canonicalize.c: Likewise.
95221         * tests/test-carray_list.c: Likewise.
95222         * tests/test-ceilf.c: Likewise.
95223         * tests/test-ceill.c: Likewise.
95224         * tests/test-count-one-bits.c: Likewise.
95225         * tests/test-crc.c: Likewise.
95226         * tests/test-dirname.c: Likewise.
95227         * tests/test-fbufmode.c: Likewise.
95228         * tests/test-fcntl.c: Likewise.
95229         * tests/test-fflush.c: Likewise.
95230         * tests/test-floorf.c: Likewise.
95231         * tests/test-floorl.c: Likewise.
95232         * tests/test-fopen.c: Likewise.
95233         * tests/test-fprintf-posix.c: Likewise.
95234         * tests/test-fprintf-posix.h: Likewise.
95235         * tests/test-fpurge.c: Likewise.
95236         * tests/test-freadable.c: Likewise.
95237         * tests/test-freadahead.c: Likewise.
95238         * tests/test-freading.c: Likewise.
95239         * tests/test-freopen.c: Likewise.
95240         * tests/test-frexp.c: Likewise.
95241         * tests/test-frexpl.c: Likewise.
95242         * tests/test-fseek.c: Likewise.
95243         * tests/test-fseeko.c: Likewise.
95244         * tests/test-fseterr.c: Likewise.
95245         * tests/test-fstrcmp.c: Likewise.
95246         * tests/test-ftell.c: Likewise.
95247         * tests/test-ftello.c: Likewise.
95248         * tests/test-fwritable.c: Likewise.
95249         * tests/test-fwriting.c: Likewise.
95250         * tests/test-getaddrinfo.c: Likewise.
95251         * tests/test-getpass.c: Likewise.
95252         * tests/test-gettimeofday.c: Likewise.
95253         * tests/test-hmac-md5.c: Likewise.
95254         * tests/test-hmac-sha1.c: Likewise.
95255         * tests/test-iconv.c: Likewise.
95256         * tests/test-iconvme.c: Likewise.
95257         * tests/test-inttypes.c: Likewise.
95258         * tests/test-isnan.c: Likewise.
95259         * tests/test-isnanf.c: Likewise.
95260         * tests/test-isnanl-nolibm.c: Likewise.
95261         * tests/test-isnanl.c: Likewise.
95262         * tests/test-isnanl.h: Likewise.
95263         * tests/test-ldexpl.c: Likewise.
95264         * tests/test-linked_list.c: Likewise.
95265         * tests/test-linkedhash_list.c: Likewise.
95266         * tests/test-locale.c: Likewise.
95267         * tests/test-localename.c: Likewise.
95268         * tests/test-lock.c: Likewise.
95269         * tests/test-lseek.c: Likewise.
95270         * tests/test-malloca.c: Likewise.
95271         * tests/test-math.c: Likewise.
95272         * tests/test-mbscasecmp.c: Likewise.
95273         * tests/test-mbscasestr1.c: Likewise.
95274         * tests/test-mbscasestr2.c: Likewise.
95275         * tests/test-mbscasestr3.c: Likewise.
95276         * tests/test-mbscasestr4.c: Likewise.
95277         * tests/test-mbschr.c: Likewise.
95278         * tests/test-mbscspn.c: Likewise.
95279         * tests/test-mbsncasecmp.c: Likewise.
95280         * tests/test-mbspbrk.c: Likewise.
95281         * tests/test-mbspcasecmp.c: Likewise.
95282         * tests/test-mbsrchr.c: Likewise.
95283         * tests/test-mbsspn.c: Likewise.
95284         * tests/test-mbsstr1.c: Likewise.
95285         * tests/test-mbsstr2.c: Likewise.
95286         * tests/test-mbsstr3.c: Likewise.
95287         * tests/test-md5.c: Likewise.
95288         * tests/test-memmem.c: Likewise.
95289         * tests/test-netinet_in.c: Likewise.
95290         * tests/test-open.c: Likewise.
95291         * tests/test-printf-frexp.c: Likewise.
95292         * tests/test-printf-frexpl.c: Likewise.
95293         * tests/test-printf-posix.c: Likewise.
95294         * tests/test-printf-posix.h: Likewise.
95295         * tests/test-rbtree_list.c: Likewise.
95296         * tests/test-rbtree_oset.c: Likewise.
95297         * tests/test-rbtreehash_list.c: Likewise.
95298         * tests/test-read-file.c: Likewise.
95299         * tests/test-rijndael.c: Likewise.
95300         * tests/test-search.c: Likewise.
95301         * tests/test-signbit.c: Likewise.
95302         * tests/test-sleep.c: Likewise.
95303         * tests/test-snprintf-posix.c: Likewise.
95304         * tests/test-snprintf-posix.h: Likewise.
95305         * tests/test-snprintf.c: Likewise.
95306         * tests/test-sprintf-posix.c: Likewise.
95307         * tests/test-sprintf-posix.h: Likewise.
95308         * tests/test-stat-time.c: Likewise.
95309         * tests/test-stdbool.c: Likewise.
95310         * tests/test-stdint.c: Likewise.
95311         * tests/test-stdio.c: Likewise.
95312         * tests/test-stdlib.c: Likewise.
95313         * tests/test-stpncpy.c: Likewise.
95314         * tests/test-strcasestr.c: Likewise.
95315         * tests/test-striconv.c: Likewise.
95316         * tests/test-striconveh.c: Likewise.
95317         * tests/test-striconveha.c: Likewise.
95318         * tests/test-string.c: Likewise.
95319         * tests/test-sys_select.c: Likewise.
95320         * tests/test-sys_socket.c: Likewise.
95321         * tests/test-sys_stat.c: Likewise.
95322         * tests/test-sys_time.c: Likewise.
95323         * tests/test-sysexits.c: Likewise.
95324         * tests/test-time.c: Likewise.
95325         * tests/test-tls.c: Likewise.
95326         * tests/test-trunc.c: Likewise.
95327         * tests/test-truncf.c: Likewise.
95328         * tests/test-truncl.c: Likewise.
95329         * tests/test-unistd.c: Likewise.
95330         * tests/test-vasnprintf-posix.c: Likewise.
95331         * tests/test-vasnprintf-posix2.c: Likewise.
95332         * tests/test-vasnprintf.c: Likewise.
95333         * tests/test-vasprintf-posix.c: Likewise.
95334         * tests/test-vasprintf.c: Likewise.
95335         * tests/test-verify.c: Likewise.
95336         * tests/test-vfprintf-posix.c: Likewise.
95337         * tests/test-vprintf-posix.c: Likewise.
95338         * tests/test-vsnprintf-posix.c: Likewise.
95339         * tests/test-vsnprintf.c: Likewise.
95340         * tests/test-vsprintf-posix.c: Likewise.
95341         * tests/test-wchar.c: Likewise.
95342         * tests/test-wctype.c: Likewise.
95343         * tests/test-wcwidth.c: Likewise.
95344         * tests/test-xstrtol.c: Likewise.
95345         * tests/test-xvasprintf.c: Likewise.
95346         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
95347         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
95348         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
95349         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
95350         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
95351         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
95352         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
95353         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
95354         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
95355         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
95356         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
95357         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
95358         * tests/uniname/test-uninames.c: Likewise.
95359         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
95360         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
95361         * tests/unistdio/test-u16-printf1.h: Likewise.
95362         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
95363         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
95364         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
95365         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
95366         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
95367         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
95368         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
95369         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
95370         * tests/unistdio/test-u32-printf1.h: Likewise.
95371         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
95372         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
95373         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
95374         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
95375         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
95376         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
95377         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
95378         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
95379         * tests/unistdio/test-u8-printf1.h: Likewise.
95380         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
95381         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
95382         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
95383         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
95384         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
95385         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
95386         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
95387         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
95388         * tests/unistdio/test-ulc-printf1.h: Likewise.
95389         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
95390         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
95391         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
95392         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
95393         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
95394         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
95395         * tests/uniwidth/test-u16-strwidth.c: Likewise.
95396         * tests/uniwidth/test-u16-width.c: Likewise.
95397         * tests/uniwidth/test-u32-strwidth.c: Likewise.
95398         * tests/uniwidth/test-u32-width.c: Likewise.
95399         * tests/uniwidth/test-u8-strwidth.c: Likewise.
95400         * tests/uniwidth/test-u8-width.c: Likewise.
95401         * tests/uniwidth/test-uc_width.c: Likewise.
95402         * config/srclist-update: Likewise.
95403         (fixlicense): Update to GPLv3+.
95405         Change copyright notice from LGPLv2.1+ to LGPLv3+.
95406         * tests/test-tsearch.c: Change copyright notice.
95408         Change copyright notice from LGPLv2.0+ to LGPLv3+.
95409         * lib/c-strcaseeq.h: Change copyright notice.
95410         * lib/streq.h: Likewise.
95411         * lib/uniconv.h: Likewise.
95412         * lib/uniconv/u-conv-from-enc.h: Likewise.
95413         * lib/uniconv/u-conv-to-enc.h: Likewise.
95414         * lib/uniconv/u-strconv-from-enc.h: Likewise.
95415         * lib/uniconv/u-strconv-to-enc.h: Likewise.
95416         * lib/uniconv/u16-conv-from-enc.c: Likewise.
95417         * lib/uniconv/u16-conv-to-enc.c: Likewise.
95418         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
95419         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
95420         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
95421         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
95422         * lib/uniconv/u32-conv-from-enc.c: Likewise.
95423         * lib/uniconv/u32-conv-to-enc.c: Likewise.
95424         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
95425         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
95426         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
95427         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
95428         * lib/uniconv/u8-conv-from-enc.c: Likewise.
95429         * lib/uniconv/u8-conv-to-enc.c: Likewise.
95430         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
95431         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
95432         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
95433         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
95434         * lib/uniname.h: Likewise.
95435         * lib/uniname/uniname.c: Likewise.
95436         * lib/unistdio.h: Likewise.
95437         * lib/unistdio/u-asnprintf.h: Likewise.
95438         * lib/unistdio/u-asprintf.h: Likewise.
95439         * lib/unistdio/u-printf-args.c: Likewise.
95440         * lib/unistdio/u-printf-args.h: Likewise.
95441         * lib/unistdio/u-printf-parse.h: Likewise.
95442         * lib/unistdio/u-snprintf.h: Likewise.
95443         * lib/unistdio/u-sprintf.h: Likewise.
95444         * lib/unistdio/u-vasprintf.h: Likewise.
95445         * lib/unistdio/u-vsnprintf.h: Likewise.
95446         * lib/unistdio/u-vsprintf.h: Likewise.
95447         * lib/unistdio/u16-asnprintf.c: Likewise.
95448         * lib/unistdio/u16-asprintf.c: Likewise.
95449         * lib/unistdio/u16-printf-parse.c: Likewise.
95450         * lib/unistdio/u16-snprintf.c: Likewise.
95451         * lib/unistdio/u16-sprintf.c: Likewise.
95452         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
95453         * lib/unistdio/u16-u16-asprintf.c: Likewise.
95454         * lib/unistdio/u16-u16-snprintf.c: Likewise.
95455         * lib/unistdio/u16-u16-sprintf.c: Likewise.
95456         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
95457         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
95458         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
95459         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
95460         * lib/unistdio/u16-vasnprintf.c: Likewise.
95461         * lib/unistdio/u16-vasprintf.c: Likewise.
95462         * lib/unistdio/u16-vsnprintf.c: Likewise.
95463         * lib/unistdio/u16-vsprintf.c: Likewise.
95464         * lib/unistdio/u32-asnprintf.c: Likewise.
95465         * lib/unistdio/u32-asprintf.c: Likewise.
95466         * lib/unistdio/u32-printf-parse.c: Likewise.
95467         * lib/unistdio/u32-snprintf.c: Likewise.
95468         * lib/unistdio/u32-sprintf.c: Likewise.
95469         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
95470         * lib/unistdio/u32-u32-asprintf.c: Likewise.
95471         * lib/unistdio/u32-u32-snprintf.c: Likewise.
95472         * lib/unistdio/u32-u32-sprintf.c: Likewise.
95473         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
95474         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
95475         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
95476         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
95477         * lib/unistdio/u32-vasnprintf.c: Likewise.
95478         * lib/unistdio/u32-vasprintf.c: Likewise.
95479         * lib/unistdio/u32-vsnprintf.c: Likewise.
95480         * lib/unistdio/u32-vsprintf.c: Likewise.
95481         * lib/unistdio/u8-asnprintf.c: Likewise.
95482         * lib/unistdio/u8-asprintf.c: Likewise.
95483         * lib/unistdio/u8-printf-parse.c: Likewise.
95484         * lib/unistdio/u8-snprintf.c: Likewise.
95485         * lib/unistdio/u8-sprintf.c: Likewise.
95486         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
95487         * lib/unistdio/u8-u8-asprintf.c: Likewise.
95488         * lib/unistdio/u8-u8-snprintf.c: Likewise.
95489         * lib/unistdio/u8-u8-sprintf.c: Likewise.
95490         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
95491         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
95492         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
95493         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
95494         * lib/unistdio/u8-vasnprintf.c: Likewise.
95495         * lib/unistdio/u8-vasprintf.c: Likewise.
95496         * lib/unistdio/u8-vsnprintf.c: Likewise.
95497         * lib/unistdio/u8-vsprintf.c: Likewise.
95498         * lib/unistdio/ulc-asnprintf.c: Likewise.
95499         * lib/unistdio/ulc-asprintf.c: Likewise.
95500         * lib/unistdio/ulc-printf-parse.c: Likewise.
95501         * lib/unistdio/ulc-snprintf.c: Likewise.
95502         * lib/unistdio/ulc-sprintf.c: Likewise.
95503         * lib/unistdio/ulc-vasnprintf.c: Likewise.
95504         * lib/unistdio/ulc-vasprintf.c: Likewise.
95505         * lib/unistdio/ulc-vsnprintf.c: Likewise.
95506         * lib/unistdio/ulc-vsprintf.c: Likewise.
95507         * lib/unistr.h: Likewise.
95508         * lib/unistr/u-cpy-alloc.h: Likewise.
95509         * lib/unistr/u-cpy.h: Likewise.
95510         * lib/unistr/u-endswith.h: Likewise.
95511         * lib/unistr/u-move.h: Likewise.
95512         * lib/unistr/u-set.h: Likewise.
95513         * lib/unistr/u-startswith.h: Likewise.
95514         * lib/unistr/u-stpcpy.h: Likewise.
95515         * lib/unistr/u-stpncpy.h: Likewise.
95516         * lib/unistr/u-strcat.h: Likewise.
95517         * lib/unistr/u-strcpy.h: Likewise.
95518         * lib/unistr/u-strcspn.h: Likewise.
95519         * lib/unistr/u-strdup.h: Likewise.
95520         * lib/unistr/u-strlen.h: Likewise.
95521         * lib/unistr/u-strncat.h: Likewise.
95522         * lib/unistr/u-strncpy.h: Likewise.
95523         * lib/unistr/u-strnlen.h: Likewise.
95524         * lib/unistr/u-strpbrk.h: Likewise.
95525         * lib/unistr/u-strspn.h: Likewise.
95526         * lib/unistr/u-strstr.h: Likewise.
95527         * lib/unistr/u-strtok.h: Likewise.
95528         * lib/unistr/u16-check.c: Likewise.
95529         * lib/unistr/u16-chr.c: Likewise.
95530         * lib/unistr/u16-cmp.c: Likewise.
95531         * lib/unistr/u16-cpy-alloc.c: Likewise.
95532         * lib/unistr/u16-cpy.c: Likewise.
95533         * lib/unistr/u16-endswith.c: Likewise.
95534         * lib/unistr/u16-mblen.c: Likewise.
95535         * lib/unistr/u16-mbsnlen.c: Likewise.
95536         * lib/unistr/u16-mbtouc-aux.c: Likewise.
95537         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
95538         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
95539         * lib/unistr/u16-mbtouc.c: Likewise.
95540         * lib/unistr/u16-mbtoucr.c: Likewise.
95541         * lib/unistr/u16-move.c: Likewise.
95542         * lib/unistr/u16-next.c: Likewise.
95543         * lib/unistr/u16-prev.c: Likewise.
95544         * lib/unistr/u16-set.c: Likewise.
95545         * lib/unistr/u16-startswith.c: Likewise.
95546         * lib/unistr/u16-stpcpy.c: Likewise.
95547         * lib/unistr/u16-stpncpy.c: Likewise.
95548         * lib/unistr/u16-strcat.c: Likewise.
95549         * lib/unistr/u16-strchr.c: Likewise.
95550         * lib/unistr/u16-strcmp.c: Likewise.
95551         * lib/unistr/u16-strcpy.c: Likewise.
95552         * lib/unistr/u16-strcspn.c: Likewise.
95553         * lib/unistr/u16-strdup.c: Likewise.
95554         * lib/unistr/u16-strlen.c: Likewise.
95555         * lib/unistr/u16-strmblen.c: Likewise.
95556         * lib/unistr/u16-strmbtouc.c: Likewise.
95557         * lib/unistr/u16-strncat.c: Likewise.
95558         * lib/unistr/u16-strncmp.c: Likewise.
95559         * lib/unistr/u16-strncpy.c: Likewise.
95560         * lib/unistr/u16-strnlen.c: Likewise.
95561         * lib/unistr/u16-strpbrk.c: Likewise.
95562         * lib/unistr/u16-strrchr.c: Likewise.
95563         * lib/unistr/u16-strspn.c: Likewise.
95564         * lib/unistr/u16-strstr.c: Likewise.
95565         * lib/unistr/u16-strtok.c: Likewise.
95566         * lib/unistr/u16-to-u32.c: Likewise.
95567         * lib/unistr/u16-to-u8.c: Likewise.
95568         * lib/unistr/u16-uctomb-aux.c: Likewise.
95569         * lib/unistr/u16-uctomb.c: Likewise.
95570         * lib/unistr/u32-check.c: Likewise.
95571         * lib/unistr/u32-chr.c: Likewise.
95572         * lib/unistr/u32-cmp.c: Likewise.
95573         * lib/unistr/u32-cpy-alloc.c: Likewise.
95574         * lib/unistr/u32-cpy.c: Likewise.
95575         * lib/unistr/u32-endswith.c: Likewise.
95576         * lib/unistr/u32-mblen.c: Likewise.
95577         * lib/unistr/u32-mbsnlen.c: Likewise.
95578         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
95579         * lib/unistr/u32-mbtouc.c: Likewise.
95580         * lib/unistr/u32-mbtoucr.c: Likewise.
95581         * lib/unistr/u32-move.c: Likewise.
95582         * lib/unistr/u32-next.c: Likewise.
95583         * lib/unistr/u32-prev.c: Likewise.
95584         * lib/unistr/u32-set.c: Likewise.
95585         * lib/unistr/u32-startswith.c: Likewise.
95586         * lib/unistr/u32-stpcpy.c: Likewise.
95587         * lib/unistr/u32-stpncpy.c: Likewise.
95588         * lib/unistr/u32-strcat.c: Likewise.
95589         * lib/unistr/u32-strchr.c: Likewise.
95590         * lib/unistr/u32-strcmp.c: Likewise.
95591         * lib/unistr/u32-strcpy.c: Likewise.
95592         * lib/unistr/u32-strcspn.c: Likewise.
95593         * lib/unistr/u32-strdup.c: Likewise.
95594         * lib/unistr/u32-strlen.c: Likewise.
95595         * lib/unistr/u32-strmblen.c: Likewise.
95596         * lib/unistr/u32-strmbtouc.c: Likewise.
95597         * lib/unistr/u32-strncat.c: Likewise.
95598         * lib/unistr/u32-strncmp.c: Likewise.
95599         * lib/unistr/u32-strncpy.c: Likewise.
95600         * lib/unistr/u32-strnlen.c: Likewise.
95601         * lib/unistr/u32-strpbrk.c: Likewise.
95602         * lib/unistr/u32-strrchr.c: Likewise.
95603         * lib/unistr/u32-strspn.c: Likewise.
95604         * lib/unistr/u32-strstr.c: Likewise.
95605         * lib/unistr/u32-strtok.c: Likewise.
95606         * lib/unistr/u32-to-u16.c: Likewise.
95607         * lib/unistr/u32-to-u8.c: Likewise.
95608         * lib/unistr/u32-uctomb.c: Likewise.
95609         * lib/unistr/u8-check.c: Likewise.
95610         * lib/unistr/u8-chr.c: Likewise.
95611         * lib/unistr/u8-cmp.c: Likewise.
95612         * lib/unistr/u8-cpy-alloc.c: Likewise.
95613         * lib/unistr/u8-cpy.c: Likewise.
95614         * lib/unistr/u8-endswith.c: Likewise.
95615         * lib/unistr/u8-mblen.c: Likewise.
95616         * lib/unistr/u8-mbsnlen.c: Likewise.
95617         * lib/unistr/u8-mbtouc-aux.c: Likewise.
95618         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
95619         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
95620         * lib/unistr/u8-mbtouc.c: Likewise.
95621         * lib/unistr/u8-mbtoucr.c: Likewise.
95622         * lib/unistr/u8-move.c: Likewise.
95623         * lib/unistr/u8-next.c: Likewise.
95624         * lib/unistr/u8-prev.c: Likewise.
95625         * lib/unistr/u8-set.c: Likewise.
95626         * lib/unistr/u8-startswith.c: Likewise.
95627         * lib/unistr/u8-stpcpy.c: Likewise.
95628         * lib/unistr/u8-stpncpy.c: Likewise.
95629         * lib/unistr/u8-strcat.c: Likewise.
95630         * lib/unistr/u8-strchr.c: Likewise.
95631         * lib/unistr/u8-strcmp.c: Likewise.
95632         * lib/unistr/u8-strcpy.c: Likewise.
95633         * lib/unistr/u8-strcspn.c: Likewise.
95634         * lib/unistr/u8-strdup.c: Likewise.
95635         * lib/unistr/u8-strlen.c: Likewise.
95636         * lib/unistr/u8-strmblen.c: Likewise.
95637         * lib/unistr/u8-strmbtouc.c: Likewise.
95638         * lib/unistr/u8-strncat.c: Likewise.
95639         * lib/unistr/u8-strncmp.c: Likewise.
95640         * lib/unistr/u8-strncpy.c: Likewise.
95641         * lib/unistr/u8-strnlen.c: Likewise.
95642         * lib/unistr/u8-strpbrk.c: Likewise.
95643         * lib/unistr/u8-strrchr.c: Likewise.
95644         * lib/unistr/u8-strspn.c: Likewise.
95645         * lib/unistr/u8-strstr.c: Likewise.
95646         * lib/unistr/u8-strtok.c: Likewise.
95647         * lib/unistr/u8-to-u16.c: Likewise.
95648         * lib/unistr/u8-to-u32.c: Likewise.
95649         * lib/unistr/u8-uctomb-aux.c: Likewise.
95650         * lib/unistr/u8-uctomb.c: Likewise.
95651         * lib/unitypes.h: Likewise.
95652         * lib/uniwidth.h: Likewise.
95653         * lib/uniwidth/cjk.h: Likewise.
95654         * lib/uniwidth/u16-strwidth.c: Likewise.
95655         * lib/uniwidth/u16-width.c: Likewise.
95656         * lib/uniwidth/u32-strwidth.c: Likewise.
95657         * lib/uniwidth/u32-width.c: Likewise.
95658         * lib/uniwidth/u8-strwidth.c: Likewise.
95659         * lib/uniwidth/u8-width.c: Likewise.
95660         * lib/uniwidth/width.c: Likewise.
95662 2007-10-07  Bruno Haible  <bruno@clisp.org>
95664         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
95665         The file is still under LGPL (see modules/inttypes).
95667 2007-10-06  Bruno Haible  <bruno@clisp.org>
95669         * modules/trunc (Dependencies): Add 'extensions'.
95670         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
95671         Reported by Ben Pfaff <blp@gnu.org>.
95673 2007-10-06  Bruno Haible  <bruno@clisp.org>
95675         * modules/freopen-tests: New file.
95676         * tests/test-freopen.c: New file.
95678         * modules/fopen-tests: New file.
95679         * tests/test-fopen.c: New file.
95681         * modules/fopen: New file.
95682         * lib/fopen.c: New file.
95683         * m4/fopen.m4: New file.
95684         * modules/freopen: New file.
95685         * lib/freopen.c: New file.
95686         * m4/freopen.m4: New file.
95687         * lib/stdio.in.h (fopen, freopen): New declarations.
95688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
95689         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
95690         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
95691         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
95692         * doc/functions/fopen.texi: Mention the 'fopen' module.
95693         * doc/functions/freopen.texi: Mention the 'freopen' module.
95695 2007-10-06  Bruno Haible  <bruno@clisp.org>
95697         * modules/open-tests: New file.
95698         * tests/test-open.c: New file.
95700         * modules/open: New file.
95701         * lib/open.c: New file.
95702         * m4/open.m4: New file.
95703         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
95704         lib/open.c does.
95705         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
95706         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
95707         macros.
95708         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
95709         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
95710         REPLACE_OPEN.
95711         * doc/functions/open.texi: Mention the 'open' module.
95713 2007-10-04  Bruno Haible  <bruno@clisp.org>
95715         * modules/ceill-tests: New file.
95716         * tests/test-ceill.c: New file.
95718         * modules/ceill: New file.
95719         * lib/ceill.c: Replace entire file.
95720         * m4/ceill.m4: New file.
95721         * lib/math.in.h (ceill): Replace declaration.
95722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
95723         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
95724         * doc/functions/ceill.texi: Mention the 'ceill' module.
95725         * modules/mathl (Files): Remove lib/ceill.c.
95726         (Depends-on): Add ceill.
95728 2007-10-04  Bruno Haible  <bruno@clisp.org>
95730         * modules/ceilf-tests: New file.
95731         * tests/test-ceilf.c: New file.
95733         * modules/ceilf: New file.
95734         * lib/ceil.c: New file.
95735         * lib/ceilf.c: New file.
95736         * m4/ceilf.m4: New file.
95737         * lib/math.in.h (ceilf): New declaration.
95738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
95739         HAVE_DECL_CEILF.
95740         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
95741         HAVE_DECL_CEILF.
95742         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
95744 2007-10-04  Bruno Haible  <bruno@clisp.org>
95746         * modules/floorl-tests: New file.
95747         * tests/test-floorl.c: New file.
95749         * modules/floorl: New file.
95750         * lib/floorl.c: Replace entire file.
95751         * m4/floorl.m4: New file.
95752         * lib/math.in.h (floorl): Replace declaration.
95753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
95754         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
95755         * doc/functions/floorl.texi: Mention the 'floorl' module.
95756         * modules/mathl (Files): Remove lib/floorl.c.
95757         (Depends-on): Add floorl.
95759 2007-10-04  Bruno Haible  <bruno@clisp.org>
95761         * modules/floorf-tests: New file.
95762         * tests/test-floorf.c: New file.
95764         * modules/floorf: New file.
95765         * lib/floor.c: New file.
95766         * lib/floorf.c: New file.
95767         * m4/floorf.m4: New file.
95768         * lib/math.in.h (floorf): New declaration.
95769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
95770         HAVE_DECL_FLOORF.
95771         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
95772         HAVE_DECL_FLOORF.
95773         * doc/functions/floorf.texi: Mention the 'floorf' module.
95775 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
95776             Bruno Haible  <bruno@clisp.org>
95778         Advertise for the Git server instead of the CVS server.
95779         * doc/gnulib-intro.texi (Steady Development): Mention the Git
95780         repository instead of the CVS one.
95781         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
95782         about all VCS systems generically.
95783         * doc/gnulib.texi (Introduction): Capitalize `Git'.
95785 2007-10-04  Bruno Haible  <bruno@clisp.org>
95787         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
95788         means.
95789         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
95791 2007-10-04  Bruno Haible  <bruno@clisp.org>
95793         * modules/truncl-tests: New file.
95794         * tests/test-truncl.c: New file.
95796         * modules/truncl: New file.
95797         * lib/truncl.c: New file.
95798         * m4/truncl.m4: New file.
95799         * lib/math.in.h (truncl): New declaration.
95800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
95801         HAVE_DECL_TRUNCL.
95802         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
95803         HAVE_DECL_TRUNCL.
95804         * doc/functions/truncl.texi: Mention the 'truncl' module.
95806 2007-10-04  Bruno Haible  <bruno@clisp.org>
95808         * modules/truncf-tests: New file.
95809         * tests/test-truncf.c: New file.
95811         * modules/truncf: New file.
95812         * lib/trunc.c: Make paramerizable through USE_* macros.
95813         * lib/truncf.c: New file.
95814         * m4/truncf.m4: New file.
95815         * lib/math.in.h (truncf): New declaration.
95816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
95817         HAVE_DECL_TRUNCF.
95818         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
95819         HAVE_DECL_TRUNCF.
95820         * doc/functions/truncf.texi: Mention the 'truncf' module.
95822 2007-10-03  Bruno Haible  <bruno@clisp.org>
95824         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95825         augmentation also for tests modules.
95826         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
95827         * modules/atexit-tests (Makefile.am): Likewise.
95828         * modules/binary-io-tests (Makefile.am): Likewise.
95829         * modules/c-strcase-tests (Makefile.am): Likewise.
95830         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
95831         * modules/canonicalize-tests (Makefile.am): Likewise.
95832         * modules/closein-tests (Makefile.am): Likewise.
95833         * modules/fprintf-posix-tests (Makefile.am): Likewise.
95834         * modules/freadahead-tests (Makefile.am): Likewise.
95835         * modules/fseek-tests (Makefile.am): Likewise.
95836         * modules/fseeko-tests (Makefile.am): Likewise.
95837         * modules/ftell-tests (Makefile.am): Likewise.
95838         * modules/ftello-tests (Makefile.am): Likewise.
95839         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
95840         * modules/isnanl-tests (Makefile.am): Likewise.
95841         * modules/lseek-tests (Makefile.am): Likewise.
95842         * modules/mbscasecmp-tests (Makefile.am): Likewise.
95843         * modules/mbscasestr-tests (Makefile.am): Likewise.
95844         * modules/mbschr-tests (Makefile.am): Likewise.
95845         * modules/mbscspn-tests (Makefile.am): Likewise.
95846         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
95847         * modules/mbspbrk-tests (Makefile.am): Likewise.
95848         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
95849         * modules/mbsrchr-tests (Makefile.am): Likewise.
95850         * modules/mbsspn-tests (Makefile.am): Likewise.
95851         * modules/mbsstr-tests (Makefile.am): Likewise.
95852         * modules/printf-posix-tests (Makefile.am): Likewise.
95853         * modules/snprintf-posix-tests (Makefile.am): Likewise.
95854         * modules/sprintf-posix-tests (Makefile.am): Likewise.
95855         * modules/tsearch-tests (Makefile.am): Likewise.
95856         * modules/uniname/uniname-tests (Makefile.am): Likewise.
95857         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
95858         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
95859         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
95860         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
95861         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
95862         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
95863         * modules/vprintf-posix-tests (Makefile.am): Likewise.
95864         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
95865         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
95866         * modules/xstrtoimax-tests (Makefile.am): Likewise.
95867         * modules/xstrtol-tests (Makefile.am): Likewise.
95868         * modules/xstrtoumax-tests (Makefile.am): Likewise.
95869         * modules/yesno-tests (Makefile.am): Likewise.
95871 2007-10-03  Bruno Haible  <bruno@clisp.org>
95873         * modules/trunc-tests: New file.
95874         * tests/test-trunc.c: New file.
95876         * modules/trunc: New file.
95877         * lib/trunc.c: New file.
95878         * m4/trunc.m4: New file.
95879         * lib/math.in.h (trunc): New declaration.
95880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
95881         HAVE_DECL_TRUNC.
95882         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
95883         HAVE_DECL_TRUNC.
95884         * doc/functions/trunc.texi: Mention the 'trunc' module.
95886 2007-10-03  Bruno Haible  <bruno@clisp.org>
95888         * tests/test-fpending.c: New file, mostly copied
95889         from coreutils/lib/t-fpending.c.
95890         * modules/fpending-tests: New file.
95892 2007-10-03  Bruno Haible  <bruno@clisp.org>
95894         Port the stdio extensions to QNX (untested).
95895         * lib/fseterr.c (fseterr): Add support for QNX.
95896         * lib/fbufmode.c (fbufmode): Likewise.
95897         * lib/freadable.c (freadable): Likewise.
95898         * lib/fwritable.c (fwritable): Likewise.
95899         * lib/freading.c (freading): Likewise.
95900         * lib/fwriting.c (fwriting): Likewise.
95901         * lib/freadahead.c (freadahed): Likewise.
95902         * lib/fpurge.c (fpurge): Likewise.
95903         * lib/fseeko.c (rpl_fseeko): Likewise.
95905 2007-10-03  Bruno Haible  <bruno@clisp.org>
95906             Jim Meyering  <jim@meyering.net>
95907             Eric Blake  <ebb9@byu.net>
95909         * doc/relocatable.texi: Use @command instead of @program.
95911 2007-10-02  Jim Meyering  <jim@meyering.net>
95913         Perform one more "_.h" -> ".in.h" substitution.
95914         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
95915         instead of unistd_.h here, too.
95917 2007-10-01  Bruno Haible  <bruno@clisp.org>
95919         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
95920         Needed for the alloca-opt module.
95922 2007-09-30  Bruno Haible  <bruno@clisp.org>
95924         * lib/alloca.in.h: Renamed from lib/alloca_.h.
95925         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
95926         alloca_.h.
95927         * lib/argz.in.h: Renamed from lib/argz_.h.
95928         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
95929         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
95930         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
95931         byteswap_.h.
95932         * lib/dirent.in.h: Renamed from lib/dirent_.h.
95933         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
95934         dirent_.h.
95935         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
95936         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
95937         fcntl_.h.
95938         * lib/float.in.h: Renamed from lib/float_.h.
95939         * modules/float (Files, Makefile.am): Use float.in.h instead of
95940         float_.h.
95941         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
95942         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
95943         fnmatch_.h.
95944         * lib/getopt.in.h: Renamed from lib/getopt_.h.
95945         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
95946         getopt_.h.
95947         * lib/glob.in.h: Renamed from lib/glob_.h.
95948         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
95949         * lib/iconv.in.h: Renamed from lib/iconv_.h.
95950         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
95951         iconv_.h.
95952         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
95953         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
95954         inttypes_.h.
95955         * lib/locale.in.h: Renamed from lib/locale_.h.
95956         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
95957         locale_.h.
95958         * lib/math.in.h: Renamed from lib/math_.h.
95959         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
95960         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
95961         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
95962         of netinet_in_.h. Add dependency.
95963         * lib/poll.in.h: Renamed from lib/poll_.h.
95964         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
95965         * lib/search.in.h: Renamed from lib/search_.h.
95966         * modules/search (Files, Makefile.am): Use search.in.h instead of
95967         search_.h.
95968         * lib/signal.in.h: Renamed from lib/signal_.h.
95969         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
95970         _signal.h.
95971         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
95972         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
95973         stdbool_.h.
95974         * lib/stdint.in.h: Renamed from lib/stdint_.h.
95975         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
95976         stdint_.h.
95977         * lib/stdio.in.h: Renamed from lib/stdio_.h.
95978         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
95979         stdio_.h.
95980         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
95981         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
95982         stdlib_.h.
95983         * lib/string.in.h: Renamed from lib/string_.h.
95984         * modules/string (Files, Makefile.am): Use string.in.h instead of
95985         string_.h.
95986         * doc/gnulib-tool.texi (Initial import): Update.
95987         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
95988         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
95989         of sys_select_.h. Add dependency.
95990         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
95991         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
95992         of sys_socket_.h.
95993         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
95994         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
95995         sys_stat_.h.
95996         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
95997         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
95998         sys_time_.h.
95999         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
96000         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
96001         sysexits_.h.
96002         * lib/time.in.h: Renamed from lib/time_.h.
96003         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
96004         * lib/unistd.in.h: Renamed from lib/unistd_.h.
96005         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
96006         unistd_.h.
96007         * lib/wchar.in.h: Renamed from lib/wchar_.h.
96008         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
96009         wchar_.h.
96010         * lib/wctype.in.h: Renamed from lib/wctype_.h.
96011         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
96012         wctype_.h.
96013         * build-aux/bootstrap (slurp): Update.
96014         * lib/.cppi-disable: Update.
96016 2007-09-30  Bruno Haible  <bruno@clisp.org>
96018         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
96019         Needed on BeOS.
96021 2007-09-30  Bruno Haible  <bruno@clisp.org>
96023         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
96025 2007-09-29  Bruno Haible  <bruno@clisp.org>
96027         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
96029 2007-09-29  Bruno Haible  <bruno@clisp.org>
96031         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
96032         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
96033         * build-aux/install-reloc: Compile also areadlink.c.
96034         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
96036 2007-09-29  Bruno Haible  <bruno@clisp.org>
96038         * gnulib-tool (func_emit_initmacro_done): Indentation.
96040 2007-09-29  Bruno Haible  <bruno@clisp.org>
96042         * README: Add CVS checkout update instructions.
96043         Info from Bob Proulx <bob@proulx.com>.
96045 2007-09-28  Eric Blake  <ebb9@byu.net>
96047         Provide move-if-change.
96048         * build-aux/move-if-change: New file, based on best practice
96049         rather than any canonical upstream location.
96051 2007-09-28  Jim Meyering  <jim@meyering.net>
96053         Fix canonicalize loop-detection corner case.
96054         Do not attempt to stat the symlink values stored via seen_triple.
96055         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
96056         on linux-2.6.18, (but not 2.6.22).
96057         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
96058         triple_compare.  The former compares dev,ino,filename, while the latter
96059         would actually stat dirname(filename) when dev and ino were equal.
96060         * lib/hash-triple.c: Install <string.h>.
96061         (STREQ): Define.
96062         (triple_compare_ino_str): New function.
96063         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
96065 2007-09-28  Eric Blake  <ebb9@byu.net>
96067         Enforce that AC_REPLACE_FUNCS files exist.
96068         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
96069         override check for typos.
96071         Fix test-closein on Solaris 10.
96072         * tests/test-closein.c (main): Don't assume stdin can be inherited
96073         closed on all systems.
96074         * tests/test-closein.sh: Likewise.
96075         Reported by Piotr Tarnowski.
96077 2007-09-28  Jim Meyering  <jim@meyering.net>
96079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
96081 2007-09-27  Jim Meyering  <jim@meyering.net>
96083         canonicalize: Avoid a false-positive cycle failure.
96084         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
96085         Sort.  Remove cycle-check.
96086         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
96087         not cycle-check.h.
96088         (seen_triple): New function.
96089         (canonicalize_filename_mode): Use it instead of cycle-check.
96090         * tests/test-canonicalize.c: Add a test for this bug.
96091         * tests/test-canonicalize.sh: Set up and run the test.
96093         New module, file-set, from coreutils.
96094         * modules/file-set: Define it.
96095         * lib/file-set.c, lib/file-set.h: Implement.
96097         New module, hash-triple, from coreutils.
96098         * modules/hash-triple: Define it.
96099         * lib/hash-triple.c, lib/hash-triple.h: Implement.
96101 2007-09-25  Eric Blake  <ebb9@byu.net>
96103         Fix strerror on Interix.
96104         * lib/string_.h (strerror): Declare replacement.
96105         * doc/functions/strerror.texi (strerror): Document the Interix
96106         shortcoming.
96107         * modules/string (Makefile.am): Support new hooks.
96108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
96109         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
96110         gl_FUNC_STRERROR_SEPARATE.
96111         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
96112         * lib/strerror.c (rpl_strerror): Provide replacement.
96113         * modules/strerror (Depends-on): Add string.
96114         (configure.ac): Detect use of module.
96115         * tests/test-strerror.c: New file.
96116         * modules/strerror-tests: New test module.
96117         * modules/argp (Depends-on): Add strerror.
96118         * modules/error (Depends-on): Likewise.
96119         Reported by Martin Koeppe.
96121 2007-09-24  Bruno Haible  <bruno@clisp.org>
96123         * README: Update git instructions.
96125 2007-09-24  Eric Blake  <ebb9@byu.net>
96127         Revert fpending breakage from 2007-09-08.
96128         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
96129         __fpending.c.
96131 2007-09-24  Jim Meyering  <jim@meyering.net>
96133         filenamecat.c: Add a test.
96134         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
96135         showing how the function works when DIR is the empty string.
96137 2007-09-21  Simon Josefsson  <simon@josefsson.org>
96139         * tests/test-canonicalize.sh: Turn on executable bit.
96141 2007-09-19  Eric Blake  <ebb9@byu.net>
96143         * README: Update CVS instructions.
96145 2007-09-18  Bruno Haible  <bruno@clisp.org>
96147         * modules/areadlink: New file.
96148         * lib/areadlink.h (areadlink): New declaration.
96149         * lib/areadlink.c: New file, based on lib/xreadlink.c.
96151 2007-09-17  Jim Meyering  <jim@meyering.net>
96153         * lib/savewd.c (ESTALE) [!defined]: Define.
96154         Reported to be required on Interix by Martin Koeppe.
96156 2007-09-17  Bruno Haible  <bruno@clisp.org>
96158         * gnulib-tool (func_version): Use $version.
96160 2007-09-16  Bruno Haible  <bruno@clisp.org>
96162         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
96163         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
96164         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
96165         Reported by Greg Schafer <gschafer@zip.com.au>.
96167 2007-09-15  Bruno Haible  <bruno@clisp.org>
96169         * gnulib-tool (sed): Try a little harder to make bash understand the
96170         alias.
96171         Reported by Bruce Korb <bruce.korb@gmail.com>.
96173 2007-09-13  Eric Blake  <ebb9@byu.net>
96175         * ChangeLog: Remove conflict markers.
96177 2007-09-13  Simon Josefsson  <simon@josefsson.org>
96179         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
96180         Reported by Bruno Haible <bruno@clisp.org>.
96182 2007-09-12  Bruno Haible  <bruno@clisp.org>
96184         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
96185         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
96186         is not defined.
96188 2007-09-12  Eric Blake  <ebb9@byu.net>
96190         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
96191         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
96192         Autoconf definition.
96193         * modules/euidaccess (Depends-on): Add extensions, for
96194         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
96195         * modules/fnmatch (Depends-on): Likewise.
96196         * modules/getaddrinfo (Depends-on): Likewise.
96197         * modules/getdelim (Depends-on): Likewise.
96198         * modules/getline (Depends-on): Likewise.
96199         * modules/getsubopt (Depends-on): Likewise.
96200         * modules/gettext (Depends-on): Likewise.
96201         * modules/group-member (Depends-on): Likewise.
96202         * modules/mbchar (Depends-on): Likewise.
96203         * modules/memmem (Depends-on): Likewise.
96204         * modules/mempcpy (Depends-on): Likewise.
96205         * modules/memrchr (Depends-on): Likewise.
96206         * modules/pagealign_alloc (Depends-on): Likewise.
96207         * modules/readutmp (Depends-on): Likewise.
96208         * modules/stpcpy (Depends-on): Likewise.
96209         * modules/stpncpy (Depends-on): Likewise.
96210         * modules/strchrnul (Depends-on): Likewise.
96211         * modules/strndup (Depends-on): Likewise.
96212         * modules/strsep (Depends-on): Likewise.
96213         * modules/strverscmp (Depends-on): Likewise.
96214         * modules/vasprintf (Depends-on): Likewise.
96215         * modules/wcwidth (Depends-on): Likewise.
96216         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
96217         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
96218         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
96219         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
96220         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
96221         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
96222         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
96223         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96224         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
96225         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
96226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
96227         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
96228         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
96229         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
96230         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
96231         * m4/readutmp.m4 (gl_READUTMP): Likewise.
96232         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
96233         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
96234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
96235         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
96236         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
96237         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
96238         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
96239         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
96240         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
96241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
96242         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
96243         so that lock.m4 can be used in gettext without extensions module.
96245 2007-09-11  Bruno Haible  <bruno@clisp.org>
96247         * m4/isc-posix.m4: Remove file.
96248         Suggested by Eric Blake.
96250 2007-09-11  Eric Blake  <ebb9@byu.net>
96252         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
96254 2007-09-10  Bruno Haible  <bruno@clisp.org>
96256         * posix-modules: Fix typo in error message.
96257         Reported by Matt <mkraai@beckman.com>.
96259 2007-09-09  Bruno Haible  <bruno@clisp.org>
96261         * doc/functions/getdelim.texi: Update list of platforms lacking the
96262         function.
96263         * doc/functions/getline.texi: Likewise.
96265 2007-09-09  Jim Meyering  <jim@meyering.net>
96267         * lib/hash.c (hash_initialize): Detect calloc failure.
96268         Reported by Bruno Haible.
96270 2007-09-09  Bruno Haible  <bruno@clisp.org>
96272         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
96273         malloc or realloc fails.
96275 2007-09-09  Bruno Haible  <bruno@clisp.org>
96277         * modules/getcwd (Depends-on): Add malloc-posix.
96278         * modules/glob (Depends-on): Likewise.
96279         * modules/putenv (Depends-on): Likewise.
96280         * modules/strdup (Depends-on): Likewise.
96281         * modules/getdelim (Depends-on): Add realloc-posix.
96282         * modules/read-file (Depends-on): Likewise.
96284 2007-09-09  Bruno Haible  <bruno@clisp.org>
96286         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
96287         (gl_FUNC_MALLOC_POSIX): Require it.
96288         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
96289         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
96290         * modules/realloc (Files): Add m4/malloc.m4.
96291         * modules/calloc (Files): Likewise.
96293 2007-09-09  Bruno Haible  <bruno@clisp.org>
96295         * modules/malloc-posix: New file.
96296         * modules/malloc (Depends-on): Add malloc-posix.
96297         * lib/malloc.c: Include errno.h.
96298         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
96299         and a POSIX-compatible malloc into a single function. Set ENOMEM
96300         when returning NULL.
96301         * m4/malloc.m4: New file.
96302         * doc/functions/malloc.texi: Mention the malloc-posix module.
96303         * lib/stdlib_.h (malloc): New declaration.
96304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
96305         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
96306         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
96307         and HAVE_MALLOC_POSIX.
96309 2007-09-09  Bruno Haible  <bruno@clisp.org>
96311         * modules/realloc-posix: New file.
96312         * modules/realloc (Depends-on): Add realloc-posix.
96313         * lib/realloc.c: Include errno.h.
96314         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
96315         and a POSIX-compatible realloc into a single function. Set ENOMEM
96316         when returning NULL.
96317         * m4/realloc.m4: New file.
96318         * doc/functions/realloc.texi: Mention the realloc-posix module.
96319         * lib/stdlib_.h (realloc): New declaration.
96320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
96321         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
96322         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
96323         and HAVE_REALLOC_POSIX.
96325 2007-09-09  Bruno Haible  <bruno@clisp.org>
96327         * modules/calloc-posix: New file.
96328         * modules/calloc (Depends-on): Add calloc-posix.
96329         * lib/calloc.c: Include errno.h.
96330         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
96331         and a POSIX-compatible calloc into a single function. Set ENOMEM
96332         when returning NULL.
96333         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
96334         * doc/functions/calloc.texi: Mention the calloc-posix module.
96335         * lib/stdlib_.h (calloc): New declaration.
96336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
96337         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
96338         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
96339         and HAVE_CALLOC_POSIX.
96341 2007-09-09  Bruno Haible  <bruno@clisp.org>
96343         Allow for modules to show an arbitrary notice.
96344         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
96345         * gnulib-tool: New option --extract-notice.
96346         (func_usage): Document it.
96347         (sed_extract_prog): Update.
96348         (func_get_notice): New function.
96349         (func_modules_notice): New function.
96350         (func_import, func_create_testdir): Invoke it.
96351         Suggested by Jim Meyering.
96353 2007-09-09  Bruno Haible  <bruno@clisp.org>
96355         * gnulib-tool: New options --verbose, --quiet.
96356         (func_usage): Document them.
96357         (verbose): New variable.
96358         (func_execute_command): New function.
96359         (func_import): Don't show the module list and the file list if
96360         $verbose < 0.
96361         (func_create_testdir): Likewise. Use func_execute_command.
96362         (func_create_megatestdir): Use func_execute_command.
96364 2007-09-08  Bruno Haible  <bruno@clisp.org>
96366         * gnulib-tool (func_import): Prefer rsync over wget when available,
96367         for fetching the PO files.
96369 2007-09-08  Bruno Haible  <bruno@clisp.org>
96371         * posix-modules: New file. Portions copied from gnulib-tool.
96372         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
96374 2007-09-08  Jim Meyering  <jim@meyering.net>
96376         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
96377         * lib/fpending.h: Rename from __fpending.h.
96378         * lib/fpending.c: Rename from __fpending.c.
96379         Include "fpending.h", not "__fpending.h".
96380         * lib/__fpending.h, lib/__fpending.c: Remove files.
96381         * modules/fpending (Files): Reflect new file names.
96382         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
96384 2007-09-08  Bruno Haible  <bruno@clisp.org>
96386         * m4/inttypes-h.m4: Remove stub file.
96388 2007-09-07  Simon Josefsson  <simon@josefsson.org>
96390         * doc/headers/stdint.texi: Discuss #include_next issue.
96392 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
96394         * build-aux/bootstrap: Remove obsolete comment about wget --help.
96396 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96398         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
96399         in variable name.
96401 2007-09-03  Jim Meyering  <jim@meyering.net>
96403         New module: git-version-gen.
96404         * modules/git-version-gen: New file.
96406         Import changes from coreutils for bootstrap script.
96408         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
96410         bootstrap: uses rsync to download the .po files
96411         * build-aux/bootstrap (po_download_command_format): New global.
96412         (download_po_files): Use rsync.
96413         (update_po_files): Don't remove .po files after download,
96414         so future rsync runs can take advantage of the copies.
96416         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
96418         Solve the unnecessary-.po-file-regeneration problem once and for all.
96419         * build-aux/bootstrap (download_po_files): New function, renamed from
96420         get_translations.  Now, downloads, but doesn't update LINGUAS.
96421         (update_po_files): New function.
96423         bootstrap: Ignore more.
96424         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
96425         uniwidth to e.g., lib/.gitignore.
96426         (slurp): Handle the sys_stat_.h -> sys mapping, too.
96428         * build-aux/bootstrap: New setting: vc_ignore.
96429         (insert_sorted_if_absent): Create $file if absent.
96430         Adapt to new, possibly empty, list: $vc_ignore.
96432         bootstrap: generate more ignorable names
96433         * build-aux/bootstrap (slurp): When generating ignorable names,
96434         also map .sin to .sed, .gperf to .c, and .y to .c.
96436 2007-09-03  Jim Meyering  <jim@meyering.net>
96438         * build-aux/git-version-gen: New file, from coreutils.  For details, see
96439         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
96441 2007-09-02  Bruno Haible  <bruno@clisp.org>
96443         Fix mis-recognition of 'mcs' on QNX 6.
96444         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
96445         output contains the string "Mono".
96446         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
96447         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
96449 2007-09-01  Bruno Haible  <bruno@clisp.org>
96451         Fix collision between uniwidth/* and linebreak modules.
96452         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
96453         u32_width): Remove declarations.
96454         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
96455         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
96456         streq3, streq2, streq1, streq0): Remove functions.
96457         (STREQ): Remove macro.
96458         (is_cjk_encoding): Remove function.
96459         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
96460         (uc_width, u8_width, u16_width, u32_width): Remove functions.
96461         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
96462         * NEWS: Document the change.
96464 2007-09-01  Bruno Haible  <bruno@clisp.org>
96466         * lib/streq.h: Add double-inclusion guard.
96468 2007-09-01  Karl Berry  <karl@gnu.org>
96470         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
96472 2007-08-28  Jim Meyering  <jim@meyering.net>
96474         Rename mreadlink_with_size to areadlink_with_size.
96475         * NEWS: Document the change.
96476         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
96477         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
96478         * lib/mreadlink.h: Rename this to...
96479         * lib/areadlink.h: ...this.
96480         * modules/mreadlink-with-size: Rename this to...
96481         * modules/areadlink-with-size: ...this.
96482         * lib/canonicalize.c: Reflect the renaming.
96483         * modules/canonicalize: Likewise.
96485 2007-08-26  Bruno Haible  <bruno@clisp.org>
96487         * gnulib-tool (func_import): When deciding which files to remove,
96488         consider also dangling symbolic links.
96489         Reported by Eric Blake.
96491 2007-08-26  Bruno Haible  <bruno@clisp.org>
96493         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
96495 2007-08-23  Simon Josefsson  <simon@josefsson.org>
96497         * lib/readline.c: Don't include getline.h, the prototype is now
96498         found in stdio.h.
96500 2007-08-23  Jim Meyering  <jim@meyering.net>
96502         Getdelim touchup.
96503         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
96504         around the funlockfile call, since funlockfile never sets errno.
96505         Don't set errno upon failed realloc.
96507 2007-08-22  Eric Blake  <ebb9@byu.net>
96509         Getline touchups.
96510         * lib/getdelim.c (getdelim): Revert regression that required *n to
96511         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
96512         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
96513         getdelim, rather than whether implementation is missing.
96514         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
96515         * lib/stdio_.h (getline): Also declare if replacement is
96516         required.
96517         * doc/functions/getdelim.texi: New file.
96518         * doc/functions/getline.texi: Likewise.
96519         * doc/gnulib.texi (Function Substitutes): Add new files.
96520         Reported by Bruno Haible.
96522 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
96524         * users.txt: Add Guile.
96526 2007-08-22  Eric Blake  <ebb9@byu.net>
96528         * tests/test-getdelim.c (main): Use remove, not unlink.
96529         * tests/test-getline.c (main): Likewise.
96531         Move getline and getdelim into stdio.h, per POSIX 200x.
96532         * modules/getline (Files): Remove getline.h.
96533         (Depends-on): Add stdio.
96534         (configure.ac): Add module indicator.
96535         * modules/getdelim (Files): Remove getdelim.h.
96536         (Depends-on): Add stdio.
96537         (configure.ac): Add module indicator.
96538         * modules/stdio (Makefile.am): Work with new indicators.
96539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
96540         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
96541         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
96542         * lib/getdelim.h: Delete.
96543         * lib/getline.h: Delete.
96544         * lib/stdio_.h (getdelim, getline): Declare.
96545         * modules/getdelim-tests: New module.
96546         * modules/getline-tests: Likewise.
96547         * tests/test-getdelim.c: New file.
96548         * tests/test-getline.c: Likewise.
96549         * NEWS: Document the change.
96550         * lib/getline.c: Update choice of header.
96551         * lib/csharpcomp.c: Likewise.
96552         * lib/getpass.c: Likewise.
96553         * lib/javacomp.c: Likewise.
96554         * lib/javaversion.c: Likewise.
96555         * lib/yesno.c: Likewise.
96556         * lib/getdelim.c: Likewise.
96557         (getdelim): Set errno on failure, and avoid memory leak.
96559 2007-08-19  Bruno Haible  <bruno@clisp.org>
96561         * modules/closein (Depends-on): Add freadahead.
96562         * lib/closein.c: Include freadahead.h.
96563         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
96564         is zero.
96566 2007-08-19  Bruno Haible  <bruno@clisp.org>
96568         * modules/freadahead-tests: New file.
96569         * tests/test-freadahead.sh: New file.
96570         * tests/test-freadahead.c: New file.
96572         * modules/freadahead: New file.
96573         * lib/freadahead.h: New file.
96574         * lib/freadahead.c: New file.
96575         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
96576         fbufmode, fpurge, freadable, fwritable.
96578 2007-08-19  Eric Blake  <ebb9@byu.net>
96580         Test yesno in combination with closein.
96581         * lib/yesno.c (yesno): Document use of stdin.
96582         * modules/yesno-tests (Files): New module.
96583         * tests/test-yesno.c (main): New file.
96584         * tests/test-yesno.sh: Likewise.
96586 2007-08-19  Bruno Haible  <bruno@clisp.org>
96588         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
96589         * lib/fseeko.c (rpl_fseeko): Likewise.
96590         * lib/fseterr.c (fseterr): Likewise.
96592 2007-08-19  Bruno Haible  <bruno@clisp.org>
96594         * tests/test-lseek.c (main): Disable a test for BeOS.
96595         * doc/functions/lseek.texi: Document the BeOS bug.
96597 2007-08-19  Bruno Haible  <bruno@clisp.org>
96598             Eric Blake  <ebb9@byu.net>
96600         * lib/lseek.c: Include <sys/stat.h>.
96601         (rpl_lseek): Add workaround code also for Unix platforms.
96602         Needed for BeOS.
96603         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
96604         * doc/functions/lseek.texi: Document BeOS definiency.
96606 2007-08-18  Bruno Haible  <bruno@clisp.org>
96608         * modules/fstrcmp-tests: New file.
96609         * tests/test-fstrcmp.c: New file.
96611 2007-08-18  Bruno Haible  <bruno@clisp.org>
96613         * modules/fstrcmp: New file, from GNU gettext with modifications.
96614         * lib/fstrcmp.h: New file, from GNU gettext.
96615         * lib/fstrcmp.c: New file, from GNU gettext.
96616         * MODULES.html.sh (String handling): Add fstrcmp.
96618 2007-08-18  Bruno Haible  <bruno@clisp.org>
96620         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
96621         'bool'.
96622         (diag, compareseq): Remove const from the ctxt argument.
96623         (USE_HEURISTIC): Undefine at the end.
96625 2007-08-18  Jim Meyering  <jim@meyering.net>
96627         New file: lib/idcache.h
96628         * NEWS: Mention the addition.
96629         * modules/idcache (Files): Add lib/idcache.h
96630         * lib/idcache.c: Include "idcache.h".
96631         Don't include <sys/types.h>.
96632         Add a FIXME comment.
96633         Move file-scoped "static" declarations to the top.
96634         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
96636 2007-08-17  Bruno Haible  <bruno@clisp.org>
96637         and Paul Eggert  <eggert@cs.ucla.edu>
96639         * MODULES.html.sh: Add diffseq.
96640         * modules/diffseq: New file.
96641         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
96642         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
96644 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96646         Import changes from coreutils for bootstrap script.
96648         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
96650         * build-aux/bootstrap (slurp): Work even in environments where
96651         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
96652         current code does not slurp files whose names start with ".", and
96653         this looks like it might be a troublesome area.
96655         2007-07-11  Jim Meyering  <jim@meyering.net>
96657         If there's a GPL vN copyright comment, require that N == 3.
96659         2007-07-08  Jim Meyering  <jim@meyering.net>
96661         Run the coreutils-specific code only if tests/Makefile.am.in exists.
96662         * build-aux/bootstrap (mam_template): Move definition out of loop.
96664         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
96666         * build-aux/bootstrap (symlink_to_dir): Rename function from
96667         symlink_to_gnulib.  Add a directory parameter.  Update all
96668         callers.
96669         (cp_mark_as_generated): Also check for -- and link to -- files in
96670         gl/.
96672         2007-07-08  Jim Meyering  <jim@meyering.net>
96674         Adapt to deeper hierarchy in gnulib.
96675         * build-aux/bootstrap (symlink_to_dir): If the destination
96676         directory doesn't exist, create it. This is required at least for
96677         "lib/uniwidth/cjk.h".
96679         2007-05-15  Jim Meyering  <jim@meyering.net>
96681         * build-aux/bootstrap: Now that generated Makefile.am files
96682         are no longer under version control, they must be created at
96683         bootstrap time.
96685 2007-08-14  Ben Pfaff  <blp@gnu.org>
96687         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
96689 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96691         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
96692         given the changes below.
96693         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
96694         even on hosts that have padding bits beyond the supported 64.
96696 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96698         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
96699         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
96700         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
96701         depends on it.
96702         (xstrtol_error): Remove.
96703         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
96704         but with a different signature.
96705         (ATTRIBUTE_NORETURN, __attribute__): New macros.
96706         * lib/xstrtol-error.c: Include exitfail.h.
96707         (xstrtol_fatal): New function, with a different signature from the
96708         old xstrtol_error, so that the caller need not worry about passing
96709         in an exit status, or about storage management of the option argument.
96710         (xstrtol_error): Now a static function.  Redo signature to
96711         implement xstrtol_fatal.  Output the correct number of hyphens in
96712         front of the option so that the caller need not worry about
96713         storage management.
96714         (N_): New macro.
96715         (_): Remove; not used now.
96716         * modules/xstrtol: Depend on getopt.
96717         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
96718         of old STRTOL_FATAL_ERROR macro.
96719         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
96720         of test program.
96721         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
96722         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
96724 2007-08-08  Eric Blake  <ebb9@byu.net>
96726         * lib/xstrtol-error.c: Add missing include.
96728         Move xstrtol messages into gnulib domain, when --pobase is used.
96729         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
96730         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
96731         * modules/xstrtol (Files): Distribute new file.
96732         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
96733         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
96734         * tests/test-xstrtol.c: ...into new file.
96735         * tests/test-xstrtoul.c: Also test xstrtoul.
96736         * tests/test-xstrtoimax.c: Also test xstrtoimax.
96737         * tests/test-xstrtoumax.c: Also test xstrtoumax.
96738         * tests/test-xstrtol.sh: Drive the tests.
96739         * tests/test-xstrtoimax.sh: Likewise.
96740         * tests/test-xstrtoumax.sh: Likewise.
96741         * modules/xstrtol-tests: New module.
96742         * modules/xstrtoimax-tests: Likewise.
96743         * modules/xstrtoumax-tests: Likewise.
96745 2007-08-08  Jim Meyering  <jim@meyering.net>
96747         New function: mfile_name_concat.
96748         * lib/filenamecat.c (mfile_name_concat): New function, just like
96749         file_name_concat, but return NULL upon failure rather than exiting
96750         with a diagnostic.
96751         * lib/filenamecat.h: Declare it.
96753 2007-08-07  Bruno Haible  <bruno@clisp.org>
96755         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
96756         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
96757         warning from gcc.
96758         Reported by Eric Blake.
96760 2007-08-07  Simon Josefsson  <simon@josefsson.org>
96762         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
96763         * modules/crypto/arcfour (License): Likewise.
96764         * modules/crypto/des-tests (License): Likewise.
96765         * modules/crypto/gc-arctwo-tests (License): Likewise.
96766         * modules/crypto/gc-des-tests (License): Likewise.
96767         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
96768         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
96769         * modules/crypto/gc-md2-tests (License): Likewise.
96770         * modules/crypto/gc-md4-tests (License): Likewise.
96771         * modules/crypto/gc-md5-tests (License): Likewise.
96772         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
96773         * modules/crypto/gc-rijndael-tests (License): Likewise.
96774         * modules/crypto/gc-sha1-tests (License): Likewise.
96775         * modules/crypto/gc-tests (License): Likewise.
96776         * modules/crypto/hmac-md5 (License): Likewise.
96777         * modules/crypto/hmac-sha1 (License): Likewise.
96778         * modules/crypto/md2-tests (License): Likewise.
96779         * modules/crypto/md4-tests (License): Likewise.
96780         * modules/crypto/md5 (License): Likewise.
96781         * modules/crypto/rijndael (License): Likewise.
96782         * modules/crypto/sha1 (License): Likewise.
96783         * modules/memxor (License): Likewise.
96785 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
96786         and Bruno Haible  <bruno@clisp.org>
96788         * NEWS: Describe interface changes to human, xstrtol.
96789         * lib/human.h: Include <xstrtol.h>.
96790         (human_options): Return enum strtol_error, not int.  Remove
96791         bool arg; take int * instead.
96792         * lib/human.c: Don't include "gettext.h".
96793         (_): Remove; no longer used.
96794         Don't include <xstrtol.h>, since human.h does it.
96795         (human_options): Adjust to abovementioned interface changes.
96796         Do not report error to stderr; that's now the caller's
96797         responsibility.
96798         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
96799         interface change.
96800         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
96801         Str, Argument_type_string.  All uses changed.  Put " argument"
96802         in diagnostics to make them clearer.  Change wording of suffix
96803         message for clarity.
96804         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
96805         Argument_type_string.
96806         (STRTOL_FATAL_WARN): Remove; no longer used.
96807         * modules/human (Depends-on): Remove gettext-h.
96809 2007-08-06  Simon Josefsson  <simon@josefsson.org>
96811         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
96813 2007-07-31  Bruno Haible  <bruno@clisp.org>
96815         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
96816         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
96817         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
96819 2007-07-31  Bruno Haible  <bruno@clisp.org>
96821         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
96822         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
96824 2007-07-30  Bruno Haible  <bruno@clisp.org>
96826         * modules/base64 (License): Use the synonymous term "LGPLv2+".
96827         * modules/c-ctype (License): Likewise.
96828         * modules/c-strcase (License): Likewise.
96829         * modules/check-version (License): Likewise.
96830         * modules/iconv (License): Likewise.
96831         * modules/iconv_open (License): Likewise.
96832         * modules/read-file (License): Likewise.
96833         * modules/striconv (License): Likewise.
96834         * modules/strverscmp (License): Likewise.
96835         * modules/vasprintf (License): Likewise.
96836         * modules/crypto/des (License): Likewise.
96837         * modules/crypto/gc (License): Likewise.
96838         * modules/crypto/gc-arcfour (License): Likewise.
96839         * modules/crypto/gc-arctwo (License): Likewise.
96840         * modules/crypto/gc-des (License): Likewise.
96841         * modules/crypto/gc-hmac-md5 (License): Likewise.
96842         * modules/crypto/gc-hmac-sha1 (License): Likewise.
96843         * modules/crypto/gc-md2 (License): Likewise.
96844         * modules/crypto/gc-md4 (License): Likewise.
96845         * modules/crypto/gc-md5 (License): Likewise.
96846         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
96847         * modules/crypto/gc-random (License): Likewise.
96848         * modules/crypto/gc-rijndael (License): Likewise.
96849         * modules/crypto/gc-sha1 (License): Likewise.
96850         * modules/crypto/md2 (License): Likewise.
96851         * modules/crypto/md4 (License): Likewise.
96853 2007-07-30  Jim Meyering  <jim@meyering.net>
96855         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
96856         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
96857         it has valid stat data.  This bug would cause du not to count the
96858         sizes of inaccessible directories.
96859         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
96860         in <http://bugzilla.redhat.com/250077>.
96862 2007-07-25  Peter O'Gorman  <peter@pogma.com>
96863             Bruno Haible  <bruno@clisp.org>
96865         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
96866         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
96867         #include_next, gives a diagnostic about it, but reports no error in
96868         the exit code.
96869         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
96871 2007-07-24  Ben Pfaff  <blp@gnu.org>
96873         Improve name: "count-one-bits" is better than "popcount".
96874         * MODULES.html.sh: Update name.
96875         * lib/popcount.h: Renamed lib/count-one-bits.h.
96876         (popcount): Renamed count_one_bits.
96877         (popcountl): Renamed count_one_bits_l.
96878         (popcountll): Renamed count_one_bits_ll.
96879         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
96880         * modules/popcount: Renamed module/count-one-bits.
96881         * modules/popcount-tests: Renamed module/count-one-bits-tests.
96882         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
96884 2007-07-23  Ben Pfaff  <blp@gnu.org>
96886         * lib/popcount.h (popcount32): Reduce size of constants, to allow
96887         better code generation, and add U to large constants to avoid
96888         warnings, in non-GCC case.
96889         Suggested by Bruno Haible.
96891 2007-07-23  Ben Pfaff  <blp@gnu.org>
96893         * lib/popcount.h: Use verify_true instead of if...abort.
96894         * modules/popcount: Depend on verify module.
96895         Suggested by Jim Meyering.
96897 2007-07-23  Bruno Haible  <bruno@clisp.org>
96899         * gnulib-tool (func_import): Create a .cvsignore file also when the
96900         directory is not yet in CVS but the toplevel directory is. When
96901         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
96902         Reported by Karl Berry.
96904 2007-07-22  Ben Pfaff  <blp@gnu.org>
96906         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
96907         case.
96908         Suggested by Eric Blake.
96910 2007-07-22  Ben Pfaff  <blp@gnu.org>
96912         New module: popcount.
96913         * MODULES.html.sh: Add popcount.
96914         * modules/popcount: New file.
96915         * modules/popcount-tests: New file.
96916         * tests/test-popcount.c: New file.
96917         * lib/popcount.h: New file.
96918         * m4/popcount.m4: New file.
96920 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96922         * build-aux/announce-gen: Update to GPLv3.
96924         * build-aux/config.guess: Update from config.
96926 2007-07-21  Bruno Haible  <bruno@clisp.org>
96928         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
96929         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
96931 2007-07-20  Jim Meyering  <jim@meyering.net>
96933         * check-module: Diagnose a self-dependency.
96935 2007-07-19  Bruno Haible  <bruno@clisp.org>
96937         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
96938         empty.
96939         Reported by Eric Blake.
96941 2007-07-18  Bruno Haible  <bruno@clisp.org>
96943         * gnulib-tool: New options --po-base, --po-domain.
96944         (func_usage): Document them.
96945         (pobase, po_domain): New variables.
96946         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
96947         DEFAULT_TEXT_DOMAIN.
96948         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
96949         (func_import): Consider pobase and po_domain. Create a po/ directory.
96950         (func_create_testdir): Set pobase and po_domain to empty.
96951         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
96952         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
96954 2007-07-18  Bruno Haible  <bruno@clisp.org>
96956         * gnulib-tool (func_get_automake_snippet): Synthesize also an
96957         EXTRA_DIST augmentation for files in build-aux/.
96959 2007-07-16  Bruno Haible  <bruno@clisp.org>
96961         * modules/lseek (License): Use the synonymous term "LGPLv2+".
96962         * modules/getdelim (License): Likewise.
96964 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96966         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
96967         * modules/d-type (License): Likewise.
96968         * modules/extensions (License): Likewise.
96969         * modules/fnmatch (License): Likewise.
96970         * modules/fseeko (License): Likewise.
96971         * modules/getaddrinfo (License): Likewise.
96972         * modules/getline (License): Likewise.
96973         * modules/getlogin_r (License): Likewise.
96974         * modules/getpass (License): Likewise.
96975         * modules/gettimeofday (License): Likewise.
96976         * modules/glob (License): Likewise.
96977         * modules/inet_ntop (License): Likewise.
96978         * modules/malloc (License): Likewise.
96979         * modules/malloca (License): Likewise.
96980         * modules/memmem (License): Likewise.
96981         * modules/mempcpy (License): Likewise.
96982         * modules/memset (License): Likewise.
96983         * modules/minmax (License): Likewise.
96984         * modules/mktime (License): Likewise.
96985         * modules/netinet_in (License): Likewise.
96986         * modules/pathmax (License): Likewise.
96987         * modules/poll (License): Likewise.
96988         * modules/regex (License): Likewise.
96989         * modules/snprintf (License): Likewise.
96990         * modules/stdbool (License): Likewise.
96991         * modules/stdint (License): Likewise.
96992         * modules/stdio (License): Likewise.
96993         * modules/strcase (License): Likewise.
96994         * modules/strcasestr (License): Likewise.
96995         * modules/strdup (License): Likewise.
96996         * modules/string (License): Likewise.
96997         * modules/strndup (License): Likewise.
96998         * modules/strnlen (License): Likewise.
96999         * modules/strpbrk (License): Likewise.
97000         * modules/strptime (License): Likewise.
97001         * modules/strsep (License): Likewise.
97002         * modules/sys_select (License): Likewise.
97003         * modules/sys_socket (License): Likewise.
97004         * modules/sys_stat (License): Likewise.
97005         * modules/sys_time (License): Likewise.
97006         * modules/time (License): Likewise.
97007         * modules/time_r (License): Likewise.
97008         * modules/timegm (License): Likewise.
97009         * modules/unistd (License): Likewise.
97010         * modules/vsnprintf (License): Likewise.
97011         * modules/wctype (License): Likewise.
97013 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97015         * modules/argz (License): LGPLv2+.
97017 2007-07-15  Karl Berry  <karl@gnu.org>
97019         * doc/gnulib.texi: revise node structure per new fdl.texi.
97021 2007-07-14  Bruno Haible  <bruno@clisp.org>
97023         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
97024         the output file.
97025         * lib/uniname/uninames.h: Regenerated.
97027 2007-07-14  Karl Berry  <karl@gnu.org>
97029         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
97030         omitting sectioning and index commands.
97032 2007-07-13  Bruno Haible  <bruno@clisp.org>
97034         New gnulib-tool option --more-symlinks.
97035         * gnulib-tool (func_usage): Document --more-symlinks.
97036         (do_copyrights): New variable.
97037         Recognize option --more-symlinks.
97038         (func_import): Don't add a copyright notice transform to
97039         sed_transform_lib_file if do_copyrights is empty.
97041 2007-07-13  Bruno Haible  <bruno@clisp.org>
97043         * lib/vasnprintf.c (decimal_point_char): Define also if
97044         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
97045         && !NEED_PRINTF_DIRECTIVE_A.
97046         Reported by Clemens Koller <clemens.koller@anagramm.de> via
97047         Gary V. Vaughan <gary@gnu.org>.
97049 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
97051         * lib/inttypes_.h: Undo previous change, since it was fixed
97052         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
97054 2007-07-13  Bruno Haible  <bruno@clisp.org>
97056         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
97057         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
97059 2007-07-13  Jim Meyering  <jim@meyering.net>
97061         df: Don't fail for Tru64's "file-on-file mount".
97062         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
97063         so we fall through and use statfs instead.  Details here:
97064         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
97065         Reported by Albert Chin.
97067 2007-07-13  Bruno Haible  <bruno@clisp.org>
97069         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
97070         * modules/configmake (License): Likewise.
97071         * modules/gettext (License): Likewise.
97072         * modules/gettext-h (License): Likewise.
97073         * modules/include_next (License): Likewise.
97074         * modules/link-warning (License): Likewise.
97075         * modules/localcharset (License): Likewise.
97076         * modules/localename (License): Likewise.
97077         * modules/lock (License): Likewise.
97078         * modules/relocatable-lib-lgpl (License): Likewise.
97079         * modules/size_max (License): Likewise.
97080         * modules/vasnprintf (License): Likewise.
97081         * modules/wchar (License): Likewise.
97082         * modules/xsize (License): Likewise.
97084 2007-07-13  Bruno Haible  <bruno@clisp.org>
97086         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
97087         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
97089 2007-07-12  Bruno Haible  <bruno@clisp.org>
97091         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
97092         in the modules files.
97094 2007-07-11  Karl Berry  <karl@gnu.org>
97096         * MODULES.html.sh (func_module): use
97097          sed -e '\|^'"${includefile}"'$|d'
97098          instead of /.../d, to avoid errors on $includefile's containing /.
97100 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97102         * gnulib-tool (func_import): Avoid duplication of --avoid
97103         statements
97104         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
97105         names to `_' in variable names.
97107 2007-07-10  Eric Blake  <ebb9@byu.net>
97109         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
97110         * NEWS: Document this change.
97112 2007-07-08  Bruno Haible  <bruno@clisp.org>
97114         Update to Unicode 5.0.
97115         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
97116         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
97117         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
97118         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
97119         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
97120         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
97121         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
97122         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
97123         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
97124         U+10A3F, U+1D242..U+1D244.
97125         (nonspacing_table_ind): Update.
97126         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
97127         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
97129 2007-07-08  Bruno Haible  <bruno@clisp.org>
97131         Update to Unicode 5.0.
97132         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
97133         code transform. Extend the name index field of unicode_name_to_code and
97134         unicode_code_to_name from 16 to 24 bits.
97135         * lib/uniname/uniname.c (unicode_character_name,
97136         unicode_name_character): Add the range 0x12xxx to the code transform.
97137         * lib/uniname/uninames.h: Regenerated.
97138         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
97140 2007-07-07  Bruno Haible  <bruno@clisp.org>
97142         * modules/wcwidth-tests: New file.
97143         * tests/test-wcwidth.c: New file.
97145         Work around MacOS X wcwidth() bug.
97146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
97147         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
97148         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
97149         original wcwidth in non-UTF-8 locales.
97150         * modules/wcwidth (Depends-on): Add localcharset, streq,
97151         uniwidth/width.
97152         * doc/functions/wcwidth.texi: Update.
97154 2007-07-07  Bruno Haible  <bruno@clisp.org>
97156         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
97157         (wcwidth): New declaration.
97158         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
97159         macros.
97160         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
97161         here. Prepare for creating <wchar.h> unconditionally.
97162         * modules/wchar (Depends-on): Add link-warning.
97163         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
97164         REPLACE_WCWIDTH, and GL_LINK_WARNING.
97165         * lib/wcwidth.h: Remove file.
97166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
97167         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
97168         * modules/wcwidth (Files): Remove lib/wcwidth.h.
97169         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
97170         (Include): Replace wcwidth.h with <wchar.h>.
97171         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
97172         * lib/mbchar.h: Don't include wcwidth.h.
97173         * lib/mbswidth.c: Likewise.
97174         * NEWS: Mention the change.
97176 2007-07-07  Bruno Haible  <bruno@clisp.org>
97178         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
97179         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
97180         definition with an external declaration.
97181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
97182         defined as a function. Remove AC_C_INLINE requirement.
97183         * modules/wcwidth (Files): Add lib/wcwidth.c.
97184         (Makefile.am): Remove redundant statement.
97186 2007-07-07  Bruno Haible  <bruno@clisp.org>
97188         * MODULES.html.sh (Unicode string functions): Add the new modules.
97190         * tests/uniwidth/test-u32-strwidth.c: New file.
97191         * modules/uniwidth/u32-strwidth-tests: New file.
97193         * lib/uniwidth/u32-strwidth.c: New file.
97194         * modules/uniwidth/u32-strwidth: New file.
97196         * tests/uniwidth/test-u16-strwidth.c: New file.
97197         * modules/uniwidth/u16-strwidth-tests: New file.
97199         * lib/uniwidth/u16-strwidth.c: New file.
97200         * modules/uniwidth/u16-strwidth: New file.
97202         * tests/uniwidth/test-u8-strwidth.c: New file.
97203         * modules/uniwidth/u8-strwidth-tests: New file.
97205         * lib/uniwidth/u8-strwidth.c: New file.
97206         * modules/uniwidth/u8-strwidth: New file.
97208         * tests/uniwidth/test-u32-width.c: New file.
97209         * modules/uniwidth/u32-width-tests: New file.
97211         * lib/uniwidth/u32-width.c: New file.
97212         * modules/uniwidth/u32-width: New file.
97214         * tests/uniwidth/test-u16-width.c: New file.
97215         * modules/uniwidth/u16-width-tests: New file.
97217         * lib/uniwidth/u16-width.c: New file.
97218         * modules/uniwidth/u16-width: New file.
97220         * tests/uniwidth/test-u8-width.c: New file.
97221         * modules/uniwidth/u8-width-tests: New file.
97223         * lib/uniwidth/u8-width.c: New file.
97224         * modules/uniwidth/u8-width: New file.
97226         * tests/uniwidth/test-uc_width.c: New file.
97227         * modules/uniwidth/width-tests: New file.
97229         * lib/uniwidth/width.c: New file, from GNU libiconv.
97230         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
97231         * modules/uniwidth/width: New file.
97233         * lib/uniwidth.h: New file, from GNU libiconv.
97234         * modules/uniwidth/base: New file.
97236 2007-07-07  Bruno Haible  <bruno@clisp.org>
97238         * lib/uniname.h: New file, from GNU gettext.
97239         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
97240         * lib/uniname/uninames.h: New file, from GNU gettext.
97241         * lib/uniname/uniname.c: New file, from GNU gettext.
97242         * tests/uniname/test-uninames.sh: New file.
97243         * tests/uniname/test-uninames.c: New file, from GNU gettext.
97244         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
97245         * modules/uniname/base: New file.
97246         * modules/uniname/uniname: New file.
97247         * modules/uniname/uniname-tests: New file.
97248         * MODULES.html.sh (Unicode string functions): Add the new modules.
97250 2007-07-06  Bruno Haible  <bruno@clisp.org>
97252         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
97254 2007-07-06  Bruno Haible  <bruno@clisp.org>
97256         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
97257         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
97258         includes <cygwin/sys_time.h> which includes <sys/select.h> which
97259         include <sys/time.h>.
97260         Reported by Eric Blake.
97262 2007-07-06  Eric Blake  <ebb9@byu.net>
97264         Fix testing canonicalize on cygwin.
97265         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
97266         Revert patch from 2007-06-19.
97267         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
97268         canonicalize module is also in use.
97269         * tests/test-canonicalize.c: New file.
97270         * tests/test-canonicalize.sh: Likewise.
97271         * modules/canonicalize-tests: Likewise.
97273 2007-07-06  Jim Meyering  <jim@meyering.net>
97275         * lib/getugroups.c (getugroups): Detect getgrent failure.
97276         Adjust comment to reflect reality: this function may return -1.
97278 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
97280         * build-aux/bootstrap (TP_URL,get_translations): Update to use
97281         the new TP address.
97282         (usage): Fix typo
97283         (gnulib_mk): New variable.
97285 2007-07-05  Jim Meyering  <jim@meyering.net>
97287         Don't let endgrent clobber errno, no matter how improbable.
97288         * lib/getugroups.c (getugroups): Save and restore errno around
97289         endgrent call.
97291         Close the group DB even when failing with 2^31 or more members.
97292         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
97294 2007-07-04  Jim Meyering  <jim@meyering.net>
97296         * lib/getugroups.h: New file.
97297         * lib/getugroups.c: Include "getugroups.h".
97298         Remove uses of "register" keyword.
97299         Move local variable, "cp", down into scope where used.
97300         Give "username" parameter the "const" attribute.
97301         * modules/getugroups (Files): Add lib/getugroups.h
97303 2007-07-04  Karl Berry  <karl@gnu.org>
97305         * MODULES.html.sh (func_all_modules): Complete rename of
97306         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
97308 2007-07-02  Bruno Haible  <bruno@clisp.org>
97310         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
97311         mode, when inttypes.h comes from gnulib.
97312         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
97314 2007-07-02  Simon Josefsson  <simon@josefsson.org>
97316         * NEWS: Mention lgpl module name change.
97318         * modules/lgpl-2.1: Renamed from lgpl.
97320         * NEWS: Mention gpl module name change.
97322         * modules/gpl-3.0: New file, based on gpl-2.0.
97324         * modules/gpl-2.0: Renamed from gpl.
97326         * modules/gpl: Fix filename, doc/gpl.texi is now found at
97327         doc/gpl-2.0.texi.
97329 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97331         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
97332         #define __STDC_LIMIT_MACROS temporarily while including
97333         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
97334         Problem reported by Joel E. Denny in
97335         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
97337 2007-07-01  Bruno Haible  <bruno@clisp.org>
97339         * lib/unistdio.h: New file.
97340         * lib/unistdio/u-asnprintf.h: New file.
97341         * lib/unistdio/u-asprintf.h: New file.
97342         * lib/unistdio/u-printf-args.c: New file.
97343         * lib/unistdio/u-printf-args.h: New file.
97344         * lib/unistdio/u-printf-parse.h: New file.
97345         * lib/unistdio/u-snprintf.h: New file.
97346         * lib/unistdio/u-sprintf.h: New file.
97347         * lib/unistdio/u-vasprintf.h: New file.
97348         * lib/unistdio/u-vsnprintf.h: New file.
97349         * lib/unistdio/u-vsprintf.h: New file.
97350         * lib/unistdio/ulc-asnprintf.c: New file.
97351         * lib/unistdio/ulc-asprintf.c: New file.
97352         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
97353         * lib/unistdio/ulc-printf-parse.c: New file.
97354         * lib/unistdio/ulc-snprintf.c: New file.
97355         * lib/unistdio/ulc-sprintf.c: New file.
97356         * lib/unistdio/ulc-vasnprintf.c: New file.
97357         * lib/unistdio/ulc-vasprintf.c: New file.
97358         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
97359         * lib/unistdio/ulc-vsnprintf.c: New file.
97360         * lib/unistdio/ulc-vsprintf.c: New file.
97361         * lib/unistdio/u8-asnprintf.c: New file.
97362         * lib/unistdio/u8-asprintf.c: New file.
97363         * lib/unistdio/u8-printf-parse.c: New file.
97364         * lib/unistdio/u8-snprintf.c: New file.
97365         * lib/unistdio/u8-sprintf.c: New file.
97366         * lib/unistdio/u8-vasnprintf.c: New file.
97367         * lib/unistdio/u8-vasprintf.c: New file.
97368         * lib/unistdio/u8-vsnprintf.c: New file.
97369         * lib/unistdio/u8-vsprintf.c: New file.
97370         * lib/unistdio/u8-u8-asnprintf.c: New file.
97371         * lib/unistdio/u8-u8-asprintf.c: New file.
97372         * lib/unistdio/u8-u8-snprintf.c: New file.
97373         * lib/unistdio/u8-u8-sprintf.c: New file.
97374         * lib/unistdio/u8-u8-vasnprintf.c: New file.
97375         * lib/unistdio/u8-u8-vasprintf.c: New file.
97376         * lib/unistdio/u8-u8-vsnprintf.c: New file.
97377         * lib/unistdio/u8-u8-vsprintf.c: New file.
97378         * lib/unistdio/u16-asnprintf.c: New file.
97379         * lib/unistdio/u16-asprintf.c: New file.
97380         * lib/unistdio/u16-printf-parse.c: New file.
97381         * lib/unistdio/u16-snprintf.c: New file.
97382         * lib/unistdio/u16-sprintf.c: New file.
97383         * lib/unistdio/u16-vasnprintf.c: New file.
97384         * lib/unistdio/u16-vasprintf.c: New file.
97385         * lib/unistdio/u16-vsnprintf.c: New file.
97386         * lib/unistdio/u16-vsprintf.c: New file.
97387         * lib/unistdio/u16-u16-asnprintf.c: New file.
97388         * lib/unistdio/u16-u16-asprintf.c: New file.
97389         * lib/unistdio/u16-u16-snprintf.c: New file.
97390         * lib/unistdio/u16-u16-sprintf.c: New file.
97391         * lib/unistdio/u16-u16-vasnprintf.c: New file.
97392         * lib/unistdio/u16-u16-vasprintf.c: New file.
97393         * lib/unistdio/u16-u16-vsnprintf.c: New file.
97394         * lib/unistdio/u16-u16-vsprintf.c: New file.
97395         * lib/unistdio/u32-asnprintf.c: New file.
97396         * lib/unistdio/u32-asprintf.c: New file.
97397         * lib/unistdio/u32-printf-parse.c: New file.
97398         * lib/unistdio/u32-snprintf.c: New file.
97399         * lib/unistdio/u32-sprintf.c: New file.
97400         * lib/unistdio/u32-vasnprintf.c: New file.
97401         * lib/unistdio/u32-vasprintf.c: New file.
97402         * lib/unistdio/u32-vsnprintf.c: New file.
97403         * lib/unistdio/u32-vsprintf.c: New file.
97404         * lib/unistdio/u32-u32-asnprintf.c: New file.
97405         * lib/unistdio/u32-u32-asprintf.c: New file.
97406         * lib/unistdio/u32-u32-snprintf.c: New file.
97407         * lib/unistdio/u32-u32-sprintf.c: New file.
97408         * lib/unistdio/u32-u32-vasnprintf.c: New file.
97409         * lib/unistdio/u32-u32-vasprintf.c: New file.
97410         * lib/unistdio/u32-u32-vsnprintf.c: New file.
97411         * lib/unistdio/u32-u32-vsprintf.c: New file.
97412         * tests/unistdio/test-ulc-asnprintf1.c: New file.
97413         * tests/unistdio/test-ulc-asnprintf1.h: New file.
97414         * tests/unistdio/test-ulc-printf1.h: New file.
97415         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
97416         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
97417         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
97418         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
97419         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
97420         * tests/unistdio/test-ulc-vasprintf1.c: New file.
97421         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
97422         * tests/unistdio/test-ulc-vsprintf1.c: New file.
97423         * tests/unistdio/test-u8-asnprintf1.c: New file.
97424         * tests/unistdio/test-u8-asnprintf1.h: New file.
97425         * tests/unistdio/test-u8-printf1.h: New file.
97426         * tests/unistdio/test-u8-vasnprintf1.c: New file.
97427         * tests/unistdio/test-u8-vasnprintf2.c: New file.
97428         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
97429         * tests/unistdio/test-u8-vasnprintf3.c: New file.
97430         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
97431         * tests/unistdio/test-u8-vasprintf1.c: New file.
97432         * tests/unistdio/test-u8-vsnprintf1.c: New file.
97433         * tests/unistdio/test-u8-vsprintf1.c: New file.
97434         * tests/unistdio/test-u16-asnprintf1.c: New file.
97435         * tests/unistdio/test-u16-asnprintf1.h: New file.
97436         * tests/unistdio/test-u16-printf1.h: New file.
97437         * tests/unistdio/test-u16-vasnprintf1.c: New file.
97438         * tests/unistdio/test-u16-vasnprintf2.c: New file.
97439         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
97440         * tests/unistdio/test-u16-vasnprintf3.c: New file.
97441         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
97442         * tests/unistdio/test-u16-vasprintf1.c: New file.
97443         * tests/unistdio/test-u16-vsnprintf1.c: New file.
97444         * tests/unistdio/test-u16-vsprintf1.c: New file.
97445         * tests/unistdio/test-u32-asnprintf1.c: New file.
97446         * tests/unistdio/test-u32-asnprintf1.h: New file.
97447         * tests/unistdio/test-u32-printf1.h: New file.
97448         * tests/unistdio/test-u32-vasnprintf1.c: New file.
97449         * tests/unistdio/test-u32-vasnprintf2.c: New file.
97450         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
97451         * tests/unistdio/test-u32-vasnprintf3.c: New file.
97452         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
97453         * tests/unistdio/test-u32-vasprintf1.c: New file.
97454         * tests/unistdio/test-u32-vsnprintf1.c: New file.
97455         * tests/unistdio/test-u32-vsprintf1.c: New file.
97456         * modules/unistdio/base: New file.
97457         * modules/unistdio/u-printf-args: New file.
97458         * modules/unistdio/ulc-asnprintf: New file.
97459         * modules/unistdio/ulc-asprintf: New file.
97460         * modules/unistdio/ulc-fprintf: New file.
97461         * modules/unistdio/ulc-printf-parse: New file.
97462         * modules/unistdio/ulc-snprintf: New file.
97463         * modules/unistdio/ulc-sprintf: New file.
97464         * modules/unistdio/ulc-vasnprintf: New file.
97465         * modules/unistdio/ulc-vasprintf: New file.
97466         * modules/unistdio/ulc-vfprintf: New file.
97467         * modules/unistdio/ulc-vsnprintf: New file.
97468         * modules/unistdio/ulc-vsprintf: New file.
97469         * modules/unistdio/u8-asnprintf: New file.
97470         * modules/unistdio/u8-asprintf: New file.
97471         * modules/unistdio/u8-printf-parse: New file.
97472         * modules/unistdio/u8-snprintf: New file.
97473         * modules/unistdio/u8-sprintf: New file.
97474         * modules/unistdio/u8-vasnprintf: New file.
97475         * modules/unistdio/u8-vasprintf: New file.
97476         * modules/unistdio/u8-vsnprintf: New file.
97477         * modules/unistdio/u8-vsprintf: New file.
97478         * modules/unistdio/u8-u8-asnprintf: New file.
97479         * modules/unistdio/u8-u8-asprintf: New file.
97480         * modules/unistdio/u8-u8-snprintf: New file.
97481         * modules/unistdio/u8-u8-sprintf: New file.
97482         * modules/unistdio/u8-u8-vasnprintf: New file.
97483         * modules/unistdio/u8-u8-vasprintf: New file.
97484         * modules/unistdio/u8-u8-vsnprintf: New file.
97485         * modules/unistdio/u8-u8-vsprintf: New file.
97486         * modules/unistdio/u16-asnprintf: New file.
97487         * modules/unistdio/u16-asprintf: New file.
97488         * modules/unistdio/u16-printf-parse: New file.
97489         * modules/unistdio/u16-snprintf: New file.
97490         * modules/unistdio/u16-sprintf: New file.
97491         * modules/unistdio/u16-vasnprintf: New file.
97492         * modules/unistdio/u16-vasprintf: New file.
97493         * modules/unistdio/u16-vsnprintf: New file.
97494         * modules/unistdio/u16-vsprintf: New file.
97495         * modules/unistdio/u16-u16-asnprintf: New file.
97496         * modules/unistdio/u16-u16-asprintf: New file.
97497         * modules/unistdio/u16-u16-snprintf: New file.
97498         * modules/unistdio/u16-u16-sprintf: New file.
97499         * modules/unistdio/u16-u16-vasnprintf: New file.
97500         * modules/unistdio/u16-u16-vasprintf: New file.
97501         * modules/unistdio/u16-u16-vsnprintf: New file.
97502         * modules/unistdio/u16-u16-vsprintf: New file.
97503         * modules/unistdio/u32-asnprintf: New file.
97504         * modules/unistdio/u32-asprintf: New file.
97505         * modules/unistdio/u32-printf-parse: New file.
97506         * modules/unistdio/u32-snprintf: New file.
97507         * modules/unistdio/u32-sprintf: New file.
97508         * modules/unistdio/u32-vasnprintf: New file.
97509         * modules/unistdio/u32-vasprintf: New file.
97510         * modules/unistdio/u32-vsnprintf: New file.
97511         * modules/unistdio/u32-vsprintf: New file.
97512         * modules/unistdio/u32-u32-asnprintf: New file.
97513         * modules/unistdio/u32-u32-asprintf: New file.
97514         * modules/unistdio/u32-u32-snprintf: New file.
97515         * modules/unistdio/u32-u32-sprintf: New file.
97516         * modules/unistdio/u32-u32-vasnprintf: New file.
97517         * modules/unistdio/u32-u32-vasprintf: New file.
97518         * modules/unistdio/u32-u32-vsnprintf: New file.
97519         * modules/unistdio/u32-u32-vsprintf: New file.
97520         * modules/unistdio/ulc-asnprintf-tests: New file.
97521         * modules/unistdio/ulc-vasnprintf-tests: New file.
97522         * modules/unistdio/ulc-vasprintf-tests: New file.
97523         * modules/unistdio/ulc-vsnprintf-tests: New file.
97524         * modules/unistdio/ulc-vsprintf-tests: New file.
97525         * modules/unistdio/u8-asnprintf-tests: New file.
97526         * modules/unistdio/u8-vasnprintf-tests: New file.
97527         * modules/unistdio/u8-vasprintf-tests: New file.
97528         * modules/unistdio/u8-vsnprintf-tests: New file.
97529         * modules/unistdio/u8-vsprintf-tests: New file.
97530         * modules/unistdio/u16-asnprintf-tests: New file.
97531         * modules/unistdio/u16-vasnprintf-tests: New file.
97532         * modules/unistdio/u16-vasprintf-tests: New file.
97533         * modules/unistdio/u16-vsnprintf-tests: New file.
97534         * modules/unistdio/u16-vsprintf-tests: New file.
97535         * modules/unistdio/u32-asnprintf-tests: New file.
97536         * modules/unistdio/u32-vasnprintf-tests: New file.
97537         * modules/unistdio/u32-vasprintf-tests: New file.
97538         * modules/unistdio/u32-vsnprintf-tests: New file.
97539         * modules/unistdio/u32-vsprintf-tests: New file.
97540         * MODULES.html.sh (Unicode string functions): Add the new modules.
97542 2007-07-01  Bruno Haible  <bruno@clisp.org>
97544         * lib/sprintf.c (sprintf): Limit the available length estimation,
97545         to avoid address wraparound.
97546         * lib/vsprintf.c (vsprintf): Likewise.
97547         * modules/sprintf-posix (Dependencies): Add stdint.
97548         * modules/vsprintf-posix (Dependencies): Likewise.
97550 2007-07-01  Bruno Haible  <bruno@clisp.org>
97552         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
97553         Windows PATH as well. Conservative double-quoting. Comments.
97555 2007-07-01  Bruno Haible  <bruno@clisp.org>
97556             Eric Blake  <ebb9@byu.net>
97557             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97559         * gnulib-tool (self_abspathname): Fix algorithm to cope with
97560         empty components in $PATH, denoting '.'.
97562 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97564         * gnulib-tool: Fix indentation.
97565         (func_create_megatestdir): Likewise.
97566         Report by Bruno Haible.
97568 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97570         Sync from Automake.
97571         * build-aux/gnupload: Fix shell portability issues with for loops.
97572         Report by Karl Berry.
97574 2007-06-29  Simon Josefsson  <simon@josefsson.org>
97576         * build-aux/maint.mk (POURL): Use translationproject.org.
97578 2007-06-27  Simon Josefsson  <simon@josefsson.org>
97579             Bruno Haible  <bruno@clisp.org>
97581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
97582         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
97583         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
97584         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
97585         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
97587 2007-06-27  Bruno Haible  <bruno@clisp.org>
97589         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
97590         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
97592 2007-06-26  Karl Berry  <karl@gnu.org>
97594         * MODULES.html.sh: remove xreadlink-with-size.
97596 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
97598         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
97599         method that I hope also handles the double-include problem noted
97600         by Bruno Haible in
97601         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
97603 2007-06-23  Bruno Haible  <bruno@clisp.org>
97605         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97606         Don't let the 'mostlyclean' target fail if the last subdirectory could
97607         not be removed.
97608         Reported by Karl Berry.
97610 2007-06-23  Bruno Haible  <bruno@clisp.org>
97612         * gnulib-tool (echo): Add a speedier workaround for ksh.
97613         * tests/test-echo.sh: Likewise.
97615 2007-06-23  Bruno Haible  <bruno@clisp.org>
97617         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
97618         * tests/test-echo.sh: Likewise.
97620 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97622         * gnulib-tool (IFS): Initialize early, so we don't set it to
97623         empty later.
97624         (self_abspathname): Rewrite algorithm to set it, reindent.
97625         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
97626         (func_create_megatestdir): Merge some sed scripts.
97628 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
97630         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
97631         exposed by Sun Studio 11 cc on Solaris 8.
97633 2007-06-22  Bruno Haible  <bruno@clisp.org>
97635         * gnulib-tool (echo): Ensure the echo primitive does not interpret
97636         backslashes.
97637         * tests/test-echo.sh: New file.
97639 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97641         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
97642         simplify `sed_replace_build_aux' scripts, they are portable but
97643         echoing them with `echo' is not.
97644         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
97646 2007-06-21  Karl Berry  <karl@gnu.org>
97648         * config/srclist.txt: guess we can't handle the licenses via
97649         srclist at the moment.
97651 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97653         * MODULES.html.sh: Add include_next.
97654         * modules/include_next: New file.
97656 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
97659         INCLUDE_NEXT.
97660         (gl_CHECK_NEXT_HEADERS): New macro.
97661         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
97662         the obsolescent gl_ABSOLUTE_HEADER.
97663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
97664         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
97665         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
97666         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
97667         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
97668         * m4/math_h.m4 (gl_MATH_H): Likewise.
97669         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
97670         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
97671         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
97672         * m4/stdint.m4 (gl_STDINT_H): Likewise.
97673         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
97674         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
97675         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
97676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
97677         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
97678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
97679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
97680         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
97681         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
97682         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
97683         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
97684         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
97685         * m4/inttypes.m4 (gl_INTTYPES_H): Define
97686         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
97687         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
97688         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
97689         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
97690         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
97691         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
97692         * lib/float_.h: Likewise.
97693         * lib/inttypes_.h: Likewise.
97694         * lib/math_.h: Likewise.
97695         * lib/search_.h: Likewise.
97696         * lib/signal_.h: Likewise.
97697         * lib/stdint_.h: Likewise.
97698         * lib/stdio_.h: Likewise.
97699         * lib/stdlib_.h: Likewise.
97700         * lib/string_.h: Likewise.
97701         * lib/sys_stat_.h: Likewise.
97702         * lib/sys_time_.h: Likewise.
97703         * lib/time_.h: Likewise.
97704         * lib/unistd_.h: Likewise.
97705         * lib/wchar_.h: Likewise.
97706         * lib/wctype_.h: Likewise.
97707         * lib/dirent_.h: Likewise.
97708         * lib/iconv_.h: Likewise.
97709         * lib/locale_.h: Likewise.
97710         * lib/netinet_in_.h: Likewise.
97711         * lib/sys_select_.h: Likewise.
97712         * lib/sys_socket_.h: Likewise.
97713         * lib/sysexits_.h: Likewise.
97714         * modules/fcntl (Depends-on): Depend on include_next, not
97715         absolute_header.
97716         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
97717         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
97718         * modules/fchdir: Likewise.
97719         * modules/float: Likewise.
97720         * modules/iconv_open: Likewise.
97721         * modules/inttypes: Likewise.
97722         * modules/locale: Likewise.
97723         * modules/math: Likewise.
97724         * modules/netinet_in: Likewise.
97725         * modules/search: Likewise.
97726         * modules/signal: Likewise.
97727         * modules/stdint: Likewise.
97728         * modules/stdio: Likewise.
97729         * modules/stdlib: Likewise.
97730         * modules/string: Likewise.
97731         * modules/sys_select: Likewise.
97732         * modules/sys_socket: Likewise.
97733         * modules/sys_stat: Likewise.
97734         * modules/sys_time: Likewise.
97735         * modules/sysexits: Likewise.
97736         * modules/time: Likewise.
97737         * modules/unistd: Likewise.
97738         * modules/wchar: Likewise.
97739         * modules/wctype: Likewise.
97740         * modules/sys_stat: Change maintainer to "all".
97741         * modules/unistd: Likewise.
97743 2007-06-20  Karl Berry  <karl@gnu.org>
97745         * config/srclist.txt: track www changes in license files.
97747 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
97749         * build-aux/bootstrap: Remove stray dot.
97750         Make sure build_aux settings are honored when linking
97751         gnulib_extra_files.
97753 2007-06-19  Eric Blake  <ebb9@byu.net>
97755         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
97756         Allow compilation on cygwin.
97758 2007-06-19  Jim Meyering  <jim@meyering.net>
97760         xreadlink-with-size: Remove module.  No longer used.
97761         Ex-callers now use xreadlink or mreadlink-with-size.
97762         * modules/xreadlink-with-size: Remove module.
97763         * lib/xreadlink-with-size.c: Remove file.
97764         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
97765         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
97766         just before the function definition *is* accurate.
97768         Eliminate one way canonicalize_filename_mode could exit.
97769         * lib/canonicalize.c (canonicalize_filename_mode):
97770         Use mreadlink_with_size, not xreadlink_with_size.
97772 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
97774         Detect porting problems to FreeBSD/arm, which has time_t wider than
97775         long int.  Original problem reported for GNU diff by Xin Li in
97776         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
97777         * modules/getdate (Depends-on): Add intprops, verify.
97778         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
97779         is an integer type no wider than long int.
97781 2007-06-18  Jim Meyering  <jim@meyering.net>
97783         New module: mreadlink-with-size.
97784         * MODULES.html.sh: Add mreadlink-with-size.
97785         * modules/mreadlink-with-size: New module
97786         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
97787         not xreadlink-with-size.
97788         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
97790 2007-06-16  Bruno Haible  <bruno@clisp.org>
97792         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
97793         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
97794         Reported by Gary V. Vaughan <gary@gnu.org>.
97796 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
97798         Revamp lchown so that it lives in unistd.h where it belongs.
97799         * lib/lchown.h: Remove.
97800         * lib/dirchownmod.c: Don't include lib/lchown.h.
97801         * lib/fchownat.c: Likewise.
97802         * lib/openat.c: Likewise.
97803         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
97804         does not follow symlinks.
97805         (EOPNOTSUPP): Define if not defined.
97806         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
97807         is defined to 0.
97808         (lchown): New decl.
97809         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
97810         Do not check for lchown decl.
97811         Set REPLACE_LCHOWN.
97812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
97813         REPLACE_LCHOWN.
97814         * modules/chown: Make it clear it follows symlinks.
97815         * modules/lchown: Make it clear it doesn't follow symlinks.
97816         (Files): Remove lib/lchown.h
97817         (Depends-on): Add unistd.
97818         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
97819         (Include): Include <unistd.h>, not "lchown.h".
97820         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
97821         REPLACE_LCHOWN.
97823 2007-06-15  Jim Meyering  <jim@meyering.net>
97825         Change license (GPL to LGPL) of fsusage and dependents.
97826         * modules/fsusage (License): Change to LGPL.
97827         * modules/full-read (License): Likewise.
97828         * modules/full-write (License): Likewise.
97829         * modules/safe-read (License): Likewise.
97830         * modules/safe-write (License): Likewise.
97832 2007-06-14  Ben Pfaff  <blp@gnu.org>
97834         Missing part of allocsa -> malloca transition.
97835         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
97836         gl_MALLOCA.
97838 2007-06-12  Bruno Haible  <bruno@clisp.org>
97840         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
97841         to ia64, x86_64, i386.
97842         Reported by Eric Blake.
97844 2007-06-12  Bruno Haible  <bruno@clisp.org>
97846         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
97847         cross-compiling to x86_64.
97849 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
97851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
97852         glitch reported by Ralf Wildenhues in
97853         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
97855         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
97856         Vin Shelton.
97858 2007-06-11  Bruno Haible  <bruno@clisp.org>
97860         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
97861         replacement string.
97862         Reported by Eric Blake.
97864 2007-06-10  Bruno Haible  <bruno@clisp.org>
97866         Prepare vasnprintf code for use with Unicode strings.
97867         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
97868         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
97869         TYPE_U32_STRING.
97870         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
97871         a_u32_string variants.
97872         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
97873         * lib/printf-args.c: Don't include config.h and the specification
97874         header if PRINTF_FETCHARGS is already defined.
97875         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
97876         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
97877         TYPE_U16_STRING, TYPE_U32_STRING.
97878         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
97879         u16_directive, u16_directives, u32_directive, u32_directives): New
97880         types.
97881         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
97882         New declarations.
97883         * lib/printf-parse.c: Don't include config.h and the specification
97884         header if PRINTF_PARSE is already defined. Eliminate the set of
97885         parameters for WIDE_CHAR_VERSION; the user of this file must provide
97886         them now. Include c-ctype.h.
97887         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
97888         directive and CHAR_T_ONLY_ASCII.
97889         * lib/vasnprintf.c: Don't include config.h and the specification header
97890         if VASNPRINTF is already defined.
97891         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
97892         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
97893         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
97894         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
97895         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
97896         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
97897         code accordingly.
97898         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
97899         pad_ourselves also in this case, with the 'c' and 's' directives, and
97900         with a different notion of "width".
97901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
97903 2007-06-10  Bruno Haible  <bruno@clisp.org>
97905         * modules/unistr/u32-mbsnlen: New file.
97906         * lib/unistr/u32-mbsnlen.c: New file.
97908         * modules/unistr/u16-mbsnlen: New file.
97909         * lib/unistr/u16-mbsnlen.c: New file.
97911         * modules/unistr/u8-mbsnlen: New file.
97912         * lib/unistr/u8-mbsnlen.c: New file.
97914         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
97915         declarations.
97917 2007-06-10  Bruno Haible  <bruno@clisp.org>
97919         * lib/string_.h (mbsnlen): New declaration.
97920         * lib/mbsnlen.c: New file.
97921         * m4/mbsnlen.m4: New file.
97922         * modules/mbsnlen: New file.
97923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
97924         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
97925         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
97927 2007-06-10  Bruno Haible  <bruno@clisp.org>
97929         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
97931 2007-06-10  Bruno Haible  <bruno@clisp.org>
97933         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
97934         * lib/mbuiter.h: Likewise.
97936 2007-06-10  Bruno Haible  <bruno@clisp.org>
97938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
97939         declaration.
97941 2007-06-10  Karl Berry  <karl@gnu.org>
97943         * config/srclist.txt: remove gettext entries, Bruno prefers
97944         to update individually.
97946 2007-06-10  Bruno Haible  <bruno@clisp.org>
97948         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
97949         'maxlen'. Ensure only length + width bytes are allocated, not
97950         length + 1 + width.
97952 2007-06-09  Bruno Haible  <bruno@clisp.org>
97954         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
97955         (CHAR_T): Remove macro.
97956         (VASNPRINTF): Update.
97958 2007-06-09  Bruno Haible  <bruno@clisp.org>
97960         * MODULES.html.sh (Unicode string functions): Add the new modules.
97962         * modules/uniconv/u32-conv-to-enc: New file.
97963         * lib/uniconv/u32-conv-to-enc.c: New file.
97964         * modules/uniconv/u32-conv-to-enc-tests: New file.
97965         * tests/uniconv/test-u32-conv-to-enc.c: New file.
97967         * modules/uniconv/u16-conv-to-enc: New file.
97968         * lib/uniconv/u16-conv-to-enc.c: New file.
97969         * lib/uniconv/u-conv-to-enc.h: New file.
97970         * modules/uniconv/u16-conv-to-enc-tests: New file.
97971         * tests/uniconv/test-u16-conv-to-enc.c: New file.
97973         * modules/uniconv/u8-conv-to-enc: New file.
97974         * lib/uniconv/u8-conv-to-enc.c: New file.
97975         * modules/uniconv/u8-conv-to-enc-tests: New file.
97976         * tests/uniconv/test-u8-conv-to-enc.c: New file.
97978         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
97979         u32_conv_to_encoding): New declarations.
97981 2007-06-09  Bruno Haible  <bruno@clisp.org>
97983         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
97985 2007-06-09  Bruno Haible  <bruno@clisp.org>
97987         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
97988         * modules/malloca: Renamed from modules/allocsa, updated.
97989         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
97990         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
97991         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
97992         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
97993         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
97994         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
97995         * modules/xmalloca: Renamed from modules/xallocsa, updated.
97996         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
97997         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
97998         * modules/c-strcasestr (Depends-on): Update.
97999         * lib/c-strcasestr.c: Update.
98000         * modules/c-strstr (Depends-on): Update.
98001         * lib/c-strstr.c: Update.
98002         * modules/canonicalize-lgpl (Depends-on): Update.
98003         * lib/canonicalize-lgpl.c: Update.
98004         * modules/clean-temp (Depends-on): Update.
98005         * lib/clean-temp.c: Update.
98006         * modules/csharpcomp (Depends-on): Update.
98007         * lib/csharpcomp.c: Update.
98008         * modules/csharpexec (Depends-on): Update.
98009         * lib/csharpexec.c: Update.
98010         * modules/javacomp (Depends-on): Update.
98011         * lib/javacomp.c: Update.
98012         * modules/javaexec (Depends-on): Update.
98013         * lib/javaexec.c: Update.
98014         * modules/mbscasestr (Depends-on): Update.
98015         * lib/mbscasestr.c: Update.
98016         * modules/mbsstr (Depends-on): Update.
98017         * lib/mbsstr.c: Update.
98018         * modules/setenv (Depends-on): Update.
98019         * lib/setenv.c: Update.
98020         * modules/strcasestr (Depends-on): Update.
98021         * lib/strcasestr.c: Update.
98022         * modules/striconveha (Depends-on): Update.
98023         * lib/striconveha.c: Update.
98024         * modules/relocatable-prog-wrapper (Files): Update.
98025         * lib/relocwrapper.c: Update.
98026         * build-aux/install-reloc: Update.
98027         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
98029 2007-06-08  Bruno Haible  <bruno@clisp.org>
98031         Port to uClibc.
98032         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
98033         * lib/fpurge.c (fpurge): Likewise.
98034         * lib/freading.c (freading): Likewise.
98035         * lib/fseeko.c (rpl_fseeko): Likewise.
98036         * lib/fseterr.c (fseterr): Likewise.
98037         * lib/fwriting.c (fwriting): Likewise.
98038         * tests/test-fflush.c (main): Avoid a failure on uClibc.
98040 2007-06-08  Bruno Haible  <bruno@clisp.org>
98042         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
98043         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
98044         * modules/gettext (Files): Add m4/intlmacosx.m4.
98046 2007-06-07  Bruno Haible  <bruno@clisp.org>
98048         * modules/localename-tests: New file.
98049         * tests/test-localename.c: New file.
98051         New module 'localename'.
98052         * lib/localename.h: New file.
98053         * lib/localename.c: New file, from GNU gettext.
98054         * m4/localename.m4: New file.
98055         * modules/localename: New file.
98057 2007-06-07  Bruno Haible  <bruno@clisp.org>
98059         Work around the lack of <wchar.h> on some builds of uClibc.
98060         * doc/headers/wchar.texi: Update.
98061         * lib/wchar_.h: Include <wchar.h> only if it exists.
98062         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
98063         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
98064         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
98065         doesn't exist.
98066         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
98067         * modules/mbfile (Depends-on): Add wchar.
98068         * modules/mbiter (Depends-on): Likewise.
98069         * modules/mbuiter (Depends-on): Likewise.
98070         Reported by Simon Josefsson.
98072 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
98074         Work around problem reported by Steven M. Schweda in
98075         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
98076         Tru64 5.1B with the Compaq compiler environment installed declares
98077         an 'isblank' function but does not define it in the C library.
98078         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
98079         * lib/regex_internal.h (isblank): Likewise.
98080         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
98081         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
98083 2007-06-05  Bruno Haible  <bruno@clisp.org>
98085         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
98086         ia64.
98087         * modules/printf-safe: New file.
98088         * modules/fprintf-posix (Depends-on): Add printf-safe.
98089         * modules/printf-posix (Depends-on): Likewise.
98090         * modules/snprintf-posix (Depends-on): Likewise.
98091         * modules/sprintf-posix (Depends-on): Likewise.
98092         * modules/vasnprintf-posix (Depends-on): Likewise.
98093         * modules/vasprintf-posix (Depends-on): Likewise.
98094         * modules/vfprintf-posix (Depends-on): Likewise.
98095         * modules/vprintf-posix (Depends-on): Likewise.
98096         * modules/vsnprintf-posix (Depends-on): Likewise.
98097         * modules/vsprintf-posix (Depends-on): Likewise.
98098         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
98099         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
98100         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
98101         "no" on i386, x86_64, ia64.
98102         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
98103         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
98104         on i386, x86_64, ia64.
98105         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
98106         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
98107         on i386, x86_64, ia64.
98108         * tests/test-vasnprintf-posix.c: Include float.h.
98109         (LDBL80_WORDS): New macro.
98110         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
98111         on i386, x86_64, ia64.
98112         * tests/test-vasprintf-posix.c: Include float.h.
98113         (LDBL80_WORDS): New macro.
98114         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
98115         on i386, x86_64, ia64.
98116         * tests/test-snprintf-posix.c: Include float.h.
98117         * tests/test-sprintf-posix.c: Likewise.
98118         * tests/test-vsnprintf-posix.c: Likewise.
98119         * tests/test-vsprintf-posix.c: Likewise.
98121 2007-06-05  Bruno Haible  <bruno@clisp.org>
98123         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
98124         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
98125         non-IEEE numbers on i386, x86_64, ia64.
98126         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
98127         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
98128         * tests/test-isnanl.h: Include float.h.
98129         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
98131 2007-06-05  Bruno Haible  <bruno@clisp.org>
98133         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
98134         also the %a / %A. Handle the %a / %A code before this extra handling.
98136 2007-06-05  Bruno Haible  <bruno@clisp.org>
98138         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
98139         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
98141 2007-06-05  Bruno Haible  <bruno@clisp.org>
98143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
98144         typo in variable name.
98146 2007-06-05  Eric Blake  <ebb9@byu.net>
98148         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
98149         Reported by Simon Josefsson.
98151 2007-06-04  Bruno Haible  <bruno@clisp.org>
98153         Avoid test failures on some PowerPC platforms.
98154         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
98155         Define differently for PowerPC.
98156         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
98157         Reported by Gary V. Vaughan <gary@gnu.org>.
98159 2007-06-02  Bruno Haible  <bruno@clisp.org>
98161         Fix test-stdint failure on FreeBSD/ia64.
98162         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
98163         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
98164         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
98165         * doc/headers/stdint.texi: Update.
98167 2007-06-01  Bruno Haible  <bruno@clisp.org>
98169         * tests/test-binary-io.c (main): Pass a third argument to open().
98170         Reported by Gary V. Vaughan <gary@gnu.org>.
98172 2007-06-01  Bruno Haible  <bruno@clisp.org>
98174         * doc/functions/frexpl.texi: Update for mingw.
98176 2007-06-01  Bruno Haible  <bruno@clisp.org>
98178         * tests/test-lseek.c (main): Disable test of errno for invalid third
98179         argument.
98180         * doc/functions/lseek.texi: Update.
98181         Reported by Gary V. Vaughan <gary@gnu.org>.
98183 2007-05-28  Bruno Haible  <bruno@clisp.org>
98185         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
98187 2007-05-31  Eric Blake  <ebb9@byu.net>
98189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
98190         cross compiling.
98192 2007-05-30  Eric Blake  <ebb9@byu.net>
98193         and Bruno Haible  <bruno@clisp.org>
98195         Work around mingw test failures exposed by m4-1.4.9b.
98196         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
98197         * tests/test-unistd.c: Disable uid_t and git_t tests for the
98198         moment.
98200 2007-05-30  Bruno Haible  <bruno@clisp.org>
98202         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
98203         assuming that they are closed. Needed on HP-UX 11.
98205 2007-05-29  Bruno Haible  <bruno@clisp.org>
98207         Fix a problem with #include_next.
98208         * lib/dirent_.h: Split the double-inclusion guard.
98209         * lib/fcntl_.h: Likewise.
98210         * lib/float_.h: Likewise.
98211         * lib/iconv_.h: Likewise.
98212         * lib/inttypes_.h: Likewise.
98213         * lib/locale_.h: Likewise.
98214         * lib/math_.h: Likewise.
98215         * lib/netinet_in_.h: Likewise.
98216         * lib/search_.h: Likewise.
98217         * lib/signal_.h: Likewise.
98218         * lib/stdint_.h: Likewise.
98219         * lib/stdio_.h: Likewise.
98220         * lib/stdlib_.h: Likewise.
98221         * lib/string_.h: Likewise.
98222         * lib/sys_select_.h: Likewise.
98223         * lib/sys_socket_.h: Likewise.
98224         * lib/sys_stat_.h: Likewise.
98225         * lib/sys_time_.h: Likewise.
98226         * lib/sysexits_.h: Likewise.
98227         * lib/time_.h: Likewise.
98228         * lib/unistd_.h: Likewise.
98229         * lib/wchar_.h: Likewise.
98230         * lib/wctype_.h: Likewise.
98232 2007-05-29  Bruno Haible  <bruno@clisp.org>
98234         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
98235         for the moment.
98237 2007-05-29  Bruno Haible  <bruno@clisp.org>
98239         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
98240         invocation.
98241         Reported by Eric Blake.
98243 2007-05-29  Bruno Haible  <bruno@clisp.org>
98245         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
98246         compiling case.
98248 2007-05-29  Eric Blake  <ebb9@byu.net>
98249             Bruno Haible  <bruno@clisp.org>
98251         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
98252         cross compiles.
98254 2007-05-28  Eric Blake  <ebb9@byu.net>
98256         * modules/closein-tests (test_closein_LDADD): Support test on
98257         cygwin with libtool.
98259 2007-05-28  Bruno Haible  <bruno@clisp.org>
98261         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
98262         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
98263         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
98264         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
98265         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
98266         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
98267         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
98268         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
98269         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
98271 2007-05-28  Eric Blake  <ebb9@byu.net>
98273         Unconditionally include <config.h> in unit tests.
98274         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
98275         * tests/test-allocsa.c, tests/test-arcfour.c,
98276         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
98277         tests/test-array_list.c, tests/test-array_oset.c,
98278         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
98279         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
98280         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
98281         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
98282         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
98283         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
98284         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
98285         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
98286         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
98287         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
98288         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
98289         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
98290         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
98291         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
98292         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
98293         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
98294         test-md5.c, test-memmem.c, test-printf-posix.c,
98295         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
98296         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
98297         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
98298         test-strcasestr.c, test-striconv.c, test-striconveh.c,
98299         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
98300         test-vasnprintf-posix2.c, test-vasnprintf.c,
98301         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
98302         test-vfprintf-posix.c, test-vprintf-posix.c,
98303         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
98304         test-xvasprintf.c: Likewise.
98306 2007-05-28  Bruno Haible  <bruno@clisp.org>
98308         * gnulib-tool (func_import): Remember the --with-tests command-line
98309         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
98310         Reported by Eric Blake.
98312 2007-05-28  Bruno Haible  <bruno@clisp.org>
98314         * modules/ftell-tests: New file.
98315         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
98316         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
98318         * lib/ftell.c: New file.
98319         * modules/ftell: New file.
98320         * m4/ftell.m4: New file.
98321         * doc/functions/ftell.texi: Update.
98322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
98323         REPLACE_FTELL.
98324         * lib/stdio_.h (rpl_ftell): New declaration.
98325         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
98326         REPLACE_FTELL.
98328 2007-05-28  Eric Blake  <ebb9@byu.net>
98330         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
98332 2007-05-28  Bruno Haible  <bruno@clisp.org>
98334         * modules/fseek-tests: New file.
98335         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
98336         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
98338         * lib/fseek.c: New file.
98339         * modules/fseek: New file.
98340         * m4/fseek.m4: New file.
98341         * doc/functions/fseek.texi: Update.
98342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
98343         REPLACE_FSEEK.
98344         * lib/stdio_.h (rpl_fseek): New declaration.
98345         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
98346         REPLACE_FSEEK.
98348 2007-05-28  Bruno Haible  <bruno@clisp.org>
98350         * lib/stdio_.h (fflush): More comments.
98352 2007-05-28  Bruno Haible  <bruno@clisp.org>
98354         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
98355         runtime test.
98357 2007-05-28  Eric Blake  <ebb9@byu.net>
98359         Improve lseek module.
98360         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
98361         * lib/unistd_.h (lseek): Scale back link warning message.
98362         * tests/test-lseek.c: Beef up test.
98363         * tests/test-lseek.sh: Exercise more facets of lseek.
98364         Reported by Bruno Haible.
98366 2007-05-28  Bruno Haible  <bruno@clisp.org>
98368         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
98369         to define.
98371 2007-05-27  Bruno Haible  <bruno@clisp.org>
98373         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
98375 2007-05-27  Bruno Haible  <bruno@clisp.org>
98377         * modules/openmp: New file.
98378         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
98379         Noah Misch.
98381 2007-05-26  Bruno Haible  <bruno@clisp.org>
98383         * modules/chdir-long (Depends-on): Add fchdir.
98384         * modules/chdir-safer (Depends-on): Likewise.
98385         * modules/fts (Depends-on): Likewise.
98386         * modules/fts-lgpl (Depends-on): Likewise.
98387         * modules/openat (Depends-on): Likewise.
98388         * modules/savewd (Depends-on): Likewise.
98390 2007-05-24  Eric Blake  <ebb9@byu.net>
98392         Fix lseek on mingw.
98393         * modules/lseek: New module.
98394         * m4/lseek.m4: New file.
98395         * lib/lseek.c: New file.
98396         * modules/lseek-tests: New file.
98397         * tests/test-lseek.c: New file.
98398         * tests/test-lseek.sh: New file.
98399         * MODULES.html.sh: Document lseek module.
98400         * modules/fflush (Depends-on): Add lseek, fseeko.
98401         * modules/fseeko (Depends-on): Likewise.
98402         * modules/ftello (Depends-on): Likewise.
98403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
98404         broken.
98405         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
98406         broken.
98407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
98408         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
98409         * lib/ftello.c (rpl_ftello): Likewise.
98410         * tests/test-fseeko.c (main): Test this.
98411         * tests/test-fseeko.sh: Likewise.
98412         * tests/test-ftello.c (main): Likewise.
98413         * tests/test-ftello.sh: Likewise.
98414         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
98415         implies replacing fseek.
98416         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
98417         HAVE_FTELLO.
98418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
98419         * modules/unistd (Makefile.am): Likewise.
98420         * lib/unistd_.h (lseek): Declare a replacement.
98421         * doc/functions/lseek.texi (lseek): Document this fix.
98422         * doc/functions/fseek.texi (fseek): Likewise.
98423         * doc/functions/ftell.texi (ftell): Likewise.
98425 2007-05-24  Bruno Haible  <bruno@clisp.org>
98427         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
98428         in the printed representation of a NaN.
98429         * tests/test-vasprintf-posix.c (test_function): Likewise.
98430         * tests/test-snprintf-posix.h (test_function): Likewise.
98431         * tests/test-sprintf-posix.h (test_function): Likewise.
98432         Reported by Eric Blake.
98434 2007-05-23  Eric Blake  <ebb9@byu.net>
98436         Fix fseeko/ftello on cygwin 1.5.24.
98437         * doc/functions/fseeko.texi (fseeko): Document the fix.
98438         * doc/functions/ftello.texi (ftello): Document the fix.
98439         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
98440         * doc/functions/stdout.text (stdout): New file.
98441         * doc/functions/stderr.text (stderr): New file.
98442         * doc/gnulib.texi (Function Substitutes): Use new files.
98443         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
98444         prior to 1.7.0.
98445         * tests/test-ftello.c (main): Likewise for ftello.
98446         * tests/test-fseeko.sh: New file.
98447         * tests/test-ftello.sh: New file.
98448         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
98449         with seekable stdin.
98450         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
98451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
98452         (gl_REPLACE_FSEEKO): New macro.
98453         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
98454         * modules/fseeko (Files): Distribute fseeko.c.
98455         * modules/ftello (Files): Distribute ftello.c.
98456         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
98457         mode.
98458         * lib/ftello.c (rpl_ftello): New file.
98459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
98460         fseeko, ftello.
98461         (gl_STDIN_LARGE_OFFSET): New macro.
98462         * modules/stdio (Makefile.am): Perform the replacement.
98463         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
98465 2007-05-23  Bruno Haible  <bruno@clisp.org>
98467         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
98468         GNULIB_POSIXCHECK is defined.
98470 2007-05-21  Bruno Haible  <bruno@clisp.org>
98472         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
98473         Check also the output for NaN arguments. When cross-compiling, guess
98474         no on IRIX.
98475         * lib/vasnprintf.c: Update comments.
98476         * tests/test-vasnprintf-posix.c (strisnan): New function.
98477         (test_function): Use it.
98478         * tests/test-vasprintf-posix.c (strisnan): New function.
98479         (test_function): Use it.
98480         * tests/test-snprintf-posix.h (strisnan): New function.
98481         (test_function): Use it.
98482         * tests/test-sprintf-posix.h (strisnan): New function.
98483         (test_function): Use it.
98484         Reported by Eric Blake.
98486 2007-05-20  Bruno Haible  <bruno@clisp.org>
98488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
98489         numbers that fails on BeOS.
98490         * doc/functions/frexpl.texi: Update.
98492 2007-05-20  Jim Meyering  <jim@meyering.net>
98494         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
98495         forced upon us by glibc-2.6.
98497 2007-05-20  Bruno Haible  <bruno@clisp.org>
98499         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
98500         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
98501         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
98502         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
98503         NEED_PRINTF_INFINITE.
98504         (is_infinitel): New function.
98505         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
98506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
98507         gl_PREREQ_VASNPRINTF_INFINITE.
98508         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
98509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98510         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
98511         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
98512         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
98513         gl_PREREQ_VASNPRINTF_INFINITE.
98514         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98518         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98520         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98521         * doc/functions/fprintf.texi: Update.
98522         * doc/functions/printf.texi: Update.
98523         * doc/functions/snprintf.texi: Update.
98524         * doc/functions/sprintf.texi: Update.
98525         * doc/functions/vfprintf.texi: Update.
98526         * doc/functions/vprintf.texi: Update.
98527         * doc/functions/vsnprintf.texi: Update.
98528         * doc/functions/vsprintf.texi: Update.
98530 2007-05-20  Bruno Haible  <bruno@clisp.org>
98532         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
98533         was not found in libc.
98534         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
98536 2007-05-20  Bruno Haible  <bruno@clisp.org>
98538         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
98539         printed as "-nan" instead of "nan".
98540         * tests/test-vasprintf-posix.c (test_function): Likewise.
98541         * tests/test-snprintf-posix.h (test_function): Likewise.
98542         * tests/test-sprintf-posix.h (test_function): Likewise.
98543         Needed for HP-UX 11.
98545 2007-05-20  Jim Meyering  <jim@meyering.net>
98547         Fix buggy test for the fchownat-deref bug.
98548         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
98549         symlink required for the run-test.  Without it, this test would
98550         always declare that fchownat doesn't work, and client code would
98551         unnecessarily use the replacement function with fixed libc.
98552         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
98553         Reported by Greg Schafer.
98555 2007-05-19  Bruno Haible  <bruno@clisp.org>
98557         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
98558         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
98559         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
98560         Needed for IRIX 6.5 and Solaris 2.5.1.
98562 2007-05-19  Bruno Haible  <bruno@clisp.org>
98564         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
98565         (test_function): Skip tests involving -0.0 on platforms where
98566         -0.0 = 0.0.
98567         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
98568         (test_function): Skip tests involving -0.0 on platforms where
98569         -0.0 = 0.0.
98570         * tests/test-snprintf-posix.h (have_minus_zero): New function.
98571         (test_function): Skip tests involving -0.0 on platforms where
98572         -0.0 = 0.0.
98573         * tests/test-sprintf-posix.h (have_minus_zero): New function.
98574         (test_function): Skip tests involving -0.0 on platforms where
98575         -0.0 = 0.0.
98576         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
98577         tests.
98578         * tests/test-printf-posix.h (test_function): Likewise.
98579         * tests/test-printf-posix.output: Remove all -0.0 related results.
98580         Needed for IRIX 6.5.
98582 2007-05-19  Bruno Haible  <bruno@clisp.org>
98584         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
98585         printed as "nan0x7fffffff" instead of "nan".
98586         * tests/test-vasprintf-posix.c (test_function): Likewise.
98587         * tests/test-snprintf-posix.h (test_function): Likewise.
98588         * tests/test-sprintf-posix.h (test_function): Likewise.
98589         * tests/test-fprintf-posix.h (NaN): Remove macro.
98590         (test_function): Remove all NaN related tests.
98591         * tests/test-printf-posix.h (NaN): Remove macro.
98592         (test_function): Remove all NaN related tests.
98593         * tests/test-printf-posix.output: Remove all NaN related results.
98594         Needed for IRIX 6.5.
98596 2007-05-19  Bruno Haible  <bruno@clisp.org>
98598         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
98599         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
98601 2007-05-19  Bruno Haible  <bruno@clisp.org>
98603         * lib/float_.h: New file.
98604         * m4/float_h.m4: New file.
98605         * modules/float: New file.
98606         * modules/isnanl (Dependencies): Add float.
98607         * modules/isnanl-nolibm (Dependencies): Likewise.
98608         * modules/mathl (Dependencies): Likewise.
98609         * modules/printf-frexpl (Dependencies): Likewise.
98610         * modules/signbit (Dependencies): Likewise.
98611         * modules/vasnprintf (Dependencies): Likewise.
98612         * doc/headers/float.texi: Update.
98614 2007-05-19  Jim Meyering  <jim@meyering.net>
98616         * lib/utimens.c (gl_futimens): Rename from futimens,
98617         now that glibc-2.6 declares futimens.
98618         * lib/utimens.h: Likewise.
98620 2007-05-19  Bruno Haible  <bruno@clisp.org>
98622         Avoid test failures on mingw.
98623         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
98624         * tests/test-printf-posix.sh: Likewise.
98625         * tests/test-vfprintf-posix.sh: Likewise.
98626         * tests/test-vprintf-posix.sh: Likewise.
98628 2007-05-19  Bruno Haible  <bruno@clisp.org>
98630         Fix *printf result for NaN, Inf, -0.0 on mingw.
98631         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
98632         * lib/vasnprintf.c: Include math.h and isnan.h.
98633         (is_infinite_or_zero): New function.
98634         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
98635         values in the %f, %F, %e, %E, %g, %G directives.
98636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
98637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98638         gl_PRINTF_INFINITE and test its result. Invoke
98639         gl_PREREQ_VASNPRINTF_INFINITE.
98640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98647         * doc/functions/fprintf.texi: Update.
98648         * doc/functions/printf.texi: Update.
98649         * doc/functions/snprintf.texi: Update.
98650         * doc/functions/sprintf.texi: Update.
98651         * doc/functions/vfprintf.texi: Update.
98652         * doc/functions/vprintf.texi: Update.
98653         * doc/functions/vsnprintf.texi: Update.
98654         * doc/functions/vsprintf.texi: Update.
98656 2007-05-19  Bruno Haible  <bruno@clisp.org>
98658         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
98659         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
98660         Instead of multiplying with 10^k, set extra_zeroes to k.
98661         (scale10_round_long_double): Remove function.
98663 2007-05-18  Bruno Haible  <bruno@clisp.org>
98665         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
98666         introduced on 2007-05-06.
98668 2007-05-18  Bruno Haible  <bruno@clisp.org>
98670         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
98671         %g directives.
98672         * tests/test-vasprintf-posix.c (test_function): Likewise.
98673         * tests/test-snprintf-posix.h (test_function): Likewise.
98674         * tests/test-sprintf-posix.h (test_function): Likewise.
98676 2007-05-18  Bruno Haible  <bruno@clisp.org>
98678         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
98679         (strmatch): New function.
98680         (test_function): Test the %f directive on numbers of various exponents.
98681         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
98682         (strmatch): New function.
98683         (test_function): Test the %f directive on numbers of various exponents.
98684         * tests/test-snprintf-posix.h (strmatch): New function.
98685         (test_function): Test the %f directive on numbers of various exponents.
98686         * tests/test-sprintf-posix.h (strmatch): New function.
98687         (test_function): Test the %f directive on numbers of various exponents.
98688         * tests/test-snprintf-posix.c (SIZEOF): New macro.
98689         * tests/test-sprintf-posix.c (SIZEOF): New macro.
98690         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
98691         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
98693 2007-05-18  Bruno Haible  <bruno@clisp.org>
98695         Add support for 'long double' number output.
98696         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
98697         * lib/vasnprintf.c: Include math.h and float+.h.
98698         (mp_limb_t): New type.
98699         (GMP_LIMB_BITS): New macro.
98700         (mp_twolimb_t): New type.
98701         (GMP_TWOLIMB_BITS): New macro.
98702         (mpn_t): New type.
98703         (multiply, divide, convert_to_decimal, decode_long_double,
98704         scale10_round_long_double, scale10_round_decimal_long_double,
98705         floorlog10l): New functions.
98706         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
98707         for the %f, %F, %e, %E, %g, %G directives.
98708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
98709         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98710         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
98711         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
98712         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98713         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98714         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98715         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98716         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98717         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98718         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98719         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
98720         * modules/snprintf-posix (Depends-on): Likewise.
98721         * modules/sprintf-posix (Depends-on): Likewise.
98722         * modules/vasnprintf-posix (Depends-on): Likewise.
98723         * modules/vasprintf-posix (Depends-on): Likewise.
98724         * modules/vfprintf-posix (Depends-on): Likewise.
98725         * modules/vsnprintf-posix (Depends-on): Likewise.
98726         * modules/vsprintf-posix (Depends-on): Likewise.
98727         * modules/vasnprintf (Files): Add lib/float+.h.
98728         * doc/functions/fprintf.texi: Update.
98729         * doc/functions/printf.texi: Update.
98730         * doc/functions/snprintf.texi: Update.
98731         * doc/functions/sprintf.texi: Update.
98732         * doc/functions/vfprintf.texi: Update.
98733         * doc/functions/vprintf.texi: Update.
98734         * doc/functions/vsnprintf.texi: Update.
98735         * doc/functions/vsprintf.texi: Update.
98737 2007-05-18  Bruno Haible  <bruno@clisp.org>
98739         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
98741 2007-05-18  Bruno Haible  <bruno@clisp.org>
98743         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
98744         for printing 64-bit integers. Needed for mingw.
98746 2007-05-18  Bruno Haible  <bruno@clisp.org>
98748         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
98749         gl_FUNC_FREXPL_WORKS.
98750         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
98752 2007-05-18  Bruno Haible  <bruno@clisp.org>
98754         * modules/frexpl-nolibm-tests: New file.
98756         * modules/frexpl-nolibm: New file.
98757         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
98759 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
98761         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
98762         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
98763         GCC 4.2, which otherwise issues a lot of warnings.
98764         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
98765         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
98766         Likewise.
98767         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
98768         * modules/iconv_open (iconv.h): Likewise.
98769         * modules/locale (locale.h): Likewise.
98770         * modules/netinet_in (netinet/in.h): Likewise.
98771         * modules/sys_select (sys_select.h): Likewise.
98772         * modules/sys_socket (sys/socket.h): Likewise.
98773         * modules/sys_stat (sys/stat.h): Likewise.
98774         * modules/sysexits (sysexits.h): Likewise.
98775         * modules/unistd (unistd.h): Likewise.
98777 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98779         * modules/closein-tests (Makefile.am): Distribute
98780         `test-closein.sh'.
98782 2007-05-17  Bruno Haible  <bruno@clisp.org>
98784         * tests/test-printf-posix.output: Renamed from
98785         tests/test-fprintf-posix.out.
98786         * modules/fprintf-posix-tests: Update.
98787         * modules/printf-posix-tests: Update.
98788         * modules/vfprintf-posix-tests: Update.
98789         * modules/vprintf-posix-tests: Update.
98790         * tests/test-fprintf-posix.sh: Update.
98791         * tests/test-printf-posix.sh: Update.
98792         * tests/test-vfprintf-posix.sh: Update.
98793         * tests/test-vprintf-posix.sh: Update.
98794         Reported by Ralf Wildenhues.
98796 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
98798         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
98799         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
98800         GCC 4.2, which otherwise issues a lot of warnings.
98801         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
98802         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
98803         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
98804         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
98805         it should no longer be needed.
98806         * lib/string_.h: Likewise.
98807         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
98808         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
98809         * modules/inttypes (inttypes.h): Likewise.
98810         * modules/math (math.h): Likewise.
98811         * modules/search (search.h): Likewise.
98812         * modules/signal (signal.h): Likewise.
98813         * modules/stdint (stdint.h): Likewise.
98814         * modules/stdio (stdio.h): Likewise.
98815         * modules/stdlib (stdlib.h): Likewise.
98816         * modules/string (string.h): Likewise.
98817         * modules/sys_time (sys/time.h): Likewise.
98818         * modules/time (time.h): Likewise.
98819         * modules/wchar (wchar.h): Likewise.
98820         * modules/wctype (wtype.h): Likewise.
98822 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
98824         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
98826 2007-05-13  Bruno Haible  <bruno@clisp.org>
98828         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
98829         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98830         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
98831         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98832         (gl_PREREQ_STRTOK_R): Don't require it here.
98834 2007-05-13  Bruno Haible  <bruno@clisp.org>
98836         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
98837         when used in C++ mode.
98839 2007-05-12  Bruno Haible  <bruno@clisp.org>
98841         * lib/linebuffer.h: Tweak doc.
98842         * lib/linebuffer.c: Likewise.
98844 2007-05-12  James Youngman  <jay@gnu.org>
98846         * lib/linebuffer.c (readlinebuffer_delim): New function,
98847         like readlinebuffer, but use a caller-specified delimiter.
98848         (readlinebuffer): Just call readlinebuffer_delim with '\n'
98849         as the delimiter.
98850         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
98852 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
98854         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
98855         * modules/openat (Files): Remove openat-die.c.
98856         (Depends-on): Add openat-die.
98857         * modules/openat-die: New module.
98859 2007-05-06  Bruno Haible  <bruno@clisp.org>
98861         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
98862         Update with info about Cygwin.
98863         * doc/functions/fprintf.texi: Update.
98864         * doc/functions/printf.texi: Update.
98865         * doc/functions/snprintf.texi: Update.
98866         * doc/functions/sprintf.texi: Update.
98867         * doc/functions/vfprintf.texi: Update.
98868         * doc/functions/vprintf.texi: Update.
98869         * doc/functions/vsnprintf.texi: Update.
98870         * doc/functions/vsprintf.texi: Update.
98871         Reported by Eric Blake.
98873 2007-05-06  Bruno Haible  <bruno@clisp.org>
98875         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
98876         padding ourselves for the floating-point directives.
98877         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
98878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
98879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
98880         gl_PRINTF_FLAG_ZERO and test its result. Invoke
98881         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
98882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
98884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98885         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98886         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98888         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98889         * tests/test-snprintf-posix.h (test_function): Also check the width
98890         and some flags in the %f directive.
98891         * tests/test-sprintf-posix.h (test_function): Likewise.
98892         * tests/test-vasnprintf-posix.c (test_function): Likewise.
98893         * tests/test-vasprintf-posix.c (test_function): Likewise.
98894         * doc/functions/fprintf.texi: Update.
98895         * doc/functions/printf.texi: Update.
98896         * doc/functions/snprintf.texi: Update.
98897         * doc/functions/sprintf.texi: Update.
98898         * doc/functions/vfprintf.texi: Update.
98899         * doc/functions/vprintf.texi: Update.
98900         * doc/functions/vsnprintf.texi: Update.
98901         * doc/functions/vsprintf.texi: Update.
98903 2007-05-06  Bruno Haible  <bruno@clisp.org>
98905         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
98906         pass the ' flag character to sprintf or snprintf.
98907         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
98908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
98909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
98910         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
98911         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
98912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98913         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
98914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98919         * tests/test-snprintf-posix.h (test_function): Also check the grouping
98920         flag.
98921         * tests/test-sprintf-posix.h (test_function): Likewise.
98922         * tests/test-vasnprintf-posix.c (test_function): Likewise.
98923         * tests/test-vasprintf-posix.c (test_function): Likewise.
98924         * doc/functions/fprintf.texi: Update.
98925         * doc/functions/printf.texi: Update.
98926         * doc/functions/snprintf.texi: Update.
98927         * doc/functions/sprintf.texi: Update.
98928         * doc/functions/vfprintf.texi: Update.
98929         * doc/functions/vprintf.texi: Update.
98930         * doc/functions/vsnprintf.texi: Update.
98931         * doc/functions/vsprintf.texi: Update.
98933 2007-05-01  Bruno Haible  <bruno@clisp.org>
98935         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
98937 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
98939         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
98940         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
98942 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98944         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
98945         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
98946         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
98948 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
98950         * lib/argp-help.c (struct hol_entry): New member `ord'.
98951         (HOL_ENTRY_PTRCMP): Use ord for comparison
98952         (hol_sort): Initialize ord.
98954 2007-05-01  Bruno Haible  <bruno@clisp.org>
98956         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
98957         Reported by Eric Blake.
98958         * doc/gnulib.texi (Function Substitutes): Update.
98960 2007-05-01  Bruno Haible  <bruno@clisp.org>
98962         * doc/functions.texi: Remove file, now redundant through
98963         doc/functions/*.texi.
98965 2007-05-01  Bruno Haible  <bruno@clisp.org>
98967         * modules/argp (Depends-on): Add sleep.
98969 2007-05-01  Bruno Haible  <bruno@clisp.org>
98971         * modules/sleep-tests: New file.
98972         * tests/test-sleep.c: New file.
98974         * modules/sleep: New file.
98975         * lib/sleep.c: New file.
98976         * m4/sleep.m4: New file.
98977         * lib/unistd_.h (sleep): New declaration.
98978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
98979         HAVE_SLEEP.
98980         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
98981         * doc/functions/sleep.texi: Document the sleep module.
98983 2007-05-01  Bruno Haible  <bruno@clisp.org>
98985         * lib/sigprocmask.h: Remove file.
98986         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
98987         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
98988         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
98989         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
98990         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
98991         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
98992         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
98993         HAVE_SIGSET_T as a shell variable.
98994         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
98995         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
98996         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
98997         (Depends-on): Add signal. Remove verify.
98998         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
98999         (Include): Mention <signal.h> instead of sigprocmask.h.
99000         * NEWS: Mention the change.
99001         * lib/fatal-signal.c: Don't include sigprocmask.h.
99003 2007-05-01  Bruno Haible  <bruno@clisp.org>
99005         * modules/signal: New file.
99006         * lib/signal_.h: New file.
99007         * m4/signal_h.m4: New file.
99009 2007-05-01  Bruno Haible  <bruno@clisp.org>
99011         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
99012         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
99013         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
99014         HAVE_WCTYPE_CTMP_BUG into wctype.h.
99016 2007-05-01  Bruno Haible  <bruno@clisp.org>
99018         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
99019         configure time.
99020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
99021         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
99022         * modules/sys_stat (Makefile.am): Substitute their values into
99023         sys/stat.h.
99025 2007-05-01  Bruno Haible  <bruno@clisp.org>
99027         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
99028         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
99029         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
99031 2007-05-01  Bruno Haible  <bruno@clisp.org>
99033         * doc/header/assert.texi: Undo last change: don't mention the gnulib
99034         'assert' module here.
99036 2007-05-01  Bruno Haible  <bruno@clisp.org>
99038         * doc/functions/*.texi: New files.
99039         * doc/functions/google-ranking.txt: New file.
99040         * doc/gnulib.texi (Function Substitutes): New chapter.
99041         (ctime, inet_ntoa): Remove sections.
99042         * doc/ctime.texi: Remove file.
99043         * doc/inet_ntoa.texi: Remove file.
99044         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
99045         dependencies.
99046         (%.info): New rule, specifying a --reference-limit.
99048 2007-05-01  Bruno Haible  <bruno@clisp.org>
99050         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
99052 2007-05-01  Bruno Haible  <bruno@clisp.org>
99054         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
99055         the portability of 'mkdir' to mingw systems.
99057 2007-05-01  Bruno Haible  <bruno@clisp.org>
99059         * doc/headers/google-ranking.txt: New file.
99061 2007-04-30  Eric Blake  <ebb9@byu.net>
99063         Prefer fseeko to fseek.
99064         * modules/getpass (Depends-on): Add fseeko.
99065         * lib/getpass.c (getpass): Use fseeko, not fseek.
99067 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
99069         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
99070         assumes the sorting is stable, while most qsort implementations
99071         are not.  Use argument addresses to ensure they never compare as
99072         equal.
99074         * tests/test-argp-2.sh (usage-indent test): Fix output
99075         (func_compare): Restore diff options
99076         * tests/test-argp.c: Restore #include "progname.h"
99078 2007-04-29  Bruno Haible  <bruno@clisp.org>
99080         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
99081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
99082         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
99083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99084         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
99085         (configure.ac): Define CHECK_SNPRINTF_POSIX.
99086         (TESTS, check_PROGRAMS): Add test-snprintf.
99087         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
99088         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
99089         (TESTS, check_PROGRAMS): Add test-vsnprintf.
99090         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
99091         assertions that fail on HP-UX, OSF/1, or IRIX.
99092         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
99094 2007-04-29  Bruno Haible  <bruno@clisp.org>
99096         * MODULES.html.sh (posix_functions): Remove 'contents'.
99098 2007-04-29  Karl Berry  <karl@gnu.org>
99100         * config/srclist.txt (gendocs_template_min): new entry.
99102 2007-04-29  Bruno Haible  <bruno@clisp.org>
99104         Work around fpurge bug on BSD systems.
99105         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
99106         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
99107         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
99108         fpurge to rpl_fpurge if the system already has this function.
99109         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
99110         the case where the system already has this function. Correct invariants
99111         on BSD systems.
99112         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
99113         BSD systems.
99115 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
99117         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
99118         proposed by Sven Verdoolaege.
99120         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
99121         options.
99122         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
99123         (usage and help tests): Update
99125 2007-04-29  Bruno Haible  <bruno@clisp.org>
99127         * tests/test-fflush.c (main): Use a file of size 17, not 10.
99128         Print more information in case of failure. Disable a test on BeOS.
99130 2007-04-29  Bruno Haible  <bruno@clisp.org>
99132         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
99133         This helps debugging on systems on which no gdb is available.
99135 2007-04-29  Bruno Haible  <bruno@clisp.org>
99137         * lib/freading.h: Improve comments.
99138         * lib/fwriting.h: Likewise.
99139         * tests/test-freading.c (main): Don't check freading immediately after
99140         repositioning. Needed for glibc.
99142 2007-04-29  Bruno Haible  <bruno@clisp.org>
99144         * lib/freading.c (freading): Trivial simplification.
99146 2007-04-28  Bruno Haible  <bruno@clisp.org>
99148         * tests/test-fwriting.c (main): Also test the interaction between
99149         fflush and fwriting.
99150         * modules/fwriting-tests (Depends-on): Add fflush.
99152         * tests/test-freading.c (main): Also test the interaction between
99153         fflush and freading.
99154         * modules/freading-tests (Depends-on): Add fflush.
99156 2007-04-28  Bruno Haible  <bruno@clisp.org>
99158         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
99159         fseeko and ftello.
99160         Suggested by Eric Blake.
99162 2007-04-28  Jim Meyering  <jim@meyering.net>
99164         Avoid false-negative in gl_STDINT_H's C99 conformance test.
99165         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
99166         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
99168 2007-04-27  Eric Blake  <ebb9@byu.net>
99170         * doc/headers/assert.texi (assert.h): Document assert module use.
99172 2007-04-27  Bruno Haible  <bruno@clisp.org>
99174         * doc/headers/*.texi: New files.
99175         * doc/gnulib.texi (Header File Substitutes): New chapter.
99176         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
99177         dependencies.
99178         (standards.info ,standards.html, standards.dvi): Update dependencies.
99179         (mostlyclean, clean): New targets.
99181 2007-04-27  Bruno Haible  <bruno@clisp.org>
99183         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
99184         * modules/sysexits (Files, Makefile.am): Update.
99186         * lib/sys_socket_.h: Renamed from lib/socket_.h.
99187         * modules/sys_socket (Files, Makefile.am): Update.
99189         * lib/sys_stat_.h: Renamed from lib/stat_.h.
99190         * modules/sys_stat (Files, Makefile.am): Update.
99192 2007-04-27  Eric Blake  <ebb9@byu.net>
99194         * lib/freading.h: Improve comments.
99195         * lib/fwriting.h: Likewise.
99196         * lib/fflush.c: Likewise.
99198         Fix closein for mingw.
99199         * modules/closein-tests: Add tests for closein.
99200         * tests/test-closein.c: New file.
99201         * tests/test-closein.sh: Likewise.
99202         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
99203         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
99205 2007-04-27  Bruno Haible  <bruno@clisp.org>
99207         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
99208         version is < 6.
99209         * lib/math_.h [__DECC]: Likewise.
99210         * lib/stdio_.h [__DECC]: Likewise.
99211         * lib/stdlib_.h [__DECC]: Likewise.
99212         * lib/string_.h [__DECC]: Likewise.
99213         * lib/time_.h [__DECC]: Likewise.
99214         * lib/wchar_.h [__DECC]: Likewise.
99215         * lib/wctype_.h [__DECC]: Likewise.
99217 2007-04-27  Bruno Haible  <bruno@clisp.org>
99219         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
99221 2007-04-27  Bruno Haible  <bruno@clisp.org>
99223         * lib/fflush.c: Add comments.
99224         * modules/fpurge-tests (Depends-on): Add fflush.
99225         * modules/freadable-tests (Depends-on): Likewise.
99226         * modules/fwritable-tests (Depends-on): Likewise.
99228 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
99230         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
99231         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
99232         Report by Bruno Haible <bruno@clisp.org>.
99234 2007-04-26  Eric Blake  <ebb9@byu.net>
99236         Fix fflush on mingw.
99237         * modules/fflush (Depends-on): Add freading.
99238         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
99239         but unread data.
99241 2007-04-26  Eric Blake  <ebb9@byu.net>
99242         and Bruno Haible  <bruno@clisp.org>
99244         Implement freading and fwriting.
99245         * lib/freading.c: New file.
99246         * lib/freading.h: Likewise.
99247         * m4/freading.m4: Likewise.
99248         * modules/freading: Likewise.
99249         * modules/freading-tests: Likewise.
99250         * tests/test-freading.c: Likewise.
99251         * lib/fwriting.c: New file.
99252         * lib/fwriting.h: Likewise.
99253         * m4/fwriting.m4: Likewise.
99254         * modules/fwriting: Likewise.
99255         * modules/fwriting-tests: Likewise.
99256         * tests/test-fwriting.c: Likewise.
99257         * MODULES.html.sh (File stream based Input/Output): Mention them.
99259 2007-04-26  Bruno Haible  <bruno@clisp.org>
99261         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
99262         'long' when we assume it.
99263         Suggested by Eric Blake.
99265 2007-04-26  Bruno Haible  <bruno@clisp.org>
99267         Ensure fseeko, ftello are declared on glibc systems.
99268         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
99269         * modules/fseeko (configure.ac-early): Likewise.
99270         * modules/ftello (configure.ac-early): Likewise.
99271         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
99272         AC_FUNC_FSEEKO for this.
99273         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
99274         (gl_CHECK_FSEEKO): Remove macro.
99276 2007-04-26  Bruno Haible  <bruno@clisp.org>
99278         * tests/test-fflush.c (main): Also check the ftell result after
99279         fflush and fseek/fseeko.
99280         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
99281         file descriptor position cache in the stream.
99282         * lib/fseeko.c (rpl_fseeko): Likewise.
99284 2007-04-26  Bruno Haible  <bruno@clisp.org>
99286         * modules/fflush-tests (Depends-on): Add fseeko.
99288 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
99289             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99291         * lib/argz_.h: ensure error_t definition is obtained in same
99292         mechanism system argz.h would have.
99293         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
99294         argz facilities are known bad.  Err on the side of caution if
99295         cross-compiling.
99297 2007-04-25  Eric Blake  <ebb9@byu.net>
99299         * lib/fpurge.c (includes): Use stdlib.h for free.
99300         * tests/test-fflush.c (main): Also test fflush-fseeko.
99302 2007-04-25  Bruno Haible  <bruno@clisp.org>
99304         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
99305         * lib/fseeko.c: New file.
99306         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
99307         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
99308         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
99309         gl_FUNC_FSEEKO.
99310         (gl_FUNC_FSEEKO): Invoke it.
99311         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
99312         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
99313         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
99315 2007-04-25  Bruno Haible  <bruno@clisp.org>
99317         * modules/fflush (Depends-on): Add ftello.
99319 2007-04-25  Bruno Haible  <bruno@clisp.org>
99321         * modules/ftello-tests: New file.
99322         * tests/test-ftello.c: New file.
99324         * modules/ftello: New file.
99325         * m4/ftello.m4: New file.
99326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
99327         HAVE_FTELLO.
99328         * lib/stdio_.h (ftello): New declaration.
99329         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
99330         HAVE_FTELLO.
99332 2007-04-25  Bruno Haible  <bruno@clisp.org>
99334         * modules/fseeko-tests: New file.
99335         * tests/test-fseeko.c: New file.
99337         * modules/fseeko: New file.
99338         * m4/fseeko.m4: New file.
99339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
99340         HAVE_FSEEKO.
99341         * lib/stdio_.h (fseeko): New declaration.
99342         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
99343         HAVE_FSEEKO.
99345 2007-04-25  Bruno Haible  <bruno@clisp.org>
99347         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
99349 2007-04-25  Bruno Haible  <bruno@clisp.org>
99351         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
99352         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
99353         * tests/test-unistd.c: Likewise.
99354         * tests/test-fcntl.c: Likewise.
99356 2007-04-23  Eric Blake  <ebb9@byu.net>
99358         * lib/fflush.c: Fix missing include.
99359         Reported by Bruno Haible.
99361 2007-04-23  Bruno Haible  <bruno@clisp.org>
99363         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
99364         Reported by Eric Blake.
99366 2007-04-23  Bruno Haible  <bruno@clisp.org>
99368         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
99370 2007-04-23  Bruno Haible  <bruno@clisp.org>
99372         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
99374 2007-04-23  Bruno Haible  <bruno@clisp.org>
99376         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
99377         Needed on HP-UX 11.
99379 2007-04-16  Eric Blake  <ebb9@byu.net>
99381         Make fflush rely on fpurge.
99382         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
99383         open coding all variants.
99384         * modules/fflush (Depends-on): Add fpurge and unistd.
99385         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
99386         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
99388         Fix --with-tests compilation on cygwin.
99389         * modules/argmatch-tests (Makefile.am): List gnulib library first
99390         in LDADD.
99391         * modules/argp-tests (Makefile.am): Likewise.
99392         * modules/array-list-tests (Makefile.am): Likewise.
99393         * modules/array-oset-tests (Makefile.am): Likewise.
99394         * modules/avltree-list-tests (Makefile.am): Likewise.
99395         * modules/avltree-oset-tests (Makefile.am): Likewise.
99396         * modules/avltreehash-list-tests (Makefile.am): Likewise.
99397         * modules/carray-list-tests (Makefile.am): Likewise.
99398         * modules/dirname-tests (Makefile.am): Likewise.
99399         * modules/frexp-tests (Makefile.am): Likewise.
99400         * modules/isnanl-tests (Makefile.am): Likewise.
99401         * modules/linked-list-tests (Makefile.am): Likewise.
99402         * modules/linkedhash-list-tests (Makefile.am): Likewise.
99403         * modules/lock-tests (Makefile.am): Likewise.
99404         * modules/rbtree-list-tests (Makefile.am): Likewise.
99405         * modules/rbtree-oset-tests (Makefile.am): Likewise.
99406         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
99407         * modules/tls-tests (Makefile.am): Likewise.
99408         * modules/tsearch-tests (Makefile.am): Likewise.
99409         * modules/xvasprintf-tests (Makefile.am): Likewise.
99411         Fix fpurge for cygwin.
99412         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
99413         value.
99414         * modules/fpurge-tests (Depends-on): Clean up trash.
99416 2007-04-16  Simon Josefsson  <simon@josefsson.org>
99418         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
99420         * m4/autobuild.m4: Re-indent.
99422 2007-04-13  Bruno Haible  <bruno@clisp.org>
99424         * modules/fpurge-tests: New file.
99425         * tests/test-fpurge.c: New file.
99427         * modules/fpurge: New file.
99428         * lib/fpurge.h: New file.
99429         * lib/fpurge.c: New file.
99430         * m4/fpurge.m4: New file.
99432 2007-04-13  Bruno Haible  <bruno@clisp.org>
99434         * modules/fbufmode-tests: New file.
99435         * tests/test-fbufmode.c: New file.
99437         * modules/fbufmode: New file.
99438         * lib/fbufmode.h: New file.
99439         * lib/fbufmode.c: New file.
99440         * m4/fbufmode.m4: New file.
99442 2007-04-13  Bruno Haible  <bruno@clisp.org>
99444         * modules/fwritable-tests: New file.
99445         * tests/test-fwritable.c: New file.
99447         * modules/fwritable: New file.
99448         * lib/fwritable.h: New file.
99449         * lib/fwritable.c: New file.
99450         * m4/fwritable.m4: New file.
99452 2007-04-13  Bruno Haible  <bruno@clisp.org>
99454         * modules/freadable-tests: New file.
99455         * tests/test-freadable.c: New file.
99457         * modules/freadable: New file.
99458         * lib/freadable.h: New file.
99459         * lib/freadable.c: New file.
99460         * m4/freadable.m4: New file.
99462 2007-04-13  Bruno Haible  <bruno@clisp.org>
99464         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
99465         MOSTLYCLEANFILES.
99467 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
99469         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
99470         gzip bootstrap.conf to avoid dragging in i18n machinery.
99471         (gnulib_tool_option): Use it.
99473 2007-04-13  Bruno Haible  <bruno@clisp.org>
99475         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
99476         %F directives.
99477         * tests/test-vasprintf-posix.c (test_function): Likewise.
99478         * tests/test-snprintf-posix.h (test_function): Likewise.
99479         * tests/test-sprintf-posix.h (test_function): Likewise.
99480         * tests/test-fprintf-posix.h (test_function): Likewise.
99481         * tests/test-printf-posix.h (test_function): Likewise.
99482         * tests/test-fprintf-posix.out: Likewise.
99484 2007-04-13  Bruno Haible  <bruno@clisp.org>
99486         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
99487         * modules/tls-tests (configure.ac): Likewise.
99488         Reported by Arto C. Nirkko <anirkko@insel.ch>.
99490 2007-04-13  Bruno Haible  <bruno@clisp.org>
99492         * lib/tls.c (glthread_tls_get): Fix return type.
99493         Patch by Arto C. Nirkko <anirkko@insel.ch>.
99495 2007-04-12  Eric Blake  <ebb9@byu.net>
99497         * modules/gettime (Depends-on): Remove gettime.
99498         Reported by Dmitry V. Levin.
99500 2007-04-12  Bruno Haible  <bruno@clisp.org>
99502         * modules/fflush (Include): Mention <stdio.h>.
99503         * modules/strtoimax (Include): Mention <inttypes.h>.
99504         * modules/strtoumax (Include): Likewise.
99506 2007-04-12  Eric Blake  <ebb9@byu.net>
99508         * .cvsignore: New file.
99509         * .gitignore: Likewise.
99511 2007-04-12  Bruno Haible  <bruno@clisp.org>
99513         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
99514         not before, since $(LDADD) often contains libgnu.a.
99515         * modules/striconv-tests (test_striconv_LDADD): Likewise.
99516         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
99517         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
99518         Needed on Cygwin.
99520 2007-04-12  Eric Blake  <ebb9@byu.net>
99522         Work around glibc's failure to flush stdin on fclose.
99523         * lib/closein.c (close_stdin): Flush stdin before closing.
99525         Work around glibc's failure to reset seekable stdin on exit.
99526         * modules/closein: New module.
99527         * lib/closein.c: New file.
99528         * lib/closein.h: Likewise.
99529         * m4/closein.m4: Likewise.
99530         * MODULES.html.sh (File stream based Input/Output): Document it.
99532 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99534         * gnulib-tool: Rename generated 'autobuild' script to
99535         'do-autobuild' in --create-megatestdir output.
99537         * doc/gnulib.texi (Build robot for gnulib): Fix.
99539 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99541         * modules/sysexits (Depends-on): Add absolute-header.
99543 2007-04-12  Eric Blake  <ebb9@byu.net>
99545         No need to preserve errno on success.
99546         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
99547         Reported by Bruno Haible.
99549 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99551         * MODULES.html.sh (Support for maintaining and releasing
99552         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
99554 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99556         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
99558 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99560         * modules/autobuild: New module.
99562         * m4/autobuild.m4: New file.
99564 2007-04-11  Bruno Haible  <bruno@clisp.org>
99566         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
99567         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
99568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
99569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
99570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
99574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
99577         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99578         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
99580         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99581         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
99583         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99584         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
99586         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99587         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
99589         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99590         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
99592         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99593         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99594         Reported by Eric Blake.
99596 2007-04-11  Bruno Haible  <bruno@clisp.org>
99598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
99600 2007-04-10  Bruno Haible  <bruno@clisp.org>
99602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
99603         for NaN and Infinity. Needed on FreeBSD 6.1.
99604         * tests/test-vasnprintf-posix.c (test_function): Undo last change
99605         regarding results for "%010a" of Infinity and NaN.
99606         * tests/test-vasprintf-posix.c (test_function): Likewise.
99607         * tests/test-snprintf-posix.h (test_function): Likewise.
99608         * tests/test-sprintf-posix.h (test_function): Likewise.
99609         * tests/test-fprintf-posix.h (test_function): Likewise.
99610         * tests/test-printf-posix.h (test_function): Likewise.
99611         * tests/test-fprintf-posix.out: Likewise.
99613 2007-04-10  Bruno Haible  <bruno@clisp.org>
99615         * modules/locale-tests: New file.
99616         * tests/test-locale.c: New file.
99618         * modules/locale: New file.
99619         * lib/locale_.h: New file.
99620         * m4/locale_h.m4: New file.
99622 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
99623             Bruno Haible  <bruno@clisp.org>
99625         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
99626         be determined, test for availability of the copysignf, copysign,
99627         copysignl functions.
99628         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
99629         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
99630         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
99632 2007-04-09  Eric Blake  <ebb9@byu.net>
99634         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
99635         * modules/stdio (Makefile.am): Support fflush.
99636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
99637         * modules/fflush: New file.
99638         * lib/fflush.c: Likewise.
99639         * m4/fflush.m4: Likewise.
99640         * modules/fflush-tests: New test.
99641         * tests/test-fflush.c: Likewise.
99642         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
99644 2007-04-06  Bruno Haible  <bruno@clisp.org>
99646         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
99647         (VASNPRINTF): Use signbit for faster determination whether to print a
99648         minus sign.
99649         * modules/vasnprintf (Files): Remove lib/float+.h.
99650         * modules/fprintf-posix (Depends-on): Add signbit.
99651         * modules/snprintf-posix (Depends-on): Likewise.
99652         * modules/sprintf-posix (Depends-on): Likewise.
99653         * modules/vasnprintf-posix (Depends-on): Likewise.
99654         * modules/vasprintf-posix (Depends-on): Likewise.
99655         * modules/vfprintf-posix (Depends-on): Likewise.
99656         * modules/vsnprintf-posix (Depends-on): Likewise.
99657         * modules/vsprintf-posix (Depends-on): Likewise.
99659 2007-04-06  Bruno Haible  <bruno@clisp.org>
99661         * tests/test-frexp.c (main): Test also the sign bit of zero results.
99662         * tests/test-frexpl.c (main): Likewise.
99663         * tests/test-ldexpl.c (main): Likewise.
99664         * modules/frexp-tests (Depends-on): Add signbit.
99665         * modules/frexpl-tests (Depdends-on): Likewise.
99666         * modules/ldexpl-tests (Depdends-on): Likewise.
99668 2007-04-06  Bruno Haible  <bruno@clisp.org>
99670         * modules/signbit-tests: New file.
99671         * tests/test-signbit.c: New file.
99673         * modules/signbit: New file.
99674         * lib/signbitf.c: New file.
99675         * lib/signbitd.c: New file.
99676         * lib/signbitl.c: New file.
99677         * m4/signbit.m4: New file.
99678         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
99679         (signbit): New macro.
99680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
99681         REPLACE_SIGNBIT.
99682         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
99683         REPLACE_FREXPL into math.h.
99685 2007-04-06  Bruno Haible  <bruno@clisp.org>
99687         * modules/isnanf-nolibm-tests: New file.
99688         * tests/test-isnanf.c: New file.
99690         * modules/isnanf-nolibm: New file.
99691         * lib/isnanf.h: New file.
99692         * lib/isnanf.c: New file.
99693         * lib/isnan.c: Consider the USE_FLOAT macro.
99694         * m4/isnanf.m4: New file.
99696 2007-04-06  Bruno Haible  <bruno@clisp.org>
99698         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
99699         (Link): New section.
99701         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
99703 2007-04-06  Bruno Haible  <bruno@clisp.org>
99705         Assume the 'long double' type.
99706         * m4/longdouble.m4: Remove file.
99707         * config/srclist.txt: Don't mention longdouble.m4.
99708         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
99709         * lib/float+.h: Likewise.
99710         * lib/frexp.c: Likewise.
99711         * lib/printf-args.h: Likewise.
99712         * lib/printf-args.c: Likewise.
99713         * lib/printf-frexp.c: Likewise.
99714         * lib/printf-parse.c: Likewise.
99715         * lib/vasnprintf.c: Likewise.
99716         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
99717         * m4/intl.m4: Likewise.
99718         * m4/isnanl.m4: Likewise.
99719         * m4/printf.m4: Likewise.
99720         * m4/printf-frexpl.m4: Likewise.
99721         * m4/vasnprintf.m4: Likewise.
99722         * modules/allocsa (Files): Remove m4/longdouble.m4.
99723         * modules/gettext (Files): Likewise.
99724         * modules/relocatable-prog-wrapper (Files): Likewise.
99725         * modules/vasnprintf (Files): Likewise.
99726         * modules/isnanl (Files): Likewise.
99727         (Include): Simplify.
99728         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
99729         (Include): Simplify.
99730         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
99731         (Include): Simplify.
99732         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
99733         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99734         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
99735         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99736         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
99737         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99738         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
99739         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99740         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
99741         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99742         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
99743         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99744         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
99745         * tests/test-isnanl.c: Likewise.
99746         * tests/test-snprintf-posix.h: Likewise.
99747         * tests/test-sprintf-posix.h: Likewise.
99748         * tests/test-vasnprintf-posix.c: Likewise.
99749         * tests/test-vasnprintf-posix2.c: Likewise.
99750         * tests/test-vasprintf-posix.c: Likewise.
99752 2007-04-06  Bruno Haible  <bruno@clisp.org>
99754         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
99755         * lib/math_.h [__DECC]: Include the overridden include file through
99756         #include_next, outside the double-inclusion guard.
99757         * lib/stdio_.h [__DECC]: Likewise.
99758         * lib/stdlib_.h [__DECC]: Likewise.
99759         * lib/string_.h [__DECC]: Likewise.
99760         * lib/time_.h [__DECC]: Likewise.
99761         * lib/wchar_.h [__DECC]: Likewise.
99762         * lib/wctype_.h [__DECC]: Likewise.
99763         * lib/inttypes_.h [__DECC]: Likewise.
99764         Reported by Albert Chin <china@thewrittenword.com> in
99765         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
99767 2007-04-04  Eric Blake  <ebb9@byu.net>
99769         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
99770         1.5.x.
99772 2007-04-04  Bruno Haible  <bruno@clisp.org>
99774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
99775         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
99777 2007-04-04  Bruno Haible  <bruno@clisp.org>
99779         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
99780         results for "%010a" of Infinity and NaN.
99781         * tests/test-vasprintf-posix.c (test_function): Likewise.
99782         * tests/test-snprintf-posix.h (test_function): Likewise.
99783         * tests/test-sprintf-posix.h (test_function): Likewise.
99784         * tests/test-fprintf-posix.h (test_function): Remove these tests.
99785         * tests/test-printf-posix.h (test_function): Likewise.
99786         * tests/test-fprintf-posix.out: Update.
99787         Needed for FreeBSD 6.1.
99789 2007-04-04  Bruno Haible  <bruno@clisp.org>
99791         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
99792         directly used by the gnulib modules nor by gnulib-tool.
99794 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
99796         * DEPENDENCIES: Give overall description of version dependency
99797         desirability.  Use more-typical names for apps.
99798         Add shell, coreutils, diffutils, grep, tar, gzip.
99800 2007-04-04  Simon Josefsson  <simon@josefsson.org>
99802         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
99804 2007-04-04  Karl Berry  <karl@gnu.org>
99806         * MODULES.html.sh (func_module): missing '.
99808 2007-04-03  Bruno Haible  <bruno@clisp.org>
99810         * modules/argmatch-tests (Makefile.am): New variable
99811         test_argmatch_LDADD.
99812         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
99813         * modules/array-list-tests (Makefile.am): New variable
99814         test_array_list_LDADD.
99815         * modules/array-oset-tests (Makefile.am): New variable
99816         test_array_oset_LDADD.
99817         * modules/avltree-list-tests (Makefile.am): New variable
99818         test_avltree_list_LDADD.
99819         * modules/avltree-oset-tests (Makefile.am): New variable
99820         test_avltree_oset_LDADD.
99821         * modules/avltreehash-list-tests (Makefile.am): New variable
99822         test_avltreehash_list_LDADD.
99823         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
99824         test_canonicalize_lgpl_LDADD.
99825         * modules/carray-list-tests (Makefile.am): New variable
99826         test_carray_list_LDADD.
99827         * modules/dirname-tests (Makefile.am): New variable
99828         test_dirname_LDADD.
99829         * modules/linked-list-tests (Makefile.am): New variable
99830         test_linked_list_LDADD.
99831         * modules/linkedhash-list-tests (Makefile.am): New variable
99832         test_linkedhash_list_LDADD.
99833         * modules/rbtree-list-tests (Makefile.am): New variable
99834         test_rbtree_list_LDADD.
99835         * modules/rbtree-oset-tests (Makefile.am): New variable
99836         test_rbtree_oset_LDADD.
99837         * modules/rbtreehash-list-tests (Makefile.am): New variable
99838         test_rbtreehash_list_LDADD.
99839         * modules/xvasprintf-tests (Makefile.am): New variable
99840         test_xvasprintf_LDADD.
99841         Reported by Eric Blake.
99843 2007-04-03  Eric Blake  <ebb9@byu.net>
99845         * DEPENDENCIES: Weaken m4 requirements.
99847 2007-04-03  Bruno Haible  <bruno@clisp.org>
99849         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
99850         * modules/isnanl-tests (configure.ac): Likewise.
99852 2007-04-03  Ben Pfaff  <blp@gnu.org>
99854         * modules/iconv_open: Add $(srcdir)/ to source directory
99855         references in Makefile fragments that call gperf, to fix VPATH
99856         builds.
99858 2007-04-03  Bruno Haible  <bruno@clisp.org>
99860         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
99861         * lib/ldexpl.c: Undo last change.
99863 2007-04-03  Bruno Haible  <bruno@clisp.org>
99865         * modules/printf-frexpl (Depends-on): Undo last change.
99866         (Files): Add m4/ldexpl.m4.
99868 2007-04-03  Bruno Haible  <bruno@clisp.org>
99870         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
99871         * modules/isnanl (Link): New section.
99873         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
99874         * modules/frexp (Link): New section.
99876         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
99877         * modules/frexpl (Link): New section.
99879         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
99880         * modules/ldexpl (Link): New section.
99882 2007-04-03  Bruno Haible  <bruno@clisp.org>
99884         * modules/TEMPLATE-EXTENDED: New file.
99885         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
99887 2007-04-03  Bruno Haible  <bruno@clisp.org>
99889         * DEPENDENCIES: New file.
99890         Suggested by Simon Josefsson.
99892 2007-04-03  Bruno Haible  <bruno@clisp.org>
99894         * doc/gnulib.texi: Escape @.
99896 2007-04-03  James Youngman  <jay@gnu.org>
99897         and Paul Eggert  <eggert@cs.ucla.edu>
99899         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
99900         birthtime on all systems that have birthtime, not just those which
99901         use st_birthtimensec rather than st_birthtim.  Putting zero in
99902         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
99903         that the birth time is not available for files on an NFS mount.
99905 2007-04-03  Simon Josefsson  <simon@josefsson.org>
99907         * modules/memxor: Move back from crypto/, suggested by Bruno.
99908         * modules/crypto/hmac-sha1: Fix memxor dependency.
99910         * modules/crypto/gc: Moved from ../.
99912 2007-04-02  Eric Blake  <ebb9@byu.net>
99914         * lib/ldexpl.c (includes): Avoid libm.
99916         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
99918 2007-04-02  Bruno Haible  <bruno@clisp.org>
99920         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
99921         on IRIX.
99923 2007-04-02  Bruno Haible  <bruno@clisp.org>
99925         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
99926         x86 or x86_64 platforms running MacOS X.
99927         Reported by Ryan Schmidt <@ryandesign.com>.
99929 2007-04-02  Bruno Haible  <bruno@clisp.org>
99931         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
99932         i386.
99934 2007-04-01  Simon Josefsson  <simon@josefsson.org>
99936         * modules/crypto/arcfour: Moved from ../.
99937         * modules/crypto/arcfour-tests: Moved from ../.
99938         * modules/crypto/arctwo: Moved from ../.
99939         * modules/crypto/arctwo-tests: Moved from ../.
99940         * modules/crypto/des: Moved from ../.
99941         * modules/crypto/des-tests: Moved from ../.
99942         * modules/crypto/gc-arcfour: Moved from ../.
99943         * modules/crypto/gc-arcfour-tests: Moved from ../.
99944         * modules/crypto/gc-arctwo: Moved from ../.
99945         * modules/crypto/gc-arctwo-tests: Moved from ../.
99946         * modules/crypto/gc-des: Moved from ../.
99947         * modules/crypto/gc-des-tests: Moved from ../.
99948         * modules/crypto/gc-hmac-md5: Moved from ../.
99949         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
99950         * modules/crypto/gc-hmac-sha1: Moved from ../.
99951         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
99952         * modules/crypto/gc-md2: Moved from ../.
99953         * modules/crypto/gc-md2-tests: Moved from ../.
99954         * modules/crypto/gc-md4: Moved from ../.
99955         * modules/crypto/gc-md4-tests: Moved from ../.
99956         * modules/crypto/gc-md5: Moved from ../.
99957         * modules/crypto/gc-md5-tests: Moved from ../.
99958         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
99959         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
99960         * modules/crypto/gc-random: Moved from ../.
99961         * modules/crypto/gc-rijndael: Moved from ../.
99962         * modules/crypto/gc-rijndael-tests: Moved from ../.
99963         * modules/crypto/gc-sha1: Moved from ../.
99964         * modules/crypto/gc-sha1-tests: Moved from ../.
99965         * modules/crypto/gc-tests: Moved from ../.
99966         * modules/crypto/hmac-md5: Moved from ../.
99967         * modules/crypto/hmac-md5-tests: Moved from ../.
99968         * modules/crypto/hmac-sha1: Moved from ../.
99969         * modules/crypto/hmac-sha1-tests: Moved from ../.
99970         * modules/crypto/md2: Moved from ../.
99971         * modules/crypto/md2-tests: Moved from ../.
99972         * modules/crypto/md4: Moved from ../.
99973         * modules/crypto/md4-tests: Moved from ../.
99974         * modules/crypto/md5: Moved from ../.
99975         * modules/crypto/md5-tests: Moved from ../.
99976         * modules/crypto/memxor: Moved from ../.
99977         * modules/crypto/rijndael: Moved from ../.
99978         * modules/crypto/rijndael-tests: Moved from ../.
99979         * modules/crypto/sha1: Moved from ../.
99981 2007-03-30  James Youngman  <jay@gnu.org>
99983         * tests/test-stat-time.c (prepare_test): use chmod() rather than
99984         rename() to change the ctime of a file (because ctime is unaffected
99985         by rename on jfs2 on AIX 5.1).
99986         (main): Start by doing cleanup, in case a previous run failed leaving
99987         test files behind.
99989 2007-03-31  Bruno Haible  <bruno@clisp.org>
99991         Support old proprietary implementations of iconv.
99992         * modules/iconv_open: New file.
99993         * lib/iconv_.h: New file.
99994         * m4/iconv_h.m4: New file.
99995         * lib/iconv_open.c: New file.
99996         * lib/iconv_open-aix.gperf: New file.
99997         * lib/iconv_open-hpux.gperf: New file.
99998         * lib/iconv_open-irix.gperf: New file.
99999         * lib/iconv_open-osf.gperf: New file.
100000         * m4/iconv_open.m4: New file.
100001         * modules/linebreak (Depends-on): Add iconv_open.
100002         * modules/striconv (Depends-on): Likewise.
100003         * modules/striconveh (Depends-on): Likewise.
100004         * modules/unicodeio (Depends-on): Likewise.
100005         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
100006         (iconv_t)(-1).
100007         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
100008         conversion if cd is (iconv_t)(-1).
100009         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
100010         is not possible.
100012 2007-03-31  Bruno Haible  <bruno@clisp.org>
100014         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
100015         work on Solaris either. Protect also second use of "autodetect_jp".
100017 2007-03-31  Bruno Haible  <bruno@clisp.org>
100019         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
100020         the function is not present.
100022 2007-03-31  Bruno Haible  <bruno@clisp.org>
100024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
100025         the function is not present.
100027 2007-03-31  Bruno Haible  <bruno@clisp.org>
100029         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
100030         a bug in HP-UX iconv_open().
100032 2007-03-31  Bruno Haible  <bruno@clisp.org>
100034         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
100035         (Mathematics <math.h>): New section, add fpieee.
100036         (Input/output <stdio.h>): Add fseterr.
100037         (Mathematics <math.h>): New section, add printf-frexp.
100038         (Container data structures): Add sublist.
100039         (Core language properties): Add fpucw, inline.
100040         (Functions for greatest-width integer types <inttypes.h>): Add
100041         imaxabs, imaxdiv, inttypes.
100042         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
100043         isnanl-nolibm, ldexp.
100044         (Mathematics <math.h>): New section, add printf-frexpl.
100045         (Support for systems lacking POSIX:2001): Add fprintf-posix,
100046         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
100047         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
100048         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
100049         (Unicode string functions): Add unistr/u*-mbtoucr.
100050         (Java): Add javacomp-script, javaexec-script.
100051         (C#): Add csharpcomp-script, csharpexec-script.
100052         (Support for building libraries and executables): Add havelib,
100053         relocatable-*.
100054         (Support for maintaining and releasing projects): Renamed from
100055         'Support for maintaining and release projects'. Add announce-gen.
100057 2007-03-31  Bruno Haible  <bruno@clisp.org>
100059         * README: Talk primarily about git.
100060         (git and CVS): Renamed from CVS.
100061         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
100062         gnulib is available through git.
100063         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
100065 2007-03-30  Bruno Haible  <bruno@clisp.org>
100067         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
100068         * lib/poll_.h: Likewise.
100069         * lib/stat_.h: Likewise.
100070         * lib/sys_time_.h: Likewise.
100071         * lib/sysexit_.h: Likewise.
100072         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
100073         * lib/stdbool_.h: Likewise.
100074         * lib/byteswap_.h: Add double-inclusion guard.
100076 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
100078         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
100080 2007-03-30  Karl Berry  <karl@gnu.org>
100082         * config/srclist-update: double space after USA in the license
100083         substitution, since that's how it's usually (?) written.
100085 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
100087         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
100088         reported by Bruno Haible.
100090 2007-03-29  Bruno Haible  <bruno@clisp.org>
100092         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
100093         a bug in AIX iconv().
100095 2007-03-29  Bruno Haible  <bruno@clisp.org>
100097         * modules/ldexpl-tests: New file.
100098         * tests/test-ldexpl.c: New file.
100100 2007-03-29  Bruno Haible  <bruno@clisp.org>
100102         * lib/ldexpl.c: Include fpucw.h.
100103         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
100104         multiplication.
100105         * modules/ldexpl (Depends-on): Add fpucw.
100107 2007-03-29  Bruno Haible  <bruno@clisp.org>
100109         * modules/ldexpl: New file.
100110         * m4/ldexpl.m4: New file.
100111         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
100112         set.
100113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
100114         REPLACE_LDEXPL.
100115         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
100116         REPLACE_LDEXPL.
100117         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100118         gl_FUNC_LDEXPL_WORKS.
100119         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
100120         * modules/mathl (Files): Remove lib/ldexpl.c.
100121         (Depends-on): Add ldexpl.
100123 2007-03-29  Bruno Haible  <bruno@clisp.org>
100125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
100127 2007-03-29  Bruno Haible  <bruno@clisp.org>
100129         * tests/test-striconveh.c (main): Don't assume that a direct conversion
100130         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
100131         and possibly also HP-UX.
100132         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
100133         work on AIX, IRIX, HP-UX, OSF/1.
100134         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
100135         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
100136         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
100137         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
100138         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
100139         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
100141 2007-03-29  Bruno Haible  <bruno@clisp.org>
100143         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
100145 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
100147         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
100148         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
100150 2007-03-29  Eric Blake  <ebb9@byu.net>
100152         * lib/acl-internal.h: Remove redundant include.
100153         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
100154         Cygwin when a file is locked.
100156 2007-03-29  Bruno Haible  <bruno@clisp.org>
100158         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
100159         file.
100160         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
100162 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
100164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
100165         try to remove a parent directory if the child couldn't be removed
100166         (except for the first rmdir, which could fail because the child
100167         doesn't exist).  Problem reported by Jeff Blaine in
100168         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
100170 2007-03-28  Bruno Haible  <bruno@clisp.org>
100172         * lib/striconveh.c (utf8conv_carefully): New function.
100173         (mem_cd_iconveh_internal): Invoke it.
100175 2007-03-28  Bruno Haible  <bruno@clisp.org>
100177         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
100178         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
100179         input.
100180         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
100181         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
100182         unistr/u8-uctomb.
100184 2007-03-28  Bruno Haible  <bruno@clisp.org>
100186         * modules/unistr/u8-mbtoucr: New file.
100187         * lib/unistr/u8-mbtoucr.c: New file.
100188         * modules/unistr/u16-mbtoucr: New file.
100189         * lib/unistr/u16-mbtoucr.c: New file.
100190         * modules/unistr/u16-mbtoucr: New file.
100191         * lib/unistr/u16-mbtoucr.c: New file.
100192         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
100194 2007-03-27  Simon Josefsson  <simon@josefsson.org>
100195             Bruno Haible  <bruno@clisp.org>
100197         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
100198         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
100199         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
100201         * m4/stdio_h.m4: Add stubs for vasprintf too.
100203         * modules/stdio: Support vasprintf in sed command.
100205         * modules/vasprintf: Depend on stdio for prototypes.  Remove
100206         vasprintf.h.  Add stdio module indicator.
100208         * lib/stdio_.h: Declare asprintf and vasprintf, based on
100209         vasprintf.h.
100211         * lib/vasprintf.h: File removed.
100213         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
100214         * lib/vasprintf.c: Ditto.
100215         * lib/xvasprintf.c: Ditto.
100216         * tests/test-vasprintf-posix.c: Ditto.
100217         * tests/test-vasprintf.c: Ditto.
100219 2007-03-27  Bruno Haible  <bruno@clisp.org>
100221         Make vasnprintf multithread-safe.
100222         * lib/vasnprintf.c (decimal_point_char): New function.
100223         (VASNPRINTF): Use it.
100224         Suggested by Simon Josefsson.
100226 2007-03-27  Eric Blake  <ebb9@byu.net>
100228         Support sub-second birthtime on cygwin.
100229         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
100230         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
100231         (get_stat_birthtime): Also work with st_birthtim.
100233 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
100235         * lib/stat-time.h (USE_BIRTHTIME): Remove.
100236         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
100237         (get_stat_birthtime_ns): Do not try to use "spare" fields.
100238         (get_stat_birthtime_ns): Simplify compile-time tests.
100239         (get_stat_birthtime): Change the API to look like
100240         get_stat_mtime etc., except return a negative tv_nsec on error.
100241         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
100242         Don't check for "spare" fields.
100243         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
100244         or for struct stat.st_birthtime, as these tests aren't used.
100245         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
100247 2007-03-27  Bruno Haible  <bruno@clisp.org>
100249         * lib/stat-time.h: Include <sys/stat.h>.
100251 2007-03-27  James Youngman  <jay@gnu.org>
100253         * lib/stat-time.h (get_stat_birthtime): New function for
100254           retrieving st_birthtime as provided by UFS2 (hence *BSD).
100255         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
100256           and its variants.
100257         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
100258         * modules/stat-time-test: New file.
100259         * tests/test-stat-time.c: New test, devised by Bruno Haible.
100261 2007-03-26  Bruno Haible  <bruno@clisp.org>
100263         Better support of signalling NaNs.
100264         * lib/atanl.c: Include isnanl.h.
100265         (atanl): Perform test for NaN at the beginning of the function and
100266         through a call to isnanl.
100267         * lib/cosl.c: Include isnanl.h.
100268         (cosl): Perform test for NaN at the beginning of the function and
100269         through a call to isnanl.
100270         * lib/ldexpl.c: Include isnanl.h.
100271         (ldexpl): Perform test for NaN through a call to isnanl.
100272         * lib/logl.c: Include isnanl.h.
100273         (logl): Perform test for NaN at the beginning of the function and
100274         through a call to isnanl.
100275         * lib/sinl.c: Include isnanl.h.
100276         (sinl): Perform test for NaN at the beginning of the function and
100277         through a call to isnanl.
100278         * lib/sqrtl.c: Include isnanl.h.
100279         (sqrtl): Perform test for NaN at the beginning of the function and
100280         through a call to isnanl.
100281         * lib/tanl.c: Include isnanl.h.
100282         (tanl): Perform test for NaN at the beginning of the function and
100283         through a call to isnanl.
100284         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
100285         * modules/mathl (Depends-on): Add isnanl.
100287 2007-03-26  Eric Blake  <ebb9@byu.net>
100289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
100290         regression in logic sense of previous patch.
100292 2007-03-26  Bruno Haible  <bruno@clisp.org>
100294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
100295         unportable shell command "if ! ...".
100296         Reported by Ralf Wildenhues.
100298 2007-03-25  Bruno Haible  <bruno@clisp.org>
100300         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
100301         <sysexits.h> file, and only add EX_CONFIG.
100302         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
100303         absolute file name and whether it is sufficient. Substitute also
100304         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
100305         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
100306         ABSOLUTE_SYSEXITS_H into sysexits.h.
100308 2007-03-25  Bruno Haible  <bruno@clisp.org>
100310         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
100311         hints is NULL.
100313 2007-03-25  Bruno Haible  <bruno@clisp.org>
100315         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
100316         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
100318 2007-03-25  Bruno Haible  <bruno@clisp.org>
100320         * lib/vasnprintf.c: Include langinfo.h.
100321         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
100322         multithread-safe.
100323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
100324         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
100325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
100331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100332         Reported by Simon Josefsson.
100334 2007-03-25  Bruno Haible  <bruno@clisp.org>
100336         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
100337         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
100338         * modules/vasnprintf (Depends-on): Add stdint.
100340 2007-03-25  Bruno Haible  <bruno@clisp.org>
100342         * modules/fpieee: New file.
100343         * m4/fpieee.m4: New file.
100344         * modules/isnan-nolibm (Depends-on): Add fpieee.
100345         * modules/isnanl-nolibm (Depends-on): Add fpieee.
100346         * modules/isnanl (Depends-on): Add fpieee.
100348 2007-03-25  Bruno Haible  <bruno@clisp.org>
100350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
100352 2007-03-25  Bruno Haible  <bruno@clisp.org>
100354         Avoid test failures on IRIX 6.5.
100355         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
100356         (main): Use it.
100357         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
100358         macros.
100359         (main): Use them.
100361 2007-03-25  Bruno Haible  <bruno@clisp.org>
100363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
100364         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
100365         exists but doesn't work.
100366         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
100367         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
100368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
100369         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
100370         math.h.
100372 2007-03-25  Bruno Haible  <bruno@clisp.org>
100374         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
100375         returns inf. Needed on IRIX 6.5.
100377 2007-03-25  Bruno Haible  <bruno@clisp.org>
100379         * tests/test-frexpl.c: Include isnanl-nolibm.h.
100380         (main): Use isnanl instead of x != x idiom.
100381         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
100383         * tests/test-frexp.c: Include isnan.h.
100384         (main): Use isnan instead of x != x idiom.
100385         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
100387 2007-03-25  Bruno Haible  <bruno@clisp.org>
100389         * tests/test-frexp.c (NaN): New function/macro.
100390         (main): Use it instead of 0.0 / 0.0.
100391         * tests/test-isnan.c (NaN): New function/macro.
100392         (main): Use it instead of 0.0 / 0.0.
100393         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
100394         (test_function): Use it instead of 0.0 / 0.0.
100395         * tests/test-vasprintf-posix.c (NaN): New function/macro.
100396         (test_function): Use it instead of 0.0 / 0.0.
100397         * tests/test-snprintf-posix.h (NaN): New function/macro.
100398         (test_function): Use it instead of 0.0 / 0.0.
100399         * tests/test-sprintf-posix.h (NaN): New function/macro.
100400         (test_function): Use it instead of 0.0 / 0.0.
100401         * tests/test-fprintf-posix.h (NaN): New function/macro.
100402         (test_function): Use it instead of 0.0 / 0.0.
100403         * tests/test-printf-posix.h (NaN): New function/macro.
100404         (test_function): Use it instead of 0.0 / 0.0.
100406         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
100408 2007-03-25  Bruno Haible  <bruno@clisp.org>
100410         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
100412 2007-03-25  Bruno Haible  <bruno@clisp.org>
100414         * lib/regexec.c (merge_state_with_log): Make static.
100416 2007-03-25  Bruno Haible  <bruno@clisp.org>
100418         * lib/trigl.c (kernel_rem_pio2): Make static.
100420 2007-03-25  Bruno Haible  <bruno@clisp.org>
100422         * lib/sincosl.c (sincosl_table): Make static.
100424 2007-03-25  Bruno Haible  <bruno@clisp.org>
100426         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
100427         if the compiler does not support C99.
100429 2007-03-25  Bruno Haible  <bruno@clisp.org>
100431         * modules/time (Makefile.am): Ensure all rule action lines start with a
100432         tab.
100434 2007-03-24  Bruno Haible  <bruno@clisp.org>
100436         * modules/tsearch-tests: New file.
100437         * tests/test-tsearch.sh: New file.
100438         * tests/test-tsearch.c: New file, mostly copied from glibc.
100440         * modules/search-tests: New file.
100441         * tests/test-search.c: New file.
100443         * modules/search: New file.
100444         * lib/search_.h: New file, incorporating lib/tsearch.h.
100445         * m4/search_h.m4: New file.
100446         * lib/tsearch.h: Remove file.
100447         * lib/tsearch.c: Include search.h instead of tsearch.h.
100448         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
100449         HAVE_TSEARCH.
100450         * modules/tsearch (Files): Remove lib/tsearch.h.
100451         (Depends-on): Add search.
100452         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
100453         (Include): Change tsearch.h into search.h.
100455 2007-03-24  Bruno Haible  <bruno@clisp.org>
100457         * modules/fpucw: New file.
100458         * lib/fpucw.h: New file.
100459         * lib/frexp.c: Include fpucw.h.
100460         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
100461         (FUNC): Use them.
100462         * lib/printf-frexp.c: Include fpucw.h.
100463         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
100464         (FUNC): Use them.
100465         * lib/vasnprintf.c: Include fpucw.h.
100466         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
100467         'long double' calculations.
100468         * tests/test-frexpl.c: Include fpucw.h.
100469         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
100470         * tests/test-printf-frexpl.c: Include fpucw.h.
100471         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
100472         * modules/frexpl (Depends-on): Add fpucw.
100473         * modules/printf-frexpl (Depends-on): Likewise.
100474         * modules/fprintf-posix (Depends-on): Likewise.
100475         * modules/snprintf-posix (Depends-on): Likewise.
100476         * modules/sprintf-posix (Depends-on): Likewise.
100477         * modules/vasnprintf-posix (Depends-on): Likewise.
100478         * modules/vasprintf-posix (Depends-on): Likewise.
100479         * modules/vfprintf-posix (Depends-on): Likewise.
100480         * modules/vsnprintf-posix (Depends-on): Likewise.
100481         * modules/vsprintf-posix (Depends-on): Likewise.
100482         * modules/frexpl-tests (Depends-on): Likewise.
100483         * modules/printf-frexpl-tests (Depends-on): Likewise.
100485 2007-03-24  Bruno Haible  <bruno@clisp.org>
100487         * lib/float+.h: New file.
100488         * lib/isnan.c: Include float+.h.
100489         (SIZE): New macro.
100490         (FUNC): Compare only SIZE bytes of the value.
100491         * lib/vasnprintf.c: Include float+.h.
100492         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
100493         SIZEOF_LDBL or SIZEOF_DBL bytes.
100494         * modules/isnan-nolibm (Files): Add lib/float+.h.
100495         * modules/isnanl-nolibm (Files): Add lib/float+.h.
100496         * modules/isnanl (Files): Add lib/float+.h.
100497         * modules/vasnprintf (Files): Add lib/float+.h.
100499 2007-03-24  Bruno Haible  <bruno@clisp.org>
100501         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
100502         include isnanl-nolibm.h.
100504 2007-03-24  Bruno Haible  <bruno@clisp.org>
100506         * tests/test-read-file.c (main): Don't produce spurious output for
100507         expected situations. Make the test fail if it encountered unexpected
100508         results.
100510 2007-03-24  Bruno Haible  <bruno@clisp.org>
100512         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
100513         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
100515 2007-03-24  Bruno Haible  <bruno@clisp.org>
100517         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
100519 2007-03-24  Bruno Haible  <bruno@clisp.org>
100521         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
100522         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
100524         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
100525         * modules/utf8-ucs4: Turn into a symbolic link to module
100526         unistr/u8-mbtouc.
100528         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
100529         utf8-ucs4-unsafe.
100530         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
100531         unistr/u8-mbtouc-unsafe.
100533         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
100534         * modules/utf16-ucs4: Turn into a symbolic link to module
100535         unistr/u16-mbtouc.
100537         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
100538         utf16-ucs4-unsafe.
100539         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
100540         unistr/u16-mbtouc-unsafe.
100542         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
100543         * modules/ucs4-utf8: Turn into a symbolic link to module
100544         unistr/u8-ubtomb.
100546         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
100547         * modules/ucs4-utf16: Turn into a symbolic link to module
100548         unistr/u16-ubtomb.
100550 2007-03-24  Bruno Haible  <bruno@clisp.org>
100552         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
100553         Enable the function only if HAVE_INLINE.
100554         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
100555         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
100556         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
100557         Enable the function only if HAVE_INLINE.
100558         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
100559         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
100560         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
100561         Enable the function only if HAVE_INLINE.
100562         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
100563         Enable the function only if HAVE_INLINE.
100564         * modules/utf8-ucs4: Update.
100565         * modules/utf8-ucs4-unsafe: Update.
100566         * modules/utf16-ucs4: Update.
100567         * modules/utf16-ucs4-unsafe: Update.
100568         * modules/ucs4-utf8: Update.
100569         * modules/ucs4-utf16: Update.
100571 2007-03-24  Bruno Haible  <bruno@clisp.org>
100573         * lib/utf8-ucs4.h: Remove file.
100574         * lib/utf8-ucs4-unsafe.h: Remove file.
100575         * lib/utf16-ucs4.h: Remove file.
100576         * lib/utf16-ucs4-unsafe.h: Remove file.
100577         * lib/ucs4-utf8.h: Remove file.
100578         * lib/ucs4-utf16.h: Remove file.
100579         * lib/unistr.h: Include their previous contents.
100580         * m4/utf-ucs4.m4: Remove file.
100581         * m4/ucs4-utf.m4: Remove file.
100582         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
100583         (Depends-on): Add unistr/base.
100584         (configure.ac): Remove gl_UTF_UCS4.
100585         (Makefile.am): Update.
100586         (Include): Change to unistr.h.
100587         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
100588         (Depends-on): Add unistr/base.
100589         (configure.ac): Remove gl_UTF_UCS4.
100590         (Makefile.am): Update.
100591         (Include): Change to unistr.h.
100592         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
100593         (Depends-on): Add unistr/base.
100594         (configure.ac): Remove gl_UTF_UCS4.
100595         (Makefile.am): Update.
100596         (Include): Change to unistr.h.
100597         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
100598         (Depends-on): Add unistr/base.
100599         (configure.ac): Remove gl_UTF_UCS4.
100600         (Makefile.am): Update.
100601         (Include): Change to unistr.h.
100602         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
100603         (Depends-on): Add unistr/base.
100604         (configure.ac): Remove gl_UCS4_UTF.
100605         (Makefile.am): Update.
100606         (Include): Change to unistr.h.
100607         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
100608         (Depends-on): Add unistr/base.
100609         (configure.ac): Remove gl_UCS4_UTF.
100610         (Makefile.am): Update.
100611         (Include): Change to unistr.h.
100612         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
100613         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
100614         utf8-ucs4-unsafe.h.
100615         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
100616         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
100617         utf16-ucs4-unsafe.h.
100618         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
100619         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
100620         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
100621         * lib/unistr/u8-strchr.c: Likewise.
100622         * lib/unistr/u8-strrchr.c: Likewise.
100623         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
100624         * lib/unistr/u16-strchr.c: Likewise.
100625         * lib/unistr/u16-strrchr.c: Likewise.
100626         * lib/striconveh.c: Update.
100627         * lib/linebreak.c: Update.
100629 2007-03-24  Bruno Haible  <bruno@clisp.org>
100631         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
100632         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
100634 2007-03-22  Bruno Haible  <bruno@clisp.org>
100636         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
100638 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
100640         * MODULES.html.sh (File system functions): New module write-any-file.
100641         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
100642         * m4/write-any-file.m4: New files.
100644 2007-03-23  Eric Blake  <ebb9@byu.net>
100646         * gnulib-tool: Rearrange space-tab sequences, since some editors
100647         like to eat them.
100649 2007-03-23  Eric Blake  <ebb9@byu.net>
100651         * lib/version-etc.c (version_etc_va): Update license wording to
100652         be more concise.  Recommended by Richard Stallman.
100654 2007-03-22  Bruno Haible  <bruno@clisp.org>
100656         * lib/poll.c (MSG_PEEK): New fallback definition.
100658 2007-03-22  Bruno Haible  <bruno@clisp.org>
100660         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
100661         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
100662         (main): Update.
100663         Fixes a compilation error on BeOS.
100665 2007-03-22  Bruno Haible  <bruno@clisp.org>
100667         * modules/frexpl-tests: New file.
100668         * tests/test-frexpl.c: New file.
100670         * modules/frexpl: New file.
100671         * m4/frexpl.m4: New file.
100672         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
100673         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
100674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
100675         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
100676         (Depends-on): Add frexpl. Remove isnanl-nolibm.
100677         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
100679 2007-03-22  Bruno Haible  <bruno@clisp.org>
100681         * lib/frexpl.c: Share code with lib/frexp.c.
100682         * modules/mathl (Files): Add lib/frexp.c.
100683         (Depends-on): Add isnanl-nolibm.
100685 2007-03-22  Bruno Haible  <bruno@clisp.org>
100687         * modules/printf-frexp (Files): Add m4/frexp.m4.
100688         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
100689         only if the found frexp function actually works.
100691 2007-03-22  Bruno Haible  <bruno@clisp.org>
100693         * lib/frexp.c: Remove older implementation that uses divisions.
100695 2007-03-21  Bruno Haible  <bruno@clisp.org>
100697         * modules/frexp-tests: New file.
100698         * tests/test-frexp.c: New file.
100700         * modules/frexp: New file.
100701         * lib/frexp.c: New file.
100702         * m4/frexp.m4: New file.
100703         * lib/math_.h (frexp): New declaration.
100704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
100705         REPLACE_FREXP.
100706         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
100708 2007-03-21  Bruno Haible  <bruno@clisp.org>
100710         * modules/isnanl-tests: New file.
100711         * tests/test-isnanl.c: New file.
100713         * modules/isnanl: New file.
100714         * lib/isnanl.h: New file.
100715         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
100716         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
100717         gl_FUNC_ISNANL_WORKS.
100718         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
100719         New macros.
100721 2007-03-21  Bruno Haible  <bruno@clisp.org>
100723         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
100724         lib/isnanl.h.
100725         (Include): Update.
100726         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
100727         * lib/vasnprintf.c: Update.
100728         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
100729         tests/test-isnanl.h, remove tests/test-isnanl.c.
100730         (Makefile.am): Update.
100731         * tests/test-isnanl-nolibm.c: New file.
100732         * tests/test-isnanl.h: New file.
100733         * tests/test-isnanl.c: Remove file.
100735 2007-03-21  Jim Meyering  <jim@meyering.net>
100737         When trying to open ".", treat ESTALE like EACCES.
100738         * lib/savewd.c (savewd_save): Resort to forking not just upon
100739         failure with EACCES, but also when errno is ESTALE.
100741 2007-03-20  Bruno Haible  <bruno@clisp.org>
100743         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
100744         Needed on AIX 5.1. Reported by Matthew Woehlke.
100746 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
100748         Suggestions by Bruno Haible:
100749         * lib/acl-internal.h: Include "gettext.h" rather than rolling
100750         our own.
100751         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
100752         * modules/acl (Depends-on): Add gettext.
100754 2007-03-19  Bruno Haible  <bruno@clisp.org>
100756         * modules/iconvme: Remove file.
100757         * lib/iconvme.h: Remove file.
100758         * lib/iconvme.c: Remove file.
100759         * m4/iconvme.m4: Remove file.
100761 2007-03-19  Bruno Haible  <bruno@clisp.org>
100763         * doc/relocatable-maint.texi: Break long shell script line.
100764         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
100766 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
100768         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
100769         handle file_has_acl.
100770         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
100771         * lib/acl.c: Move header inclusions and related macro defns into
100772         lib/acl-internal.h.
100773         (S_ISLNK): Remove defn, since that's now done for us.
100774         (file_has_acl): Move to lib/file-has-acl.c.
100775         Call acl_trivial if available.  This is the crucial part of the fix.
100776         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
100777         shared within the library.  Rewrite a bit, partly to make it compatible
100778         with the GNU coding style.
100779         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
100780         Remove unnecessary double-quotes.
100781         Don't test for acl_to_text; the build will catch that.
100782         Replace acl_entries if it doesn't exist and it is needed.
100783         Check for -lsec and acl_trivial (as used on Solaris 10).
100784         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
100785         lib/file-has-acl.c.
100786         (Depends-on): Add sys_stat, for S_ISLNK.
100788 2007-03-19  Ben Pfaff  <blp@gnu.org>
100790         * doc/gnulib.texi: Fix typos.
100791         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
100793 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
100795         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
100796         If size is zero here, buf must be zero.
100798 2007-03-19  Simon Josefsson  <simon@josefsson.org>
100800         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
100801         <bruno@clisp.org>.
100803 2007-03-18  Bruno Haible  <bruno@clisp.org>
100805         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
100806         Suggested by Eric Blake.
100808 2007-03-18  Ben Pfaff  <blp@gnu.org>
100810         * doc/relocatable.texi: Recommend using as prefix a directory
100811         that does not exist and will never be created.  Based on
100812         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
100813         and others.
100815 2007-03-17  Bruno Haible  <bruno@clisp.org>
100817         * lib/fchownat.c: Include lchown.h.
100819 2007-03-17  Bruno Haible  <bruno@clisp.org>
100821         Fix endless loop when the given allocated size was > INT_MAX.
100822         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
100823         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
100824         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
100825         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
100826         * lib/sprintf.c (sprintf): Likewise.
100828 2007-03-17  Bruno Haible  <bruno@clisp.org>
100830         * tests/test-argp-2.sh (func_compare): Output a context diff.
100832 2007-03-17  Bruno Haible  <bruno@clisp.org>
100834         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
100835         locale's decimal-point character.
100837 2007-03-17  Bruno Haible  <bruno@clisp.org>
100839         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
100840         before comparing it. Needed because on some platforms (e.g. x86) a
100841         'long double' occupies less bytes than sizeof (long double).
100843 2007-03-17  Bruno Haible  <bruno@clisp.org>
100845         * tests/test-crc.c (main): Make printf statements 64-bit clean.
100846         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
100847         * tests/test-getaddrinfo.c (simple): Likewise.
100848         * tests/test-read-file.c (main): Likewise.
100850 2007-03-17  Bruno Haible  <bruno@clisp.org>
100852         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
100854 2007-03-17  Bruno Haible  <bruno@clisp.org>
100856         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
100857         unused variable.
100859 2007-03-17  Bruno Haible  <bruno@clisp.org>
100861         * tests/test-c-strcasecmp.c: Include c-strcase.h.
100862         * tests/test-c-strncasecmp.c: Likewise.
100864 2007-03-17  Bruno Haible  <bruno@clisp.org>
100866         * modules/stdlib (Depends-on): Add unistd.
100867         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
100868         Needed for MacOS X 10.3.
100870 2007-03-17  Bruno Haible  <bruno@clisp.org>
100872         * lib/unistr/u-strdup.h: Include <stdlib.h>.
100874 2007-03-17  Bruno Haible  <bruno@clisp.org>
100876         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
100878 2007-03-17  Bruno Haible  <bruno@clisp.org>
100880         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
100881         to reflect files copied from gnulib (with or without modifications).
100882         Suggested by Jim Meyering.
100884 2007-03-17  Eric Blake  <ebb9@byu.net>
100886         * NEWS: Document stdlib change from 2007-02-18.
100888 2007-03-17  Jim Meyering  <jim@meyering.net>
100890         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
100891         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
100892         someone uses a name containing shell meta-characters.
100893         Reported by Alfred M. Szmidt.
100895         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
100897 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
100899         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
100900         and copy gettext configuration files only if configure.ac contains
100901         a use of AM_GNU_GETTEXT_VERSION.
100903 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
100905         * build-aux/bootstrap (gnulib_name): New variable.
100906         (gnulib_tool_options): Use it.
100908 2007-03-13  Simon Josefsson  <simon@josefsson.org>
100910         * tests/test-des.c: Use new namespace.
100912 2007-03-15  Bruno Haible  <bruno@clisp.org>
100914         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
100915         Reported by James Youngman <jay@gnu.org>.
100917 2007-03-15  Bruno Haible  <bruno@clisp.org>
100919         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
100920         declared prototype. Needed with cc on OSF/1 5.1.
100922 2007-03-15  Bruno Haible  <bruno@clisp.org>
100924         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
100925         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
100926         (struct gl_list_implementation): Add dispose_fn argument to the
100927         'create_empty', 'create' methods.
100928         (struct gl_list_impl_base): Add field 'dispose_fn'.
100929         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
100930         argument.
100931         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
100932         dispose_fn argument.
100933         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
100934         dispose_fn on the dropped values.
100935         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
100936         dispose_fn argument.
100937         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
100938         dropped values.
100939         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
100940         (gl_tree_remove_node): Call dispose_fn on the dropped value.
100941         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
100942         (gl_tree_remove_node): Call dispose_fn on the dropped value.
100943         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
100944         argument.
100945         (gl_tree_list_free): Call dispose_fn on the dropped values.
100946         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
100947         the dropped values.
100948         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
100949         Add dispose_fn argument.
100950         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
100951         Call dispose_fn on the dropped values.
100952         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
100953         Add dispose_fn argument.
100954         (gl_sublist_create): Initialize the 'dispose_fn' field.
100955         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
100956         * tests/test-array_list.c (main): Update.
100957         * tests/test-carray_list.c (main): Update.
100958         * tests/test-avltree_list.c (main): Update.
100959         * tests/test-rbtree_list.c (main): Update.
100960         * tests/test-avltreehash_list.c (main): Update.
100961         * tests/test-rbtreehash_list.c (main): Update.
100962         * tests/test-linked_list.c (main): Update.
100963         * tests/test-linkedhash_list.c (main): Update.
100964         * tests/test-array_oset.c (main): Update.
100966 2007-03-15  Bruno Haible  <bruno@clisp.org>
100968         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
100969         (gl_oset_create_empty): Add dispose_fn argument.
100970         (struct gl_oset_implementation): Add dispose_fn argument to
100971         'create_empty' method.
100972         (struct gl_oset_impl_base): Add dispose_fn field.
100973         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
100974         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
100975         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
100976         values.
100977         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
100978         (gl_tree_oset_free): Call dispose_fn on the dropped values.
100979         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
100980         dropped value.
100981         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
100982         dropped value.
100983         * tests/test-array_oset.c (main): Update.
100984         * tests/test-avltree_oset.c (main): Update.
100985         * tests/test-rbtree_oset.c (main): Update.
100986         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
100988 2007-03-13  Bruno Haible  <bruno@clisp.org>
100990         * tests/test-stdbool.c (i): Update after last patch.
100992 2007-03-12  Bruno Haible  <bruno@clisp.org>
100994         * lib/quotearg.c: Include <wctype.h> early, before the definition of
100995         the iswprint macro. Needed on Solaris 2.5.1.
100997 2007-03-12  Bruno Haible  <bruno@clisp.org>
100999         * tests/test-printf-frexp.c (main): Declare x as volatile.
101001 2007-03-12  Simon Josefsson  <simon@josefsson.org>
101003         * doc/gnulib.texi (Build robot for gnulib): New section.
101005 2007-03-12  Jim Meyering  <jim@meyering.net>
101007         * build-aux/bootstrap: New file.
101008         * build-aux/bootstrap.conf: New file, from coreutils.
101010 2007-03-11  Bruno Haible  <bruno@clisp.org>
101012         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
101014 2007-03-12  Simon Josefsson  <simon@josefsson.org>
101016         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
101017         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
101018         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
101020 2007-03-11  Bruno Haible  <bruno@clisp.org>
101022         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
101023         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
101025 2007-03-11  Bruno Haible  <bruno@clisp.org>
101027         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
101028         formula. Needed for SunPRO C 5.0.
101030 2007-03-11  Bruno Haible  <bruno@clisp.org>
101032         * modules/long-options (Depends-on): Add getopt.
101034 2007-03-11  Bruno Haible  <bruno@clisp.org>
101036         * modules/modechange (Depends-on): Add stdbool.
101038 2007-03-11  Bruno Haible  <bruno@clisp.org>
101040         * modules/i-ring (Depends-on): Add stdbool.
101042 2007-03-11  Bruno Haible  <bruno@clisp.org>
101044         * modules/gc-des (Depends-on): Add stdbool.
101046 2007-03-11  Bruno Haible  <bruno@clisp.org>
101048         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
101050 2007-03-11  Bruno Haible  <bruno@clisp.org>
101052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
101054 2007-03-11  Bruno Haible  <bruno@clisp.org>
101056         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
101058 2007-03-11  Bruno Haible  <bruno@clisp.org>
101060         * lib/vasnprintf.c (sprintf): Undefine.
101062 2007-03-11  Bruno Haible  <bruno@clisp.org>
101064         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
101065         initializers in SunPRO C and Compaq C compilers.
101067 2007-03-11  Bruno Haible  <bruno@clisp.org>
101069         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
101070         decrementing code ANSI C compliant.
101072 2007-03-11  Bruno Haible  <bruno@clisp.org>
101074         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
101075         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
101077 2007-03-11  Bruno Haible  <bruno@clisp.org>
101079         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
101080         <stdbool.h> substitute doesn't pass.
101082 2007-03-11  Bruno Haible  <bruno@clisp.org>
101084         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
101086 2007-03-11  Bruno Haible  <bruno@clisp.org>
101088         * gnulib-tool (func_create_megatestdir): Create also an autobuild
101089         script, for submission to autobuild.josefsson.org.
101091 2007-03-10  Bruno Haible  <bruno@clisp.org>
101093         * modules/canonicalize-lgpl-tests: New file.
101094         * tests/test-canonicalize-lgpl.sh: New file.
101095         * tests/test-canonicalize-lgpl.c: New file.
101097         * modules/c-strcase-tests: New file.
101098         * tests/test-c-strcase.sh: New file.
101099         * tests/test-c-strcasecmp.c: New file.
101100         * tests/test-c-strncasecmp.c: New file.
101102         * modules/atexit-tests: New file.
101103         * tests/test-atexit.sh: New file.
101104         * tests/test-atexit.c: New file.
101106 2007-03-10  Bruno Haible  <bruno@clisp.org>
101108         * tests/test-binary-io.sh: Use temporary filenames that are not so
101109         likely to clash with those of other tests (in a parallel make).
101110         * tests/test-binary-io.c: Likewise.
101112 2007-03-10  Bruno Haible  <bruno@clisp.org>
101114         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
101115         fallback; use #error instead.
101116         Suggested by Simon Josefsson.
101118 2007-03-10  Bruno Haible  <bruno@clisp.org>
101120         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
101121         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
101122         first and the last.
101124 2007-03-10  Bruno Haible  <bruno@clisp.org>
101126         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
101128 2007-03-10  Bruno Haible  <bruno@clisp.org>
101130         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
101131         "make distcheck".
101132         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
101133         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
101134         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
101136 2007-03-10  Bruno Haible  <bruno@clisp.org>
101138         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
101139         variable.
101140         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
101141         variable.
101143 2007-03-09  Eric Blake  <ebb9@byu.net>
101144         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
101146         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
101147         types are not being provided by gnulib.
101148         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
101149         types are supported.
101151 2007-03-10  Bruno Haible  <bruno@clisp.org>
101153         * lib/stdio_.h (__attribute__): New macro.
101154         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
101155         vsprintf): Specify __attribute__ __format__ for GCC.
101156         Suggested by Eric Blake.
101158 2007-03-09  Bruno Haible  <bruno@clisp.org>
101160         * modules/printf-posix-tests: New file.
101161         * tests/test-printf-posix.sh: New file.
101162         * tests/test-printf-posix.c: New file.
101164         * modules/printf-posix: New file.
101165         * lib/printf.c: New file.
101166         * m4/printf-posix-rpl.m4: New file.
101167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
101168         REPLACE_PRINTF.
101169         * lib/stdio_.h (printf): New declaration.
101170         (format, __format__, ____printf____, ____scanf____, ____strftime____,
101171         ____strfmon____): New macros.
101172         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
101173         REPLACE_PRINTF.
101175 2007-03-09  Bruno Haible  <bruno@clisp.org>
101177         * tests/test-vasnprintf-posix2.sh: New file.
101178         * tests/test-vasnprintf-posix2.c: New file.
101179         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
101180         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
101181         (Makefile.am): Activate test-vasnprintf-posix2.sh.
101183         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
101184         a locale dependent decimal point, rather than always '.'.
101186 2007-03-09  Eric Blake  <ebb9@byu.net>
101188         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
101189         spite of platforms like Tandem/NSK that define it to -1.
101191 2007-03-08  Bruno Haible  <bruno@clisp.org>
101193         * modules/vprintf-posix-tests: New file.
101194         * tests/test-vprintf-posix.sh: New file.
101195         * tests/test-vprintf-posix.c: New file.
101196         * tests/test-printf-posix.h: New file.
101198         * modules/vprintf-posix: New file.
101199         * lib/vprintf.c: New file.
101200         * m4/vprintf-posix.m4: New file.
101201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
101202         REPLACE_VPRINTF.
101203         * lib/stdio_.h (vprintf): New declaration.
101204         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
101205         REPLACE_VPRINTF.
101207 2007-03-08  Bruno Haible  <bruno@clisp.org>
101209         * modules/fprintf-posix-tests: New file.
101210         * tests/test-fprintf-posix.sh: New file.
101211         * tests/test-fprintf-posix.c: New file.
101213         * modules/fprintf-posix: New file.
101214         * lib/fprintf.c: New file.
101215         * m4/fprintf-posix.m4: New file.
101216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
101217         REPLACE_FPRINTF.
101218         * lib/stdio_.h (fprintf): New declaration.
101219         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
101220         REPLACE_FPRINTF.
101222 2007-03-08  Bruno Haible  <bruno@clisp.org>
101224         * modules/vfprintf-posix-tests: New file.
101225         * tests/test-vfprintf-posix.sh: New file.
101226         * tests/test-vfprintf-posix.c: New file.
101227         * tests/test-fprintf-posix.h: New file.
101228         * tests/test-fprintf-posix.out: New file.
101230         * modules/vfprintf-posix: New file.
101231         * lib/vfprintf.c: New file.
101232         * m4/vfprintf-posix.m4: New file.
101233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
101234         REPLACE_VFPRINTF.
101235         * lib/stdio_.h (vfprintf): New declaration.
101236         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
101237         REPLACE_VFPRINTF.
101239 2007-03-08  Bruno Haible  <bruno@clisp.org>
101241         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
101243 2007-03-08  Bruno Haible  <bruno@clisp.org>
101245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
101246         instead of 'expr' invocations.
101247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101252         Suggested by Paul Eggert.
101254 2007-03-08  Bruno Haible  <bruno@clisp.org>
101256         * modules/fseterr-tests: New file.
101257         * tests/test-fseterr.c: New file.
101259         * modules/fseterr: New file.
101260         * lib/fseterr.h: New file.
101261         * lib/fseterr.c: New file.
101263 2007-03-08  Bruno Haible  <bruno@clisp.org>
101265         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
101266         * lib/getopt_.h: Likewise.
101267         * lib/mbswidth.h: Likewise.
101268         * lib/setenv.h: Likewise.
101269         * lib/vasnprintf.h: Likewise.
101270         * lib/vasprintf.h: Likewise.
101271         * lib/verror.h: Likewise.
101272         * lib/xsetenv.h: Likewise.
101273         * lib/xvasprintf.h: Likewise.
101275 2007-03-08  Jim Meyering  <jim@meyering.net>
101277         * users.txt: Add parted.
101279         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
101281 2007-03-07  Bruno Haible  <bruno@clisp.org>
101283         * m4/printf.m4: Make the shell script snippets copy&pastable.
101285 2007-03-02  Bruno Haible  <bruno@clisp.org>
101287         * lib/netinet_in_.h: New file.
101288         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
101289         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
101290         * modules/netinet_in (Files): Add lib/netinet_in_.h.
101291         (Depends-on): Add absolute-header.
101292         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
101293         into netinet/in.h.
101295 2007-03-03  Bruno Haible  <bruno@clisp.org>
101297         * lib/sys_select_.h: New file.
101298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
101299         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
101300         * modules/sys_select (Files): Add lib/sys_select_.h.
101301         (Depends-on): Add absolute-header.
101302         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
101303         into sys/select.h.
101305 2007-03-02  Bruno Haible  <bruno@clisp.org>
101307         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
101308         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
101309         values.
101310         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
101311         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
101312         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
101313         * modules/sys_socket (Depends-on): Add absolute-header.
101314         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
101315         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
101316         (Include): Remove requirement of inclusion of <sys/types.h>.
101318 2007-03-02  Bruno Haible  <bruno@clisp.org>
101320         * lib/byteswap_.h (bswap_32): Fix formula.
101322 2007-03-06  Bruno Haible  <bruno@clisp.org>
101324         * modules/sprintf-posix-tests: New file.
101325         * tests/test-sprintf-posix.c: New file.
101327         * modules/sprintf-posix: New file.
101328         * lib/sprintf.c: New file.
101329         * m4/sprintf-posix.m4: New file.
101330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
101331         REPLACE_SPRINTF.
101332         * lib/stdio_.h (sprintf): New declaration.
101333         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
101334         REPLACE_SPRINTF.
101336 2007-03-06  Bruno Haible  <bruno@clisp.org>
101338         * modules/vsprintf-posix-tests: New file.
101339         * tests/test-vsprintf-posix.c: New file.
101340         * tests/test-sprintf-posix.h: New file.
101342         * modules/vsprintf-posix: New file.
101343         * lib/vsprintf.c: New file.
101344         * m4/vsprintf-posix.m4: New file.
101345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
101346         REPLACE_VSPRINTF.
101347         * lib/stdio_.h (vsprintf): New declaration.
101348         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
101349         REPLACE_VSPRINTF.
101351 2007-03-06  Bruno Haible  <bruno@clisp.org>
101353         * modules/vsnprintf (Depend-on): Remove minmax.
101355 2007-03-06  Bruno Haible  <bruno@clisp.org>
101357         * modules/snprintf-posix-tests: New file.
101358         * tests/test-snprintf-posix.c: New file.
101360         * modules/snprintf-posix: New file.
101361         * m4/snprintf-posix.m4: New file.
101362         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
101363         gl_FUNC_SNPRINTF.
101364         (gl_FUNC_SNPRINTF): Invoke it.
101365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
101366         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
101367         is set.
101368         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
101370 2007-03-06  Bruno Haible  <bruno@clisp.org>
101372         * modules/vsnprintf-posix-tests: New file.
101373         * tests/test-vsnprintf-posix.c: New file.
101374         * tests/test-snprintf-posix.h: New file.
101376         * modules/vsnprintf-posix: New file.
101377         * m4/vsnprintf-posix.m4: New file.
101378         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
101379         gl_FUNC_VSNPRINTF.
101380         (gl_FUNC_VSNPRINTF): Invoke it.
101381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
101382         * lib/stdio_.h (vsnprintf): Define as a replacement if
101383         REPLACE_VSNPRINTF is set.
101384         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
101386 2007-03-06  Bruno Haible  <bruno@clisp.org>
101388         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
101389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
101391 2007-03-06  Bruno Haible  <bruno@clisp.org>
101393         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
101394         (asinl): Declare also if HAVE_DECL_ASINL is set.
101395         (atanl): Declare also if HAVE_DECL_ATANL is set.
101396         (ceill): Declare also if HAVE_DECL_CEILL is set.
101397         (cosl): Declare also if HAVE_DECL_COSL is set.
101398         (expl): Declare also if HAVE_DECL_EXPL is set.
101399         (floorl): Declare also if HAVE_DECL_FLOORL is set.
101400         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
101401         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
101402         (logl): Declare also if HAVE_DECL_LOGL is set.
101403         (sinl): Declare also if HAVE_DECL_SINL is set.
101404         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
101405         (tanl): Declare also if HAVE_DECL_TANL is set.
101406         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
101407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
101408         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
101409         declaration of frexpl, ldexpl.
101410         * modules/printf-frexpl (Depends-on): Add math.
101411         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
101413 2007-03-05  Bruno Haible  <bruno@clisp.org>
101415         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
101416         frexpl and ldexpl are declared.
101417         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
101419 2007-03-05  Bruno Haible  <bruno@clisp.org>
101421         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
101422         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
101424 2007-03-05  Bruno Haible  <bruno@clisp.org>
101426         * lib/stdio_.h: Include <stddef.h>.
101428 2007-03-05  Bruno Haible  <bruno@clisp.org>
101430         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
101432 2007-03-05  Bruno Haible  <bruno@clisp.org>
101434         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
101435         NetBSD 4, from Ralf Wildenhues.
101437 2007-03-04  Bruno Haible  <bruno@clisp.org>
101439         * lib/vasprintf.h: Update #if logic for the case when the functions
101440         exist but are overridden.
101442 2007-03-04  Bruno Haible  <bruno@clisp.org>
101444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
101445         implementations: glibc-2.4 and MacOS X 10.3.
101446         * tests/test-vasnprintf-posix.c (test_function): Test also the case
101447         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
101448         * tests/test-vasprintf-posix.c (test_function): Likewise.
101450 2007-03-04  Bruno Haible  <bruno@clisp.org>
101452         * modules/vasprintf-posix-tests: New file.
101453         * tests/test-vasprintf-posix.c: New file.
101455         * modules/vasprintf-posix: New file.
101456         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
101457         defined.
101458         * m4/vasprintf-posix.m4: New file.
101459         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
101460         gl_FUNC_VASPRINTF.
101461         (gl_FUNC_VASPRINTF): Invoke it.
101462         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
101463         here.
101464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
101466 2007-03-04  Bruno Haible  <bruno@clisp.org>
101468         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
101469         REPLACE_GETTIMEOFDAY.
101470         * modules/sys_time (Makefile.am): Likewise.
101471         * m4/sys_time_h.m4: Likewise.
101472         * m4/gettimeofday.m4: Likewise.
101474 2007-03-04  Bruno Haible  <bruno@clisp.org>
101476         * modules/vasnprintf-posix-tests: New file.
101477         * tests/test-vasnprintf-posix.c: New file.
101479         * modules/vasnprintf-posix: New file.
101480         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
101481         printf-frexpl.h.
101482         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
101483         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
101484         REPLACE_VASNPRINTF is defined.
101485         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
101486         gl_FUNC_VASNPRINTF.
101487         (gl_FUNC_VASNPRINTF): Invoke it.
101488         * m4/vasnprintf-posix.m4: New file.
101489         * m4/printf.m4: New file.
101491 2007-03-04  Bruno Haible  <bruno@clisp.org>
101493         Compile progreloc.c only if --enable-relocatable is specified.
101494         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
101495         if --enable-relocatable was specified.
101496         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
101497         lib_SOURCES.
101499 2007-03-04  Jim Meyering  <jim@meyering.net>
101501         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
101502         Use it consistently, rather than enumerating errno constants.
101504 2007-03-04  Bruno Haible  <bruno@clisp.org>
101506         * modules/xvasprintf-tests: New file.
101507         * tests/test-xvasprintf.c: New file.
101509         * modules/vasprintf-tests: New file.
101510         * tests/test-vasprintf.c: New file.
101512         * modules/vasnprintf-tests: New file.
101513         * tests/test-vasnprintf.c: New file.
101515         * modules/vsnprintf-tests: New file.
101516         * tests/test-vsnprintf.c: New file.
101518         * modules/snprintf-tests: New file.
101519         * tests/test-snprintf.c: New file.
101521 2007-03-04  Bruno Haible  <bruno@clisp.org>
101523         Compile relocatable.c only if --enable-relocatable is specified.
101524         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
101525         gl_RELOCATABLE_LIBRARY.
101526         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
101527         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
101528         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
101529         gl_RELOCATABLE_LIBRARY.
101530         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
101531         (Makefile.am): Remove lib_SOURCES.
101532         * modules/relocatable-lib-lgpl (configure.ac): Invoke
101533         gl_RELOCATABLE_LIBRARY.
101534         (Makefile.am): Remove lib_SOURCES.
101535         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
101536         always.
101537         * modules/relocatable-prog-wrapper (configure.ac): Invoke
101538         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
101540 2007-03-04  Bruno Haible  <bruno@clisp.org>
101542         * modules/argmatch-tests: New file.
101543         * tests/test-argmatch.c: New file.
101545         * tests/test-allocsa.c (main): Halve the number of loop runs.
101547         * modules/alloca-opt-tests: New file.
101548         * tests/test-alloca-opt.c: New file.
101550 2007-03-04  Jim Meyering  <jim@meyering.net>
101552         Work around difference between Linux ACLs and Solaris 10 ZFS.
101553         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
101554         for EINVAL.
101556 2007-03-03  Bruno Haible  <bruno@clisp.org>
101558         * modules/relocatable-prog (Depends-on): Add back progreloc's
101559         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
101561 2007-03-03  Bruno Haible  <bruno@clisp.org>
101563         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
101564         * modules/relocatable-lib: New file.
101566 2007-03-03  Bruno Haible  <bruno@clisp.org>
101568         * modules/relocatable-prog: Renamed from modules/relocatable.
101569         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
101571 2007-03-03  Bruno Haible  <bruno@clisp.org>
101573         * modules/relocatable-script (Files): Add doc/relocatable.texi,
101574         m4/relocatable-lib.m4.
101575         (Depends-on): Remove 'relocatable'.
101576         (configure.ac): Add gl_RELOCATABLE_NOP.
101578 2007-03-03  Bruno Haible  <bruno@clisp.org>
101580         * modules/relocatable-prog-wrapper: New file.
101581         * modules/relocatable (Depends-on): Add it. Remove all other
101582         dependencies except progname.
101583         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
101585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
101586         (gl_FUNC_STRERROR): Nop.
101587         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
101589         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
101590         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
101592         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
101593         (gl_FUNC_READLINK): Update.
101595         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
101597 2007-03-03  Bruno Haible  <bruno@clisp.org>
101599         * lib/xreadlink.c: Include <unistd.h> unconditionally.
101600         * modules/xreadlink (Depends-on): Add unistd.
101601         * modules/xreadlink-with-size (Depends-on): Likewise.
101603 2007-03-03  Bruno Haible  <bruno@clisp.org>
101605         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
101606         extracted from gt_FUNC_SETENV.
101607         (gt_FUNC_SETENV): Remove macro.
101608         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
101609         remove gt_FUNC_SETENV.
101611 2007-03-03  Bruno Haible  <bruno@clisp.org>
101613         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
101614         ENABLE_RELOCATABLE here.
101615         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
101617 2007-03-03  Bruno Haible  <bruno@clisp.org>
101619         * modules/rbtreehash-list-tests (Depends-on): Add progname.
101620         * tests/test-rbtreehash_list.c: Include progname.h.
101621         (main): Call set_program_name.
101623         * modules/rbtree-oset-tests (Depends-on): Add progname.
101624         * tests/test-rbtree_oset.c: Include progname.h.
101625         (main): Call set_program_name.
101627         * modules/rbtree-list-tests (Depends-on): Add progname.
101628         * tests/test-rbtree_list.c: Include progname.h.
101629         (main): Call set_program_name.
101631         * modules/linked-list-tests (Depends-on): Add progname.
101632         * tests/test-linked_list.c: Include progname.h.
101633         (main): Call set_program_name.
101635 2007-03-03  Bruno Haible  <bruno@clisp.org>
101637         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
101638         All uses of __restrict changed to _Restrict_.
101639         * lib/glob_.h (__restrict): Remove macro.
101641 2007-03-02  Bruno Haible  <bruno@clisp.org>
101643         * modules/gettext (configure.ac): Require gettext infrastructure
101644         from version 0.16.1.
101646 2007-03-02  Bruno Haible  <bruno@clisp.org>
101648         * modules/linkedhash-list-tests (Depends-on): Add progname.
101649         * tests/test-linkedhash_list.c: Include progname.h.
101650         (main): Call set_program_name.
101652         * modules/carray-list-tests (Depends-on): Add progname.
101653         * tests/test-carray_list.c: Include progname.h.
101654         (main): Call set_program_name.
101656         * modules/avltreehash-list-tests (Depends-on): Add progname.
101657         * tests/test-avltreehash_list.c: Include progname.h.
101658         (main): Call set_program_name.
101660         * modules/avltree-oset-tests (Depends-on): Add progname.
101661         * tests/test-avltree_oset.c: Include progname.h.
101662         (main): Call set_program_name.
101664         * modules/avltree-list-tests (Depends-on): Add progname.
101665         * tests/test-avltree_list.c: Include progname.h.
101666         (main): Call set_program_name.
101668         * modules/array-oset-tests (Depends-on): Add progname.
101669         * tests/test-array_oset.c: Include progname.h.
101670         (main): Call set_program_name.
101672         * modules/array-list-tests (Depends-on): Add progname.
101673         * tests/test-array_list.c: Include progname.h.
101674         (main): Call set_program_name.
101676         * modules/argp-tests (Depends-on): Add progname.
101677         * tests/test-argp.c: Include argp.h first. Include progname.h.
101678         (main): Call set_program_name.
101680 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
101682         * doc/gnulib-tool.texi (Initial import): Reword description of
101683         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
101684         limited effect even if defined after the first system include.
101686 2007-03-01  Bruno Haible  <bruno@clisp.org>
101688         * build-aux/config.libpath: Update to libtool-1.5.22.
101689         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
101691 2007-03-01  Bruno Haible  <bruno@clisp.org>
101693         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
101694         foo_CFLAGS.
101695         Reported by Ralf Wildenhues.
101697 2007-03-01  Bruno Haible  <bruno@clisp.org>
101699         * build-aux/install-reloc: Remove object files left over by some
101700         compilers.
101701         Reported by Ralf Wildenhues.
101703 2007-03-01  Bruno Haible  <bruno@clisp.org>
101705         * build-aux/install-reloc: Break long lines.
101707 2007-03-01  Bruno Haible  <bruno@clisp.org>
101709         * doc/relocatable.texi: Document that it may not work on OpenBSD.
101710         Reported by Ralf Wildenhues.
101712 2007-03-01  Bruno Haible  <bruno@clisp.org>
101714         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
101715         include ordering constraints.
101717 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101719         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
101720         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
101721         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
101722         as another example.
101723         * lib/time_.h: Fix misspelling.
101724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
101725         Require gl_HEADER_TIME_H_DEFAULTS.
101726         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
101727         * m4/time_r.m4 (gl_TIME_R): Likewise.
101728         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
101730 2007-03-01  Bruno Haible  <bruno@clisp.org>
101732         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
101733         * m4/utimens.m4 (gl_UTIMENS): Likewise.
101735 2007-03-01  Jim Meyering  <jim@meyering.net>
101737         * modules/xreadlink (Maintainer): Add my name.
101738         * modules/xreadlink-with-size (Depends-on): Alphabetize.
101740 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
101741             Bruno Haible  <bruno@clisp.org>
101743         * build-aux/install-reloc: Compile also c-ctype.c.
101744         * build-aux/relocatable.sh.in: New file.
101745         * doc/relocatable.texi: New file.
101746         * doc/relocatable-maint.texi: New file.
101747         * doc/gnulib.texi: Include relocatable-maint.texi.
101748         * lib/progreloc.c: Include unistd.h unconditionally.
101749         * lib/relocwrapper.c: Include unistd.h unconditionally.
101750         Include c-ctype.h.
101751         (add_dotbin): Use c_tolower.
101752         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
101753         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
101754         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
101755         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
101756         to m4/relocatable-lib.m4.
101757         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
101758         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
101759         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
101760         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
101761         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
101762         * modules/relocatable: New file.
101763         * modules/relocatable-lib: New file.
101764         * modules/relocatable-script: New file.
101766 2007-02-28  Bruno Haible  <bruno@clisp.org>
101768         Import --enable-relocatable infrastructure.
101769         * build-aux/config.libpath: New file, from GNU gettext.
101770         * build-aux/install-reloc: New file, from GNU gettext.
101771         * build-aux/reloc-ldflags: New file, from GNU gettext.
101772         * lib/relocatable.h: New file, from GNU gettext.
101773         * lib/relocatable.c: New file, from GNU gettext.
101774         * lib/relocwrapper.c: New file, from GNU gettext.
101775         * m4/relocatable.m4: New file, from GNU gettext.
101777 2007-02-28  Bruno Haible  <bruno@clisp.org>
101779         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
101781         * modules/xreadlink: New file, from GNU gettext with modifications.
101782         * lib/xreadlink.c: New file, from GNU gettext.
101783         * lib/xreadlink.h: Add comments.
101784         (xreadlink): New declaration.
101786         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
101787         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
101788         lib/xreadlink-with-size.c.
101789         (configure.ac): Remove gl_XREADLINK invocation.
101790         (Makefile.am): Augment lib_SOURCES.
101791         * m4/xreadlink.m4: Remove file.
101792         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
101793         (xreadlink_with_size): Renamed from xreadink.
101794         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
101795         * modules/canonicalize (Depends-on): Replace xreadlink with
101796         xreadlink-with-size.
101797         * lib/canonicalize.c (canonicalize_filename_mode): Update.
101799 2007-02-25  Jim Meyering  <jim@meyering.net>
101801         * build-aux/announce-gen: When complaining about excess arguments,
101802         list them.
101804 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101806         * README: Document signed integer overflow situation more
101807         accurately.
101809 2007-02-25  Bruno Haible  <bruno@clisp.org>
101811         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
101812         'a' or 'A' conversion.
101814 2007-02-25  Bruno Haible  <bruno@clisp.org>
101816         * modules/filename: Renamed from modules/pathname.
101817         (Files): Replace lib/pathname.h with lib/filename.h. Replace
101818         lib/concatpath.c with lib/concat-filename.c.
101819         (Makefile.am): Update.
101820         (Include): Replace pathname.h with filename.h.
101821         * lib/filename.h: Renamed from lib/pathname.h.
101822         (concatenated_filename): Renamed from concatenated_pathname.
101823         * lib/concat-filename.c: Renamed from lib/concatpath.c.
101824         (concatenated_filename): Renamed from concatenated_pathname.
101825         * lib/findprog.c: Include filename.h instead of pathname.h.
101826         (find_in_path): Update.
101827         * lib/javacomp.c: Include filename.h instead of pathname.h.
101828         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
101829         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
101830         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
101831         is_oldgcj_14_13_usable, is_javac_usable): Update.
101832         * lib/javaexec.c: Include filename.h instead of pathname.h.
101833         (execute_java_class): Update.
101834         * modules/findprog: Update.
101835         * modules/javacomp: Update.
101836         * modules/javaexec: Update.
101837         * MODULES.html.sh (File system functions): Add 'filename', remove
101838         'pathname'.
101840 2007-02-25  Bruno Haible  <bruno@clisp.org>
101842         * modules/printf-frexpl-tests: New file.
101843         * tests/test-printf-frexpl.c: New file.
101845         * modules/printf-frexpl: New file.
101846         * lib/printf-frexpl.h: New file.
101847         * lib/printf-frexpl.c: New file.
101848         * m4/printf-frexpl.m4: New file.
101850 2007-02-25  Bruno Haible  <bruno@clisp.org>
101852         * modules/printf-frexp-tests: New file.
101853         * tests/test-printf-frexp.c: New file.
101855         * modules/printf-frexp: New file.
101856         * lib/printf-frexp.h: New file.
101857         * lib/printf-frexp.c: New file.
101858         * m4/printf-frexp.m4: New file.
101860 2007-02-25  Bruno Haible  <bruno@clisp.org>
101862         Assume automake >= 1.10 for the tests.
101863         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
101864         * modules/arctwo-tests: Likewise.
101865         * modules/argp-tests: Likewise.
101866         * modules/avltree-list-tests: Likewise.
101867         * modules/avltree-oset-tests: Likewise.
101868         * modules/avltreehash-list-tests: Likewise.
101869         * modules/carray-list-tests: Likewise.
101870         * modules/crc-tests: Likewise.
101871         * modules/des-tests: Likewise.
101872         * modules/gc-arcfour-tests: Likewise.
101873         * modules/gc-arctwo-tests: Likewise.
101874         * modules/gc-des-tests: Likewise.
101875         * modules/gc-hmac-md5-tests: Likewise.
101876         * modules/gc-hmac-sha1-tests: Likewise.
101877         * modules/gc-md2-tests: Likewise.
101878         * modules/gc-md4-tests: Likewise.
101879         * modules/gc-md5-tests: Likewise.
101880         * modules/gc-pbkdf2-sha1-tests: Likewise.
101881         * modules/gc-rijndael-tests: Likewise.
101882         * modules/gc-sha1-tests: Likewise.
101883         * modules/gc-tests: Likewise.
101884         * modules/getaddrinfo-tests: Likewise.
101885         * modules/hmac-md5-tests: Likewise.
101886         * modules/hmac-sha1-tests: Likewise.
101887         * modules/linked-list-tests: Likewise.
101888         * modules/linkedhash-list-tests: Likewise.
101889         * modules/lock-tests: Likewise.
101890         * modules/md2-tests: Likewise.
101891         * modules/md4-tests: Likewise.
101892         * modules/md5-tests: Likewise.
101893         * modules/rbtree-list-tests: Likewise.
101894         * modules/rbtree-oset-tests: Likewise.
101895         * modules/rbtreehash-list-tests: Likewise.
101896         * modules/read-file-tests: Likewise.
101897         * modules/rijndael-tests: Likewise.
101898         * modules/stdint-tests: Likewise.
101899         * modules/tls-tests: Likewise.
101901 2007-02-24  Bruno Haible  <bruno@clisp.org>
101903         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
101904         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
101905         function; instead check whether isnan with a double argument links.
101906         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
101907         function; instead check whether isnan with a 'long double' argument
101908         links.
101909         Reported by Eric Blake <ebb9@byu.net>.
101911 2007-02-24  Bruno Haible  <bruno@clisp.org>
101913         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
101914         defined.
101915         * lib/isnanl.c: Remove all code. Just include isnan.c.
101916         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
101918 2007-02-25  Jim Meyering  <jim@meyering.net>
101920         Avoid conflicting types for 'unsetenv' on FreeBSD.
101921         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
101922         conflicting with FreeBSD's (5.0 and 6.1) function declaration
101923         in stdlib.h.
101925 2007-02-24  Bruno Haible  <bruno@clisp.org>
101927         * modules/isnanl-nolibm-tests: New file.
101928         * tests/test-isnanl.c: New file.
101930         * modules/isnanl-nolibm: New file.
101931         * lib/isnanl.h: New file.
101932         * lib/isnanl.c: New file.
101933         * m4/isnanl.m4: New file.
101935 2007-02-24  Bruno Haible  <bruno@clisp.org>
101937         * modules/isnan-nolibm-tests: New file.
101938         * tests/test-isnan.c: New file.
101940         * modules/isnan-nolibm: New file.
101941         * lib/isnan.h: New file.
101942         * lib/isnan.c: New file.
101943         * m4/isnan.m4: New file.
101945 2007-02-24  Bruno Haible  <bruno@clisp.org>
101947         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
101948         assume that an exponent fits in 20 bits.
101950 2007-02-24  Jim Meyering  <jim@meyering.net>
101952         * m4/regex.m4: Update the description of the configure-time option,
101953         --without-included-regex, to state accurately what the defaults are,
101954         and perhaps to give people an idea why using this option is risky.
101956 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101958         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
101959         loops on small arguments.  This attempts to avoid the problem
101960         Bruno Haible reported for AIX 4.3.2 in
101961         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
101963 2007-02-23  Bruno Haible  <bruno@clisp.org>
101965         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
101966         Needed for help2man.
101968 2007-02-23  Karl Berry  <karl@gnu.org>
101970         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
101971         exists, foo.h should be cvs-ignored, not committed.
101973 2007-02-23  Eric Blake  <ebb9@byu.net>
101975         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
101976         * lib/stat-time.h (includes): Likewise.
101977         * lib/utimecmp.c (includes): Likewise.
101978         * lib/utimens.h (includes): Likewise.
101979         * lib/getdate.y (includes): Also include "timespec.h" for use
101980         internal to the module.
101981         * modules/utimens (Depends-on): Revert yesterday's patch.
101982         * modules/nanosleep (Depends-on): Add missing dependency.
101984 2007-02-22  Bruno Haible  <bruno@clisp.org>
101986         * lib/glob.c: Don't include getlogin_r.h.
101988 2007-02-22  Jim Meyering  <jim@meyering.net>
101990         * modules/utimens (Depends-on): Add timespec, required for
101991         utimens.h's inclusion of timespec.h.
101993 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
101995         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
101996         long unreadable paths in GNU/Linux.  Problem reported by Andreas
101997         Schwab in
101998         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
101999         I'll try to think of a better way to fix the Solaris problem.
102001         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
102002         like glibc; on Solaris 10, it fails with errno == EINVAL.
102003         POSIX says the behavior is unspecified if the first argument is NULL,
102004         so play it safe and never pass NULL to the system getcwd.
102006 2007-02-21  Jim Meyering  <jim@meyering.net>
102008         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
102009         of gettimeofday.  It would conflict with the one now always
102010         provided via sys_time_.h.  Reported by Matthew Woehlke, as
102011         an IRIX 6.5 build failure.
102013 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
102015         Minor fixups to port to Solaris 10 with Sun C 5.8.
102016         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
102017         * modules/getcwd (Depends-on): Add dirfd.
102018         * lib/putenv.c (putenv): #undef it.
102019         (rpl_putenv): New decl.
102020         (malloc, free): Include <stdlib.h> rather than prototyping separately.
102022 2007-02-20  Bruno Haible  <bruno@clisp.org>
102024         * modules/stdio-tests: New file.
102025         * tests/test-stdio.c: New file.
102027         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
102028         (Depends-on): Add stdio.
102029         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
102030         (Include): Use <stdio.h> instead of vsnprintf.h.
102031         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
102032         HAVE_DECL_VSNPRINTF.
102033         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
102035         * modules/snprintf (Files): Remove lib/snprintf.h.
102036         (Depends-on): Add stdio.
102037         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
102038         (Include): Use <stdio.h> instead of snprintf.h.
102039         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
102040         HAVE_DECL_SNPRINTF.
102041         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
102042         * lib/getaddrinfo.c: Likewise.
102044         * modules/stdio: New file.
102045         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
102046         * lib/snprintf.h: Remove file.
102047         * lib/vsnprintf.h: Remove file.
102048         * lib/.cppi-disable: Remove snprintf.h.
102049         * m4/stdio_h.m4: New file.
102050         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
102052 2007-02-20  Jim Meyering  <jim@meyering.net>
102054         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
102055         used by e.g., mingw.  From Bruno Haible.
102057 2007-02-19  Bruno Haible  <bruno@clisp.org>
102059         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
102060         warnings.
102061         Reported by Ben Pfaff <blp@cs.stanford.edu>.
102063 2007-02-19  Bruno Haible  <bruno@clisp.org>
102065         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
102066         from mingw users.
102068 2007-02-19  Bruno Haible  <bruno@clisp.org>
102070         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
102071         warnings.
102072         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
102074 2007-02-19  Jim Meyering  <jim@meyering.net>
102076         Don't use FD after a successful "fdopendir (fd)".
102077         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
102078         Reset it by calling dirfd on the just-obtained DIR*.
102080         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
102081         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
102083 2007-02-18  Bruno Haible  <bruno@clisp.org>
102085         * lib/readlink.c: Include <unistd.h>.
102086         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
102087         HAVE_READLINK.
102088         * modules/readlink (Depends-on): Add unistd.
102089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102090         (Include): Add <unistd.h>.
102092         * lib/getlogin_r.h: Remove file.
102093         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
102094         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
102095         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
102096         HAVE_DECL_GETLOGIN_R.
102097         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
102098         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102099         (Include): Use <unistd.h> instead of getlogin_r.h.
102101         * lib/getcwd.h: Remove file.
102102         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
102103         * lib/xgetcwd.c: Likewise.
102104         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
102105         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
102106         * modules/getcwd (Files): Remove lib/getcwd.h.
102107         (Depends-on): Add unistd.
102108         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102109         (Include): Use <unistd.h> instad of getcwd.h.
102111         * lib/ftruncate.c: Include <unistd.h> first.
102112         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
102113         Set HAVE_FTRUNCATE.
102114         * modules/ftruncate (Depends-on): Add unistd.
102115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102117         * lib/fchdir.c: Include <unistd.h> first.
102118         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
102119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
102120         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
102121         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102122         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
102124         * lib/dup2.c: Include <unistd.h> first.
102125         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
102126         HAVE_DUP2.
102127         * modules/dup2 (Depends-on): Add unistd.
102128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102130         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
102131         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
102132         REPLACE_CHOWN. Don't define chown as a macro here.
102133         * modules/chown (Depends-on): Add unistd.
102134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102136         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
102137         Add definition for GL_LINK_WARNING.
102138         (chown, dup2): New declarations.
102139         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
102140         link warning.
102141         (ftruncate): New declaration.
102142         (getcwd): New declaration, taken from old getcwd.h.
102143         (getlogin_r): New declaration, taken from old getlogin_r.h.
102144         (readlink): New declaration.
102145         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
102146         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
102147         (gl_PREREQ_UNISTD): Remove macro.
102148         (gl_UNISTD_MODULE_INDICATOR): New macro.
102149         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
102150         many new variables. Don't set UNISTD_H.
102151         * modules/unistd (Description): Change.
102152         (Depends-on): Add link-warning.
102153         (configure.ac): Update.
102154         (Makefile.am): Create unistd.h always. Substitute many new variables
102155         into it.
102157 2007-02-18  Bruno Haible  <bruno@clisp.org>
102159         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
102160         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
102161         HAVE_GETSUBOPT.
102162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
102163         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
102164         * lib/getsubopt.h: Remove file.
102165         * modules/getsubopt (Files): Remove lib/getsubopt.h.
102166         (Depends-on): Add stdlib.
102167         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
102168         (Includes): Use <stdlib.h> instead of getsubopt.h.
102169         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
102170         Set HAVE_GETSUBOPT.
102171         * lib/getsubopt.c: Don't include getsubopt.h.
102173 2007-02-18  Bruno Haible  <bruno@clisp.org>
102175         * modules/fchdir (Depends-on): Add dup2.
102177 2007-02-18  Bruno Haible  <bruno@clisp.org>
102179         * lib/stdlib_.h: Handle glibc's special invocation convention
102180         specially.
102182 2007-02-18  Bruno Haible  <bruno@clisp.org>
102184         * modules/stdlib-tests: New file.
102185         * tests/test-stdlib.c: New file.
102187         * modules/mkstemp (Files): Remove lib/mkstemp.h.
102188         (Depends-on): Add stdlib.
102189         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
102190         (Includes): Use <stdlib.h> instead of mkstemp.h.
102191         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
102192         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
102193         * lib/mkstemp.c: Don't include mkstemp.h.
102194         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
102195         * lib/stdlib--.h: Don't include mkstemp.h.
102197         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
102198         (Depends-on): Add stdlib.
102199         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
102200         (Includes): Use <stdlib.h> instead of mkdtemp.h.
102201         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
102202         HAVE_MKDTEMP.
102203         * lib/mkdtemp.c: Don't include mkdtemp.h.
102204         * lib/clean-temp.c: Don't include mkdtemp.h.
102206         * modules/exit (Files): Remove lib/exit.h.
102207         (Depends-on): Add stdlib.
102208         (Makefile.am): Remove lib_SOURCES.
102209         (Include): Use <stdlib.h> instead of exit.h.
102210         * lib/argmatch.c: Don't include exit.h.
102211         * lib/execute.c: Likewise.
102212         * lib/pagealign_alloc.c: Likewise.
102213         * lib/pipe.c: Likewise.
102214         * lib/wait-process.c: Likewise.
102215         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
102216         * lib/exitfail.c: Likewise.
102217         * lib/savewd.c: Likewise.
102218         * lib/xsetenv.c: Likewise.
102220         * modules/stdlib: New file.
102221         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
102222         and extra comments about mkstemp().
102223         * lib/exit.h: Remove file.
102224         * lib/mkdtemp.h: Remove file.
102225         * lib/mkstemp.h: Remove file.
102226         * m4/stdlib_h.m4: New file.
102227         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
102229 2007-02-18  Bruno Haible  <bruno@clisp.org>
102231         * modules/math-tests: New file.
102232         * tests/test-math.c: New file.
102234         * modules/math: New file.
102235         * modules/mathl (Files): Remove lib/mathl.h.
102236         (Depends-on): Add math.
102237         (Makefile.am): Don't mention mathl.h.
102238         (Include): Use <math.h> instead of mathl.h.
102239         * lib/math_.h: New file.
102240         * lib/mathl.h: Remove file.
102241         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
102242         mathl.h.
102243         * lib/asinl.c: Likewise.
102244         * lib/atanl.c: Likewise.
102245         * lib/ceill.c: Likewise.
102246         * lib/cosl.c: Likewise.
102247         * lib/expl.c: Likewise.
102248         * lib/floorl.c: Likewise.
102249         * lib/frexpl.c: Likewise.
102250         * lib/ldexpl.c: Likewise.
102251         * lib/logl.c: Likewise.
102252         * lib/sincosl.c: Likewise.
102253         * lib/sinl.c: Likewise.
102254         * lib/sqrtl.c: Likewise.
102255         * lib/tanl.c: Likewise.
102256         * lib/trigl.c: Likewise.
102257         * m4/math_h.m4: New file.
102258         * MODULES.html.sh (Mathematics): Add math.
102260 2007-02-17  Bruno Haible  <bruno@clisp.org>
102262         * modules/wctype-tests: New file.
102263         * tests/test-wctype.c: New file.
102265         * modules/wchar-tests: New file.
102266         * tests/test-wchar.c: New file.
102268         * modules/unistd-tests: New file.
102269         * tests/test-unistd.c: New file.
102271         * modules/time-tests: New file.
102272         * tests/test-time.c: New file.
102274         * modules/sysexits-tests: New file.
102275         * tests/test-sysexits.c: New file.
102277         * modules/sys_time-tests: New file.
102278         * tests/test-sys_time.c: New file.
102280         * modules/sys_stat-tests: New file.
102281         * tests/test-sys_stat.c: New file.
102283         * modules/sys_socket-tests: New file.
102284         * tests/test-sys_socket.c: New file.
102286         * modules/sys_select-tests: New file.
102287         * tests/test-sys_select.c: New file.
102289         * modules/string-tests: New file.
102290         * tests/test-string.c: New file.
102292         * modules/stdbool-tests: New file.
102293         * tests/test-stdbool.c: New file.
102295         * modules/netinet_in-tests: New file.
102296         * tests/test-netinet_in.c: New file.
102298         * modules/inttypes-tests: New file.
102299         * tests/test-inttypes.c: New file.
102301         * modules/fcntl-tests: New file.
102302         * tests/test-fcntl.c: New file.
102304         * modules/byteswap-tests: New file.
102305         * tests/test-byteswap.c: New file.
102307         * modules/arpa_inet-tests: New file.
102308         * tests/test-arpa_inet.c: New file.
102310 2007-02-17  Bruno Haible  <bruno@clisp.org>
102312         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
102313         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
102314         if the corresponding module is not enabled. Emit link warnings if
102315         the function is used nevertheless.
102316         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
102317         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
102318         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
102319         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
102320         * modules/inttypes (Depends-on): Add link-warning.
102321         (Makefile.am): Copy the contents of build-aux/link-warning.h into
102322         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
102323         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
102324         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
102325         * modules/imaxdiv (configure.ac): Likewise.
102326         * modules/strtoimax (configure.ac): Likewise.
102327         * modules/strtoumax (configure.ac): Likewise.
102329 2007-02-17  Bruno Haible  <bruno@clisp.org>
102331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
102332         gl_STRING_MODULE_INDICATOR_DEFAULTS.
102333         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
102334         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
102336 2007-02-17  Bruno Haible  <bruno@clisp.org>
102338         * modules/link-warning: New file.
102339         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
102340         * lib/string_.h (GL_LINK_WARNING): Remove definition.
102341         * modules/string (Depends-on): Add link-warning.
102342         (Makefile.am): Copy the contents of build-aux/link-warning.h into
102343         string.h.
102344         * MODULES.html.sh (Support for building libraries and executables): Add
102345         link-warning.
102347 2007-02-17  Bruno Haible  <bruno@clisp.org>
102349         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
102350         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
102351         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
102352         long lines.
102354 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
102355             Bruno Haible  <bruno@clisp.org>
102357         * modules/tmpfile: New file.
102358         * lib/tmpfile.c: New file.
102359         * m4/tmpfile.m4: New file.
102360         * MODULES.html.sh (func_all_modules): New section "Input/output".
102362 2007-02-15  Bruno Haible  <bruno@clisp.org>
102364         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
102365         (supports_delete_on_close): New function.
102366         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
102368 2007-02-14  Bruno Haible  <bruno@clisp.org>
102370         * modules/mbspcasecmp-tests: New file.
102371         * tests/test-mbspcasecmp.sh: New file.
102372         * tests/test-mbspcasecmp.c: New file.
102374         New module mbspcasecmp.
102375         * modules/mbspcasecmp: New file.
102376         * lib/mbspcasecmp.c: New file.
102377         * lib/string_.h (strncasecmp): Change warning message.
102378         (mbspcasecmp): New declaration.
102379         * m4/mbspcasecmp.m4: New file.
102380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102381         GNULIB_MBSPCASECMP.
102382         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
102383         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
102385 2007-02-14  Bruno Haible  <bruno@clisp.org>
102387         * modules/mbsncasecmp-tests: New file.
102388         * tests/test-mbsncasecmp.sh: New file.
102389         * tests/test-mbsncasecmp.c: New file.
102391         New module mbsncasecmp.
102392         * modules/mbsncasecmp: New file.
102393         * lib/mbsncasecmp.c: New file.
102394         * lib/string_.h (mbsncasecmp): New declaration.
102395         * m4/mbsncasecmp.m4: New file.
102396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102397         GNULIB_MBSNCASECMP.
102398         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
102399         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
102401 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
102403         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
102404         Verify that it doesn't overlap with our flags.
102405         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
102406         do not have the desired effect in multibyte locales; instead, use
102407         mbscasecmp.
102408         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
102409         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
102410         we don't require GNU fnmatch ourselves (if our users require it, they
102411         should do so explicitly).
102413         Fix regex code so it doesn't rely on strcasecmp.
102414         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
102415         Otherwise, include gnulib's langinfo.h.
102416         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
102417         undesirable behavior in non-C locales.  Instead, rely on localecharset.
102418         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
102419         * modules/regex (FILES): Remove m4/codeset.m4.
102420         (Depends-on): Add localcharset.  Remove strcase.
102422 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102424         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
102425         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
102427 2007-02-13  Bruno Haible  <bruno@clisp.org>
102429         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
102430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102432 2007-02-12  Bruno Haible  <bruno@clisp.org>
102434         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
102435         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
102436         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
102437         time warning rather than a link error.
102439 2007-02-12  Bruno Haible  <bruno@clisp.org>
102441         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
102442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
102443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102445 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
102447         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
102448         args, not 2.
102450 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
102452         New module 'time', so that apps can include <time.h> as per
102453         POSIX and GNU instead of separate include files like time_r.h
102454         and timegm.h.  This implementation tries out a simpler approach
102455         for replacing decls in standard include files (as compared to
102456         the string module), somewhat as an experiment.
102458         * config/srclist.txt: Comment out mktime.c for now.
102459         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
102460         since it doesn't apply any more.  Use generic wording instead.
102461         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
102462         'time'.
102463         * lib/time_.h, m4/time_h.m4, modules/time: New files.
102464         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
102465         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
102466         Don't include <sys/types.h>; no longer needed since we assume C89.
102467         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
102468         * lib/strftime.c: Likewise.
102469         * lib/time_r.c: Likewise.
102470         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
102471         * lib/nanosleep.c: Include <time.h> first, to check interface.
102472         * lib/strptime.c: Likewise.
102473         * lib/time_r.c: Likewise.
102474         * lib/timegm.c: Likewise.
102475         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
102476         needed.
102477         * lib/timegm.c: Don't include timegm.h; no longer needed.
102478         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
102479         time.h now handles any problems in that area.
102480         (struct timespec, nanosleep): Remove; time.h now arranges for these.
102481         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
102482         that time.h defines struct timespec.
102483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
102484         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
102485         handles that.
102486         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
102487         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
102488         needed.  Set REPLACE_LOCALTIME.
102489         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
102490         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
102491         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
102492         nanosleep; time_h.m4 now does that.  Don't require
102493         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
102494         module handles this now.
102495         * modules/getdate (Depends-on): Remove timespec.  Add time.
102496         * modules/nanosleep (Depends-on): Likewise.
102497         * modules/stat-time (Depends-on): Likewise.
102498         * modules/nanosleep (Include): Include time.h, not timespec.h.
102499         * modules/strptime (Files): Remove lib/strptime.h.
102500         (Depends-on): Add extensions, time.
102501         (Include): Include time.h, not strptime.h.
102502         * modules/time_r (Files): Remove lib/time_r.h.
102503         (Depends-on): Add time.
102504         (Include): Include time.h, not time_r.h.
102505         * modules/timegm: Likewise.
102506         * modules/timespec (Description): Now does timespec-related decls
102507         of our own, instead of struct timespec itself.
102508         (Depends-on): Add time; remove extensions.
102509         (Maintainer): Add self.
102510         * modules/utimecmp (Depends-on): Add time; remove timespec.
102511         * modules/utimens (Depends-on): Likewise.
102512         * modules/xnanosleep (Depends-on): Likewise.
102514 2007-02-11  Bruno Haible  <bruno@clisp.org>
102516         * lib/c-strstr.c: Include allocsa.h.
102517         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
102518         * lib/c-strcasestr.c: Include allocsa.h.
102519         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
102520         * lib/strcasestr.c: Include allocsa.h.
102521         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
102522         * lib/mbsstr.c: Include allocsa.h.
102523         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
102524         allocsa/freesa instead of malloc/free.
102525         * lib/mbscasestr.c: Include allocsa.h.
102526         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
102527         allocsa/freesa instead of malloc/free.
102528         * modules/c-strstr (Depends-on): Add allocsa.
102529         * modules/c-strcasestr (Depends-on): Likewise.
102530         * modules/strcasestr (Depends-on): Likewise.
102531         * modules/mbsstr (Depends-on): Likewise.
102532         * modules/mbscasestr (Depends-on): Likewise.
102534 2007-02-11  Bruno Haible  <bruno@clisp.org>
102536         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
102538         * modules/mbsspn-tests: New file.
102539         * tests/test-mbsspn.sh: New file.
102540         * tests/test-mbsspn.c: New file.
102542 2007-02-11  Bruno Haible  <bruno@clisp.org>
102544         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
102546         * modules/mbspbrk-tests: New file.
102547         * tests/test-mbspbrk.sh: New file.
102548         * tests/test-mbspbrk.c: New file.
102550 2007-02-11  Bruno Haible  <bruno@clisp.org>
102552         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
102553         unneeded cast.
102555         * modules/mbscspn-tests: New file.
102556         * tests/test-mbscspn.sh: New file.
102557         * tests/test-mbscspn.c: New file.
102559 2007-02-11  Bruno Haible  <bruno@clisp.org>
102561         * modules/mbscasecmp-tests: New file.
102562         * tests/test-mbscasecmp.sh: New file.
102563         * tests/test-mbscasecmp.c: New file.
102565 2007-02-11  Bruno Haible  <bruno@clisp.org>
102567         Ensure O(n) worst-case complexity of mbscasestr.
102568         * lib/mbscasestr.c: Include stdbool.h.
102569         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
102570         functions.
102571         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
102572         the bookkeeping indicates that it's worth it.
102573         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
102575         * modules/mbscasestr-tests: New file.
102576         * tests/test-mbscasestr1.c: New file.
102577         * tests/test-mbscasestr2.sh: New file.
102578         * tests/test-mbscasestr2.c: New file.
102579         * tests/test-mbscasestr3.sh: New file.
102580         * tests/test-mbscasestr3.c: New file.
102581         * tests/test-mbscasestr4.sh: New file.
102582         * tests/test-mbscasestr4.c: New file.
102583         * m4/locale-tr.m4: New file.
102585 2007-02-11  Bruno Haible  <bruno@clisp.org>
102587         Ensure O(n) worst-case complexity of mbsstr.
102588         * lib/mbsstr.c: Include stdbool.h.
102589         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
102590         functions.
102591         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
102592         bookkeeping indicates that it's worth it.
102593         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
102595         * modules/mbsstr-tests: New file.
102596         * tests/test-mbsstr1.c: New file.
102597         * tests/test-mbsstr2.sh: New file.
102598         * tests/test-mbsstr2.c: New file.
102599         * tests/test-mbsstr3.sh: New file.
102600         * tests/test-mbsstr3.c: New file.
102601         * m4/locale-fr.m4: New file.
102603 2007-02-11  Bruno Haible  <bruno@clisp.org>
102605         * lib/mbsrchr.c (mbsrchr): Fix bug.
102607         * modules/mbsrchr-tests: New file.
102608         * tests/test-mbsrchr.sh: New file.
102609         * tests/test-mbsrchr.c: New file.
102611 2007-02-11  Bruno Haible  <bruno@clisp.org>
102613         * lib/mbschr.c (mbschr): Fix bug.
102615         * modules/mbschr-tests: New file.
102616         * tests/test-mbschr.sh: New file.
102617         * tests/test-mbschr.c: New file.
102618         * m4/locale-zh.m4: New file.
102620 2007-02-11  Bruno Haible  <bruno@clisp.org>
102622         Support for copying multibyte string iterators.
102623         * lib/mbiter.h: Include <string.h>.
102624         (mbiter_multi_copy): New function.
102625         (mbi_copy): New macro.
102626         * lib/mbuiter.h: Include <string.h>.
102627         (mbuiter_multi_copy): New function.
102628         (mbui_copy): New macro.
102630 2007-02-11  Bruno Haible  <bruno@clisp.org>
102632         New module mbslen.
102633         * modules/mbslen: New file.
102634         * lib/mbslen.c: New file.
102635         * lib/string_.h (mbslen): New declaration.
102636         * m4/mbslen.m4: New file.
102637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102638         GNULIB_MBSLEN.
102639         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
102640         * MODULES.html.sh (Internationalization functions): Add mbslen.
102642 2007-02-11  Bruno Haible  <bruno@clisp.org>
102644         Ensure O(n) worst-case complexity of strcasestr substitute.
102645         * lib/strcasestr.c: Include stdbool.h.
102646         (knuth_morris_pratt): New function.
102647         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
102648         bookkeeping indicates that it's worth it.
102649         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
102651         * modules/strcasestr-tests: New file.
102652         * tests/test-strcasestr.c: New file.
102654 2007-02-11  Bruno Haible  <bruno@clisp.org>
102656         Ensure O(n) worst-case complexity of c_strcasestr.
102657         * lib/c-strcasestr.c: Include stdbool.h, string.h.
102658         (knuth_morris_pratt): New function.
102659         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
102660         the bookkeeping indicates that it's worth it.
102661         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
102663         * modules/c-strcasestr-tests: New file.
102664         * tests/test-c-strcasestr.c: New file.
102666 2007-02-11  Bruno Haible  <bruno@clisp.org>
102668         Ensure O(n) worst-case complexity of c_strstr.
102669         * lib/c-strstr.c: Include stdbool.h, string.h.
102670         (knuth_morris_pratt): New function.
102671         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
102672         bookkeeping indicates that it's worth it.
102673         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
102675         * lib/c-strstr.c: Complete rewrite for maintainability.
102677         * modules/c-strstr-tests: New file.
102678         * tests/test-c-strstr.c: New file.
102680 2007-02-11  Bruno Haible  <bruno@clisp.org>
102682         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
102683         5.2.1 and earlier, whereby \055 was treated just like the range
102684         delimiter '-'.
102685         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102687 2007-02-08  Bruno Haible  <bruno@clisp.org>
102689         * modules/regex (Depends-on): Add stdbool.
102690         Reported by Dalibor Topic <robilad@kaffe.org>.
102692 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
102694         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
102695         Prefer returning from main to exiting from it.
102696         Remove unnecessary parens after sizeof.
102698 2007-02-05  Bruno Haible  <bruno@clisp.org>
102700         New module mbssep.
102701         * modules/mbssep: New file.
102702         * lib/mbssep.c: New file.
102703         * lib/string_.h (strsep): Add a conditional link warning.
102704         (mbssep): New declaration.
102705         * m4/mbssep.m4: New file.
102706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102707         GNULIB_MBSSEP.
102708         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
102709         * MODULES.html.sh (Internationalization functions): Add mbssep.
102711 2007-02-05  Bruno Haible  <bruno@clisp.org>
102713         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
102714         Optimize search in case of 1 delimiter.
102716 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
102718         * lib/acl.h: Include sys/types.h before sys/acl.h.
102720 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
102722         Merge upstream fix for glibc bugzilla #3957:
102724         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
102726         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
102727         bit for RE_HAT_LISTS_NOT_NEWLINE.
102728         (build_charclass_op): Remove bogus comment.
102730 2007-02-05  Simon Josefsson  <simon@josefsson.org>
102732         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
102734 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
102736         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
102737         * lib/memmem.c [!defined _LIBC]: Include config.h.
102739 2007-02-04  Bruno Haible  <bruno@clisp.org>
102741         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
102742         warning message.
102744 2007-02-04  Bruno Haible  <bruno@clisp.org>
102746         New module mbstok_r.
102747         * modules/mbstok_r: New file.
102748         * lib/mbstok_r.c: New file.
102749         * lib/string_.h (strtok_r): Change argument names to match the
102750         comments. Add a conditional link warning.
102751         (mbstok_r): New declaration.
102752         * m4/mbstok_r.m4: New file.
102753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102754         GNULIB_MBSTOK_R.
102755         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
102756         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
102758 2007-02-04  Bruno Haible  <bruno@clisp.org>
102760         New module mbsspn.
102761         * modules/mbsspn: New file.
102762         * lib/mbsspn.c: New file.
102763         * lib/string_.h (strspn): Add a conditional link warning.
102764         (mbsspn): New declaration.
102765         * m4/mbsspn.m4: New file.
102766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102767         GNULIB_MBSSPN.
102768         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
102769         * MODULES.html.sh (Internationalization functions): Add mbsspn.
102771 2007-02-04  Bruno Haible  <bruno@clisp.org>
102773         New module mbspbrk.
102774         * modules/mbspbrk: New file.
102775         * lib/mbspbrk.c: New file.
102776         * lib/string_.h (strpbrk): Add a conditional link warning.
102777         (mbspbrk): New declaration.
102778         * m4/mbspbrk.m4: New file.
102779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102780         GNULIB_MBSPBRK.
102781         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
102782         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
102784 2007-02-04  Bruno Haible  <bruno@clisp.org>
102786         New module mbscspn.
102787         * modules/mbscspn: New file.
102788         * lib/mbscspn.c: New file.
102789         * lib/string_.h (strcspn): Add a conditional link warning.
102790         (mbscspn): New declaration.
102791         * m4/mbscspn.m4: New file.
102792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102793         GNULIB_MBSCSPN.
102794         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
102795         * MODULES.html.sh (Internationalization functions): Add mbscspn.
102797 2007-02-04  Bruno Haible  <bruno@clisp.org>
102799         New module mbscasestr, reduced goal of strcasestr.
102800         * modules/mbscasestr: New file.
102801         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
102802         (mbscasestr): Renamed from strcasestr.
102803         * lib/strcasestr.c: Don't include mbuiter.h.
102804         (strcasestr): Remove support for multibyte locales.
102805         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
102806         Change the conditional link warning.
102807         (mbscasestr): New declaration.
102808         * m4/mbscasestr.m4: New file.
102809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
102810         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
102811         REPLACE_STRCASESTR.
102812         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
102813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
102814         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
102815         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
102816         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
102817         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
102818         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
102819         (Depends-on): Remove mbuiter.
102820         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
102822 2007-02-04  Bruno Haible  <bruno@clisp.org>
102824         Simplify handling of strncasecmp.
102825         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
102826         the conditional link warning.
102827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
102828         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
102829         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
102830         * modules/strcase (configure.ac): Don't invoke
102831         gl_STRING_MODULE_INDICATOR.
102832         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
102834 2007-02-04  Bruno Haible  <bruno@clisp.org>
102836         New module mbscasecmp, reduced goal of strcasecmp.
102837         * modules/mbscasecmp: New file.
102838         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
102839         (mbscasecmp): Renamed from strcasecmp.
102840         * lib/strcasecmp.c: Don't include mbuiter.h.
102841         (strcasecmp): Remove support for multibyte locales.
102842         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
102843         Change the conditional link warning.
102844         (mbscasecmp): New declaration.
102845         * m4/mbscasecmp.m4: New file.
102846         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
102847         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
102848         REPLACE_STRCASECMP.
102849         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
102850         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102851         GNULIB_MBSCASECMP.
102852         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
102853         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
102854         * modules/strcase (Files): Remove m4/mbrtowc.m4.
102855         (Depends-on): Remove mbuiter.
102856         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
102858 2007-02-04  Bruno Haible  <bruno@clisp.org>
102860         New module mbsstr. Remove module strstr.
102861         * modules/mbsstr: New file.
102862         * modules/strstr: Remove file.
102863         * lib/mbsstr.c: Renamed from lib/strstr.c.
102864         (mbsstr): Renamed from strstr.
102865         * lib/string_.h (strstr): Remove declaration. Change the conditional
102866         link warning.
102867         (mbsstr): New declaration.
102868         * m4/mbsstr.m4: New file.
102869         * m4/strstr.m4: Remove file.
102870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
102871         REPLACE_STRSTR.
102872         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
102873         Don't initialize GNULIB_STRSTR.
102874         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
102875         substitute GNULIB_STRSTR and REPLACE_STRSTR.
102876         * MODULES.html.sh (Internationalization functions): Add mbsstr.
102877         (Support for systems lacking ANSI C 89): Remove strstr.
102879 2007-02-04  Bruno Haible  <bruno@clisp.org>
102881         New module mbsrchr.
102882         * modules/mbsrchr: New file.
102883         * lib/mbsrchr.c: New file.
102884         * lib/string_.h (strrchr): Add a conditional link warning.
102885         (mbsrchr): New declaration.
102886         * m4/mbsrchr.m4: New file.
102887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102888         GNULIB_MBSRCHR.
102889         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
102890         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
102892 2007-02-04  Bruno Haible  <bruno@clisp.org>
102894         New module mbschr.
102895         * modules/mbschr: New file.
102896         * lib/mbschr.c: New file.
102897         * lib/string_.h (strchr): Add a conditional link warning.
102898         (mbschr): New declaration.
102899         * m4/mbschr.m4: New file.
102900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102901         GNULIB_MBSCHR.
102902         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
102903         * MODULES.html.sh (Internationalization functions): Add mbschr.
102905 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
102907         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
102909         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
102911 2007-02-04  Bruno Haible  <bruno@clisp.org>
102913         New module description section 'configure.ac-early'.
102914         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
102915         (func_get_autoconf_early_snippet): New function.
102916         (func_import, func_create_testdir): Use it. Remove special cases for
102917         modules 'extensions' and 'lock'.
102918         * modules/extensions (configure.ac-early): Require
102919         gl_USE_SYSTEM_EXTENSIONS.
102920         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
102922 2007-02-04  Bruno Haible  <bruno@clisp.org>
102924         Make use of gcj-4.3's -fsource and -ftarget option.
102925         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
102926         and if so try the options -fsource and -ftarget.
102927         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
102928         source_version, ftarget_option, target_version arguments.
102929         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
102930         (is_envjavac_oldgcj_14_14_usable): Renamed from
102931         is_envjavac_gcj_14_14_usable.
102932         (is_envjavac_oldgcj_14_13_usable): Renamed from
102933         is_envjavac_gcj_14_13_usable.
102934         (is_gcj_present): Update.
102935         (is_gcj_43, is_gcj43_usable): New functions.
102936         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
102937         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
102938         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
102939         try the options -fsource and -ftarget.
102941 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102943         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
102944         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
102945         larger value.
102947 2007-02-03  Jim Meyering  <jim@meyering.net>
102949         Give tools a better chance to allocate space for very large buffers.
102950         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
102952         Make pwd and readlink work also when run with an unreadable parent dir
102953         on systems with openat support.
102954         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
102955         provided getcwd function, even when we have openat support.
102956         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
102958 2007-02-02  Bruno Haible  <bruno@clisp.org>
102960         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
102961         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
102962         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
102963         portability problems if one of these functions is only used on specific
102964         platforms.
102965         Reported by Paul Eggert.
102967 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
102969         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
102970         is causing more trouble than it's curing.
102971         * lib/regex_internal.h (__mempcpy): Remove.
102972         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
102973         (and make the code a tad smaller to boot).
102974         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
102976 2007-02-02  Jim Meyering  <jim@meyering.net>
102978         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
102979         section, not in the Makefile.am: one.
102981 2007-02-02  Eric Blake  <ebb9@byu.net>
102983         * lib/strchrnul.c: Always include config.h first.
102985         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
102986         gnulib strstr is not necessary here.
102988 2007-02-02  Simon Josefsson  <simon@josefsson.org>
102990         * m4/socklen.m4: Fix typo.
102992 2007-02-02  Eric Blake  <ebb9@byu.net>
102994         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
102995         * modules/netinet_in (Makefile.am): Likewise.
102997 2007-02-01  Bruno Haible  <bruno@clisp.org>
102999         * lib/string_.h (GL_LINK_WARNING): New macro.
103000         (strcasecmp, strstr, strcasestr): If provided by the system,
103001         conditionally define as a macro that leads to a warning instead of to
103002         an error.
103003         (strncasecmp): Conditionally define as a macro that leads to a warning.
103005 2007-02-01  Karl Berry  <karl@gnu.org>
103007         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
103009 2007-02-01  Bruno Haible  <bruno@clisp.org>
103011         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
103012         renamings.
103014 2007-02-01  Eric Blake  <ebb9@byu.net>
103016         * modules/regex (Depends-on): Revert dependence on mempcpy.
103017         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
103018         module's definition of mempcpy.
103019         Reported by Paul Eggert.
103021 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
103023         * lib/string_.h: If the gnulib module XYZ is not present, undefine
103024         the symbol XYZ before redefining it.  This fixes a problem with
103025         programs that don't use XYZ, when compiled on systems that define
103026         XYZ to something else.
103028 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
103030         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
103031         occurs when "mkdir -m foo" creates a setgid directory that is (1)
103032         writeable to group or other and (2) is intended to have a special
103033         mode bit that is set or cleared.  In such a case, the directory
103034         should be neither group- nor other-writeable until the special
103035         mode bits are right.
103037 2007-01-31  Eric Blake  <ebb9@byu.net>
103039         * modules/mountlist (Depends-on): Add strstr.
103041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
103042         bug.
103043         * modules/string (Makefile.am): Remove redundant replacement.
103044         * modules/regex (Depends-on): Add mempcpy.
103046 2007-01-31  Bruno Haible  <bruno@clisp.org>
103048         New module description field 'Link'.
103049         * gnulib-tool (func_usage): Document --extract-link-directive.
103050         (sed_extract_prog): Recognize 'Link' directive.
103051         (func_get_link_directive): New function.
103052         (func_import): Show summary of link directives.
103053         Handle --extract-link-directive option.
103054         * modules/acl (Link): New section.
103055         * modules/clock-time (Link): New section.
103056         * modules/euidaccess (Link): New section.
103057         * modules/gettext (Link): New section.
103058         * modules/iconv (Link): New section.
103059         * modules/lock (Link): New section.
103060         * modules/nanosleep (Link): New section.
103061         * modules/readline (Link): New section.
103063 2007-01-27  Bruno Haible  <bruno@clisp.org>
103065         Enforce the use of gnulib modules for unportable <string.h> functions.
103066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
103067         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
103068         (gl_HEADER_STRING_H_BODY): Require it.
103069         * lib/string_.h: If the gnulib module XYZ is not present, redefine
103070         the symbol XYZ to one that gives a link error.
103071         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
103072         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
103073         * modules/mempcpy (configure.ac): Likewise.
103074         * modules/memrchr (configure.ac): Likewise.
103075         * modules/stpcpy (configure.ac): Likewise.
103076         * modules/stpncpy (configure.ac): Likewise.
103077         * modules/strcase (configure.ac): Likewise.
103078         * modules/strcasestr (configure.ac): Likewise.
103079         * modules/strchrnul (configure.ac): Likewise.
103080         * modules/strdup (configure.ac): Likewise.
103081         * modules/strndup (configure.ac): Likewise.
103082         * modules/strnlen (configure.ac): Likewise.
103083         * modules/strpbrk (configure.ac): Likewise.
103084         * modules/strsep (configure.ac): Likewise.
103085         * modules/strstr (configure.ac): Likewise.
103086         * modules/strtok_r (configure.ac): Likewise.
103088 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
103090         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
103092 2007-01-30  Jim Meyering  <jim@meyering.net>
103094         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
103096 2007-01-29  Bruno Haible  <bruno@clisp.org>
103098         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
103099         * lib/execute.c: Likewise.
103100         * lib/pipe.c: Likewise.
103101         * lib/printf-args.h: Likewise.
103102         * lib/printf-args.c: Likewise.
103103         * lib/printf-parse.c: Likewise.
103104         * lib/vasnprintf.c: Likewise.
103106 2007-01-29  Eric Blake  <ebb9@byu.net>
103108         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
103109         declaration.
103111 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
103113         * lib/strptime.h (strptime): Use 'restrict' for args where
103114         POSIX requires this.
103115         * lib/strptime.c (strptime): Likewise.
103116         Change license notice from LGPL to GPL, since gnulib-tool will
103117         change this as needed.
103118         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
103119         defined.
103120         Include "strptime.h" first, to check interface.
103121         Do not #undef _LIBC and _NL_CURRENT.
103122         Do not include <stdlib.h>; no longer needed.
103123         Include "time_r.h" and declare ptime_locale_status
103124         only if _LIBC is not defined.
103125         (__P): Remove unused macro.
103126         (match_string): Bring back glibc version, but use it only if _LIBC
103127         is defined.
103128         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
103129         Remove unnecessary assertion and abort() call.
103130         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
103131         * m4/strptime.m4: Fix serial number comment.
103132         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
103133         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
103134         (Depends-on): Add time_r.
103136 2007-01-29  Bruno Haible  <bruno@clisp.org>
103138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103139         strptime.
103140         * modules/strptime (Depends-on): Add stdbool.
103141         * lib/strptime.h: Include <time.h> always. Add comments.
103143 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103145         * modules/strptime: New file.
103146         * lib/strptime.h: New file.
103147         * lib/strptime.c: New file.
103148         * m4/strptime.m4: New file.
103150 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103152         * MODULES.html.sh: New module mpsort.
103153         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
103155         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
103156         a circularity problem with HP-UX ia64 reported by Bob Proulx in
103157         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
103158         All uses changed.
103159         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
103160         All uses changed.
103161         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
103162         to _Restrict_.
103163         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
103164         the parameter matches the prototype.
103166 2007-01-28  Jim Meyering  <jim@meyering.net>
103168         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
103169         sys/time.h here, reverting that part of the previous patch:
103170         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
103172 2007-01-28  Bruno Haible  <bruno@clisp.org>
103174         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
103175         value of $(SYS_TIME_H).
103176         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
103177         remove it conditionally, too. [added by Jim Meyering]
103178         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
103179         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
103180         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
103181         GETTIMEOFDAY_REPLACEMENT to 1.
103183 2007-01-28  Bruno Haible  <bruno@clisp.org>
103185         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
103186         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
103187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
103188         Set UNISTD_H instead of UNISTD_H2.
103189         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
103191 2007-01-28  Bruno Haible  <bruno@clisp.org>
103193         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
103194         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
103196 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103198         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
103199         (func_create_testdir): Ensure C locale for `grep' and `tr'
103200         character ranges.
103201         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
103202         ACLOCAL_AMFLAGS parsing state machine.
103204 2007-01-27  Bruno Haible  <bruno@clisp.org>
103206         * modules/unistr/base: Update.
103208 2007-01-27  Bruno Haible  <bruno@clisp.org>
103210         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
103211         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
103212         * modules/unistr/u32-mbtouc-unsafe: Renamed from
103213         modules/unistr/u32-mbtouc.
103214         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
103215         * lib/unistr.h: Update.
103216         * lib/linebreak.c: Update.
103217         * modules/unistr/u32-mbtouc: Renamed from
103218         modules/unistr/u32-mbtouc-safe.
103219         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
103220         * lib/unistr.h: Update.
103221         * lib/unistr/u32-to-u8.c: Update.
103222         * lib/unistr/u32-to-u16.c: Update.
103224 2007-01-27  Bruno Haible  <bruno@clisp.org>
103226         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
103227         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
103228         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
103229         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
103230         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
103231         * modules/unistr/u16-mbtouc-unsafe: Renamed from
103232         modules/unistr/u16-mbtouc.
103233         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
103234         * lib/unistr.h: Update.
103235         * lib/linebreak.c: Update.
103236         * modules/linebreak: Update.
103237         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
103238         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
103239         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
103240         * modules/unistr/u16-mbtouc: Renamed from
103241         modules/unistr/u16-mbtouc-safe.
103242         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
103243         * lib/unistr.h: Update.
103244         * lib/unistr/u16-to-u8.c: Update.
103245         * modules/unistr/u16-to-u8: Update.
103246         * lib/unistr/u16-to-u32.c: Update.
103247         * modules/unistr/u16-to-u32: Update.
103249 2007-01-27  Bruno Haible  <bruno@clisp.org>
103251         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
103252         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
103253         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
103254         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
103255         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
103256         * modules/unistr/u8-mbtouc-unsafe: Renamed from
103257         modules/unistr/u8-mbtouc.
103258         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
103259         * lib/unistr.h: Update.
103260         * lib/striconveh.c: Update.
103261         * modules/striconveh: Update.
103262         * lib/linebreak.c: Update.
103263         * modules/linebreak: Update.
103264         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
103265         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
103266         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
103267         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
103268         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
103269         * lib/unistr.h: Update.
103270         * lib/striconveh.c: Update.
103271         * modules/striconveh: Update.
103272         * lib/unistr/u8-to-u16.c: Update.
103273         * modules/unistr/u8-to-u16: Update.
103274         * lib/unistr/u8-to-u32.c: Update.
103275         * modules/unistr/u8-to-u32: Update.
103277 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103279         Sync from Libtool.
103280         * lib/argz.c: Do not include strings.h nor memory.h, include
103281         string.h unconditionally.  Patch by Simon Josefsson.
103283 2007-01-27  Bruno Haible  <bruno@clisp.org>
103285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
103286         from gl_HEADER_STRING_H_BODY.
103287         (gl_HEADER_STRING_H_BODY): Require it.
103288         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
103289         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
103290         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
103291         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
103292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103293         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
103294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
103295         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
103296         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
103297         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
103298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
103299         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
103300         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
103301         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
103302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103304 2007-01-27  Bruno Haible  <bruno@clisp.org>
103306         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
103307         check_PROGRAMS into noinst_PROGRAMS.
103308         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
103309         check_PROGRAMS in this case.
103310         (func_import): Set for_test to false.
103311         (func_create_testdir): Set for_test to true.
103313 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103314             Bruno Haible  <bruno@clisp.org>
103316         * modules/strcasestr (Files): Remove lib/strcasestr.h.
103317         (Depends-on): Add string.
103318         (Includes): Use <string.h> instead of strcasestr.h.
103319         * modules/string (Makefile.am): Also substitute the value of
103320         REPLACE_STRCASESTR.
103321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
103322         assume strcasestr is declared in <string.h> not <strings.h>. Also
103323         set REPLACE_STRCASESTR.
103324         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
103325         REPLACE_STRCASESTR.
103326         * lib/strcasestr.h: Remove file.
103327         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
103328         * lib/string_.h (strcasestr): New declaration.
103330 2007-01-27  Bruno Haible  <bruno@clisp.org>
103332         * lib/string_.h: Use 'extern'.
103334 2007-01-27  Jim Meyering  <jim@meyering.net>
103336         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
103337         of set-but-not-used local, "q".
103339         * lib/mempcpy.c: Include <config.h> before <string.h>.
103340         This fixes a compilation error on HP-UX, due to the system's
103341         "restrict"-using mempcpy prototype.
103343 2007-01-26  Bruno Haible  <bruno@clisp.org>
103345         Small optimization.
103346         * lib/javacomp.c: Include c-strstr.h.
103347          (is_envjavac_gcj): Use c_strstr instead of strstr.
103348         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
103350 2007-01-26  Bruno Haible  <bruno@clisp.org>
103352         * MODULES.html.sh (Unicode string functions): Add the new modules.
103354         * modules/uniconv/u32-strconv-to-locale: New file.
103355         * lib/uniconv/u32-strconv-to-locale.c: New file.
103357         * modules/uniconv/u16-strconv-to-locale: New file.
103358         * lib/uniconv/u16-strconv-to-locale.c: New file.
103360         * modules/uniconv/u8-strconv-to-locale: New file.
103361         * lib/uniconv/u8-strconv-to-locale.c: New file.
103363         * modules/uniconv/u32-strconv-from-locale: New file.
103364         * lib/uniconv/u32-strconv-from-locale.c: New file.
103366         * modules/uniconv/u16-strconv-from-locale: New file.
103367         * lib/uniconv/u16-strconv-from-locale.c: New file.
103369         * modules/uniconv/u8-strconv-from-locale: New file.
103370         * lib/uniconv/u8-strconv-from-locale.c: New file.
103372         * modules/uniconv/u32-strconv-to-enc: New file.
103373         * lib/uniconv/u32-strconv-to-enc.c: New file.
103374         * modules/uniconv/u32-strconv-to-enc-tests: New file.
103375         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
103377         * modules/uniconv/u16-strconv-to-enc: New file.
103378         * lib/uniconv/u16-strconv-to-enc.c: New file.
103379         * lib/uniconv/u-strconv-to-enc.h: New file.
103380         * modules/uniconv/u16-strconv-to-enc-tests: New file.
103381         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
103383         * modules/uniconv/u8-strconv-to-enc: New file.
103384         * lib/uniconv/u8-strconv-to-enc.c: New file.
103385         * modules/uniconv/u8-strconv-to-enc-tests: New file.
103386         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
103388         * modules/uniconv/u32-strconv-from-enc: New file.
103389         * lib/uniconv/u32-strconv-from-enc.c: New file.
103390         * modules/uniconv/u32-strconv-from-enc-tests: New file.
103391         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
103393         * modules/uniconv/u16-strconv-from-enc: New file.
103394         * lib/uniconv/u16-strconv-from-enc.c: New file.
103395         * modules/uniconv/u16-strconv-from-enc-tests: New file.
103396         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
103398         * modules/uniconv/u8-strconv-from-enc: New file.
103399         * lib/uniconv/u8-strconv-from-enc.c: New file.
103400         * lib/uniconv/u-strconv-from-enc.h: New file.
103401         * modules/uniconv/u8-strconv-from-enc-tests: New file.
103402         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
103404         * modules/uniconv/u32-conv-from-enc: New file.
103405         * lib/uniconv/u32-conv-from-enc.c: New file.
103406         * modules/uniconv/u32-conv-from-enc-tests: New file.
103407         * tests/uniconv/test-u32-conv-from-enc.c: New file.
103409         * modules/uniconv/u16-conv-from-enc: New file.
103410         * lib/uniconv/u16-conv-from-enc.c: New file.
103411         * lib/uniconv/u-conv-from-enc.h: New file.
103412         * modules/uniconv/u16-conv-from-enc-tests: New file.
103413         * tests/uniconv/test-u16-conv-from-enc.c: New file.
103415         * modules/uniconv/u8-conv-from-enc: New file.
103416         * lib/uniconv/u8-conv-from-enc.c: New file.
103417         * modules/uniconv/u8-conv-from-enc-tests: New file.
103418         * tests/uniconv/test-u8-conv-from-enc.c: New file.
103420         * modules/uniconv/base: New file.
103421         * lib/uniconv.h: New file.
103423 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
103425         * doc/gnulib-tool.texi (Initial import): Update to match current
103426         behavior with strdup module.
103427         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
103428         * lib/memmem.h: Remove; all uses removed.  This is now done
103429         by <string.h>.
103430         * lib/mempcpy.h: Likewise.
103431         * lib/memrchr.h: Likewise.
103432         * lib/stpcpy.h: Likewise.
103433         * lib/stpncpy.h: Likewise.
103434         * lib/strcase.h: Likewise.
103435         * lib/strchrnul.h: Likewise.
103436         * lib/strdup.h: Likewise.
103437         * lib/strndup.h: Likewise.
103438         * lib/strnlen.h: Likewise.
103439         * lib/strpbrk.h: Likewise.
103440         * lib/strsep.h: Likewise.
103441         * lib/strstr.h: Likewise.
103442         * lib/strtok_r.h: Likewise.
103443         * lib/string_.h: New file.
103444         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
103445         Rely on <string.h> instead.
103446         * lib/canon-host.c: Likewise.
103447         * lib/chdir-long.c: Likewise.
103448         * lib/concatpath.c: Likewise.
103449         * lib/exclude.c: Likewise.
103450         * lib/fchdir.c: Likewise.
103451         * lib/getaddrinfo.c: Likewise.
103452         * lib/getcwd.c: Likewise.
103453         * lib/getsubopt.c: Likewise.
103454         * lib/glob.c: Likewise.
103455         * lib/hard-locale.c: Likewise.
103456         * lib/iconvme.c: Likewise.
103457         * lib/javacomp.c: Likewise.
103458         * lib/mempcpy.c: Likewise.
103459         * lib/memrchr.c: Likewise.
103460         * lib/regex_internal.h: Likewise.
103461         * lib/stpncpy.c: Likewise.
103462         * lib/strcasecmp.c: Likewise.
103463         * lib/strchrnul.c: Likewise.
103464         * lib/strdup.c: Likewise.
103465         * lib/striconv.c: Likewise.
103466         * lib/striconveh.c: Likewise.
103467         * lib/striconveha.c: Likewise.
103468         * lib/strncasecmp.c: Likewise.
103469         * lib/strndup.c: Likewise.
103470         * lib/strnlen.c: Likewise.
103471         * lib/strsep.c: Likewise.
103472         * lib/strstr.c: Likewise.
103473         * lib/strtok_r.c: Likewise.
103474         * lib/userspec.c: Likewise.
103475         * lib/w32spawn.h: Likewise.
103476         * lib/xstrndup.c: Likewise.
103477         * lib/mountlist.c (strstr): Remove decl.
103478         * m4/string_h.m4: New file.
103479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
103480         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
103481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
103482         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
103483         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
103484         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
103485         Set REPLACE_STRCASECMP if necessary.
103486         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
103487         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
103488         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
103489         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
103490         HAVE_DECL_STRDUP if necessary.
103491         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
103492         since gl_FUNC_STRNDUP does that now.
103493         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
103494         Check for decl here...
103495         (gl_PREREQ_STRNLEN): ... not here.
103496         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
103497         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
103498         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
103499         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
103500         necessary.
103501         * modules/string: New file.
103502         * modules/memmem (Files): Remove special-purpose include file.
103503         (Depends-on): Add string.
103504         (Include): Include <string.h>, not the removed file.
103505         * modules/mempcpy: Likewise.
103506         * modules/memrchr: Likewise.
103507         * modules/stpcpy: Likewise.
103508         * modules/stpncpy: Likewise.
103509         * modules/strcase: Likewise.
103510         * modules/strchrnul: Likewise.
103511         * modules/strdup: Likewise.
103512         * modules/strndup: Likewise.
103513         * modules/strnlen: Likewise.
103514         * modules/strpbrk: Likewise.
103515         * modules/strsep: Likewise.
103516         * modules/strstr: Likewise.
103517         * modules/strtok_r: Likewise.
103518         * tests/test-dirname.c: Don't include "strdup.h", since
103519         <string.h> now suffices.
103520         * tests/test-memmem.c: Don't include "memmem.h", since
103521         <string.h> now suffices.
103523 2007-01-25  Bruno Haible  <bruno@clisp.org>
103525         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
103526         *resultp is 0.
103528         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
103529         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
103530         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
103531         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
103533         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
103534         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
103535         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
103536         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
103537         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
103538         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
103540 2007-01-24  Bruno Haible  <bruno@clisp.org>
103542         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
103543         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
103544         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
103545         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
103546         gl_FUNC_FTS_CORE.
103547         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
103548         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
103549         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103550         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
103551         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
103552         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
103553         gl_FUNC_FCHOWNAT.
103554         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
103555         gl_FUNC_STRFTIME.
103556         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
103557         Reported by Ralf Wildenhues.
103559 2007-01-24  Bruno Haible  <bruno@clisp.org>
103561         Drop AC_REQUIRE calls that are redundant with the module dependencies.
103562         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
103563         gl_GETADDRINFO.
103564         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
103565         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
103566         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
103568 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
103570         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
103571         Don't use 'exit'; just return from 'main'.
103572         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
103574         * lib/fnmatch_.h: Readjust white space and comments to match
103575         glibc, to avoid spurious diffs.
103577 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103579         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
103580         2004-12-01 change by Jakub Jelinek, since this code won't compile
103581         if !LIBC.  Problem reported by Bob Proulx.
103583 2007-01-23  Bruno Haible  <bruno@clisp.org>
103585         * lib/striconveh.c: Include c-strcaseeq.h.
103586         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
103587         * modules/striconveh (Depends-on): Add c-strcaseeq.
103589 2007-01-23  Bruno Haible  <bruno@clisp.org>
103591         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
103593         * modules/c-strcaseeq: New file.
103594         * lib/c-strcaseeq.h: New file.
103596         * modules/streq: New file.
103597         * lib/streq.h: New file.
103599 2007-01-23  Bruno Haible  <bruno@clisp.org>
103601         * modules/striconveha-tests: New file.
103602         * tests/test-striconveha.c: New file.
103604         * lib/striconveha.h: Include <stdbool.h>.
103605         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
103606         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
103607         (mem_iconveha_notranslit): Renamed from mem_iconveha.
103608         (mem_iconveha): New function.
103609         (str_iconveha_notranslit): Renamed from str_iconveha.
103610         (str_iconveha): New function.
103611         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
103612         c-strcase.
103614 2007-01-23  Bruno Haible  <bruno@clisp.org>
103616         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
103617         encodings without forgiving before trying any encoding with handler.
103618         (str_iconveha): Try all encodings without forgiving before trying any
103619         encoding with handler.
103621 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103623         Import the following changes from libc.
103625         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
103627         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
103629         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
103631         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
103632         normal_bracket label.
103634         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
103636         [BZ #361]
103637         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
103638         to normal_bracket after fetching the next character.
103640 2007-01-22  Bruno Haible  <bruno@clisp.org>
103642         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
103643         argument.
103644         * lib/striconveh.c (iconv_carefully_1): New function.
103645         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
103646         argument.
103647         (str_cd_iconveh): Update.
103648         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
103649         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
103650         * tests/test-striconveh.c (MAGIC): New macro.
103651         (new_offsets): New function.
103652         (main): Test call with and without offsets.
103654 2007-01-22  Bruno Haible  <bruno@clisp.org>
103656         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
103657         * modules/sys_select (Makefile.am): Likewise.
103658         * modules/sys_socket (Makefile.am): Likewise.
103659         * modules/sys_time (Makefile.am): Likewise.
103661 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
103663         * modules/gettimeofday (License): Change from GPL to LGPL, since
103664         gettimeofday is a library function.
103666 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103668         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
103670 2007-01-21  Bruno Haible  <bruno@clisp.org>
103672         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
103674 2007-01-21  Bruno Haible  <bruno@clisp.org>
103676         * modules/striconveha: New file.
103677         * lib/striconveha.h: New file.
103678         * lib/striconveha.c: New file.
103679         * MODULES.html.sh (Internationalization functions): Add striconveha.
103680         * lib/striconv.c (str_iconv): Optimize the case of an empty input
103681         string.
103682         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
103684 2007-01-21  Bruno Haible  <bruno@clisp.org>
103686         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
103687         * lib/striconveh.c (str_iconveh): Likewise.
103689 2007-01-21  Bruno Haible  <bruno@clisp.org>
103691         * lib/striconveh.h (mem_iconveh): New declaration.
103692         * lib/striconveh.c (mem_iconveh): New function.
103693         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
103695 2007-01-21  Bruno Haible  <bruno@clisp.org>
103697         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
103699         * lib/striconveh.h (mem_cd_iconveh): Change specification.
103700         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
103701         original result buffer.
103702         (str_cd_iconveh): Update.
103703         * tests/test-striconveh.c (main): Update.
103705         * lib/striconv.h (mem_cd_iconv): Change specification.
103706         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
103707         result buffer.
103708         (str_cd_iconv): Update.
103709         * tests/test-striconv.c (main): Update.
103711 2007-01-21  Bruno Haible  <bruno@clisp.org>
103713         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
103715 2007-01-20  Jim Meyering  <jim@meyering.net>
103717         * lib/userspec.c (parse_with_separator): If a user or group string
103718         starts with "+", skip the corresponding name-to-ID look-up, since
103719         such a look-up must fail: user and group names may not include "+".
103721 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
103723         * lib/poll.c: Include sys/time.h and time.h unconditionally,
103724         since we now assume the sys_time module.
103725         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
103726         check for sys/time.h; no longer needed.
103727         * modules/poll (Depends-on): Depend on sys_time.
103729 2007-01-18  Bruno Haible  <bruno@clisp.org>
103731         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
103732         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
103734         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
103735         gettimeofday.
103737         * tests/test-gettimeofday.c: Include <time.h>.
103738         (dummy): Remove variable.
103740         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
103741         gl_HEADER_SYS_TIME_H.
103742         (gl_HEADER_SYS_TIME_H): New macro.
103744         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
103745         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103746         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
103747         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
103748         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103749         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
103750         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
103751         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103752         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
103753         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
103754         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103756         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
103757         last change; it caused a compilation error when cross-compiling to
103758         Cygwin.
103760 2007-01-18  Jim Meyering  <jim@meyering.net>
103762         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
103763         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
103764         than the race-prone "test -d sys || mkdir sys".
103765         (configure.ac): Use AC_PROG_MKDIR_P.
103766         * modules/sys_select: Likewise.
103767         * modules/sys_socket: Likewise.
103768         * modules/sys_time: Likewise.
103770 2007-01-18  Eric Blake  <ebb9@byu.net>
103772         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
103773         replace gettimeofday.
103774         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
103775         name, to avoid infinite recursion.
103777 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
103779         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
103780         module sys_time.
103781         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
103782         assume timespec.h defines struct timeval.
103783         * lib/settime.c: Likewise.
103784         * lib/utimens.c: Likewise.
103785         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
103786         since we now assume the gettimeofday module.
103787         * lib/tempname.c (__gen_tempname): Likewise.
103788         * lib/gettimeofday.h: Remove.
103789         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
103790         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
103791         Include <time.h>, for 'time()'.
103792         (localtime_buffer_addr): Also use this workaround if
103793         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
103794         to simplify the uses.  All uses changed.
103795         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
103796         that #undef is inside {}, and 'const' follows type name consistently.
103797         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
103798         (gettimeofday): Do not use the maximum possible value for
103799         tv->tv_usec, since that might break usages other than ls.c.
103800         Instead, we'll leave ls.c alone.  This undoes today's patch
103801         by Bruno.  Add a compile-time warning for 1s-clock resolution;
103802         we've never observed the problem but might as well keep the
103803         canary.
103804         * lib/nanosleep.c: Include timespec.h first, for interface check.
103805         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
103806         now assume the sys_time module.
103807         * lib/tempname.c: Likewise.
103808         * lib/timespec.h: Likewise.
103809         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
103810         needed.
103811         * lib/strftime.c: Likewise.
103812         * lib/timespec.h: Likewise.
103813         * lib/posixtm.c: Include posixtm.h first, for interface check.
103814         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
103815         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
103816         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
103817         * lib/sys_time_.h: New file.
103818         * lib/timespec.h (struct timespec): Use long int, not long.
103819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
103820         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
103821         Remove obsolescent call to AC_HEADER_TIME.
103822         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
103823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
103824         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
103825         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
103826         Likewise.
103827         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
103828         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
103829         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
103830         into the sys_time module.  Check for gettimeofday just once.
103831         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
103832         for gettimeofday signature to just check the signature.  Merely
103833         compile it, since linking doesn't test signature.  Improve test for
103834         whether gettimeofday.o is actually needed.
103835         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
103836         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
103837         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
103838         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103839         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
103840         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
103841         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
103842         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
103843         than worrying about sys/time.h.
103844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103845         Don't bother worrying about TIME_WITH_SYS_TIME.
103846         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
103847         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
103848         * m4/sys_time_h.m4: New file.
103849         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
103850         Don't include sys/time.h.  Return from main rather than exiting.
103851         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
103852         all uses changed.
103853         * modules/gethrxtime (Depends-on): Add sys_time.
103854         * modules/gettime (Depends-on): Likewise.
103855         * modules/gettimeofday (Depends-on): Likewise.
103856         * modules/nanosleep (Depends-on): Likewise.
103857         * modules/settime (Depends-on): Likewise.
103858         * modules/tempname (Depends-on): Likewise.
103859         * modules/utimens (Depends-on): Likewise.
103860         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
103861         (Include): Change back to <sys/time.h>.
103862         (Maintainer): Add self.
103863         * modules/sys_time: New file.
103864         * modules/tempname (Depends-on): Add gettimeofday.
103865         * tests/test-gettimeofday.c: Include <sys/time.h>
103866         rather than gettimeofday.h.
103868 2007-01-17  Bruno Haible  <bruno@clisp.org>
103870         * gnulib-tool (func_get_license): Revert last patch. Instead, let
103871         the license default to GPL.
103872         (func_create_testdir): Don't complain if a module is LGPL and its
103873         tests module depends on GPLed modules.
103875 2007-01-17  Bruno Haible  <bruno@clisp.org>
103877         * lib/gettimeofday.c (gettimeofday): Add code for the case
103878         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
103879         maximum possible value for tv->tv_usec, rather than the minimum one.
103881 2005-10-08  Martin Lambers  <marlam@marlam.de>
103882 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
103883 2007-01-16  Bruno Haible  <bruno@clisp.org>
103885         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
103886         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
103887         gl_FUNC_GETTIMEOFDAY.
103888         (Include): Add gettimeofday.h.
103889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
103890         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
103891         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
103892         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
103893         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
103894         * lib/gettimeofday.h: New file.
103895         * lib/gettimeofday.c: Include <sys/timeb.h>.
103896         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
103897         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103898         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
103899         fall back on time().
103901         * tests/test-gettimeofday.c: New file.
103902         * modules/gettimeofday-tests: New file.
103904 2007-01-16  Eric Blake  <ebb9@byu.net>
103906         * modules/fnmatch (Depends-on): Depend on wchar.
103907         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
103908         * m4/fnmatch.m4: Likewise.
103909         * modules/mbchar (Makefile.am): Assume <wchar.h>.
103910         * m4/mbchar.m4: Likewise.
103911         * modules/mbswidth (Depends-on): Depend on wchar.
103912         * lib/mbswidth.c: Assume <wchar.h>.
103913         * m4/mbswidth.m4: Likewise.
103914         * modules/quotearg (Depends-on): Depend on wchar.
103915         * lib/quotearg.c: Assume <wchar.h>.
103916         * m4/quotearg.m4: Likewise.
103917         * modules/regex (Depends-on): Depend on wchar.
103918         * lib/regex_internal.h: Assume <wchar.h>.
103919         * m4/regex.m4: Likewise.
103920         * modules/stdint (Depends-on): Depend on wchar.
103921         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
103922         * m4/stdint.m4: Likewise.
103923         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
103924         * modules/strftime (Depends-on): Depend on wchar.
103925         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
103926         * modules/strtol (Depends-on): Depend on wchar.
103927         * lib/strtol.c: Assume <wchar.h>.
103928         * modules/wcwidth (Depends-on): Depend on wchar.
103929         * lib/wcwidth.h: Assume <wchar.h>.
103930         * m4/wcwidth.m4: Likewise.
103932 2007-01-16  Bruno Haible  <bruno@clisp.org>
103934         * modules/csharpexec-script: New, created from...
103935         * modules/csharpexec: ... this.
103937 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
103939         * modules/javaexec-script: New, created from...
103940         * modules/javaexec: ... this.
103942 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103944         * modules/poll (Dependencies): Add sys_select.
103946 2007-01-15  Jim Meyering  <jim@meyering.net>
103948         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
103949         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
103950         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
103951         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
103953 2007-01-15  Bruno Haible  <bruno@clisp.org>
103955         * modules/striconveh: New file.
103956         * lib/striconveh.h: New file.
103957         * lib/striconveh.c: New file.
103958         * MODULES.html.sh (Internationalization functions): Add striconveh.
103960         * modules/striconveh-tests: New file.
103961         * tests/test-striconveh.c: New file.
103963 2007-01-15  Bruno Haible  <bruno@clisp.org>
103965         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
103966         not from GNU libiconv or GNU libc.
103968 2007-01-15  Bruno Haible  <bruno@clisp.org>
103970         * doc/gnulib-intro.texi (Copyright): Explain the different license
103971         terms for module descriptions, autoconf macros, tests, documentation.
103973 2007-01-14  Bruno Haible  <bruno@clisp.org>
103975         * modules/striconv-tests: New file.
103976         * tests/test-striconv.c: New file.
103978 2007-01-14  Bruno Haible  <bruno@clisp.org>
103980         * modules/iconv-tests: New file.
103981         * tests/test-iconv.c: New file.
103983 2007-01-14  Bruno Haible  <bruno@clisp.org>
103985         * gnulib-tool (func_get_license): For test modules, use the license of
103986         the main module.
103988 2007-01-14  Bruno Haible  <bruno@clisp.org>
103990         * modules/iconv (Include): Clarify that <iconv.h> can only be included
103991         if iconv is found to exist.
103993 2007-01-14  Bruno Haible  <bruno@clisp.org>
103995         * modules/c-ctype-tests: New file.
103996         * tests/test-c-ctype.c: New file.
103998 2007-01-14  Bruno Haible  <bruno@clisp.org>
104000         * modules/binary-io-tests: New file.
104001         * tests/test-binary-io.sh: New file.
104002         * tests/test-binary-io.c: New file.
104004 2007-01-14  Bruno Haible  <bruno@clisp.org>
104006         * modules/array-oset-tests: New file.
104007         * tests/test-array_oset.c: New file.
104009 2007-01-14  Bruno Haible  <bruno@clisp.org>
104011         * modules/array-list-tests: New file.
104012         * tests/test-array_list.c: New file.
104014 2007-01-14  Bruno Haible  <bruno@clisp.org>
104016         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
104017         and make.
104018         Reported by Simon Josefsson in
104019         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
104021 2007-01-14  Bruno Haible  <bruno@clisp.org>
104023         * modules/allocsa-tests: New file.
104024         * tests/test-allocsa.c: New file.
104026 2007-01-14  Bruno Haible  <bruno@clisp.org>
104028         * modules/fchdir (Depends-on): Add absolute-header.
104029         * modules/unistd (Depends-on): Likewise.
104031 2006-12-30  Bruno Haible  <bruno@clisp.org>
104033         * modules/fchdir: New file.
104034         * modules/unistd (Files): Add lib/unistd_.h.
104035         (Makefile.am): Generate unistd.h from unistd_.h.
104036         * lib/fchdir.c: New file.
104037         * lib/dirent_.h: New file.
104038         * lib/unistd_.h: New file.
104039         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
104040         * m4/fchdir.m4: New file.
104041         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
104042         (gl_HEADER_UNISTD): Invoke it.
104043         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
104044         function.
104045         * lib/backupfile.c (opendir, closedir): Undefine.
104046         * lib/chown.c (open, close): Undefine.
104047         * lib/clean-temp.c (open, close): Undefine.
104048         * lib/copy-file.c (open, close): Undefine.
104049         * lib/execute.c (open, close): Undefine.
104050         * lib/fsusage.c (open, close): Undefine.
104051         * lib/gc-gnulib.c (open, close): Undefine.
104052         * lib/getcwd.c (opendir, closedir): Undefine.
104053         * lib/glob.c (opendir, closedir): Undefine.
104054         * lib/javacomp.c (open, close): Undefine.
104055         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
104056         * lib/openat-proc.c (open, close): Undefine.
104057         * lib/pagealign_alloc.c (open, close): Undefine.
104058         * lib/pipe.c (open, close): Undefine.
104059         * lib/progreloc.c (open, close): Undefine.
104060         * lib/savedir.c (opendir, closedir): Undefine.
104061         * lib/utime.c (open, close): Undefine.
104062         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
104064 2007-01-10  Bruno Haible  <bruno@clisp.org>
104066         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
104068 2007-01-12  Eric Blake  <ebb9@byu.net>
104070         Provide a robust <wchar.h>.  Further simplifications are now
104071         possible in other modules, but not included here.
104072         * modules/wchar: New module.
104073         * m4/wchar.m4: New file.
104074         * lib/wchar_.h: Likewise.
104075         * modules/mbchar (Depends-on): Depend on wchar, as the first use
104076         of the new module.
104077         * MODULES.html.sh (Extended multibyte and wide character utilities):
104078         New section.
104080 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
104082         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
104083         to a reasonable default for memory allocation.
104084         (xreadlink): Don't allocate a huge buffer, to work around a buggy
104085         file system that reports garbage st_size values for symlinks.
104086         Problem reported by Liyang Hu.
104088 2007-01-11  Simon Josefsson  <simon@josefsson.org>
104090         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
104091         Emacs .#* auto-save files).
104093 2007-01-11  Bruno Haible  <bruno@clisp.org>
104095         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
104096         directory.
104098 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
104100         Use @...@ consistently in lib/wctype_.h.
104101         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
104102         on it being set to 1 or 0.
104103         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
104104         go back to AC_SUBSTing it.
104105         * modules/wctype (Makefile.am): Undo previous change.
104107 2007-01-10  Eric Blake  <ebb9@byu.net>
104109         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
104110         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
104111         * modules/wctype (Makefile.am): Likewise.
104112         Reported by Chris McGuire.
104114 2007-01-10  Jim Meyering  <jim@meyering.net>
104116         fts.c: a small readability/maintainability improvement
104117         * lib/fts.c (fts_read): Make this code slightly more readable and
104118         maintainable by hoisting the "sp->fts_cur = p" assignments to
104119         immediately follow the statements that set P.  Derived from
104120         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
104122 2007-01-10  Eric Blake  <ebb9@byu.net>
104124         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
104125         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
104126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
104127         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
104128         Reported by Chris McGuire.
104130 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104132         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
104133         in sed script.
104135 2007-01-09  Bruno Haible  <bruno@clisp.org>
104137         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
104138         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
104139         variables.
104140         (func_module): Use them.
104142 2007-01-09  Bruno Haible  <bruno@clisp.org>
104144         * modules/unistr/base: New file.
104145         * lib/unistr.h: New file.
104147         * modules/unistr/u8-to-u16: New file.
104148         * lib/unistr/u8-to-u16.c: New file.
104150         * modules/unistr/u8-to-u32: New file.
104151         * lib/unistr/u8-to-u32.c: New file.
104153         * modules/unistr/u16-to-u8: New file.
104154         * lib/unistr/u16-to-u8.c: New file.
104156         * modules/unistr/u16-to-u32: New file.
104157         * lib/unistr/u16-to-u32.c: New file.
104159         * modules/unistr/u32-to-u8: New file.
104160         * lib/unistr/u32-to-u8.c: New file.
104162         * modules/unistr/u32-to-u16: New file.
104163         * lib/unistr/u32-to-u16.c: New file.
104165         * modules/unistr/u8-check: New file.
104166         * modules/unistr/u16-check: New file.
104167         * modules/unistr/u32-check: New file.
104168         * lib/unistr/u8-check.c: New file.
104169         * lib/unistr/u16-check.c: New file.
104170         * lib/unistr/u32-check.c: New file.
104172         * modules/unistr/u8-chr: New file.
104173         * modules/unistr/u16-chr: New file.
104174         * modules/unistr/u32-chr: New file.
104175         * lib/unistr/u8-chr.c: New file.
104176         * lib/unistr/u16-chr.c: New file.
104177         * lib/unistr/u32-chr.c: New file.
104179         * modules/unistr/u8-cmp: New file.
104180         * modules/unistr/u16-cmp: New file.
104181         * modules/unistr/u32-cmp: New file.
104182         * lib/unistr/u8-cmp.c: New file.
104183         * lib/unistr/u16-cmp.c: New file.
104184         * lib/unistr/u32-cmp.c: New file.
104186         * modules/unistr/u8-cpy: New file.
104187         * modules/unistr/u16-cpy: New file.
104188         * modules/unistr/u32-cpy: New file.
104189         * lib/unistr/u8-cpy.c: New file.
104190         * lib/unistr/u16-cpy.c: New file.
104191         * lib/unistr/u32-cpy.c: New file.
104192         * lib/unistr/u-cpy.h: New file.
104194         * modules/unistr/u8-cpy-alloc: New file.
104195         * modules/unistr/u16-cpy-alloc: New file.
104196         * modules/unistr/u32-cpy-alloc: New file.
104197         * lib/unistr/u8-cpy-alloc.c: New file.
104198         * lib/unistr/u16-cpy-alloc.c: New file.
104199         * lib/unistr/u32-cpy-alloc.c: New file.
104200         * lib/unistr/u-cpy-alloc.h: New file.
104202         * modules/unistr/u8-endswith: New file.
104203         * modules/unistr/u16-endswith: New file.
104204         * modules/unistr/u32-endswith: New file.
104205         * lib/unistr/u8-endswith.c: New file.
104206         * lib/unistr/u16-endswith.c: New file.
104207         * lib/unistr/u32-endswith.c: New file.
104208         * lib/unistr/u-endswith.h: New file.
104210         * modules/unistr/u8-mblen: New file.
104211         * modules/unistr/u16-mblen: New file.
104212         * modules/unistr/u32-mblen: New file.
104213         * lib/unistr/u8-mblen.c: New file.
104214         * lib/unistr/u16-mblen.c: New file.
104215         * lib/unistr/u32-mblen.c: New file.
104217         * modules/unistr/u8-mbtouc: New file.
104218         * modules/unistr/u16-mbtouc: New file.
104219         * modules/unistr/u32-mbtouc: New file.
104220         * lib/unistr/u8-mbtouc.c: New file.
104221         * lib/unistr/u16-mbtouc.c: New file.
104222         * lib/unistr/u32-mbtouc.c: New file.
104224         * modules/unistr/u8-mbtouc-safe: New file.
104225         * modules/unistr/u16-mbtouc-safe: New file.
104226         * modules/unistr/u32-mbtouc-safe: New file.
104227         * lib/unistr/u8-mbtouc-safe.c: New file.
104228         * lib/unistr/u16-mbtouc-safe.c: New file.
104229         * lib/unistr/u32-mbtouc-safe.c: New file.
104231         * modules/unistr/u8-move: New file.
104232         * modules/unistr/u16-move: New file.
104233         * modules/unistr/u32-move: New file.
104234         * lib/unistr/u8-move.c: New file.
104235         * lib/unistr/u16-move.c: New file.
104236         * lib/unistr/u32-move.c: New file.
104237         * lib/unistr/u-move.h: New file.
104239         * modules/unistr/u8-next: New file.
104240         * modules/unistr/u16-next: New file.
104241         * modules/unistr/u32-next: New file.
104242         * lib/unistr/u8-next.c: New file.
104243         * lib/unistr/u16-next.c: New file.
104244         * lib/unistr/u32-next.c: New file.
104246         * modules/unistr/u8-prev: New file.
104247         * modules/unistr/u16-prev: New file.
104248         * modules/unistr/u32-prev: New file.
104249         * lib/unistr/u8-prev.c: New file.
104250         * lib/unistr/u16-prev.c: New file.
104251         * lib/unistr/u32-prev.c: New file.
104253         * modules/unistr/u8-set: New file.
104254         * modules/unistr/u16-set: New file.
104255         * modules/unistr/u32-set: New file.
104256         * lib/unistr/u8-set.c: New file.
104257         * lib/unistr/u16-set.c: New file.
104258         * lib/unistr/u32-set.c: New file.
104259         * lib/unistr/u-set.h: New file.
104261         * modules/unistr/u8-startswith: New file.
104262         * modules/unistr/u16-startswith: New file.
104263         * modules/unistr/u32-startswith: New file.
104264         * lib/unistr/u8-startswith.c: New file.
104265         * lib/unistr/u16-startswith.c: New file.
104266         * lib/unistr/u32-startswith.c: New file.
104267         * lib/unistr/u-startswith.h: New file.
104269         * modules/unistr/u8-stpcpy: New file.
104270         * modules/unistr/u16-stpcpy: New file.
104271         * modules/unistr/u32-stpcpy: New file.
104272         * lib/unistr/u8-stpcpy.c: New file.
104273         * lib/unistr/u16-stpcpy.c: New file.
104274         * lib/unistr/u32-stpcpy.c: New file.
104275         * lib/unistr/u-stpcpy.h: New file.
104277         * modules/unistr/u8-stpncpy: New file.
104278         * modules/unistr/u16-stpncpy: New file.
104279         * modules/unistr/u32-stpncpy: New file.
104280         * lib/unistr/u8-stpncpy.c: New file.
104281         * lib/unistr/u16-stpncpy.c: New file.
104282         * lib/unistr/u32-stpncpy.c: New file.
104283         * lib/unistr/u-stpncpy.h: New file.
104285         * modules/unistr/u8-strcat: New file.
104286         * modules/unistr/u16-strcat: New file.
104287         * modules/unistr/u32-strcat: New file.
104288         * lib/unistr/u8-strcat.c: New file.
104289         * lib/unistr/u16-strcat.c: New file.
104290         * lib/unistr/u32-strcat.c: New file.
104291         * lib/unistr/u-strcat.h: New file.
104293         * modules/unistr/u8-strchr: New file.
104294         * modules/unistr/u16-strchr: New file.
104295         * modules/unistr/u32-strchr: New file.
104296         * lib/unistr/u8-strchr.c: New file.
104297         * lib/unistr/u16-strchr.c: New file.
104298         * lib/unistr/u32-strchr.c: New file.
104300         * modules/unistr/u8-strcmp: New file.
104301         * modules/unistr/u16-strcmp: New file.
104302         * modules/unistr/u32-strcmp: New file.
104303         * lib/unistr/u8-strcmp.c: New file.
104304         * lib/unistr/u16-strcmp.c: New file.
104305         * lib/unistr/u32-strcmp.c: New file.
104307         * modules/unistr/u8-strcpy: New file.
104308         * modules/unistr/u16-strcpy: New file.
104309         * modules/unistr/u32-strcpy: New file.
104310         * lib/unistr/u8-strcpy.c: New file.
104311         * lib/unistr/u16-strcpy.c: New file.
104312         * lib/unistr/u32-strcpy.c: New file.
104313         * lib/unistr/u-strcpy.h: New file.
104315         * modules/unistr/u8-strcspn: New file.
104316         * modules/unistr/u16-strcspn: New file.
104317         * modules/unistr/u32-strcspn: New file.
104318         * lib/unistr/u8-strcspn.c: New file.
104319         * lib/unistr/u16-strcspn.c: New file.
104320         * lib/unistr/u32-strcspn.c: New file.
104321         * lib/unistr/u-strcspn.h: New file.
104323         * modules/unistr/u8-strdup: New file.
104324         * modules/unistr/u16-strdup: New file.
104325         * modules/unistr/u32-strdup: New file.
104326         * lib/unistr/u8-strdup.c: New file.
104327         * lib/unistr/u16-strdup.c: New file.
104328         * lib/unistr/u32-strdup.c: New file.
104329         * lib/unistr/u-strdup.h: New file.
104331         * modules/unistr/u8-strlen: New file.
104332         * modules/unistr/u16-strlen: New file.
104333         * modules/unistr/u32-strlen: New file.
104334         * lib/unistr/u8-strlen.c: New file.
104335         * lib/unistr/u16-strlen.c: New file.
104336         * lib/unistr/u32-strlen.c: New file.
104337         * lib/unistr/u-strlen.h: New file.
104339         * modules/unistr/u8-strmblen: New file.
104340         * modules/unistr/u16-strmblen: New file.
104341         * modules/unistr/u32-strmblen: New file.
104342         * lib/unistr/u8-strmblen.c: New file.
104343         * lib/unistr/u16-strmblen.c: New file.
104344         * lib/unistr/u32-strmblen.c: New file.
104346         * modules/unistr/u8-strmbtouc: New file.
104347         * modules/unistr/u16-strmbtouc: New file.
104348         * modules/unistr/u32-strmbtouc: New file.
104349         * lib/unistr/u8-strmbtouc.c: New file.
104350         * lib/unistr/u16-strmbtouc.c: New file.
104351         * lib/unistr/u32-strmbtouc.c: New file.
104353         * modules/unistr/u8-strncat: New file.
104354         * modules/unistr/u16-strncat: New file.
104355         * modules/unistr/u32-strncat: New file.
104356         * lib/unistr/u8-strncat.c: New file.
104357         * lib/unistr/u16-strncat.c: New file.
104358         * lib/unistr/u32-strncat.c: New file.
104359         * lib/unistr/u-strncat.h: New file.
104361         * modules/unistr/u8-strncmp: New file.
104362         * modules/unistr/u16-strncmp: New file.
104363         * modules/unistr/u32-strncmp: New file.
104364         * lib/unistr/u8-strncmp.c: New file.
104365         * lib/unistr/u16-strncmp.c: New file.
104366         * lib/unistr/u32-strncmp.c: New file.
104368         * modules/unistr/u8-strncpy: New file.
104369         * modules/unistr/u16-strncpy: New file.
104370         * modules/unistr/u32-strncpy: New file.
104371         * lib/unistr/u8-strncpy.c: New file.
104372         * lib/unistr/u16-strncpy.c: New file.
104373         * lib/unistr/u32-strncpy.c: New file.
104374         * lib/unistr/u-strncpy.h: New file.
104376         * modules/unistr/u8-strnlen: New file.
104377         * modules/unistr/u16-strnlen: New file.
104378         * modules/unistr/u32-strnlen: New file.
104379         * lib/unistr/u8-strnlen.c: New file.
104380         * lib/unistr/u16-strnlen.c: New file.
104381         * lib/unistr/u32-strnlen.c: New file.
104382         * lib/unistr/u-strnlen.h: New file.
104384         * modules/unistr/u8-strpbrk: New file.
104385         * modules/unistr/u16-strpbrk: New file.
104386         * modules/unistr/u32-strpbrk: New file.
104387         * lib/unistr/u8-strpbrk.c: New file.
104388         * lib/unistr/u16-strpbrk.c: New file.
104389         * lib/unistr/u32-strpbrk.c: New file.
104390         * lib/unistr/u-strpbrk.h: New file.
104392         * modules/unistr/u8-strrchr: New file.
104393         * modules/unistr/u16-strrchr: New file.
104394         * modules/unistr/u32-strrchr: New file.
104395         * lib/unistr/u8-strrchr.c: New file.
104396         * lib/unistr/u16-strrchr.c: New file.
104397         * lib/unistr/u32-strrchr.c: New file.
104399         * modules/unistr/u8-strspn: New file.
104400         * modules/unistr/u16-strspn: New file.
104401         * modules/unistr/u32-strspn: New file.
104402         * lib/unistr/u8-strspn.c: New file.
104403         * lib/unistr/u16-strspn.c: New file.
104404         * lib/unistr/u32-strspn.c: New file.
104405         * lib/unistr/u-strspn.h: New file.
104407         * modules/unistr/u8-strstr: New file.
104408         * modules/unistr/u16-strstr: New file.
104409         * modules/unistr/u32-strstr: New file.
104410         * lib/unistr/u8-strstr.c: New file.
104411         * lib/unistr/u16-strstr.c: New file.
104412         * lib/unistr/u32-strstr.c: New file.
104413         * lib/unistr/u-strstr.h: New file.
104415         * modules/unistr/u8-strtok: New file.
104416         * modules/unistr/u16-strtok: New file.
104417         * modules/unistr/u32-strtok: New file.
104418         * lib/unistr/u8-strtok.c: New file.
104419         * lib/unistr/u16-strtok.c: New file.
104420         * lib/unistr/u32-strtok.c: New file.
104421         * lib/unistr/u-strtok.h: New file.
104423         * modules/unistr/u8-uctomb: New file.
104424         * modules/unistr/u16-uctomb: New file.
104425         * modules/unistr/u32-uctomb: New file.
104426         * lib/unistr/u8-uctomb.c: New file.
104427         * lib/unistr/u16-uctomb.c: New file.
104428         * lib/unistr/u32-uctomb.c: New file.
104430         * MODULES.html.sh (Unicode string functions): Add the new modules.
104432 2007-01-08  Bruno Haible  <bruno@clisp.org>
104434         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
104435         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
104436         subdirectories.
104438 2007-01-08  Karl Berry  <karl@gnu.org>
104440         * doc/error.texi: mention that main() fns must set program_name
104441         when progname is used.
104443 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
104445         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
104446         WCTYPE_H is empty, for the benefit of builds from non-distclean
104447         directories.  Problem reported by Eric Blake in
104448         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
104450 2007-01-08  Bruno Haible  <bruno@clisp.org>
104452         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
104453         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
104454         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
104455         PROVIDE_CANONICALIZE_FILENAME_MODE.
104456         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
104458 2007-01-08  Bruno Haible  <bruno@clisp.org>
104460         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
104461         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
104462         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
104463         * lib/fts.c: Likewise.
104464         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
104466 2006-12-25  Bruno Haible  <bruno@clisp.org>
104468         * modules/utf8-ucs4-safe: New file.
104469         * lib/utf8-ucs4-safe.h: New file.
104470         * lib/unistr/utf8-ucs4-safe.c: New file.
104472         * modules/utf16-ucs4-safe: New file.
104473         * lib/utf16-ucs4-safe.h: New file.
104474         * lib/unistr/utf16-ucs4-safe.c: New file.
104476         * MODULES.html.sh (Unicode string functions): Add the new modules.
104478 2007-01-08  Bruno Haible  <bruno@clisp.org>
104480         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
104481         (Depends-on): Add unitypes.
104482         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
104483         (u8_mbtouc_aux): Move out to separate file.
104484         (u8_mbtouc): Use ucs4_t, uint8_t types.
104485         * lib/unistr/utf8-ucs4.c: New file.
104487         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
104488         (Depends-on): Add unitypes.
104489         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
104490         (u16_mbtouc_aux): Move out to separate file.
104491         (u16_mbtouc): Use ucs4_t, uint16_t types.
104492         * lib/unistr/utf16-ucs4.c: New file.
104494         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
104495         (Depends-on): Add unitypes.
104496         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
104497         (u8_uctomb_aux): Move out to separate file.
104498         (u8_uctomb): Use ucs4_t, uint8_t types.
104499         * lib/unistr/ucs4-utf8.c: New file.
104501         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
104502         (Depends-on): Add unitypes.
104503         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
104504         (u16_uctomb_aux): Move out to separate file.
104505         (u16_uctomb): Use ucs4_t, uint16_t types.
104506         * lib/unistr/ucs4-utf16.c: New file.
104508 2006-12-25  Bruno Haible  <bruno@clisp.org>
104510         * modules/unitypes: New file.
104511         * lib/unitypes.h: New file.
104512         * MODULES.html.sh (func_all_modules): New section "Unicode string
104513         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
104514         this section. Add unitypes.
104516 2007-01-08  Bruno Haible  <bruno@clisp.org>
104518         Avoid variable names that conflict with those from libtool.
104519         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
104520         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
104521         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
104522         library_names_spec to acl_library_names_spec, hardcode_* to
104523         acl_hardcode_*.
104524         Reported by Ralf Wildenhues.
104526 2007-01-08  Bruno Haible  <bruno@clisp.org>
104528         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
104529         definition.
104530         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
104531         definition.
104532         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
104533         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
104534         definition.
104535         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
104536         definition.
104537         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
104538         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
104539         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
104540         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
104541         definition.
104542         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
104543         definition.
104544         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
104545         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
104546         GC_USE_<algorithm>.
104547         * lib/gc-libgcrypt.c: Likewise.
104548         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
104549         * modules/gc-arctwo (configure.ac): Likewise.
104550         * modules/gc-des (configure.ac): Likewise.
104551         * modules/gc-hmac-md5 (configure.ac): Likewise.
104552         * modules/gc-hmac-sha1 (configure.ac): Likewise.
104553         * modules/gc-md2 (configure.ac): Likewise.
104554         * modules/gc-md4 (configure.ac): Likewise.
104555         * modules/gc-md5 (configure.ac): Likewise.
104556         * modules/gc-random (configure.ac): Likewise.
104557         * modules/gc-rijndael (configure.ac): Likewise.
104558         * modules/gc-sha1 (configure.ac): Likewise.
104560 2007-01-08  Bruno Haible  <bruno@clisp.org>
104562         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
104563         macro definition.
104564         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
104565         definition.
104566         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
104567         definition.
104568         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
104569         * modules/fcntl-safer (configure.ac): Likewise.
104570         * modules/fopen-safer (configure.ac): Likewise.
104571         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
104572         GNULIB_FWRITEERROR macro definition.
104574 2007-01-08  Bruno Haible  <bruno@clisp.org>
104576         * m4/gnulib-common.m4: New file.
104577         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
104578         (func_get_filelist): Add m4/gnulib-common.m4.
104580 2007-01-08  Bruno Haible  <bruno@clisp.org>
104582         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
104583         command.
104585 2007-01-08  Jim Meyering  <jim@meyering.net>
104587         Use a more robust test for a "can't happen" condition.
104588         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
104589         narrowed the st_size value.  Presuming the "can't happen" condition
104590         is true, that narrowing could conceivably convert an invalid st_size
104591         value into a valid one.  Instead, use a change based on Matthew
104592         Woehlke's original patch.
104594         Slight readability improvement: use an assert-like macro
104595         in place of literal "abort ()" uses.
104596         * lib/fts.c (fts_assert): Define.
104597         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
104598         Use this macro instead of a bare 'abort'.
104600 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
104602         Don't worry about using IRIX 5.3's wctype.h broken definitions;
104603         simply work around them.
104604         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
104605         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
104606         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
104607         declaring.
104608         Don't bother to define as macros, since the standard doesn't require it.
104609         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
104610         longer worry about IRIX 5.3.
104611         (HAVE_WCTYPE_CTMP_BUG): Remove.
104613 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104615         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
104616         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
104617         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
104618         Problems reported by Georg Schwarz for IRIX 5.3.
104620         * gnulib-tool (autoconf_minversion): Take the maximum version number
104621         found, not the minimum.  Problem reported by James Youngman.
104623 2007-01-03  Karl Berry  <karl@gnu.org>
104625         * doc/error.texi: new file, explaining interaction with progname.
104626         * doc/gnulib.texi: include it.  Update copyright.
104628 2007-01-03  Simon Josefsson  <simon@josefsson.org>
104630         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
104631         AC_CANONICAL_HOST, to improve autobuild outputs.
104633 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
104634             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
104636         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
104637         sockets, server sockets, and other file descriptors.  Count errors
104638         to compute the return value.  Reorder the code a bit to be easier
104639         to follow.  Don't set event bits that were not requested (except
104640         POLLERR and POLLHUP).
104642 2007-01-01  Bruno Haible  <bruno@clisp.org>
104644         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
104646 2007-01-03  Jim Meyering  <jim@meyering.net>
104648         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
104650 2007-01-02  Bruno Haible  <bruno@clisp.org>
104652         * modules/settime (Include): Require timespec.h.
104653         * modules/nanosleep (Include): Likewise.
104655 2007-01-01  Bruno Haible  <bruno@clisp.org>
104657         * gnulib-tool (func_emit_copyright_notice): Bump year.
104658         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
104660 2007-01-01  Bruno Haible  <bruno@clisp.org>
104662         Improve support for OpenBSD.
104663         * build-aux/config.rpath (libname_spec): Export.
104664         (library_names_spec): New variable. Export.
104665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
104666         library_names_spec from the config.rpath output. Locate shared library
104667         through the name pattern in library_names_spec.
104669 2007-01-01  Eric Blake  <ebb9@byu.net>
104671         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
104673 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
104675         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
104676         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
104677         assume the C locale, and avoid an "eval" that could cause trouble.
104678         Problem with SORT reported by Bob Proulx.
104680         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
104681         Define.  Trivial patch from Henning Nielsen Lund, originally
104682         sent to bug-grep@gnu.org today.
104684 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
104686         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
104687         struct stat.  Problem reported by Henning Nielsen Lund.
104688         * lib/acl.c: Include acl.h first, to check interface.  Don't
104689         bother to include sys/types.h and sys/stat.h again.
104691 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104693         Import the following change from libc; problem reported by
104694         Sven Verdoolaege.
104696         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
104698         [BZ #1373]
104699         * lib/argp.h: Remove __NTH for __argp_usage inline function.
104701 2006-12-28  Jim Meyering  <jim@meyering.net>
104703         * build-aux/announce-gen: Do not assume that the package
104704         builds any of tar.gz, tar.bz2, and .xdelta files.
104705         Suggestion from Simon Josefsson.
104707 2006-12-28  Simon Josefsson  <simon@josefsson.org>
104709         * modules/announce-gen: New file.
104711 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
104713         * lib/mbchar.h: Just include <wctype.h>; the wctype module
104714         handles its gotchas now.
104715         * lib/mbswidth.c: Likewise.
104716         * lib/wcwidth.h: Likewise.
104717         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
104718         and iswcntrl; the wctype module does this stuff now.
104719         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
104720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
104721         * modules/mbchar (Depends-on): Add wctype.
104722         * modules/mbswidth (Depends-on): Likewise.
104723         * modules/wcwidth (Depends-on): Likewise.
104725 2006-12-27  Eric Blake  <ebb9@byu.net>
104727         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
104728         module uses more than what <wctype.h> is required to provide.
104730 2006-12-26  Eric Blake  <ebb9@byu.net>
104732         * gnulib-tool (sed_extract_prog): Avoid space-tab.
104734 2006-12-26  Eric Blake  <ebb9@byu.net>
104736         * modules/absolute-header: New module.
104737         * modules/fcntl (Depends-on): Depend on it.
104738         * modules/inttypes (Depends-on): Likewise.
104739         * modules/stdint (Depends-on): Likewise.
104740         * modules/sys_stat (Depends-on): Likewise.
104741         * modules/wctype (Depends-on): Likewise.
104742         * MODULES.html.sh (Support for building libraries and
104743         executables): Document it.
104745 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
104747         * gnulib-tool (SED): Remove, undoing previous change.
104748         The problem was that it broke coreutils on Solaris, because
104749         "sed --posix" leaked into a makefile.
104750         (sed): New alias, if 'alias' and GNU sed.
104752 2006-12-24  Jim Meyering  <jim@meyering.net>
104754         Work around an fchownat bug in glibc-2.4:
104755         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
104756         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
104757         in spite of the -P option.
104758         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
104759         New macros.
104760         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
104761         * modules/openat (Files): Add lib/fchownat.c.
104762         * lib/openat.c (fchownat): Don't define here.  Move to...
104763         * lib/fchownat.c: ...this new file.
104765 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104767         Fix bug reported by Bruno Haible in
104768         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
104769         where quotearg.c didn't compile on Mac OS X 10.2 because it
104770         lacks <wchar.h> and wint_t.
104771         * lib/wctype_.h (__wctype_wint_t): New type.
104772         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
104773         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
104774         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
104775         Arg is now of type __wctype_wint_t, not wint_t.
104776         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
104777         substitute HAVE_WINT_T.
104778         * modules/wctype (Files): Add m4/wint_t.m4.
104779         (wctype.h): Substitute HAVE_WINT_T.
104781 2006-12-23  Bruno Haible  <bruno@clisp.org>
104783         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
104785 2006-12-23  Bruno Haible  <bruno@clisp.org>
104787         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
104788         S_ISLNK.
104789         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
104790         mingw.
104792 2006-12-22  Bruno Haible  <bruno@clisp.org>
104794         * lib/copy-file.c: Include acl.h.
104795         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
104796         Close the file descriptors only after being done with copy_acl.
104797         * modules/copy-file (Depends-on): Add acl.
104799 2006-12-22  Bruno Haible  <bruno@clisp.org>
104801         * gnulib-tool (SED): New variable.
104802         Use $SED instead of sed everywhere.
104804 2006-12-22  Bruno Haible  <bruno@clisp.org>
104806         * modules/no-c++: New file.
104807         * m4/no-c++.m4: New file.
104808         * MODULES.html.sh (Support for building libraries and executables):
104809         Add no-c++.
104811 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
104813         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
104814         Include <limits.h>, and use its INT_MAX to rewrite the
104815         j loop so that it does not overflow 'int'.  Problem reported by
104816         Ralf Wildenhues in
104817         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
104818         Play it safe by shifting left by 1 rather than multiplying by 2,
104819         as GCC is less likely to optimize this away when the value
104820         is signed (when it assumes overflow leads to undefined behavior).
104821         Also, don't assume time_t uses two's complement.
104823 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
104825         * MODULES.html.sh: New module wctype.
104826         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
104827         * lib/fnmatch.c: Don't bother to include <wchar.h> before
104828         <wctype.h>, since the new wctype module should fix this.
104829         * lib/quotearg.c: Include <wctype.h> unconditionally, since
104830         the wctype module should arrange for it.
104831         * lib/regex_internal.h: Likewise.
104832         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
104833         since the wctype module should handle this now.
104834         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
104835         * modules/fnmatch (Depends-on): Add wctype.
104836         * modules/quotearg (Depends-on): Likewise.
104837         * modules/regex (Depends-on): Likewise.
104839 2006-12-19  Bruno Haible  <bruno@clisp.org>
104841         * lib/strdup.h [C++]: Wrap definitions in extern "C".
104842         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
104844 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104846         * modules/savewd (Depends-on): Fix dependency on fcntl.
104848 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
104850         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
104851         conforms to C99, rather than relying on the user's environment
104852         setting of STDINT_H.
104854 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
104855         and Eric Blake  <ebb9@byu.net>
104857         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
104858         This is more consistent with the other defines here.
104859         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
104860         Port to z/OS.  Problem reported by Paul Gilmartin.
104861         Change local vars to use gl_ prefix rather than ac_.
104862         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
104863         with other defines.
104864         * modules/double-slash-root: New module.
104865         * modules/dirname (Files): Remove m4/double-slash-root.m4.
104866         (Depends-on): Add double-slash-root.
104867         * MODULES.html.sh (File system functions): Mention new module.
104869 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
104871         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
104872         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
104873         This is for the benefit of gzip, which doesn't do i18n.
104875 2006-12-12  Jim Meyering  <jim@meyering.net>
104877         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
104878         Reported by Andreas Schwab <schwab@suse.de>.
104880 2006-12-12  Bruno Haible  <bruno@clisp.org>
104882         Merge these changes.
104883         2006-09-05  Bruno Haible  <bruno@clisp.org>
104884         * lib/iconvme.c (iconv_string): No need to save and restore errno when
104885         iconv_alloc succeeded.
104886         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
104887         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
104888         test for " && dest " at the end - dest is always != NULL there. Call
104889         iconv with 4xNULL arguments initially, to reset the state. Call iconv
104890         with 2xNULL arguments, also to flush the state storage. Handle the
104891         IRIX iconv behaviour. Realloc the final result, to throw away unused
104892         memory.
104894 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
104896         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
104897         and fchmodat unconditionally, since glibc 2.4 has them.
104898         Problem reported by Arkadiusz Miskiewicz.
104900 2006-12-10  Bruno Haible  <bruno@clisp.org>
104902         * gnulib-tool (func_import): Show the include files only for those
104903         modules that are copied and specified.
104904         Reported by Karl Berry.
104906 2006-12-08  Jim Meyering  <jim@meyering.net>
104908         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
104909         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
104911         * build-aux/announce-gen: Add two new options, both optional:
104912         --bootstrap-tools=TOOL_LIST
104913               a comma-separated list of tools, e.g.,
104914               autoconf,automake,bison,gnulib
104915         --gnulib-snapshot-date=DATE
104916               if gnulib is in the bootstrap tool list,
104917               then report this as the snapshot date.
104918               If not specified, use the current date/time.
104919               If you specify a date here, be sure it's UTC.
104921 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104923         * tests/test-argp-2.sh: Fix test to match actual output.
104924         (func_compare): Fix sed script to be portable.
104926 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
104928         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
104929         workaround for this case.  It is not autoconfigured now; offhand
104930         it's hard to see how to autoconfigure it.
104932 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
104934         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
104935         a directory that is about to be chowned.  Such a directory's
104936         initial file permissions should permit the owner only and this
104937         should not be changed until after the chown, since the group and
104938         other bits would be incorrect if they granted permission before
104939         the chown.
104941         Fix porting problem for iswctype reported by Georg Schwarz in:
104942         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
104943         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
104944         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
104945         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
104946         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104948 2006-12-03  Jim Meyering  <jim@meyering.net>
104950         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
104951         p->fts_statp may not yet be defined.
104952         (fts_read): Instead, set it in the caller, once p->fts_statp is
104953         sure to be defined, and corresponds to a top-level directory.
104954         This bug made du -x fail.  Here's the coreutils test case:
104955         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
104956         Reported by Mike Frysinger.
104958 2006-12-01  Jim Meyering  <jim@meyering.net>
104960         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
104961         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
104962         Reported by Simon Josefsson.
104964 2006-11-30  Jim Meyering  <jim@meyering.net>
104966         * m4/warning.m4: Use the all-permissive copyright notice
104967         recommended by RMS (rather than LGPL).
104968         * m4/vararrays.m4: Likewise.
104969         * m4/flexmember.m4: Likewise.
104971 2006-11-29  Bruno Haible  <bruno@clisp.org>
104973         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
104974         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
104975         using +=.
104976         Reported by Simon Josefsson <simon@josefsson.org>.
104978 2006-11-28  James Youngman  <jay@gnu.org>
104980         * README: Advise users that they might find the bug-gnulib@gnu.org
104981         and autotools-announce@gnu.org mailing lists useful.
104983 2006-11-28  Bruno Haible  <bruno@clisp.org>
104985         * m4/ptrdiff_max.m4: Remove file.
104987 2006-11-21  Bruno Haible  <bruno@clisp.org>
104989         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
104990         _AC_COMPUTE_INT.
104991         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104992         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
104993         _AC_COMPUTE_INT.
104994         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104995         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
104996         _AC_COMPUTE_INT.
104997         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104999 2006-11-28  Jim Meyering  <jim@meyering.net>
105001         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
105002         warning from "gcc -Wshadow" about shadowing the builtin.
105004 2006-11-27  Bruno Haible  <bruno@clisp.org>
105006         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
105007         _AC_COMPUTE_INT.
105008         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
105010 2006-11-27  Bruno Haible  <bruno@clisp.org>
105011             Paul Eggert  <eggert@cs.ucla.edu>
105013         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
105015 2006-11-26  Bruno Haible  <bruno@clisp.org>
105017         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
105018         noinst_LTLIBRARIES.
105020 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
105021             Bruno Haible  <bruno@clisp.org>
105023         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
105024         if compiling with "gcc -ansi".
105026 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
105028         Fix some incompatibilities with gcc -ansi -pedantic.
105029         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
105030         if compiling pedantically with GCC, unless it's C99 or later.
105031         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
105032         it mishandles gcc -ansi -pedantic as well.
105033         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
105034         if gcc -pedantic.
105035         * lib/regexec.c (check_node_accept_bytes): Don't use auto
105036         initializers for struct if -pedantic, unless it's C99 or later.
105038 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
105040         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
105041         Don't close an fd more than once. Identical atimes indicate
105042         success, not failure.
105044 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
105046         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
105048 2006-11-23  Jim Meyering  <jim@meyering.net>
105050         * build-aux/announce-gen: New file.  From coreutils.
105052 2006-11-22  Jim Meyering  <jim@meyering.net>
105054         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
105055         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
105056         (fts_read): Use a temporary to narrow the overused st_size member
105057         before using it in a switch statement.  Reported by Matthew Woehlke.
105059         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
105060         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
105062 2006-11-20  Bruno Haible  <bruno@clisp.org>
105064         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
105065         changequote instead of pairs of brackets.
105066         Reported by Andreas Schwab <schwab@suse.de>.
105068 2006-11-21  Jim Meyering  <jim@meyering.net>
105070         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
105071         so as to remain compatible with older compilers.
105072         Patch from Michael Deutschmann.
105074 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105076         * MODULES.html.sh (File system functions): Add openat.
105078         * lib/openat.h (rpl_fstatat): New macro, if
105079         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
105080         (fstatat): Define to rpl_fstatat under the same conditions,
105081         unless COMPILING_FSTATAT.
105082         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
105083         seems to have the bug.
105084         * lib/fstatat.c: New file.
105085         * modules/openat (Files): Add it.
105087 2006-11-20  Bruno Haible  <bruno@clisp.org>
105089         * Makefile: New file.
105091 2006-11-20  Jim Meyering  <jim@meyering.net>
105093         The beginnings of syntax-related checks for gnulib.
105094         * lib/Makefile: New file.
105095         * lib/t-idcache: New script.  Ensure that the two halves of
105096         idcache.c stay in sync.
105098         * lib/idcache.c: Adjust comments in user- and group- portions to
105099         be more accurate, and to be consistent with one another.
105101 2006-11-20  Jim Meyering  <jim@meyering.net>
105103         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
105104         continue using the flexible array member (thus, this module performs
105105         half as many malloc calls), with the addition that...
105106         (getgroup, getuser): Consistently record a non-match via an empty
105107         "name" string, and map an empty string match to a NULL return value.
105108         * modules/idcache (Depends-on): Re-add flexmember.
105110         * lib/idcache.c (getuser): Remove all uses of the register keyword.
105111         (getuidbyname, getgroup, getgidbyname): Likewise.
105113         Use cleaner syntax: NULL rather than 0.
105114         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
105116 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105118         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
105119         It mishandled the case where the group was missing.
105120         Problem reported by Greg Schafer.
105121         * modules/idcache: Likewise.
105123 2006-11-18  Jim Meyering  <jim@meyering.net>
105125         * check-module (%exempt_header): Add exception for some
105126         conditionally-included headers.
105128         * modules/i-ring (Depends-on): Add verify.
105129         (License): Change to LGPL.
105131 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105133         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
105134         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
105135         and inttostr.h.  Use snprintf rather than uinttostr, so that
105136         LGPLed code doesn't depend on GPLed.
105138 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105140         * modules/inline (License): Change from GPL to LGPL.
105142 2006-11-17  Jim Meyering  <jim@meyering.net>
105144         * modules/d-type (License): Switch to LGPL.
105146 2006-11-15  Bruno Haible  <bruno@clisp.org>
105148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
105150 2006-11-15  Eric Blake  <ebb9@byu.net>
105152         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
105153         the module dependency.
105155 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105156             Bruno Haible  <bruno@clisp.org>
105158         * gnulib-tool (func_create_testdir): Add license consistency check.
105160 2006-11-15  Eric Blake  <ebb9@byu.net>
105162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
105163         random "(cached)" in configure output.
105165 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105167         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
105168         test for conforming inttypes.h is both announced and cached.
105170         * MODULES.html.sh (seen_modules, seen_files): New variables.
105171         (func_module): Rewrite to use a few less gnulib-tool and sed
105172         invocations.  Avoid a couple of quadratic algorithms for ...
105173         (missed_modules, missed_files): ... these, with ...
105174         (func_append, func_tmpdir): ... these new functions, from
105175         gnulib-tool.  Analogously, install traps for cleanup.
105177         * tests/test-gc.c (main): Remove unused variables.
105178         * tests/test-read-file.c: Include stdlib.h, for 'free'.
105180 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
105182         * modules/inttostr (License): Change to LGPL.
105184 2006-11-14  Eric Blake  <ebb9@byu.net>
105186         * modules/tempname (License): Change to LGPL.
105188 2006-11-14  Eric Blake  <ebb9@byu.net>
105190         * doc/functions.texi (Function Portability): *printf functions on
105191         Cygwin now understand all POSIX size specifiers.
105193 2006-11-14  Bruno Haible  <bruno@clisp.org>
105195         * modules/c-ctype (License): Change to LGPL.
105197 2006-11-12  Bruno Haible  <bruno@clisp.org>
105199         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
105200         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
105201         for GNOME libraries, for which the include files are installed in
105202         subdirectories of $prefix/include.
105204 2006-11-12  Bruno Haible  <bruno@clisp.org>
105206         * m4/lib-link.m4: Require at least autoconf-2.54.
105207         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
105208         name to underscores for the --with option.
105210 2006-11-13  Bruno Haible  <bruno@clisp.org>
105212         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
105213         the tests directory.
105214         Reported by Ralf Wildenhues.
105216 2006-11-13  Bruno Haible  <bruno@clisp.org>
105218         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
105219         (func_emit_initmacro_end): Undo the override here.
105220         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
105221         Works around the famous automake error in coreutils.
105223 2006-11-13  Eric Blake  <ebb9@byu.net>
105225         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
105226         element, not its node.
105228 2006-11-12  Bruno Haible  <bruno@clisp.org>
105230         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
105231         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
105233 2006-11-12  Bruno Haible  <bruno@clisp.org>
105235         * gnulib-tool: New option --local-symlink.
105236         (func_usage): Document it.
105237         (lsymbolic): New variable.
105238         (func_import, func_create_testdir): If --symlink was not specified,
105239         test whether --local-symlink was specified and the file comes from
105240         the local_gnulib_dir.
105242 2006-11-12  Bruno Haible  <bruno@clisp.org>
105244         * gnulib-tool (func_ln): New function.
105245         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
105247 2006-11-12  Bruno Haible  <bruno@clisp.org>
105249         Finish support for source files in subdirectories.
105250         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
105251         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
105252         AUTOMAKE_OPTIONS.
105253         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
105255 2006-11-12  Bruno Haible  <bruno@clisp.org>
105257         * gnulib-tool (func_get_automake_snippet): Synthesize also an
105258         EXTRA_lib_SOURCES augmentation.
105259         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
105261 2006-11-12  Jim Meyering  <jim@meyering.net>
105263         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
105264         file descriptors.  This also averts a failure on systems with
105265         native openat support when a traversed directory lacks "x" access.
105266         * lib/fts_.h: Include "i-ring.h"
105267         (struct FTS) [fts_fd_ring]: New member.
105268         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
105269         (FCHDIR): Add parentheses.
105270         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
105271         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
105272         When descending, rather than simply closing the previous
105273         fts_cwd_fd value, push that file descriptor onto the ring.
105274         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
105275         (fts_open): Initialize the new fd_ring member.
105276         (fts_close): Clear the ring.
105277         (fts_safe_changedir): When possible, use our new fd_ring to skip
105278         the diropen and fstat and dev/ino comparison that would normally
105279         accompany a virtual `chdir ("..")'.
105281         * modules/fts (Depends-on): Add i-ring.
105282         * modules/i-ring: New module.
105283         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
105284         * m4/i-ring.m4: New file.
105286 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105288         * gnulib-tool (func_create_testdir): Fix replacement of
105289         `build-aux' in configure.ac.  Run autotools in gltests
105290         subdirectory.
105291         (func_create_testdir, func_create_megatestdir, test): There is
105292         no need for '--force' in most autotool invocations in a new
105293         tree.  Actually fail the whole test if any of the tools, or the
105294         configure or make stages fail.
105296         Sync from Automake.
105297         * build-aux/gnupload: Revert last change.  Add pointer to upload
105298         instructions of the GNU Maintenance Instructions.
105299         Suggestion by Karl Berry.
105301 2006-11-10  Jim Meyering  <jim@meyering.net>
105303         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
105305 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105307         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
105308         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
105309         (bind_textdomain_codeset) [! ENABLE_NLS]:
105310         Evaluate all the arguments.  That way, callers get compatible behavior
105311         if the arguments have side effects.  Also, it avoids some GCC
105312         diagnostics in some cases; Joel E. Denny reported problems when Bison
105313         was configured with --enable-gcc-warnigs.
105315 2006-11-10  Jim Meyering  <jim@meyering.net>
105317         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
105318         relevant options in CFLAGS (like -O, -fno-inline) are taken into
105319         account.
105321 2006-11-10  Jim Meyering  <jim@meyering.net>
105323         * modules/inline: New file/module.
105324         * modules/xalloc (Files): Remove m4/inline.m4.
105325         (Depends-on): Add inline, instead.
105326         * modules/oset: Likewise.
105327         * modules/list: Likewise.
105329 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105331         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
105332         Problem reported by Matthew Woehlke.
105334 2006-11-09  Bruno Haible  <bruno@clisp.org>
105336         * lib/tempname.c (gen_tempname): Remove variant that invokes
105337         __gen_tempname.
105338         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
105339         __gen_tempname.
105341 2006-11-08  Bruno Haible  <bruno@clisp.org>
105343         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
105344         to 'yes' instead of 'cross-compiling'.
105346 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
105348         * lib/quotearg.h (quotearg_free): New decl.
105349         * lib/quotearg.c (quotearg_free): New function.
105350         (slot0, nslots, slotvec0, slotvec):
105351         Now file-scope so that quotearg_free can get at them.
105353 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105355         Sync from Automake.
105356         * build-aux/gnupload: Add missing 'gnu' to example URL.
105357         Report by Karl Berry.
105359 2006-11-08  Bruno Haible  <bruno@clisp.org>
105361         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
105362         Suggested by Paul Eggert.
105364 2006-11-08  Jim Meyering  <jim@meyering.net>
105366         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
105367         It's already included if !_LIBC.
105368         (fts_safe_changedir): Add a comment.
105370 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
105372         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
105373         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
105374         Matthew Woehlke.
105376         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
105377         definitions up, to avoid colliding with change below.
105378         (static_inline) [HAVE_INLINE]: New macro.
105379         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
105380         Provide extern decls when !HAVE_INLINE.  Do not define unless
105381         static_inline is defined, either by us or by xmalloc.c.  Use
105382         static_inline rather than static inline.
105383         (XCALLOC): Optimize sizeof(T) = 1 case.
105384         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
105386 2006-11-07  Bruno Haible  <bruno@clisp.org>
105388         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
105389         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
105390         AC_C_INLINE.
105391         * modules/xalloc (Files): Add m4/inline.m4.
105393 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105395         * README: Fix typo.
105396         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
105397         (Miscellanous Notes): ...from this.
105399 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
105401         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
105402         Mention that offsetof should be used instead of sizeof.
105403         From Bruno Haible.
105405 2006-11-07  Bruno Haible  <bruno@clisp.org>
105407         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
105409 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
105411         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
105412         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
105413         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
105414         (gl_tree_add_before, gl_tree_add_after):
105415         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
105416         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
105417         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105418         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
105419         (gl_linked_add_after, gl_linked_add_at): Likewise.
105420         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
105421         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
105422         (gl_tree_add_before, gl_tree_add_after): Likewise.
105423         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
105424         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
105425         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
105427 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105429         * lib/gl_oset.h: Use C comment style, not C++ comment style.
105431 2006-11-06  Bruno Haible  <bruno@clisp.org>
105433         * m4/inline.m4: New file.
105434         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
105435         * modules/list (Files): Add m4/inline.m4.
105436         * modules/oset (Files): Likewise.
105438 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
105440         * lib/idcache.c: Include <stddef.h>, for offsetof.
105441         (struct userid.name): Change from char * to a flexible array member.
105442         All uses changed.
105443         * modules/idcache (Depends-on): Add flexmember.
105445         * MODULES.html.sh (Core language properties): New module flexmember.
105446         * modules/flexmember, m4/flexmember.m4: New files.
105448         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
105449         inline functions that are identical with the old xnmalloc_inline,
105450         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
105451         that we can avoid some unnecessary integer multiplications and
105452         divisions in the common case where the element size is known at
105453         compile time.
105454         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
105455         needed.
105456         (xnboundedmalloc): Remove.
105457         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
105458         arguments, for consistency with rest of this header.
105459         (xcharalloc): Rewrite using XNMALLOC.
105460         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
105461         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
105462         versions have been moved to lib/xalloc.h and renamed to be the
105463         non-*_inline versions.
105464         (xmalloc, xrealloc): Implement without reference to the xnmalloc
105465         and xnrealloc functions, since those functions are now inline and
105466         now call us.
105467         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
105468         renaming described above.
105469         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
105470         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
105471         captures the dependency in AC_C_INLINE.
105473         New module canonicalize-lgpl, proposed by Charles Wilson in
105474         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
105475         with a few small changes afterwards.
105476         * MODULES.html.sh (File system functions): New module
105477         canonicalize-lgpl.
105478         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
105479         and canonicalize_file_name.
105480         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
105481         * modules/canonicalize-lgpl: New files.
105483 2006-11-05  Bruno Haible  <bruno@clisp.org>
105485         * gnulib-tool (func_import, func_create_testdir): Create directories
105486         also for files in subdirectories of lib/.
105488 2006-11-05  Bruno Haible  <bruno@clisp.org>
105490         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
105491         ANSI C compliant.
105493 2006-11-03  Bruno Haible  <bruno@clisp.org>
105495         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
105496         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
105497         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
105498         (xnboundedmalloc): New inline function.
105499         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
105500         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
105501         xmalloc.
105502         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
105503         xmalloc.
105504         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
105505         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
105506         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
105507         xmalloc.
105508         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
105509         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
105510         xmalloc.
105511         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
105512         gl_tree_add_after): Use XMALLOC instead of xmalloc.
105513         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
105514         xmalloc.
105515         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
105516         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
105517         gl_tree_add_after): Use XMALLOC instead of xmalloc.
105518         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
105519         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
105520         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
105521         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
105523 2006-11-03  Bruno Haible  <bruno@clisp.org>
105525         * lib/c-ctype.h [C++]: Define functions without name mangling.
105526         * lib/fwriteerror.h [C++]: Likewise.
105527         * lib/gcd.h [C++]: Likewise.
105528         * lib/linebreak.h [C++]: Likewise.
105530 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105532         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
105533         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
105534         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
105535         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
105536         Check for functions and headers just once.
105537         Check for declaration of canonicalize_file_name.
105538         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
105540 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
105542         * gnulib-tool (func_import): Fix typo in actioncmd.
105544 2006-11-02  Bruno Haible  <bruno@clisp.org>
105546         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
105547         newline sequence in the Makefile.am snippet as a space, like "make"
105548         does.
105549         Reported by Roger Persson <perrog@gmail.com>.
105551 2006-11-01  Bruno Haible  <bruno@clisp.org>
105553         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
105554         already declared in <string.h>.
105555         * lib/strcase.h (strncasecmp): Don't declare it if yes.
105557 2006-11-01  Bruno Haible  <bruno@clisp.org>
105559         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
105560         * lib/strcase.h: Include <string.h>.
105561         (strcasecmp): Define to rpl_strcasecmp here.
105563 2006-11-01  Bruno Haible  <bruno@clisp.org>
105565         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
105567 2006-11-01  Eric Blake  <ebb9@byu.net>
105569         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
105571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
105573 2006-10-29  Bruno Haible  <bruno@clisp.org>
105575         Make it compile in C++ mode.
105576         * lib/full-write.c (full_rw): Add a cast.
105578 2006-11-01  Bruno Haible  <bruno@clisp.org>
105580         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
105581         be POSIX compliant.
105582         Reported by Roger Persson <perrog@gmail.com>.
105584 2006-11-01  Eric Blake  <ebb9@byu.net>
105586         * lib/getopt_.h: Fix comments.
105588 2006-10-31  Eric Blake  <ebb9@byu.net>
105590         * modules/tmpdir (Depends-on): Add sys_stat.
105591         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
105592         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
105593         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
105594         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
105595         tempname.
105597 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
105599         Avoid some C++ diagnostics reported by Bruno Haible.
105600         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
105601         xmalloc.
105602         (quotearg_alloc): Use xcharalloc rather than xmalloc.
105603         (struct slotvec): Move to top level.
105604         (quotearg_n_options): Rewrite to avoid xmalloc.
105605         * lib/xalloc.h (xcharalloc): New function.
105606         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
105607         [defined __cplusplus]: Add function template that provides result
105608         type propagation.  This part of the change is from Bruno Haible.
105610 2006-10-29  Bruno Haible  <bruno@clisp.org>
105612         Make it compile in C++ mode.
105613         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
105614         * lib/strnlen1.c (strnlen1): Cast memchr result.
105615         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
105616         * lib/clean-temp.c (string_equals, string_hash): Add casts.
105617         (create_temp_dir): Rename local variable 'template'.
105618         (compile_csharp_using_sscli): Add cast.
105619         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
105620         * lib/findprog.c (find_in_path): Likewise.
105621         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
105622         * lib/wait-process.c (register_slave_subprocess): Likewise.
105624 2006-10-22  Bruno Haible  <bruno@clisp.org>
105626         * modules/tsearch: New file.
105627         * lib/tsearch.h: New file.
105628         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
105629         * m4/tsearch.m4: New file.
105630         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
105632 2006-10-29  Eric Blake  <ebb9@byu.net>
105634         * lib/arcfour.c: Assume config.h.
105635         * lib/arctwo.c: Likewise.
105636         * lib/base64.c: Likewise.
105637         * lib/check-version.c: Likewise.
105638         * lib/crc.c: Likewise.
105639         * lib/des.c: Likewise.
105640         * lib/gc-gnulib.c: Likewise.
105641         * lib/gc-libgcrypt.c: Likewise.
105642         * lib/gc-pbkdf2-sha1.c: Likewise.
105643         * lib/getaddrinfo.c: Likewise.
105644         * lib/getdelim.c: Likewise.
105645         * lib/getline.c: Likewise.
105646         * lib/hmac-md5.c: Likewise.
105647         * lib/hmac-sha1.c: Likewise.
105648         * lib/iconvme.c: Likewise.
105649         * lib/md2.c: Likewise.
105650         * lib/md4.c: Likewise.
105651         * lib/memxor.c: Likewise.
105652         * lib/read-file.c: Likewise.
105653         * lib/readline.c: Likewise.
105654         * lib/rijndael-alg-fst.c: Likewise.
105655         * lib/rijndael-api-fst.c: Likewise.
105656         * lib/xgetdomainname.c: Likewise.
105658 2006-10-28  Eric Blake  <ebb9@byu.net>
105660         * lib/xstrndup.c: Assume config.h.
105662 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
105664         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
105665         stat-macros.h is now for our own macros, whereas stat_h is for
105666         macros in the <sys/stat.h> name space.
105667         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
105668         (STAT_MACROS_H): Remove.
105669         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
105670         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
105671         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
105672         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
105673         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
105674         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
105675         Move these macros to ...
105676         * lib/stat_.h: here.  Don't include stat-macros.h.
105677         * lib/canonicalize.c: Don't include stat-macros.h.
105678         * lib/chown.c: Likewise.
105679         * lib/euidaccess.c: Likewise.
105680         * lib/file-type.c: Likewise.
105681         * lib/filemode.c: Likewise.
105682         * lib/glob.c: Likewise.
105683         * lib/isapipe.c: Likewise.
105684         * lib/lchown.c: Likewise.
105685         * lib/lstat.c: Likewise.
105686         * lib/mkdir-p.c: Likewise.
105687         * lib/rmdir.c: Likewise.
105688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
105689         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
105690         unless mkdir isn't declared, to speed up 'configure'.
105691         Always create sys/stat.h, since it's unlikely any real sys/stat.h
105692         would define all the S_* symbols.
105693         * modules/canonicalize (Depends-on):
105694         Depend on sys_stat, not stat-macros.
105695         * modules/chown: Likewise.
105696         * modules/euidaccess: Likewise.
105697         * modules/filemode: Likewise.
105698         * modules/file-type: Likewise.
105699         * modules/glob: Likewise.
105700         * modules/isapipe: Likewise.
105701         * modules/lchown: Likewise.
105702         * modules/lstat: Likewise.
105703         * modules/mkancesdirs: Likewise.
105704         * modules/rmdir: Likewise.
105705         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
105706         * modules/modechange: Likewise.
105707         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
105708         (configure.ac): Remove gl_STAT_MACROS.
105709         * modules/sys_stat (Depends-on): Remove stat-macros.
105711 2006-10-27  Bruno Haible  <bruno@clisp.org>
105713         * m4/signed.m4: Remove file.
105714         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
105715         invocation.
105716         * modules/vasnprintf (Files): Remove m4/signed.m4.
105718 2006-10-27  Bruno Haible  <bruno@clisp.org>
105720         Update to GNU gettext 0.16.
105721         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
105722         m4/inttypes-h.m4, m4/signed.m4.
105723         * m4/gettext.m4: Update to GNU gettext 0.16.
105724         * m4/intl.m4: New file, from GNU gettext.
105725         * m4/intldir.m4: New file, from GNU gettext.
105726         * config/srclist.txt: Update
105728 2006-10-27  Eric Blake  <ebb9@byu.net>
105730         * MODULES.html.sh: Document tempname.
105731         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
105732         dependencies.
105733         (Files): Move lib/tempname.c...
105734         * modules/tempname: ...to this new module.
105735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
105736         (gl_PREREQ_TEMPNAME): Move...
105737         * m4/tempname.m4: ...to this new file.
105738         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
105739         * modules/sys_stat (Depends-on): Add stat-macros.
105740         * lib/stat_.h (includes): Pick up stat macros.
105741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
105742         if stat macros are broken.
105743         * lib/tempname.c (includes): No need to include "stat-macros.h".
105744         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
105745         (direxists, __path_search) [!_LIBC]: Don't compile these in
105746         gnulib; the tmpdir module covers that.
105747         * lib/tempname.h: New file.
105749 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
105751         * COPYING: Explain how gnulib-tool converts licence headers.
105752         Almost all wording by Eric Blake.
105754 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
105756         * lib/mbchar.h (is_basic_table): Make read-only.
105757         * lib/mbchar.c (is_basic_table): Likewise.
105758         Reported by John Darrington.
105760 2006-10-25  Bruno Haible  <bruno@clisp.org>
105762         * lib/progname.h (set_program_name): Undefine before defining.
105764 2006-10-25  Bruno Haible  <bruno@clisp.org>
105766         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
105767         false for non-gcc C++ compilers.
105768         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
105770 2006-10-24  Bruno Haible  <bruno@clisp.org>
105772         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
105773         iconv implementations like Irix iconv.
105775 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105777         * modules/vararrays: New file.
105778         * m4/vararrays.m4: New file, taken from diffutils.
105779         * MODULES.html.sh: New module vararrays.
105781 2006-10-24  Karl Berry  <karl@gnu.org>
105783         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
105784         Don't call GNU Unix.
105786 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105788         * users.txt: Add Libtool.
105790         Sync from Libtool:
105792         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105794         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
105795         to gnulib's policy of including config.h unconditionally.
105797 2006-10-24  Bruno Haible  <bruno@clisp.org>
105799         * modules/wcwidth (Files): Add m4/wint_t.m4.
105800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
105801         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
105803 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105805         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
105806         to pacify GCC with some -W flags enabled.  Problem reported by
105807         Bruno Haible.
105809 2006-10-24  Jim Meyering  <jim@meyering.net>
105811         * MODULES.html.sh: Remove uinttostr.  It's not a module.
105812         Reported by Karl Berry.
105814 2006-10-23  Bruno Haible  <bruno@clisp.org>
105816         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
105818 2006-10-24  Bruno Haible  <bruno@clisp.org>
105820         * lib/gl_list.h: Use C comment style, not C++ comment style.
105822 2006-10-23  Eric Blake  <ebb9@byu.net>
105824         * lib/getaddrinfo.c (includes): Add missing include.
105826 2006-10-23  Bruno Haible  <bruno@clisp.org>
105827             Paul Eggert  <eggert@cs.ucla.edu>
105829         Ability to rename obstack_free.
105830         * lib/obstack.h (__obstack_free): New macro. Declare instead of
105831         obstack_free.
105832         (obstack_free): Invoke the __obstack_free macro.
105833         * lib/obstack.c (obstack_free): Use __obstack_free macro.
105835 2006-10-23  Bruno Haible  <bruno@clisp.org>
105836             Paul Eggert  <eggert@cs.ucla.edu>
105838         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
105839         __argc, __argv from the declaration. (They are defined as macros on
105840         mingw.)
105842 2006-10-22  Bruno Haible  <bruno@clisp.org>
105844         * doc/gnulib-intro.texi: New file.
105845         * doc/gnulib.texi: Include it.
105847 2006-10-21  Bruno Haible  <bruno@clisp.org>
105849         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
105850         "Introduction", "Miscellanous Notes", "Particular Modules".
105852 2006-10-21  Bruno Haible  <bruno@clisp.org>
105854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
105855         Change mostlyclean-local rule to avoid sh syntax error from bash
105856         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
105858 2006-10-23  Jim Meyering  <jim@meyering.net>
105860         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
105861         in place of snprintf.
105863         * modules/inttostr (Files): Add lib/uinttostr.c.
105864         * lib/uinttostr.c (inttostr): New file/function.
105865         * lib/inttostr.h (uinttostr): Declare.
105866         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
105867         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
105868         Add uinttostr.
105869         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
105871 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
105873         * lib/canonicalize.c (ELOOP): Define if not already defined.
105874         Problem reported by Bruno Haible in
105875         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
105877 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
105879         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
105880         Problem reported by Perry Smith and Ville Laurikari.
105882         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
105883         uses.
105885 2006-10-19  Bruno Haible  <bruno@clisp.org>
105887         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
105888         for mingw.
105890 2006-10-19  Bruno Haible  <bruno@clisp.org>
105892         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
105893         Needed for mingw.
105895 2006-10-19  Bruno Haible  <bruno@clisp.org>
105897         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
105899 2006-10-19  Bruno Haible  <bruno@clisp.org>
105901         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
105902         it.
105904 2006-10-19  Bruno Haible  <bruno@clisp.org>
105906         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
105907         invocation.
105909 2006-10-19  Bruno Haible  <bruno@clisp.org>
105911         * gnulib-tool (func_create_testdir): Don't include ftruncate and
105912         mountlist by default.
105914 2006-10-16  Bruno Haible  <bruno@clisp.org>
105916         * lib/c-strstr.c: Include c-strstr.h.
105918 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
105920         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
105921         in a slash.
105923 2006-10-18  Bruno Haible  <bruno@clisp.org>
105925         * lib/lock.h [C++]: Wrap definitions in extern "C".
105927 2006-10-18  Bruno Haible  <bruno@clisp.org>
105929         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
105930         gl_LIBOBJS list.
105932 2006-10-18  Bruno Haible  <bruno@clisp.org>
105934         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
105936 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
105938         * lib/xstrtol.h: Include gettext.h.
105939         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
105940         Problem reported by Eric Blake.
105941         * modules/xstrtol (Depends-on): Add gettext-h.
105943 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
105945         * lib/strftime.c (advance): New macro.
105946         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
105947         incomplete type, so you can't add 0 to it.  Problem and patch
105948         reported by Eelco Dolstra for dietlibc.
105950 2006-10-18  Jim Meyering  <jim@meyering.net>
105952         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
105953         type for a local, and rename it: s/up/user_proc/.
105955 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
105957         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
105958         READ_UTMP_USER_PROCESS.
105959         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
105961 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
105963         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
105964         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
105966 2006-10-17  Eric Blake  <ebb9@byu.net>
105968         * lib/sigprocmask.c (sigprocmask): Fix typo.
105970         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
105972         * modules/clean-temp (Makefile.am): Don't add to make output...
105973         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
105974         config.h.
105976 2006-10-17  Bruno Haible  <bruno@clisp.org>
105978         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
105979         differently if DEFAULT_TEXT_DOMAIN is set.
105981 2006-10-16  Bruno Haible  <bruno@clisp.org>
105983         * lib/clean-temp.c: Include fwriteerror.h.
105985 2006-10-16  Bruno Haible  <bruno@clisp.org>
105987         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
105989 2006-10-16  Bruno Haible  <bruno@clisp.org>
105991         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
105992         * lib/sigprocmask.h: Include <sys/types.h>.
105993         (sigset_t): Use the system's definition if present.
105995 2006-10-17  Eric Blake  <ebb9@byu.net>
105997         * lib/xvasprintf.c (includes): Assume config.h.
105998         * lib/xasprintf.c (includes): Likewise.
106000 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
106002         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
106003         at least as wide as intmax_t.
106005 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
106007         (Imported from Automake.)
106008         * build-aux/gnupload: Update to version 1.1 of directive file.
106010 2006-10-16  Eric Blake  <ebb9@byu.net>
106012         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
106013         match Automake 1.10a.
106015 2006-10-14  Bruno Haible  <bruno@clisp.org>
106017         * modules/sigprocmask: New file.
106018         * lib/sigprocmask.h: New file.
106019         * lib/sigprocmask.c: New file.
106020         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
106021         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
106022         request sigprocmask.o.
106023         (gl_PREREQ_SIGPROCMASK): New macro.
106024         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
106025         (Depends-on): Add sigprocmask.
106026         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
106027         gt_SIGNALBLOCKING. Test for 'raise' only once.
106028         * lib/fatal-signal.c: Include sigprocmask.h.
106029         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
106030         unblock_fatal_signals): Define always.
106031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106032         sigprocmask.
106034 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
106036         Sync from Automake.
106037         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
106038         which incorrectly sets the mode of an existing destination
106039         directory.  In some cases the unpatched install-sh could do the
106040         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
106041         system.  We hope this is rare in practice, but it's clearly worth
106042         fixing.  Problem reported by Alex Unleashed in
106043         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
106044         Also, don't bother to check for -m bugs unless we're using -m;
106045         suggested by Stepan Kasal.
106047 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106049         Sync from Automake.
106050         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
106051         `-c' flag, so they appear at the same position as in %FASTDEP%
106052         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
106053         which ignores unknown options only after the first non-option.
106054         Bug report against M4 by Nelson H. F. Beebe.
106056 2006-10-13  Jim Meyering  <jim@meyering.net>
106058         Fix a bug in yesterday's change.
106059         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
106060         p->fts_statp->st_dev would be used uninitialized.
106061         Ensures that we always call fts_stat on the very first entry.
106062         Miklos Szeredi reported that find -xdev stopped working.
106064 2006-10-12  Bruno Haible  <bruno@clisp.org>
106066         * gnulib-tool (func_get_automake_snippet): Append an automatically
106067         computed EXTRA_DIST augmentation.
106068         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
106069         * modules/alloca-opt (Makefile.am): Likewise.
106070         * modules/allocsa (Makefile.am): Likewise.
106071         * modules/arcfour (Makefile.am): Likewise.
106072         * modules/arctwo (Makefile.am): Likewise.
106073         * modules/argmatch (Makefile.am): Likewise.
106074         * modules/argz (Makefile.am): Likewise.
106075         * modules/atexit (Makefile.am): Likewise.
106076         * modules/backupfile (Makefile.am): Likewise.
106077         * modules/byteswap (Makefile.am): Likewise.
106078         * modules/c-strtod (Makefile.am): Likewise.
106079         * modules/c-strtold (Makefile.am): Likewise.
106080         * modules/calloc (Makefile.am): Likewise.
106081         * modules/canon-host (Makefile.am): Likewise.
106082         * modules/canonicalize (Makefile.am): Likewise.
106083         * modules/chdir-long (Makefile.am): Likewise.
106084         * modules/chdir-safer (Makefile.am): Likewise.
106085         * modules/check-version (Makefile.am): Likewise.
106086         * modules/chown (Makefile.am): Likewise.
106087         * modules/cloexec (Makefile.am): Likewise.
106088         * modules/close-stream (Makefile.am): Likewise.
106089         * modules/closeout (Makefile.am): Likewise.
106090         * modules/crc (Makefile.am): Likewise.
106091         * modules/csharpexec (Makefile.am): Likewise.
106092         * modules/cycle-check (Makefile.am): Likewise.
106093         * modules/des (Makefile.am): Likewise.
106094         * modules/dev-ino (Makefile.am): Likewise.
106095         * modules/dirfd (Makefile.am): Likewise.
106096         * modules/dirname (Makefile.am): Likewise.
106097         * modules/dup2 (Makefile.am): Likewise.
106098         * modules/eealloc (Makefile.am): Likewise.
106099         * modules/error (Makefile.am): Likewise.
106100         * modules/euidaccess (Makefile.am): Likewise.
106101         * modules/exclude (Makefile.am): Likewise.
106102         * modules/exitfail (Makefile.am): Likewise.
106103         * modules/fcntl-safer (Makefile.am): Likewise.
106104         * modules/fcntl (Makefile.am): Likewise.
106105         * modules/file-type (Makefile.am): Likewise.
106106         * modules/fileblocks (Makefile.am): Likewise.
106107         * modules/filemode (Makefile.am): Likewise.
106108         * modules/filenamecat (Makefile.am): Likewise.
106109         * modules/fnmatch (Makefile.am): Likewise.
106110         * modules/fopen-safer (Makefile.am): Likewise.
106111         * modules/fpending (Makefile.am): Likewise.
106112         * modules/fprintftime (Makefile.am): Likewise.
106113         * modules/free (Makefile.am): Likewise.
106114         * modules/fsusage (Makefile.am): Likewise.
106115         * modules/ftruncate (Makefile.am): Likewise.
106116         * modules/fts (Makefile.am): Likewise.
106117         * modules/gc-arcfour (Makefile.am): Likewise.
106118         * modules/gc-des (Makefile.am): Likewise.
106119         * modules/gc-hmac-md5 (Makefile.am): Likewise.
106120         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
106121         * modules/gc-md4 (Makefile.am): Likewise.
106122         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
106123         * modules/gc-sha1 (Makefile.am): Likewise.
106124         * modules/gc (Makefile.am): Likewise.
106125         * modules/getaddrinfo (Makefile.am): Likewise.
106126         * modules/getcwd (Makefile.am): Likewise.
106127         * modules/getdelim (Makefile.am): Likewise.
106128         * modules/getdomainname (Makefile.am): Likewise.
106129         * modules/getgroups (Makefile.am): Likewise.
106130         * modules/gethostname (Makefile.am): Likewise.
106131         * modules/gethrxtime (Makefile.am): Likewise.
106132         * modules/getline (Makefile.am): Likewise.
106133         * modules/getloadavg (Makefile.am): Likewise.
106134         * modules/getlogin_r (Makefile.am): Likewise.
106135         * modules/getndelim2 (Makefile.am): Likewise.
106136         * modules/getopt (Makefile.am): Likewise.
106137         * modules/getpagesize (Makefile.am): Likewise.
106138         * modules/getpass-gnu (Makefile.am): Likewise.
106139         * modules/getpass (Makefile.am): Likewise.
106140         * modules/getsubopt (Makefile.am): Likewise.
106141         * modules/gettime (Makefile.am): Likewise.
106142         * modules/gettimeofday (Makefile.am): Likewise.
106143         * modules/getugroups (Makefile.am): Likewise.
106144         * modules/getusershell (Makefile.am): Likewise.
106145         * modules/glob (Makefile.am): Likewise.
106146         * modules/group-member (Makefile.am): Likewise.
106147         * modules/hard-locale (Makefile.am): Likewise.
106148         * modules/hash (Makefile.am): Likewise.
106149         * modules/hmac-md5 (Makefile.am): Likewise.
106150         * modules/hmac-sha1 (Makefile.am): Likewise.
106151         * modules/human (Makefile.am): Likewise.
106152         * modules/idcache (Makefile.am): Likewise.
106153         * modules/imaxabs (Makefile.am): Likewise.
106154         * modules/imaxdiv (Makefile.am): Likewise.
106155         * modules/inet_ntop (Makefile.am): Likewise.
106156         * modules/inet_pton (Makefile.am): Likewise.
106157         * modules/intprops (Makefile.am): Likewise.
106158         * modules/inttostr (Makefile.am): Likewise.
106159         * modules/inttypes (Makefile.am): Likewise.
106160         * modules/isapipe (Makefile.am): Likewise.
106161         * modules/javaversion (Makefile.am): Likewise.
106162         * modules/lchmod (Makefile.am): Likewise.
106163         * modules/lchown (Makefile.am): Likewise.
106164         * modules/localcharset (Makefile.am): Likewise.
106165         * modules/long-options (Makefile.am): Likewise.
106166         * modules/lstat (Makefile.am): Likewise.
106167         * modules/malloc (Makefile.am): Likewise.
106168         * modules/mathl (Makefile.am): Likewise.
106169         * modules/mbchar (Makefile.am): Likewise.
106170         * modules/md2 (Makefile.am): Likewise.
106171         * modules/md4 (Makefile.am): Likewise.
106172         * modules/md5 (Makefile.am): Likewise.
106173         * modules/memcasecmp (Makefile.am): Likewise.
106174         * modules/memchr (Makefile.am): Likewise.
106175         * modules/memcmp (Makefile.am): Likewise.
106176         * modules/memcoll (Makefile.am): Likewise.
106177         * modules/memcpy (Makefile.am): Likewise.
106178         * modules/memmem (Makefile.am): Likewise.
106179         * modules/memmove (Makefile.am): Likewise.
106180         * modules/mempcpy (Makefile.am): Likewise.
106181         * modules/memrchr (Makefile.am): Likewise.
106182         * modules/memset (Makefile.am): Likewise.
106183         * modules/memxor (Makefile.am): Likewise.
106184         * modules/mkancesdirs (Makefile.am): Likewise.
106185         * modules/mkdir-p (Makefile.am): Likewise.
106186         * modules/mkdir (Makefile.am): Likewise.
106187         * modules/mkdtemp (Makefile.am): Likewise.
106188         * modules/mkstemp (Makefile.am): Likewise.
106189         * modules/mktime (Makefile.am): Likewise.
106190         * modules/modechange (Makefile.am): Likewise.
106191         * modules/mountlist (Makefile.am): Likewise.
106192         * modules/nanosleep (Makefile.am): Likewise.
106193         * modules/obstack (Makefile.am): Likewise.
106194         * modules/openat (Makefile.am): Likewise.
106195         * modules/pagealign_alloc (Makefile.am): Likewise.
106196         * modules/pathmax (Makefile.am): Likewise.
106197         * modules/physmem (Makefile.am): Likewise.
106198         * modules/poll (Makefile.am): Likewise.
106199         * modules/posixtm (Makefile.am): Likewise.
106200         * modules/posixver (Makefile.am): Likewise.
106201         * modules/putenv (Makefile.am): Likewise.
106202         * modules/quote (Makefile.am): Likewise.
106203         * modules/quotearg (Makefile.am): Likewise.
106204         * modules/raise (Makefile.am): Likewise.
106205         * modules/read-file (Makefile.am): Likewise.
106206         * modules/readline (Makefile.am): Likewise.
106207         * modules/readlink (Makefile.am): Likewise.
106208         * modules/readtokens (Makefile.am): Likewise.
106209         * modules/readutmp (Makefile.am): Likewise.
106210         * modules/realloc (Makefile.am): Likewise.
106211         * modules/regex (Makefile.am): Likewise.
106212         * modules/rename-dest-slash (Makefile.am): Likewise.
106213         * modules/rename (Makefile.am): Likewise.
106214         * modules/rijndael (Makefile.am): Likewise.
106215         * modules/rmdir (Makefile.am): Likewise.
106216         * modules/rpmatch (Makefile.am): Likewise.
106217         * modules/safe-read (Makefile.am): Likewise.
106218         * modules/safe-write (Makefile.am): Likewise.
106219         * modules/same-inode (Makefile.am): Likewise.
106220         * modules/same (Makefile.am): Likewise.
106221         * modules/save-cwd (Makefile.am): Likewise.
106222         * modules/savedir (Makefile.am): Likewise.
106223         * modules/setenv (Makefile.am): Likewise.
106224         * modules/settime (Makefile.am): Likewise.
106225         * modules/sha1 (Makefile.am): Likewise.
106226         * modules/sig2str (Makefile.am): Likewise.
106227         * modules/snprintf (Makefile.am): Likewise.
106228         * modules/stat-macros (Makefile.am): Likewise.
106229         * modules/stat-time (Makefile.am): Likewise.
106230         * modules/stdbool (Makefile.am): Likewise.
106231         * modules/stdint (Makefile.am): Likewise.
106232         * modules/stdlib-safer (Makefile.am): Likewise.
106233         * modules/stpcpy (Makefile.am): Likewise.
106234         * modules/stpncpy (Makefile.am): Likewise.
106235         * modules/strcase (Makefile.am): Likewise.
106236         * modules/strcasestr (Makefile.am): Likewise.
106237         * modules/strchrnul (Makefile.am): Likewise.
106238         * modules/strcspn (Makefile.am): Likewise.
106239         * modules/strdup (Makefile.am): Likewise.
106240         * modules/strerror (Makefile.am): Likewise.
106241         * modules/strftime (Makefile.am): Likewise.
106242         * modules/strndup (Makefile.am): Likewise.
106243         * modules/strnlen (Makefile.am): Likewise.
106244         * modules/strpbrk (Makefile.am): Likewise.
106245         * modules/strsep (Makefile.am): Likewise.
106246         * modules/strstr (Makefile.am): Likewise.
106247         * modules/strtod (Makefile.am): Likewise.
106248         * modules/strtoimax (Makefile.am): Likewise.
106249         * modules/strtok_r (Makefile.am): Likewise.
106250         * modules/strtol (Makefile.am): Likewise.
106251         * modules/strtoll (Makefile.am): Likewise.
106252         * modules/strtoul (Makefile.am): Likewise.
106253         * modules/strtoull (Makefile.am): Likewise.
106254         * modules/strtoumax (Makefile.am): Likewise.
106255         * modules/strverscmp (Makefile.am): Likewise.
106256         * modules/sys_socket (Makefile.am): Likewise.
106257         * modules/sys_stat (Makefile.am): Likewise.
106258         * modules/sysexits (Makefile.am): Likewise.
106259         * modules/time_r (Makefile.am): Likewise.
106260         * modules/timegm (Makefile.am): Likewise.
106261         * modules/timespec (Makefile.am): Likewise.
106262         * modules/tmpfile-safer (Makefile.am): Likewise.
106263         * modules/trim (Makefile.am): Likewise.
106264         * modules/unistd-safer (Makefile.am): Likewise.
106265         * modules/unlinkdir (Makefile.am): Likewise.
106266         * modules/unlocked-io (Makefile.am): Likewise.
106267         * modules/userspec (Makefile.am): Likewise.
106268         * modules/utime (Makefile.am): Likewise.
106269         * modules/utimecmp (Makefile.am): Likewise.
106270         * modules/utimens (Makefile.am): Likewise.
106271         * modules/vasnprintf (Makefile.am): Likewise.
106272         * modules/vasprintf (Makefile.am): Likewise.
106273         * modules/vsnprintf (Makefile.am): Likewise.
106274         * modules/xalloc (Makefile.am): Likewise.
106275         * modules/xgetcwd (Makefile.am): Likewise.
106276         * modules/xnanosleep (Makefile.am): Likewise.
106277         * modules/xreadlink (Makefile.am): Likewise.
106278         * modules/xstrtod (Makefile.am): Likewise.
106279         * modules/xstrtol (Makefile.am): Likewise.
106280         * modules/xstrtold (Makefile.am): Likewise.
106281         * modules/yesno (Makefile.am): Likewise.
106282         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
106284 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
106286         * modules/error (Makefile.am): Distribute files through
106287         EXTRA_DIST, not lib_SOURCES.
106289 2006-10-12  Eric Blake  <ebb9@byu.net>
106291         * modules/error (Makefile.am): Distribute files in /lib.
106292         * modules/obstack (Makefile.am): Likewise.
106294 2006-10-12  Bruno Haible  <bruno@clisp.org>
106296         * modules/acl (Makefile.am): Distribute all files in lib/ through
106297         EXTRA_DIST.
106298         * modules/arcfour (Makefile.am): Likewise.
106299         * modules/arctwo (Makefile.am): Likewise.
106300         * modules/argmatch (Makefile.am): Likewise.
106301         * modules/argz (Makefile.am): Likewise.
106302         * modules/atexit (Makefile.am): Likewise.
106303         * modules/backupfile (Makefile.am): Likewise.
106304         * modules/c-strtod (Makefile.am): Likewise.
106305         * modules/c-strtold (Makefile.am): Likewise.
106306         * modules/calloc (Makefile.am): Likewise.
106307         * modules/canon-host (Makefile.am): Likewise.
106308         * modules/canonicalize (Makefile.am): Likewise.
106309         * modules/chdir-long (Makefile.am): Likewise.
106310         * modules/chdir-safer (Makefile.am): Likewise.
106311         * modules/check-version (Makefile.am): Likewise.
106312         * modules/chown (Makefile.am): Likewise.
106313         * modules/cloexec (Makefile.am): Likewise.
106314         * modules/close-stream (Makefile.am): Likewise.
106315         * modules/closeout (Makefile.am): Likewise.
106316         * modules/crc (Makefile.am): Likewise.
106317         * modules/cycle-check (Makefile.am): Likewise.
106318         * modules/des (Makefile.am): Likewise.
106319         * modules/dirfd (Makefile.am): Likewise.
106320         * modules/dirname (Makefile.am): Likewise.
106321         * modules/dup2 (Makefile.am): Likewise.
106322         * modules/euidaccess (Makefile.am): Likewise.
106323         * modules/exclude (Makefile.am): Likewise.
106324         * modules/exitfail (Makefile.am): Likewise.
106325         * modules/fcntl-safer (Makefile.am): Likewise.
106326         * modules/file-type (Makefile.am): Likewise.
106327         * modules/fileblocks (Makefile.am): Likewise.
106328         * modules/filemode (Makefile.am): Likewise.
106329         * modules/filenamecat (Makefile.am): Likewise.
106330         * modules/fnmatch (Makefile.am): Likewise.
106331         * modules/fopen-safer (Makefile.am): Likewise.
106332         * modules/fpending (Makefile.am): Likewise.
106333         * modules/fprintftime (Makefile.am): Likewise.
106334         * modules/free (Makefile.am): Likewise.
106335         * modules/fsusage (Makefile.am): Likewise.
106336         * modules/ftruncate (Makefile.am): Likewise.
106337         * modules/fts (Makefile.am): Likewise.
106338         * modules/gc (Makefile.am): Likewise.
106339         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
106340         * modules/getaddrinfo (Makefile.am): Likewise.
106341         * modules/getcwd (Makefile.am): Likewise.
106342         * modules/getdelim (Makefile.am): Likewise.
106343         * modules/getdomainname (Makefile.am): Likewise.
106344         * modules/getgroups (Makefile.am): Likewise.
106345         * modules/gethostname (Makefile.am): Likewise.
106346         * modules/gethrxtime (Makefile.am): Likewise.
106347         * modules/getline (Makefile.am): Likewise.
106348         * modules/getloadavg (Makefile.am): Likewise.
106349         * modules/getlogin_r (Makefile.am): Likewise.
106350         * modules/getopt (Makefile.am): Likewise.
106351         * modules/getpass (Makefile.am): Likewise.
106352         * modules/getpass-gnu (Makefile.am): Likewise.
106353         * modules/getsubopt (Makefile.am): Likewise.
106354         * modules/gettime (Makefile.am): Likewise.
106355         * modules/gettimeofday (Makefile.am): Likewise.
106356         * modules/getugroups (Makefile.am): Likewise.
106357         * modules/getusershell (Makefile.am): Likewise.
106358         * modules/glob (Makefile.am): Likewise.
106359         * modules/group-member (Makefile.am): Likewise.
106360         * modules/hard-locale (Makefile.am): Likewise.
106361         * modules/hash (Makefile.am): Likewise.
106362         * modules/hmac-md5 (Makefile.am): Likewise.
106363         * modules/hmac-sha1 (Makefile.am): Likewise.
106364         * modules/human (Makefile.am): Likewise.
106365         * modules/idcache (Makefile.am): Likewise.
106366         * modules/imaxabs (Makefile.am): Likewise.
106367         * modules/imaxdiv (Makefile.am): Likewise.
106368         * modules/inet_ntop (Makefile.am): Likewise.
106369         * modules/inet_pton (Makefile.am): Likewise.
106370         * modules/inttostr (Makefile.am): Likewise.
106371         * modules/isapipe (Makefile.am): Likewise.
106372         * modules/lchown (Makefile.am): Likewise.
106373         * modules/long-options (Makefile.am): Likewise.
106374         * modules/lstat (Makefile.am): Likewise.
106375         * modules/malloc (Makefile.am): Likewise.
106376         * modules/mathl (Makefile.am): Likewise.
106377         * modules/mbchar (Makefile.am): Likewise.
106378         * modules/md2 (Makefile.am): Likewise.
106379         * modules/md4 (Makefile.am): Likewise.
106380         * modules/md5 (Makefile.am): Likewise.
106381         * modules/memcasecmp (Makefile.am): Likewise.
106382         * modules/memchr (Makefile.am): Likewise.
106383         * modules/memcmp (Makefile.am): Likewise.
106384         * modules/memcoll (Makefile.am): Likewise.
106385         * modules/memcpy (Makefile.am): Likewise.
106386         * modules/memmem (Makefile.am): Likewise.
106387         * modules/memmove (Makefile.am): Likewise.
106388         * modules/mempcpy (Makefile.am): Likewise.
106389         * modules/memrchr (Makefile.am): Likewise.
106390         * modules/memset (Makefile.am): Likewise.
106391         * modules/memxor (Makefile.am): Likewise.
106392         * modules/mkancesdirs (Makefile.am): Likewise.
106393         * modules/mkdir (Makefile.am): Likewise.
106394         * modules/mkdir-p (Makefile.am): Likewise.
106395         * modules/mkdtemp (Makefile.am): Likewise.
106396         * modules/mkstemp (Makefile.am): Likewise.
106397         * modules/mktime (Makefile.am): Likewise.
106398         * modules/modechange (Makefile.am): Likewise.
106399         * modules/mountlist (Makefile.am): Likewise.
106400         * modules/nanosleep (Makefile.am): Likewise.
106401         * modules/openat (Makefile.am): Likewise.
106402         * modules/pagealign_alloc (Makefile.am): Likewise.
106403         * modules/physmem (Makefile.am): Likewise.
106404         * modules/poll (Makefile.am): Likewise.
106405         * modules/posixtm (Makefile.am): Likewise.
106406         * modules/posixver (Makefile.am): Likewise.
106407         * modules/putenv (Makefile.am): Likewise.
106408         * modules/quote (Makefile.am): Likewise.
106409         * modules/quotearg (Makefile.am): Likewise.
106410         * modules/raise (Makefile.am): Likewise.
106411         * modules/read-file (Makefile.am): Likewise.
106412         * modules/readline (Makefile.am): Likewise.
106413         * modules/readlink (Makefile.am): Likewise.
106414         * modules/readtokens (Makefile.am): Likewise.
106415         * modules/readutmp (Makefile.am): Likewise.
106416         * modules/realloc (Makefile.am): Likewise.
106417         * modules/regex (Makefile.am): Likewise.
106418         * modules/rename (Makefile.am): Likewise.
106419         * modules/rename-dest-slash (Makefile.am): Likewise.
106420         * modules/rijndael (Makefile.am): Likewise.
106421         * modules/rmdir (Makefile.am): Likewise.
106422         * modules/rpmatch (Makefile.am): Likewise.
106423         * modules/safe-read (Makefile.am): Likewise.
106424         * modules/safe-write (Makefile.am): Likewise.
106425         * modules/same (Makefile.am): Likewise.
106426         * modules/save-cwd (Makefile.am): Likewise.
106427         * modules/savedir (Makefile.am): Likewise.
106428         * modules/setenv (Makefile.am): Likewise.
106429         * modules/settime (Makefile.am): Likewise.
106430         * modules/sha1 (Makefile.am): Likewise.
106431         * modules/sig2str (Makefile.am): Likewise.
106432         * modules/snprintf (Makefile.am): Likewise.
106433         * modules/stdlib-safer (Makefile.am): Likewise.
106434         * modules/stpcpy (Makefile.am): Likewise.
106435         * modules/stpncpy (Makefile.am): Likewise.
106436         * modules/strcase (Makefile.am): Likewise.
106437         * modules/strcasestr (Makefile.am): Likewise.
106438         * modules/strchrnul (Makefile.am): Likewise.
106439         * modules/strcspn (Makefile.am): Likewise.
106440         * modules/strdup (Makefile.am): Likewise.
106441         * modules/strerror (Makefile.am): Likewise.
106442         * modules/strftime (Makefile.am): Likewise.
106443         * modules/strndup (Makefile.am): Likewise.
106444         * modules/strnlen (Makefile.am): Likewise.
106445         * modules/strpbrk (Makefile.am): Likewise.
106446         * modules/strsep (Makefile.am): Likewise.
106447         * modules/strstr (Makefile.am): Likewise.
106448         * modules/strtod (Makefile.am): Likewise.
106449         * modules/strtoimax (Makefile.am): Likewise.
106450         * modules/strtok_r (Makefile.am): Likewise.
106451         * modules/strtol (Makefile.am): Likewise.
106452         * modules/strtoll (Makefile.am): Likewise.
106453         * modules/strtoul (Makefile.am): Likewise.
106454         * modules/strtoull (Makefile.am): Likewise.
106455         * modules/strtoumax (Makefile.am): Likewise.
106456         * modules/strverscmp (Makefile.am): Likewise.
106457         * modules/time_r (Makefile.am): Likewise.
106458         * modules/timegm (Makefile.am): Likewise.
106459         * modules/tmpfile-safer (Makefile.am): Likewise.
106460         * modules/unistd-safer (Makefile.am): Likewise.
106461         * modules/unlinkdir (Makefile.am): Likewise.
106462         * modules/userspec (Makefile.am): Likewise.
106463         * modules/utime (Makefile.am): Likewise.
106464         * modules/utimecmp (Makefile.am): Likewise.
106465         * modules/utimens (Makefile.am): Likewise.
106466         * modules/vasnprintf (Makefile.am): Likewise.
106467         * modules/vasprintf (Makefile.am): Likewise.
106468         * modules/vsnprintf (Makefile.am): Likewise.
106469         * modules/xalloc (Makefile.am): Likewise.
106470         * modules/xgetcwd (Makefile.am): Likewise.
106471         * modules/xnanosleep (Makefile.am): Likewise.
106472         * modules/xreadlink (Makefile.am): Likewise.
106473         * modules/xstrtod (Makefile.am): Likewise.
106474         * modules/xstrtol (Makefile.am): Likewise.
106475         * modules/xstrtold (Makefile.am): Likewise.
106476         * modules/yesno (Makefile.am): Likewise.
106478 2006-10-12  Jim Meyering  <jim@meyering.net>
106480         * m4/getloadavg.m4: Revert the change below.
106482         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
106483         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
106484         fail with a symlink, which is what coreutils' ./bootstrap now
106485         creates by default.
106487 2006-10-12  Bruno Haible  <bruno@clisp.org>
106489         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
106490         mingw.
106491         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
106492         MSVC and mingw explicitly.
106494 2006-10-11  Simon Josefsson  <jas@extundo.com>
106495             Bruno Haible  <bruno@clisp.org>
106497         Add support for multiple gnulib-tool invocations in the scope of a
106498         single configure.ac file.
106499         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
106500         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
106501         with the same contents as the _LIBADD variable.
106502         (func_emit_initmacro_start, func_emit_initmacro_end,
106503         func_emit_initmacro_done): New functions.
106504         (func_import, func_create_testdir): Invoke them. Allow the identifiers
106505         gl_LIBOBJS and gl_LTLIBOBJS.
106507 2006-10-11  Bruno Haible  <bruno@clisp.org>
106509         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
106510         (func_create_testdir): Don't create po/Makefile.am, don't invoke
106511         autoreconf. Instead, invoke autopoint explicitly but move back the
106512         *.m4 files from gnulib.
106514 2006-10-11  Bruno Haible  <bruno@clisp.org>
106516         * gnulib-tool (func_usage): Make module names after --create-testdir
106517         optional.
106518         (func_create_testdir): If no module was specified, use nearly all
106519         modules.
106521 2006-10-12  Jim Meyering  <jim@meyering.net>
106523         Big performance improvement for fts-based tools that use FTS_NOSTAT.
106524         Avoid spurious inode-mismatch problems on non-POSIX file systems.
106525         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
106526         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
106527         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
106528         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
106529         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
106530         (fts_set_stat_required): New function.
106531         (fts_open): Defer the calls to fts_stat, if possible or requested.
106532         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
106533         into fts_stat itself.
106534         (fts_read): Perform any required (deferred) fts_stat call.
106535         (fts_build): Likewise, for the directory we're about to open and read.
106536         In the readdir loop, carefully decide whether each entry will require
106537         an eventual call to fts_stat, using dirent.d_type info if available.
106538         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
106539         a command line argument into this function.  Update all callers.
106540         Map a return value of FTS_DOT to FTS_D for a command line argument.
106541         * modules/fts (Depends-on): Add d-type.  Alphabetize.
106542         Thanks to Miklos Szeredi for his tenacity and for the initial
106543         bug report about "find" failing on a FUSE-based file system.
106545         * lib/fts.c (fts_open): Use consistent indentation.
106547 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
106549         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
106550         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
106551         reported by Jim Meyering.  All uses of cache variables renamed
106552         to match Autoconf's.
106553         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
106554         the other one.
106556         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
106557         Fix misspelling in diagnostic.
106559 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
106561         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
106562         defined.  Problem reported by Matthew Woehlke.
106564         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
106565         Add support for Tandem NonStop R series.
106566         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
106567         Use new macro.
106569         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
106570         (has_trailing_slash): Omit size arg; all callers changed.
106571         Omit 'inline', since it doesn't help performance and we'd
106572         need to configure it.
106573         Don't count //, ///, etc. as having a trailing slash.
106574         As a side effect, this removes a C99ism reported by Matthew Woehlke.
106575         (rpl_rename_dest_slash): On failure, use rename's errno rather
106576         than (in some cases) an incorrect or junk errno.
106577         Simplify code by removing need to compute length; this does
106578         cause it to make two passes instead of one over the file name,
106579         but it's worth it.
106581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
106582         change, since Autoconf's version may no longer be appropriate now
106583         that we are using CVS Autoconf's version.  Add support for Tandem.
106585 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
106586             Bruno Haible  <bruno@clisp.org>
106588         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
106589         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
106590         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
106591         gl_AC_TYPE_LONG_LONG.
106593         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
106594         instead of HAVE_LONG_LONG.
106595         * lib/printf-args.c (printf_fetchargs): Likewise.
106596         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
106597         * lib/vasnprintf.c (VASNPRINTF): Likewise.
106598         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
106599         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
106600         gl_AC_TYPE_LONG_LONG.
106602 2006-10-11  Bruno Haible  <bruno@clisp.org>
106604         * m4/longlong.m4: Add comments.
106605         * m4/ulonglong.m4: Likewise.
106607 2006-10-10  Bruno Haible  <bruno@clisp.org>
106609         Make it possible to #define stpcpy, strdup to aliases.
106610         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
106611         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
106613 2006-10-10  Bruno Haible  <bruno@clisp.org>
106615         Make it possible to #define gcd to an alias.
106616         * lib/gcd.c: Include config.h.
106618 2006-10-10  Bruno Haible  <bruno@clisp.org>
106620         Make it possible to #define c_isascii to an alias.
106621         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
106622         defined. Undefine the macros before defining them, to avoid gcc
106623         warnings.
106624         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
106625         define NO_C_CTYPE_MACROS early.
106627 2006-10-10  Bruno Haible  <bruno@clisp.org>
106629         Make it possible to #define set_program_name to an alias.
106630         * lib/progname.c: Don't undefine set_program_name; instead, undefine
106631         ENABLE_RELOCATABLE early.
106633 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
106635         Port to Tandem NSK OSS, which has 64-bit signed int but at most
106636         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
106637         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
106638         More generally, don't assume that 64-bit signed int is available
106639         if unsigned int is, and vice versa.
106640         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
106641         unsigned symbols, not on their signed counterparts.
106642         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
106643         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
106644         (UINT64_C, UINTMAX_C):
106645         Likewise.
106646         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
106647         unsigned counterparts.
106648         (Have_long_long, Unsigned): New macros.
106649         (Int): Renamed from INT.
106650         (strtoimax): Use the new macros.
106651         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
106652         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
106653         * modules/inttypes (inttypes.h): Substitute
106654         HAVE_UNSIGNED_LONG_LONG_INT.
106655         * modules/stdint (stdint.h): Likewise.
106656         (Files): Add m4/ulonglong.m4.
106658 2006-10-10  Bruno Haible  <bruno@clisp.org>
106660         Fix a gcc -Wshadow warning.
106661         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
106662         to 'bucket'.
106663         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
106664         gl_linked_indexof_from_to): Likewise.
106665         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
106666         Likewise.
106667         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
106668         Likewise.
106669         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
106670         Reported by Eric Blake.
106672 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
106674         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
106675         for NetBSD.  Problem reported by Bruno Haible.
106677 2006-10-09  Jim Meyering  <jim@meyering.net>
106679         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
106680         Patch from Bruno Haible.
106682 2006-10-09  Jim Meyering  <jim@meyering.net>
106684         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
106685         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
106686         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
106688 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106690         Don't include <config.h> twice; this doesn't work in some cases,
106691         e.g., when config.h has "#define intmax_t long long int" and
106692         we include <config.h>, <inttypes.h>, <config.h> in that order.
106693         Problem reported by Matthew Woehlke in:
106694         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
106695         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
106696         * lib/fts-cycle.c: Don't include config.h.
106697         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
106698         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
106699         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
106700         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
106701         inttypes.h.
106702         * lib/xstrtoumax.c: Likewise.
106703         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
106704         __strtol and the like, so that this module is more like its siblings.
106705         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
106706         Remove; no longer needed now that we assume gnulib inttypes.h.
106708 2006-10-08  Bruno Haible  <bruno@clisp.org>
106710         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
106711         option.
106713 2006-10-07  Jim Meyering  <jim@meyering.net>
106715         * modules/inttypes (inttypes.h): Revert what seems to have been
106716         an inadvertent part of today's change: use "|", not "/" in the
106717         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
106719 2006-10-07  Bruno Haible  <bruno@clisp.org>
106721         * modules/sublist: New file.
106723 2006-10-07  Bruno Haible  <bruno@clisp.org>
106725         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
106726         * modules/argz (argz.h): Likewise.
106727         * modules/arpa_inet (arpa/inet.h): Likewise.
106728         * modules/byteswap (byteswap.h): Likewise.
106729         * modules/configmake (configmake.h): Likewise.
106730         * modules/fcntl (fcntl.h): Likewise.
106731         * modules/fnmatch (fnmatch.h): Likewise.
106732         * modules/getopt (getopt.h): Likewise.
106733         * modules/glob (glob.h): Likewise.
106734         * modules/inttypes (inttypes.h): Likewise.
106735         * modules/netinet_in (netinet/in.h): Likewise.
106736         * modules/poll (poll.h): Likewise.
106737         * modules/stdbool (stdbool.h): Likewise.
106738         * modules/stdint (stdint.h): Likewise.
106739         * modules/sys_select (sys/select.h): Likewise.
106740         * modules/sys_socket (sys/socket.h): Likewise.
106741         * modules/sys_stat (sys/stat.h): Likewise.
106742         * modules/sysexits (sysexits.h): Likewise.
106743         * modules/unistd (unistd.h): Likewise.
106744         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106745         Add a "DO NOT EDIT" comment to the generated file.
106746         (func_import): Likewise for gnulib-comp.m4.
106748 2006-10-07  Bruno Haible  <bruno@clisp.org>
106750         * lib/gl_sublist.h: New file.
106751         * lib/gl_sublist.c: New file.
106753 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
106755         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
106756         name (relative to the original working directory) and the file
106757         name component (relative to the temporary working directory).  All
106758         callers changed.
106759         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
106760         * lib/mkdir-p.c (make_dir_parents): Likewise.
106761         * lib/mkdir-p.h (make_dir_parents): Likewise.
106763 2006-10-06  Eric Blake  <ebb9@byu.net>
106765         Define several macros for use by the clean-temp module.
106766         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
106767         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
106768         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
106770         * lib/clean-temp.h (close_stream_temp): New declaration.
106771         * lib/clean-temp.c (includes): Pull in headers according to what
106772         other modules are in use.
106773         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
106775 2006-10-06  Bruno Haible  <bruno@clisp.org>
106777         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
106778         instead of fopen, fwriteerror.
106780 2006-10-06  Bruno Haible  <bruno@clisp.org>
106782         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
106783         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
106784         int.
106785         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
106786         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
106787         Return an error indicator.
106788         Suggested by Eric Blake.
106790 2006-10-06  Bruno Haible  <bruno@clisp.org>
106792         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
106793         Reported by Eric Blake.
106795 2006-10-06  Bruno Haible  <bruno@clisp.org>
106797         * modules/closeout (Description): Mention stderr too.
106799 2006-10-06  Bruno Haible  <bruno@clisp.org>
106800         and Paul Eggert  <eggert@cs.ucla.edu>
106802         * lib/closeout.c (close_stdout): Also close stderr.
106803         * lib/closeout.h: Update comment.
106805 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
106807         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
106808         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
106809         * lib/dirchownmod.c: Include lchown.h.
106810         * lib/lchown.c: Don't include files that lchown.h now includes.
106811         Don't declare chown, since lchown.h now does that.
106812         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
106813         (lchown): Define to rpl_chown if lchown is declared but
106814         does not exist.  Declare using a prototype if lchown is not
106815         declared.  Add a copyright notice.
106816         * lib/mkstemp.h: Include <unistd.h>.
106817         * lib/openat.c: Include lchown.h.
106819         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
106820         we now test for that separately.
106821         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
106822         rather than O_NOFOLLOW, when testing whether it's possible to
106823         avoid a race condition reliably.
106824         * lib/savewd.c (savewd_chdir): Likewise.
106826         Remove macros that are no longer needed now that stdint.h is
106827         reliable.
106828         * lib/fsusage.c (UINTMAX_MAX): Remove.
106829         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
106830         * lib/utimecmp.c (SIZE_MAX): Remove.
106832         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
106834         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
106835         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
106836         O_NOATIME works.
106838 2006-10-05  Bruno Haible  <bruno@clisp.org>
106840         * lib/gl_list.h (gl_sortedlist_search_from_to,
106841         gl_sortedlist_indexof_from_to): New declarations.
106842         (gl_list_implementation): New fields sortedlist_search_from_to,
106843         sortedlist_indexof_from_to.
106844         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
106845         inline functions.
106846         * lib/gl_list.c (gl_sortedlist_search_from_to,
106847         gl_sortedlist_indexof_from_to): New functions.
106848         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
106849         function.
106850         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
106851         (gl_array_sortedlist_search_from_to): New function.
106852         (gl_array_list_implementation): Update.
106853         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
106854         function.
106855         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
106856         (gl_carray_sortedlist_search_from_to): New function.
106857         (gl_carray_list_implementation): Update.
106858         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
106859         gl_linked_sortedlist_indexof_from_to): New functions.
106860         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
106861         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
106862         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
106863         gl_tree_sortedlist_indexof_from_to): New functions.
106864         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
106865         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
106866         Update.
106867         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
106868         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
106869         Update.
106871 2006-10-05  Bruno Haible  <bruno@clisp.org>
106873         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
106874         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
106875         (struct gl_list_implementation): Add fields search_from_to,
106876         indexof_from_to. Remove fields search, indexof.
106877         (gl_list_search): Use the search_from_to method.
106878         (gl_list_search_from, gl_list_search_from_to): New functions.
106879         (gl_list_indexof): Use the indexof_from_to method.
106880         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
106881         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
106882         (gl_list_search_from, gl_list_search_from_to): New functions.
106883         (gl_list_indexof): Use the indexof_from_to method.
106884         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
106885         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
106886         gl_array_indexof. Add start_index, end_index arguments.
106887         (gl_array_search_from_to): Renamed from gl_array_search. Add
106888         start_index, end_index arguments.
106889         (gl_array_remove, gl_array_list_implementation): Update.
106890         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
106891         gl_carray_indexof. Add start_index, end_index arguments.
106892         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
106893         start_index, end_index arguments.
106894         (gl_carray_remove, gl_carray_list_implementation): Update.
106895         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
106896         gl_linked_search. Add start_index, end_index arguments.
106897         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
106898         start_index, end_index arguments.
106899         (gl_linked_remove): Update.
106900         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
106901         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
106902         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
106903         field to 'size_t'.
106904         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
106905         gl_tree_search. Add start_index, end_index arguments.
106906         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
106907         start_index, end_index arguments.
106908         (gl_tree_remove): Update.
106909         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
106910         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
106911         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
106912         function.
106913         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
106914         gl_tree_search. Add start_index, end_index arguments.
106915         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
106916         start_index, end_index arguments.
106917         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
106918         Update.
106919         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
106921 2006-10-05  Bruno Haible  <bruno@clisp.org>
106923         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
106925         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
106926         fwriteerror_temp): New declarations.
106927         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
106928         (descriptors): New variable.
106929         (cleanup): First, close the descriptors.
106930         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
106931         fclose_temp, fwriteerror_temp): New functions.
106933 2006-10-04  Jim Meyering  <jim@meyering.net>
106935         * lib/fts.c (fts_open): Tiny comment change.
106937 2006-10-04  Bruno Haible  <bruno@clisp.org>
106939         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
106940         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
106941         gl_LOCK_BODY.
106942         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
106943         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
106944         gl_LOCK_EARLY_BODY.
106945         (gl_LOCK): Require gl_LOCK_BODY.
106947 2006-10-04  Bruno Haible  <bruno@clisp.org>
106949         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
106950         (gl_oset_search_atleast): New declaration.
106951         (struct gl_oset_implementation): Add field 'search_atleast'.
106952         (gl_oset_search_atleast): New inline function.
106953         * lib/gl_oset.c (gl_oset_search_atleast): New function.
106954         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
106955         (gl_array_oset_implementation): Update.
106956         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
106957         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
106958         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
106960 2006-10-04  Bruno Haible  <bruno@clisp.org>
106962         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
106964 2006-10-03  Bruno Haible  <bruno@clisp.org>
106966         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
106967         from gl_avltreehash_list_implementation.
106969 2006-10-03  Bruno Haible  <bruno@clisp.org>
106971         * lib/gl_oset.c (gl_oset_add): Fix return type.
106973 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
106975         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
106977 2006-10-02  Eric Blake  <ebb9@byu.net>
106979         * modules/strnlen (Depends-on): Add extensions.
106981 2006-10-02  Eric Blake  <ebb9@byu.net>
106983         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
106984         definition in 2.60+.
106986 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
106988         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
106989         checks.
106991 2006-10-02  Bruno Haible  <bruno@clisp.org>
106993         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
106994         to the AUTOMAKE_OPTIONS.
106995         Reported by Jim Meyering.
106997 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
106999         Work around bug in Solaris 10 /proc file system:
107000         /proc/self/fd/NNN/.. isn't the parent directory of
107001         the directory whose file descriptor is NNN.  This needs to
107002         be worked around at run time, not compile time, since a
107003         program might be built on Solaris 8, where things work, and
107004         run on Solaris 10.
107005         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
107006         to use the following interface instead:
107007         (OPENAT_BUFFER_SIZE): New macro.
107008         (openat_proc_name): New function.
107009         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
107010         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
107011         Likewise.
107012         * lib/openat-proc.c: New file.
107013         * modules/openat (Files): Add lib/openat-proc.c.
107014         (Depends-on): Add same-inode, stdbool.
107015         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
107017 2006-09-29  Bruno Haible  <bruno@clisp.org>
107019         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
107020         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
107021         argument. Set stdout_closed before testing for ferror, not after.
107022         (fwriteerror, fwriteerror_no_ebadf): New functions.
107024 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107026         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
107028 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
107030         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
107031         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
107033 2006-09-28  Jim Meyering  <jim@meyering.net>
107035         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
107036         Include <unistd.h>.
107038 2006-09-28  Bruno Haible  <bruno@clisp.org>
107040         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
107041         * modules/linkedhash-list (Depends-on): Likewise.
107042         * modules/rbtreehash-list (Depends-on): Likewise.
107044 2006-09-28  Bruno Haible  <bruno@clisp.org>
107046         * lib/strndup.h: Simplify the redefinition of strndup.
107047         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
107048         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
107050 2006-09-28  Bruno Haible  <bruno@clisp.org>
107052         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
107053         * lib/gl_linkedhash_list.c: Likewise.
107054         * lib/gl_rbtreehash_list.c: Likewise.
107056 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
107058         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
107059         getaddrinfo.
107061         * lib/__fpending.h: Don't include <stdio_ext.h> unless
107062         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
107063         it causes <stdio_ext.h> to cause a compile-time error.
107064         Problem reported by Nelson H. F. Beebe.
107065         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
107066         of HAVE_DECL___PENDING.
107068         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
107069         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
107070         declaration.
107072 2006-09-27  Jim Meyering  <jim@meyering.net>
107074         This file could end up with a definition for a function
107075         named __strndup, rather than rpl_strndup on a system with
107076         incomplete weak_alias support.
107077         * lib/strndup.c (strndup): Rename from __strndup.
107078         Remove #defines that used to map __strndup to strndup.
107079         Don't use K&R prototypes.
107080         Remove LIBC-related code, since this file is not sync'd with glibc.
107081         * lib/strndup.h: Revamp, accordingly.
107082         * m4/strndup.m4: Modernize.
107084 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
107086         * modules/savewd (Depends-on): Add 'raise'.
107087         * lib/savewd.c: Include <signal.h>, for 'raise'.
107089 2006-09-26  Jim Meyering  <jim@meyering.net>
107091         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
107092         when we detect Darwin 8.7.0's acl_get_file bug.
107093         Rearrange to perform the new (below) run-test while $LIBS
107094         contains any acl-related library.  Set USE_ACL at the end.
107095         (gl_ACL_GET_FILE): New function.
107097 2006-09-26  Eric Blake  <ebb9@byu.net>
107099         * lib/verror.c: Include <config.h> unconditionally.
107101 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
107103         * modules/clock-time (Maintainer): Add self.
107104         * modules/getlogin_r (Depends-on): Add extensions.
107106 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107108         * modules/clock-time: New module.
107109         * modules/nanosleep (Depends-on): Add clock-time.
107110         * modules/gethrxtime (Depends-on): Likewise.
107111         * modules/gettime (Depends-on): Likewise.
107112         * modules/settime (Depends-on): Likewise.
107114         * modules/fts-lgpl: Depend on openat.
107115         * modules/mkancesdirs: Depend on savewd.
107116         * modules/mkdir-p: Likewise.
107118 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107120         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
107122         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
107123         `gl_have_arbitrary_file_name_length_limit' to
107124         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
107125         actually works between configure runs.
107127 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107128             Bruno Haible  <bruno@clisp.org>
107130         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
107132 2006-09-25  Jim Meyering  <jim@meyering.net>
107134         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
107135         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
107137 2006-09-25  Eric Blake  <ebb9@byu.net>
107139         * gnulib-tool (func_import, func_create_testdir): Fix typos in
107140         exec's in 2006-09-18 patch when shuffling fds.
107142 2006-09-25  Bruno Haible  <bruno@clisp.org>
107144         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
107145         Reported by Jim Meyering.
107147 2006-09-24  Jim Meyering  <jim@meyering.net>
107149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
107150         compare a pointer against a literal "0".  That caused failures with
107151         at least HP-UX's hpcc.
107153 2006-09-22  Simon Josefsson  <jas@extundo.com>
107155         * modules/gc-sha1:
107156         * modules/gc-md4:
107157         * modules/gc-hmac-sha1:
107158         * modules/gc-hmac-md5:
107159         * modules/gc-des:
107160         * modules/gc-arcfour: Distribute more files.
107162 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107164         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
107165         (gl_linked_iterator_from_to): Initialize struct completely.
107166         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
107167         (gl_tree_iterator_from_to): Likewise
107168         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
107169         * lib/gl_array_list.c [lint] (gl_array_iterator)
107170         (gl_array_iterator_from_to): Likewise.
107171         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
107172         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
107173         (gl_carray_iterator_from_to): Likewise.
107175         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
107176         * lib/md4.c (md4_process_block): Remove unused variable.
107177         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
107178         parentheses for clarity.
107180 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107182         * modules/bison-i18n (Depends-on): Add gettext.
107184 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107186         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
107187         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
107188         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
107189         also add missing comma that caused broken test.
107190         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
107191         stdlib.h, for `abort'.
107192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
107193         variables.
107194         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
107195         include unistd.h if present, for `rmdir'.
107196         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
107197         variables.
107198         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
107199         in the process include standard headers for prototypes.
107200         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
107201         gets declared on GNU/Linux.
107202         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
107203         unistd.h, for `rmdir'.
107204         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
107206         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
107207         always true.
107208         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
107210         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
107212 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107214         * gnulib-tool (func_version): Create output all at once.  This
107215         may help avoid triggering unnecessary SIGPIPEs, and at any
107216         rate it doesn't hurt.
107218 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107219             Bruno Haible  <bruno@clisp.org>
107221         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
107222         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
107223         * m4/signed.m4 (bh_C_SIGNED): Likewise.
107225         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
107226         (gl_FUNC_VASPRINTF): Invoke it.
107228 2006-09-22  Bruno Haible  <bruno@clisp.org>
107230         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
107231         getloadavg.c as first argument.
107233 2006-09-22  Bruno Haible  <bruno@clisp.org>
107235         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
107236         at the beginning of the gl_INIT macro.
107237         * modules/getloadavg (configure.ac): Pass $gl_source_base to
107238         gl_GETLOADAVG.
107240 2006-09-22  Bruno Haible  <bruno@clisp.org>
107242         * gnulib-tool (func_create_megatestdir): Don't include the config-h
107243         module.
107244         Suggested by Ralf Wildenhues.
107246 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
107248         Import this patch from libc:
107250         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
107252         * lib/regex_internal.c (re_string_reconstruct): Handle
107253         offset < pstr->valid_raw_len && pstr->offsets_needed case.
107254         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
107255         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
107256         re_string_context_at.
107258         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
107259         now requires it.
107260         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
107261         gl_REGEX now does it for us.
107262         (gl_REGEX): Add test taken from
107263         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
107265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
107266         Check that large offsets work.  Modernize Autoconf usages.
107267         Prefer "yes" to mean a good thing rather than a bad.
107268         Don't put "#define mkstemp" in config.h, as this might interfere
107269         with standard system headers that "#define mkstemp mkstemp64".
107271         * modules/mkstemp (Depends-on): Add extensions, so that
107272         mkstemp is visible on some platforms.
107273         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
107274         (Include): Change to "mkstemp.h" from <stdlib.h>.
107275         (Files): Add mkstemp.h.
107277         * lib/mkstemp.h: New file, since some standard headers
107278         #define mkstemp.
107279         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
107280         Include "mkstemp.h".
107281         Make the _LIBC code resemble glibc original more,
107282         e.g., use K&R style.
107283         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
107284         (mkstemp): Remove, since mkstemp.h does this for us.
107285         * lib/stdlib--.h: Include mkstemp.h.
107287         Import this patch from libc:
107289         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
107291         * lib/tempname.c (__gen_tempname): Change attempts_min
107292         into a macro.  Use preprocessor to decide how to initialize
107293         attempts [Coverity CID 67].
107295 2006-09-20  Bruno Haible  <bruno@clisp.org>
107297         * lib/mkdtemp.c: Import from libc.
107298         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
107299                 * sysdeps/posix/tempname.c (__gen_tempname): Change
107300                 attempts_min into a macro.  Use preprocessor to decide how to
107301                 initialize attempts [Coverity CID 67].
107302         2001-11-27  Paul Eggert  <eggert@twinsun.com>
107303                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
107304                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
107306 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107308         * gnulib-tool (func_exit): New function, to allow to pass the
107309         exit status portably through the trap.  Use everywhere.
107310         (--help, --version): Signal a write error.
107311         (trap): catch SIGPIPE, for write errors.
107312         Exit at the end of the trap, with the correct exit status.
107314 2006-09-19  Karl Berry  <karl@gnu.org>
107316         * doc/gnulib.texi: note about the license texinfo files.
107318 2006-09-19  Eric Blake  <ebb9@byu.net>
107320         * gnulib-tool: Avoid space-tab.
107322 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
107324         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
107325         that prevented coreutils 6.1 from building.  Problem reported
107326         by Petter Reinholdtsen.
107328 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
107330         * gnulib-tool (avoidlist): Fix typo that broke options like
107331         --avoid=lock that are used by coreutils bootstrap.
107333 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
107335         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
107336         more systematically.
107338 2006-09-18  Jim Meyering  <jim@meyering.net>
107340         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
107342 2006-09-18  Bruno Haible  <bruno@clisp.org>
107344         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
107346 2006-09-18  Bruno Haible  <bruno@clisp.org>
107348         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
107349         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
107350         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
107351         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
107352         * m4/gettext.m4: Require autoconf >= 2.52.
107353         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
107354         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
107355         of gl_cv_header_inttypes_h.
107357 2006-09-18  Bruno Haible  <bruno@clisp.org>
107359         * lib/javaversion.c: Include configmake.h.
107361 2006-09-18  Bruno Haible  <bruno@clisp.org>
107363         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
107364         avoid that the while loops be executed in a subshell.
107366 2006-09-18  Bruno Haible  <bruno@clisp.org>
107368         * MODULES.html.sh (func_module): Break long lines.
107369         Suggested by Bruce Korb <bkorb@gnu.org>.
107371 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107373         Speed up by a factor of 1.12.
107374         * gnulib-tool (nl): New variable.
107375         (func_import): Rewrite include directive extraction to only read each
107376         directive once.
107378 2006-09-17  Bruno Haible  <bruno@clisp.org>
107380         * modules/javaversion (Makefile.am): Remove DEFS setting.
107381         (Depends-on): Add configmake, for PKGDATADIR definition.
107383 2006-09-17  Bruno Haible  <bruno@clisp.org>
107385         * gnulib-tool (func_create_testdir): Rewrite all files at once.
107387 2006-09-17  Bruno Haible  <bruno@clisp.org>
107389         * gnulib-tool (func_append): New function, stolen from libtool.m4.
107390         (func_modules_transitive_closure, func_modules_add_dummy,
107391         func_modules_to_filelist, func_import, func_create_testdir,
107392         func_create_megatestdir, ...): Use it wherever possible.
107393         Suggested by Ralf Wildenhues.
107395 2006-09-16  Karl Berry  <karl@gnu.org>
107397         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
107398         to avoid sectioning errors.
107399         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
107400         [ifinfo]: blank line after @center-ed titles.
107401         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
107402         Spell FSF address consistently with others.
107403         (These changes approved by rms.)
107405 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107407         Speed up by a factor of 1.61.
107408         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
107409         already checked module names again.
107411 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107413         Speed up by a factor of 1.13.
107414         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
107415         for new_files, and the input to func_add_or_update.
107417 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107419         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
107420         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
107422 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
107424         * modules/mkancesdirs (Depends-on): Add fcntl.
107425         * modules/savewd: New file.
107426         * MODULES.html.sh (File system functions): Add savewd.
107428         * modules/configmake (Makefile.am): Add support for the
107429         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
107431 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
107433         * m4/savewd.m4: New file.
107435 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
107437         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
107438         (dirchownmod): New arg FD.  All callers changed.
107439         Use FD rather than opening the directory ourself, as opening is
107440         now the caller's responsibility.
107441         * lib/dirchownmod.h: Likewise.
107442         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
107443         hosts that require <sys/types.h> before <sys/stat.h>.  Include
107444         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
107445         (test_dir): Remove.
107446         (mkancesdirs): Return length of prefix of FILE that has already
107447         been made, or -2 if there is a child doing the work.  Redo
107448         algorithm so that it is O(N) rather than O(N**2).  Optimize away
107449         ".", and treat ".." specially since it might stray back into
107450         already-created areas.  Use a subprocess if necessary.  New arg
107451         WD; all users changed.  MAKE_DIR function should now return 1
107452         if it creates a directory that is not readable.  Return -2 if
107453         a child process is spun off.
107454         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
107455         Adjust signature to match code.
107456         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
107457         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
107458         all users changed.
107459         * lib/savewd.c, lib/savewd.h: New files.
107461 2006-09-15  Jim Meyering  <jim@meyering.net>
107463         * modules/rename-dest-slash: New module.
107464         * MODULES.html.sh (posix_compat): Add it here.
107466         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
107468 2006-09-15  Jim Meyering  <jim@meyering.net>
107470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
107471         file.
107473         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
107475 2006-09-15  Jim Meyering  <jim@meyering.net>
107477         * lib/rename-dest-slash.c (has_trailing_slash): Use
107478         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
107479         (rpl_rename_dest_slash): Perform the cheaper trailing slash
107480         test before testing whether SRC is a directory.
107481         Suggestions from Bruno Haible.
107483         Avoid a warning about an unused variable.
107484         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
107485         into the #ifdef block where it's used.
107487         * lib/rename-dest-slash.c: New file.
107489 2006-09-14  Bruno Haible  <bruno@clisp.org>
107491         * lib/allocsa.c: Include <config.h> unconditionally.
107492         * lib/asnprintf.c: Likewise.
107493         * lib/asprintf.c: Likewise.
107494         * lib/c-strcasecmp.c: Likewise.
107495         * lib/c-strcasestr.c: Likewise.
107496         * lib/c-strncasecmp.c: Likewise.
107497         * lib/c-strstr.c: Likewise.
107498         * lib/classpath.c: Likewise.
107499         * lib/clean-temp.c: Likewise.
107500         * lib/concatpath.c: Likewise.
107501         * lib/copy-file.c: Likewise.
107502         * lib/csharpcomp.c: Likewise.
107503         * lib/csharpexec.c: Likewise.
107504         * lib/execute.c: Likewise.
107505         * lib/fatal-signal.c: Likewise.
107506         * lib/findprog.c: Likewise.
107507         * lib/fwriteerror.c: Likewise.
107508         * lib/gl_array_list.c: Likewise.
107509         * lib/gl_array_oset.c: Likewise.
107510         * lib/gl_avltree_list.c: Likewise.
107511         * lib/gl_avltree_oset.c: Likewise.
107512         * lib/gl_avltreehash_list.c: Likewise.
107513         * lib/gl_carray_list.c: Likewise.
107514         * lib/gl_linked_list.c: Likewise.
107515         * lib/gl_linkedhash_list.c: Likewise.
107516         * lib/gl_list.c: Likewise.
107517         * lib/gl_oset.c: Likewise.
107518         * lib/gl_rbtree_list.c: Likewise.
107519         * lib/gl_rbtree_oset.c: Likewise.
107520         * lib/gl_rbtreehash_list.c: Likewise.
107521         * lib/imaxabs.c: Likewise.
107522         * lib/imaxdiv.c: Likewise.
107523         * lib/javacomp.c: Likewise.
107524         * lib/javaexec.c: Likewise.
107525         * lib/javaversion.c: Likewise.
107526         * lib/linebreak.c: Likewise.
107527         * lib/localcharset.c: Likewise.
107528         * lib/lock.c: Likewise.
107529         * lib/mbchar.c: Likewise.
107530         * lib/mbswidth.c: Likewise.
107531         * lib/mkdtemp.c: Likewise.
107532         * lib/pipe.c: Likewise.
107533         * lib/printf-args.c: Likewise.
107534         * lib/printf-parse.c: Likewise.
107535         * lib/progname.c: Likewise.
107536         * lib/progreloc.c: Likewise.
107537         * lib/readlink.c: Likewise.
107538         * lib/sh-quote.c: Likewise.
107539         * lib/stpcpy.c: Likewise.
107540         * lib/stpncpy.c: Likewise.
107541         * lib/strcasecmp.c: Likewise.
107542         * lib/strcasestr.c: Likewise.
107543         * lib/strcspn.c: Likewise.
107544         * lib/striconv.c: Likewise.
107545         * lib/strncasecmp.c: Likewise.
107546         * lib/strnlen1.c: Likewise.
107547         * lib/strstr.c: Likewise.
107548         * lib/strtok_r.c: Likewise.
107549         * lib/tls.c: Likewise.
107550         * lib/tmpdir.c: Likewise.
107551         * lib/unicodeio.c: Likewise.
107552         * lib/unsetenv.c: Likewise.
107553         * lib/vasnprintf.c: Likewise.
107554         * lib/vasprintf.c: Likewise.
107555         * lib/wait-process.c: Likewise.
107556         * lib/xallocsa.c: Likewise.
107557         * lib/xsetenv.c: Likewise.
107558         * lib/xstriconv.c: Likewise.
107560 2006-09-13  Simon Josefsson  <jas@extundo.com>
107562         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
107563         that internally, suggested by Ralf Wildenhues
107564         <Ralf.Wildenhues@gmx.de>.
107566 2006-09-13  Simon Josefsson  <jas@extundo.com>
107568         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
107569         @LIBOBJS@.
107570         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107572 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
107574         * lib/_fpending.c: Include <config.h> unconditionally, since we no
107575         longer worry about uses that don't define HAVE_CONFIG_H.
107576         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
107577         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
107578         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
107579         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
107580         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
107581         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
107582         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
107583         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
107584         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
107585         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
107586         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
107587         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
107588         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
107589         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
107590         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
107591         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
107592         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
107593         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
107594         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
107595         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
107596         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
107597         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
107598         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
107599         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
107600         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
107601         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
107602         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
107603         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
107604         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
107605         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
107606         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
107607         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
107608         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
107609         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
107610         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
107611         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
107612         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
107613         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
107614         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
107615         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
107616         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
107617         Likewise.
107619 2006-09-13  Eric Blake  <ebb9@byu.net>
107621         * lib/getopt.c: Fix typo in last commit.
107623 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
107625         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
107626         dgettext.
107628 2006-09-12  Jim Meyering  <jim@meyering.net>
107630         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
107631         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
107632         Reported by Nelson H. F. Beebe.
107634 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
107636         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
107637         program_invocation_name and program_invocation_short_name are
107638         initialized.
107639         * lib/argp-namefrob.h: Move declarations of program_invocation_name
107640         and program_invocation_short_name to argp.h, so they are visible
107641         to user programs.
107642         * lib/argp.h: Likewise
107644 2006-09-10  Bruno Haible  <bruno@clisp.org>
107646         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
107647         m4/inttypes_h.m4, m4/uintmax_t.m4.
107649 2006-09-10  Bruno Haible  <bruno@clisp.org>
107651         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
107652         gl_AC_TYPE_UINTMAX_T.
107654 2006-09-10  Bruno Haible  <bruno@clisp.org>
107656         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
107658 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107660         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
107661         convention.  Text proposed by Bruno Haible.
107662         (struct argp_option): Document the use of N_() wrappers.
107664         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
107665         '\v', and translate the two parts separately, instead of feeding
107666         the whole string to gettext.  This allows to exclude
107667         '\v' from the strings visible to the translator by writing doc
107668         strings as N_("..") "\v" N_("..").
107670 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
107672         * config/srclist.txt: Undo latest change; the bug was fixed.
107674 2006-09-09  Bruno Haible  <bruno@clisp.org>
107676         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
107677         assignments if building a library without libtool.
107678         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
107679         in func_emit_lib_Makefile_am.
107680         (func_import): When building a static library libfoo.a, arrange to
107681         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
107682         (func_create_testdir): Likewise.
107683         * modules/gc (configure.ac, Makefile.am): If building statically,
107684         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
107685         * modules/iconvme (configure.ac, Makefile.am): Likewise.
107686         * modules/striconv (configure.ac, Makefile.am): Likewise.
107687         Based on a suggestion by Ralf Wildenhues.
107689 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107691         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107692         Check for unistd.h too, since Autoconf doesn't assume POSIX.
107693         Also:
107695         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107696         Add year_2050_test to catch glibc bug 2821
107697         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
107699         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
107700         Prefer #ifdef to #if.
107702         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
107703         Return from 'main' instead of calling 'exit'.
107705 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107707         * lib/mktime.c (guess_time_tm): Fix bug where mktime
107708         returned the maximum time_t value rather than (time_t) -1.
107709         Problem originally reported by William Bardwell
107710         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
107712         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
107713         Moved to here ...
107714         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
107715         ... from here.
107717 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107719         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
107720         2821 is fixed.
107722 2006-09-08  Jim Meyering  <jim@meyering.net>
107724         Don't make generated files read-only.  That would bother too many
107725         people.  However, do retain the ability to work when targets are
107726         read-only: remove the destination and temporary files before writing
107727         them (when generated via sed or echo), or by using the -f option for
107728         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
107729         * modules/alloca-opt, modules/argz, modules/arpa_inet:
107730         * modules/byteswap, modules/configmake, modules/fcntl:
107731         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
107732         * modules/localcharset, modules/netinet_in, modules/poll:
107733         * modules/stdbool, modules/stdint, modules/sys_select:
107734         * modules/sys_socket, modules/sys_stat, modules/sysexits:
107736 2006-09-08  Jim Meyering  <jim@meyering.net>
107738         Avoid new build failure on FreeBSD 6.0.
107739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
107740         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
107741         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
107743 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
107747 2006-09-07  Jim Meyering  <jim@meyering.net>
107749         Fix global typo in last change: use chmod u-w, not chmod u-x.
107750         Spotted by Paul Eggert and Bruce Korb.
107751         * modules/alloca-opt, modules/argz, modules/arpa_inet:
107752         * modules/byteswap, modules/configmake, modules/fcntl:
107753         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
107754         * modules/localcharset, modules/netinet_in, modules/poll:
107755         * modules/stdbool, modules/stdint, modules/sys_select:
107756         * modules/sys_socket, modules/sys_stat, modules/sysexits:
107758 2006-09-06  Jim Meyering  <jim@meyering.net>
107760         Make generated files be read-only.
107761         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
107762         Ensure that each generated file is now read-only.
107763         * modules/argz: Likewise.
107764         * modules/arpa_inet: Likewise.
107765         * modules/byteswap: Likewise.
107766         * modules/configmake: Likewise.
107767         * modules/fcntl: Likewise.
107768         * modules/fnmatch: Likewise.
107769         * modules/getopt: Likewise.
107770         * modules/glob: Likewise.
107771         * modules/inttypes: Likewise.
107772         * modules/netinet_in: Likewise.
107773         * modules/poll: Likewise.
107774         * modules/stdbool: Likewise.
107775         * modules/stdint: Likewise.
107776         * modules/sys_select: Likewise.
107777         * modules/sys_socket: Likewise.
107778         * modules/sys_stat: Likewise.
107779         * modules/sysexits: Likewise.
107780         * modules/localcharset: Same as above, but continue using temporary
107781         file named "t-$@" (why different?) rather than the "$@-t" used
107782         everywhere else.
107784         * modules/sysexits (Makefile.am): Replace literal occurrences
107785         of "sysexit.h" more readable, and more consistent, "$@".
107787 2006-09-06  Bruno Haible  <bruno@clisp.org>
107789         * modules/striconv: New file.
107790         * modules/xstriconv: New file.
107791         * MODULES.html.sh (Internationalization functions): Add striconv,
107792         xstriconv.
107794 2006-09-06  Bruno Haible  <bruno@clisp.org>
107796         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
107797         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
107798         not using libtool correctly.
107800 2006-09-06  Bruno Haible  <bruno@clisp.org>
107802         * lib/striconv.h: New file.
107803         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
107804         iconvstring.c.
107805         * lib/xstriconv.h: New file.
107806         * lib/xstriconv.c: New file.
107808 2006-09-06  Bruno Haible  <bruno@clisp.org>
107810         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107811         lib_..._LDFLAGS.
107813 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107815         * lib/argz_.h: Sync from Libtool.
107817         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
107818                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
107820         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
107822 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
107824         * modules/trim: New file.
107826 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
107828         * lib/trim.h: New file.
107829         * lib/trim.c: New file.
107831 2006-09-05  Bruno Haible  <bruno@clisp.org>
107833         * MODULES.html.sh (String handling): Add trim.
107835 2006-09-04  Karl Berry  <karl@gnu.org>
107837         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
107838         until next release.
107840 2006-09-03  Bruno Haible  <bruno@clisp.org>
107842         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
107843         correctly.
107845 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
107847         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
107848         not gl_GETLOADAVG.  Omit unneeded semicolons.
107849         Problems reported by Ralf Wildenhues in
107850         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
107851         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
107852         at the end, which is the usual gnulib style.
107854         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
107855         of doing all the work ourselves.
107856         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
107857         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
107859 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
107861         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
107862         Problem reported by Ralf Wildenhues in
107863         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
107865         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
107866         HAVE_STRUCT_STATFS_F_FSTYPENAME.
107868 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
107870         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
107871         yesterday's patch by changing test -n to test -z.
107873 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
107875         * modules/getloadavg (Files): Add m4/getloadavg.m4.
107876         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
107877         the former is now obsolescent.
107879         * modules/chdir-long (Depends-on): Add fcntl.
107881 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
107883         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
107884         obsolescent, and programs should use gnulib instead.
107885         * m4/getloadavg.m4: New file, with contents taken from Autoconf
107886         but with prefixes changed.
107888 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
107890         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
107891         or stdbool.h, because they might not exist while configuring.
107893         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
107894         Don't include unistd.h or limits.h; not needed, since chdir-long.h
107895         does that for us.
107896         (O_DIRECTORY): Remove.
107898 2006-08-31  Eric Blake  <ebb9@byu.net>
107900         * gnulib-tool: Don't let emacs change spaces to TAB.
107902 2006-08-31  Bruno Haible  <bruno@clisp.org>
107904         * gnulib-tool: When calling func_import more than once, do it in a
107905         subshell.
107906         Reported by Eric Blake <ebb9@byu.net>.
107908 2006-08-31  Bruno Haible  <bruno@clisp.org>
107910         * gnulib-tool (nl): Remove variable.
107911         (sed_transform_lib_file): Use more robust test for config-h module.
107912         (func_import): Fix typo in 2006-08-25 patch.
107914 2006-08-31  Bruno Haible  <bruno@clisp.org>
107916         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
107917         specified, augment Makefile.am variables instead of assigning them.
107919 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107921         Work around a bug in both the Linux and SunOS 64-bit kernels:
107922         nanosleep mishandles sleeps for longer than 2**31 seconds.
107923         Problem reported by Frank v Waveren in
107924         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
107925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
107926         Check for nanosleep bug.
107927         (LIB_NANOSLEEP): Append clock_gettime library if needed.
107929 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107931         Work around a bug in both the Linux and SunOS 64-bit kernels:
107932         nanosleep mishandles sleeps for longer than 2**31 seconds.
107933         Problem reported by Frank v Waveren in
107934         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
107935         * lib/nanosleep.c (BILLION): New constant.
107936         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
107937         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
107938         implementation.
107940 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107942         * modules/nanosleep (Depends-on): Add gettime.
107944 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107945         and Simon Josefsson  <jas@extundo.com>
107946         and Oskar Liljeblad  <oskar@osk.mine.nu>
107948         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
107949         * gnulib-tool (func_import): New license type 'unmodifiable license
107950         text'.
107951         * modules/fdl: Use it.  Longer description.
107952         * module/gpl, module/lgpl: New files.
107954 2006-08-30  Jim Meyering  <jim@meyering.net>
107956         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
107957         shadowing the parameter.
107959 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107961         Sync from Libtool:
107963         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107965         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
107966         sharing with gnulib.  Report by Eric Blake.
107968 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107970         * modules/isapipe: New file.
107971         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
107973 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107975         * modules/configmake (Makefile.am): Add a comment, and omit
107976         the CONFIGMAKE_ prefix from generated macro names.  Suggested
107977         by Bruno Haible.
107979 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107981         * m4/isapipe.m4: New file.
107983 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107985         * lib/isapipe.c, lib/isapipe.h: New files.
107987 2006-08-29  Jim Meyering  <jim@meyering.net>
107989         * modules/configmake (Makefile.am): Make configmake.h depend on
107990         Makefile.  Otherwise, a stale configmake.h could hang around.
107992 2006-08-29  Eric Blake  <ebb9@byu.net>
107994         * lib/error.c (error_at_line, print_errno_message): Match libc, after
107995         resolution of upstream bug 3044.
107997 2006-08-29  Bruno Haible  <bruno@clisp.org>
107999         * modules/localcharset (Depends-on): Add configmake.
108000         (Makefile.am): Remove setting of LIBDIR through DEFS.
108002 2006-08-29  Bruno Haible  <bruno@clisp.org>
108004         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
108005         defined.
108007 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
108009         * modules/fcntl: New file.
108010         * modules/chdir-safer (Depends-on): Add fcntl.
108011         * modules/fts: Likewise.
108012         * modules/mkdir-p: Likewise.
108014         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
108015         This undoes the most recent change, since we're now addressing the
108016         problem in a different way.
108018         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
108019         into output, since the output might be called Makefile.am even
108020         if $makefile_name is something different.
108021         (func_import): Use $makefile_am rather than
108022         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
108023         empty.
108025         * modules/inttypes (Files): Add m4/inttypes-h.m4.
108027 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
108029         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
108030         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
108031         recent change to stdint.m4, since we're now addressing the problem in a
108032         different way.
108034 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
108036         * m4/fcntl_h.m4: New file.
108038 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
108040         * lib/fcntl_.h: New file.
108041         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
108042         the fcntl module.
108043         * lib/dirchownmod.c: Likewise.
108044         * lib/fts.c: Likewise.
108046         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
108047         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
108048         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
108049         just before including <inttypes.h>, to avoid circular inclusion.
108051 2006-08-28  Jim Meyering  <jim@meyering.net>
108053         * doc/visibility.texi: Actually read and correct the grammar of the
108054         sentence affected by yesterday's change.
108056 2006-08-28  Eric Blake  <ebb9@byu.net>
108058         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
108059         needs wrapper.
108061 2006-08-28  Eric Blake  <ebb9@byu.net>
108063         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
108065 2006-08-28  Eric Blake  <ebb9@byu.net>
108067         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
108069 2006-08-28  Bruno Haible  <bruno@clisp.org>
108071         * modules/c-strstr: New file, from GNU gettext.
108072         * MODULES.html.sh (String handling): Add c-strstr.
108074 2006-08-28  Bruno Haible  <bruno@clisp.org>
108076         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
108077         macros.
108078         Reported by Eric Blake.
108080 2006-08-28  Bruno Haible  <bruno@clisp.org>
108082         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
108083         (VASNPRINTF): Return a string of length > INT_MAX without failing.
108084         * lib/vasprintf.c: Include errno.h, limits.h.
108085         (EOVERFLOW): New fallback definition.
108086         (vasprintf): Test here whether the string length is > INT_MAX.
108087         * lib/vsnprintf.c: Include errno.h, limits.h.
108088         (EOVERFLOW): New fallback definition.
108089         (vsnprintf): Fix bug when generated string was too long for the buffer.
108090         Test here whether the string length is > INT_MAX.
108092 2006-08-28  Bruno Haible  <bruno@clisp.org>
108094         * lib/inttypes_.h (SCNX*): Remove definitions.
108095         Reported by Eric Blake.
108097 2006-08-28  Bruno Haible  <bruno@clisp.org>
108099         * lib/c-strstr.h: New file, from GNU gettext.
108100         * lib/c-strstr.c: New file, from GNU gettext.
108102 2006-08-28  Bruno Haible  <bruno@clisp.org>
108104         * gnulib-tool: Reorder some statements.
108106 2006-08-28  Bruno Haible  <bruno@clisp.org>
108108         * gnulib-tool: New option --makefile-name.
108109         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
108110         $makefile_name.
108111         (func_import): Write $makefile_name to the cache file, and read it from
108112         there unless explicitly specified. Use $makefile_name as file name
108113         instead of Makefile.am. Adjust the recommendations accordingly.
108115 2006-08-28  Bruno Haible  <bruno@clisp.org>
108117         * gnulib-tool (func_verify_module): Check against misapplying patch.
108119 2006-08-28  Bruno Haible  <bruno@clisp.org>
108121         * gnulib-tool (func_relativize, func_relconcat): New functions.
108122         Give an error if --local-dir is given with --update.
108123         Remove trailing slashes from $local_gnulib_dir.
108124         (func_import): Store the relativized $local_gnulib_dir in
108125         gnulib-cache.m4, and read it from there if not specified explicitly.
108127 2006-08-28  Bruno Haible  <bruno@clisp.org>
108129         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
108130         is the current directory. Respect also $local_gnulib_dir.
108132 2006-08-28  Bruno Haible  <bruno@clisp.org>
108133             Simon Josefsson  <jas@extundo.com>
108135         BeOS portability.
108136         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
108138 2006-08-27  Jim Meyering  <jim@meyering.net>
108140         * doc/visibility.texi: Remove duplicate word: "pointer".
108142 2006-08-26  Bruno Haible  <bruno@clisp.org>
108144         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
108145         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
108146         (Makefile.am): Create inttypes.h from inttypes_.h.
108147         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
108149         * modules/imaxabs: New file.
108151         * modules/imaxdiv: New file.
108153 2006-08-26  Bruno Haible  <bruno@clisp.org>
108155         * m4/inttypes.m4: New file.
108156         * m4/_inttypes_h.m4: Remove file.
108157         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
108158         PRI_MACROS_BROKEN.
108159         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
108161         * m4/imaxabs.m4: New file.
108163         * m4/imaxdiv.m4: New file.
108165 2006-08-26  Bruno Haible  <bruno@clisp.org>
108167         * lib/inttypes_.h: New file.
108168         * lib/inttypes.h: Remove file.
108169         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
108171         * lib/imaxabs.c: New file.
108173         * lib/imaxdiv.c: New file.
108175 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
108177         New config-h module, so that "make" output needn't be cluttered
108178         by -DHAVE_CONFIG_H.
108179         * MODULES.html.sh (Support for building libraries and executables):
108180         Add config-h.
108181         * modules/config-h: New file.
108182         * gnulib-tool (nl, sed_transform_lib_file): New vars.
108183         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
108184         the config-h module is used.
108186         New configmake module, so that "make" output needn't be cluttered
108187         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
108188         * MODULES.html.sh (Support for building libraries and executables):
108189         Add configmake.
108190         * modules/configmake: New file.
108192 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
108194         * m4/config-h.m4: New file.
108196 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
108198         * config/srclist.txt: Add elisp-comp.
108200 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
108202         * MODULES.html.sh (Support for building libraries and executables):
108203         Add elisp-comp.
108204         * build-aux/elisp-comp: New file.
108205         * modules/elisp-comp: New file.
108207 2006-08-24  Bruno Haible  <bruno@clisp.org>
108209         * gnulib-tool (func_create_testdir): Use non-default values of
108210         sourcebase and m4base.
108212 2006-08-24  Bruno Haible  <bruno@clisp.org>
108214         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
108215         HTML structure.
108217 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
108219         * modules/openat (Depends-on): Add lchown.
108221 2006-08-23  Bruno Haible  <bruno@clisp.org>
108223         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
108224         of gl_LOCK_EARLY instead of gl_LOCK.
108226 2006-08-23  Bruno Haible  <bruno@clisp.org>
108228         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
108229         on OSF/1 to no.
108230         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
108232 2006-08-23  Bruno Haible  <bruno@clisp.org>
108234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
108235         as unusable.
108237         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
108238         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
108239         (gl_LOCK): New macro.
108241 2006-08-22  Simon Josefsson  <jas@extundo.com>
108243         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
108244         to md5 module.
108246 2006-08-22  Simon Josefsson  <jas@extundo.com>
108248         * MODULES.html.sh: Add "Support for maintaining and release
108249         projects".
108251         * build-aux/gnupload: New file, from coreutils.
108253 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
108255         Avoid the need for AC_LIBSOURCES in m4 macros.
108256         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
108257         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
108258         * modules/check-version (EXTRA_DIST): Add check-version.h.
108259         * modules/crc (EXTRA_DIST): Add crc.h.
108260         * modules/des (EXTRA_DIST): Add des.h.
108261         * modules/gc (EXTRA_DIST): Add gc.h.
108262         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
108263         * modules/getline (EXTRA_DIST): Add getline.h.
108264         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
108265         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
108266         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
108267         * modules/md2 (EXTRA_DIST): Add md2.h.
108268         * modules/md4 (EXTRA_DIST): Add md4.h.
108269         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
108270         * modules/read-file (EXTRA_DIST): Add read-file.h.
108271         * modules/readline (EXTRA_DIST): Add readline.h.
108272         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
108273         rijndael-api-fst.h.
108275 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
108277         * m4/rijndael.m4 (gl_ARCFOUR):
108278         * m4/arctwo.m4 (gl_ARCTWO):
108279         * m4/check-version.m4 (gl_CHECK_VERSION):
108280         * m4/crc.m4 (gl_CRC):
108281         * m4/des.m4 (gl_DES):
108282         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
108283         * m4/gc.m4 (gl_GC):
108284         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
108285         * m4/getline.m4 (gl_FUNC_GETLINE):
108286         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
108287         * m4/hmac-md5.m4 (gl_HMAC_MD5):
108288         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
108289         * m4/md2.m4 (gl_MD2):
108290         * m4/md4.m4 (gl_MD4):
108291         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
108292         * m4/read-file.m4 (gl_FUNC_READ_FILE):
108293         * m4/readline.m4 (gl_FUNC_READLINE):
108294         * m4/rijndael.m4 (gl_RIJNDAEL):
108295         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
108296         to get the necessary .h files and whatnot.
108298 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
108300         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
108301         gnulib rather than the other way around.
108302         * config/srclistvars.sh (COREUTILS): Remove.
108304 2006-08-22  Jim Meyering  <jim@meyering.net>
108306         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
108308         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
108310 2006-08-22  Eric Blake  <ebb9@byu.net>
108312         * modules/regexprops-generic: New file.
108313         * MODULES.html.sh (Support for building documentation): List it.
108315 2006-08-22  Eric Blake  <ebb9@byu.net>
108317         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
108318         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
108319         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
108320         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
108322 2006-08-22  Bruno Haible  <bruno@clisp.org>
108324         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
108325         and lib_LTLIBRARIES like the other lib_* variables.
108327 2006-08-22  Bruno Haible  <bruno@clisp.org>
108329         * build-aux/x-to-1.in: New file, from GNU gettext.
108331 2006-08-22  Bruno Haible  <bruno@clisp.org>
108333         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
108334         <utmpx.h> exists.
108336 2006-08-22  Bruno Haible  <bruno@clisp.org>
108338         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
108339         <utmpx.h> exists.
108341 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
108343         BeOS portability.
108344         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
108345         exist.
108346         Problem reported by Bruno Haible.
108348 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
108350         Avoid the need for AC_LIBSOURCES in m4 macros.
108351         * modules/acl (EXTRA_DIST): Add acl.h.
108352         * modules/argmatch (Files): Add m4/argmatch.m4.
108353         (configure.ac): Add gl_ARGMATCH.
108354         (EXTRA_DIST): Renamed from lib_SOURCES, for
108355         consistency with the other modules.  Remove argmatch.c.
108356         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
108357         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
108358         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
108359         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
108360         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
108361         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
108362         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
108363         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
108364         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
108365         * modules/closeout (EXTRA_DIST): Add closeout.h.
108366         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
108367         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
108368         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
108369         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
108370         dirname.h; remove basename.c and stripslash.c.
108371         * modules/exclude (EXTRA_DIST): Add exclude.h.
108372         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
108373         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
108374         * modules/file-type (EXTRA_DIST): Add file-type.h.
108375         * modules/filemode (EXTRA_DIST): Add filemode.h.
108376         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
108377         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
108378         * modules/fpending (EXTRA_DIST): Add __fpending.h.
108379         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
108380         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
108381         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
108382         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
108383         * modules/getdate (EXTRA_DIST): Add getdate.c.
108384         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
108385         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
108386         * modules/getpass (EXTRA_DIST): Add getpass.h.
108387         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
108388         * modules/group-member (EXTRA_DIST): Add group-member.h.
108389         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
108390         * modules/hash (EXTRA_DIST): Add hash.h.
108391         * modules/human (EXTRA_DIST): Add human.h.
108392         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
108393         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
108394         * modules/lchown (EXTRA_DIST): Add lchown.h.
108395         * modules/long-options (EXTRA_DIST): Add long-options.h.
108396         * modules/lstat (EXTRA_DIST): Add lstat.h.
108397         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
108398         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
108399         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
108400         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
108401         * modules/memxor (EXTRA_DIST): Add memxor.h.
108402         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
108403         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
108404         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
108405         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
108406         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
108407         * modules/physmem (EXTRA_DIST): Add physmem.h.
108408         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
108409         * modules/posixver (EXTRA_DIST): Add posixver.h.
108410         * modules/quote (EXTRA_DIST): Add quote.h.
108411         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
108412         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
108413         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
108414         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
108415         regex_internal.h regexec.c.
108416         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
108417         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
108418         * modules/same (EXTRA_DIST): Add same.h.
108419         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
108420         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
108421         * modules/savedir (EXTRA_DIST): Add savedir.h.
108422         * modules/sha1 (EXTRA_DIST): Add sha1.h.
108423         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
108424         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
108425         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
108426         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
108427         * modules/strdup (EXTRA_DIST): Add strdup.h.
108428         * modules/strftime (EXTRA_DIST): Add strftime.h.
108429         * modules/strndup (EXTRA_DIST): Add strndup.h.
108430         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
108431         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
108432         * modules/time_r (EXTRA_DIST): Add time_r.h.
108433         * modules/timespec (EXTRA_DIST): Add timespec.h.
108434         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
108435         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
108436         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
108437         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
108438         * modules/userspec (EXTRA_DIST): Add userspec.h.
108439         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
108440         * modules/utimens (EXTRA_DIST): Add utimens.h.
108441         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
108442         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
108443         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
108444         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
108445         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
108446         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
108447         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
108448         * modules/yesno (EXTRA_DIST): Add yesno.h.
108450 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
108452         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
108454         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
108455         * m4/dev-ino.m4, same-inode.m4: Remove.
108457         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
108458         * m4/acl.m4 (AC_FUNC_ACL):
108459         * m4/backupfile.m4 (gl_BACKUPFILE):
108460         * m4/c-strtod.m4 (gl_C99_STRTOLD):
108461         * m4/canon-host.m4 (gl_CANON_HOST):
108462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
108463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
108464         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
108465         * m4/cloexec.m4 (gl_CLOEXEC):
108466         * m4/close-stream.m4 (gl_CLOSE_STREAM):
108467         * m4/closeout.m4 (gl_CLOSEOUT):
108468         * m4/dirfd.m4 (gl_FUNC_DIRFD):
108469         * m4/dirname.m4 (gl_DIRNAME):
108470         * m4/exclude.m4 (gl_EXCLUDE):
108471         * m4/exitfail.m4 (gl_EXITFAIL):
108472         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
108473         * m4/file-type.m4 (gl_FILE_TYPE):
108474         * m4/filemode.m4 (gl_FILEMODE):
108475         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
108476         * m4/fpending.m4 (gl_FUNC_FPENDING):
108477         * m4/fprintftime.m4 (gl_FPRINTFTIME):
108478         * m4/fts.m4 (gl_FUNC_FTS):
108479         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
108480         * m4/getdate.m4 (gl_GETDATE):
108481         * m4/gethrxtime.m4 (gl_GETHRXTIME):
108482         * m4/getpagesize.m4 (gl_GETPAGESIZE):
108483         * m4/getpass.m4 (gl_FUNC_GETPASS):
108484         * m4/gettime.m4 (gl_GETTIME):
108485         * m4/getugroups.m4 (gl_GETUGROUPS):
108486         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
108487         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
108488         * m4/hard-locale.m4 (gl_HARD_LOCALE):
108489         * m4/hash.m4 (gl_HASH):
108490         * m4/idcache.m4 (gl_IDCACHE):
108491         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
108492         * m4/lchown.m4 (gl_FUNC_LCHOWN):
108493         * m4/long-options.m4 (gl_LONG_OPTIONS):
108494         * m4/lstat.m4 (gl_FUNC_LSTAT):
108495         * m4/md5.m4 (gl_MD5):
108496         * m4/memcasecmp.m4 (gl_MEMCASECMP):
108497         * m4/memcoll.m4 (gl_MEMCOLL):
108498         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
108499         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
108500         * m4/memxor.m4 (gl_MEMXOR):
108501         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
108502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
108503         * m4/modechange.m4 (gl_MODECHANGE):
108504         * m4/mountlist.m4 (gl_MOUNTLIST):
108505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108506         * m4/openat.m4 (gl_FUNC_OPENAT):
108507         * m4/pathmax.m4 (gl_PATHMAX):
108508         * m4/physmem.m4 (gl_PHYSMEM):
108509         * m4/posixtm.m4 (gl_POSIXTM):
108510         * m4/posixver.m4 (gl_POSIXVER):
108511         * m4/quote.m4 (gl_QUOTE):
108512         * m4/quotearg.m4 (gl_QUOTEARG):
108513         * m4/readtokens.m4 (gl_READTOKENS):
108514         * m4/readutmp.m4 (gl_READUTMP):
108515         * m4/regex.m4 (gl_REGEX):
108516         * m4/safe-read.m4 (gl_SAFE_READ):
108517         * m4/safe-write.m4 (gl_SAFE_WRITE):
108518         * m4/same.m4 (gl_SAME):
108519         * m4/save-cwd.m4 (gl_SAVE_CWD):
108520         * m4/savedir.m4 (gl_SAVEDIR):
108521         * m4/settime.m4 (gl_SETTIME):
108522         * m4/sha1.m4 (gl_SHA1):
108523         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
108524         * m4/stat-macros.m4 (gl_STAT_MACROS):
108525         * m4/stat-time.m4 (gl_STAT_TIME):
108526         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
108527         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
108528         * m4/strdup.m4 (gl_FUNC_STRDUP):
108529         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
108530         * m4/strndup.m4 (gl_FUNC_STRNDUP):
108531         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
108532         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
108533         * m4/time_r.m4 (gl_TIME_R):
108534         * m4/timespec.m4 (gl_TIMESPEC):
108535         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
108536         * m4/unlinkdir.m4 (gl_UNLINKDIR):
108537         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
108538         * m4/userspec.m4 (gl_USERSPEC):
108539         * m4/utimecmp.m4 (gl_UTIMECMP):
108540         * m4/utimens.m4 (gl_UTIMENS):
108541         * m4/xalloc.m4 (gl_XALLOC):
108542         * m4/xgetcwd.m4 (gl_XGETCWD):
108543         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
108544         * m4/xreadlink.m4 (gl_XREADLINK):
108545         * m4/xstrtod.m4 (gl_XSTRTOD):
108546         * m4/yesno.m4 (gl_YESNO):
108547         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
108548         to get the necessary .h files and whatnot.
108550 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
108551             Bruno Haible  <bruno@clisp.org>
108553         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
108554         /bin/sh understanding of '!' conditional negation.
108556 2006-08-21  Jim Meyering  <jim@meyering.net>
108558         * modules/openat (Depends-on): Really alphabetize.
108560         * modules/acl (Depends-on): Add error and quote.
108562         * check-module (find_included_lib_files): Add at-func.c to the
108563         ok-to-include-more-than-once white list.
108565         * modules/openat (Depends-on): Add lstat.  Alphabetize.
108567 2006-08-21  Bruno Haible  <bruno@clisp.org>
108569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108570         Emit a pkgdata_DATA variable only if some snippets add contents to it.
108571         Reported by Martin Lambers <marlam@marlam.de>.
108573 2006-08-21  Bruno Haible  <bruno@clisp.org>
108575         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
108576         specify an installation location, don't emit a noinst_LIBRARIES or
108577         noinst_LTLIBRARIES assignment.
108579 2006-08-21  Bruno Haible  <bruno@clisp.org>
108581         BeOS portability.
108582         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
108583         BeOS has mbrtowc() but no <wctype.h>.
108585 2006-08-21  Bruno Haible  <bruno@clisp.org>
108587         BeOS portability.
108588         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
108589         exist.
108591 2006-08-21  Bruno Haible  <bruno@clisp.org>
108593         BeOS portability.
108594         * lib/mbchar.h: Include <wctype.h> only if it exists.
108596 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
108598         Remove files that are no longer needed by their respective modules.
108599         * m4/obstack.m4: Remove.
108600         * m4/strerror_r.m4: Remove.
108601         * m4/uint32_t.m4: Remove.
108602         * m4/uintptr_t.m4: Remove.
108603         * m4/ullong_max.m4: Remove.
108604         * m4/xstrtoimax.m4: Remove.
108605         * m4/xstrtoumax.m4: Remove.
108607         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
108608         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
108609         dependencies now capture this.
108611         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
108612         Do not use AC_LIBSOURCES, since gnulib modules now do this.
108613         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
108614         * m4/human.m4 (gl_HUMAN): Likewise.
108615         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
108616         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
108618         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
108620         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
108621         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
108622         stdint.
108623         * m4/human.m4 (gl_HUMAN): Likewise.
108624         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
108625         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
108626         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
108627         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
108628         * m4/xstrtol (gl_XSTRTOL): Likewise.
108630         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
108631         AC_TYPE_LONG_LONG_INT.
108632         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
108633         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
108634         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
108635         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
108637         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
108638         on stdbool.
108640         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
108641         (gl_PREREQ_XSTRTOUL): Remove.
108643         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
108645         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
108646         mode.
108648 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
108650         Add and change modules to make it easier for coreutils to use
108651         gnulib-tool.
108652         * modules/backupfile (Files): Remove m4/d-ino.m4.
108653         (Depends-on): Add d-ino.
108654         * modules/cycle-check (Depends-on): Add stdint.
108655         (lib_SOURCES): Add cycle-check.h.
108656         * modules/d-ino: New module.
108657         * modules/d-type: New module.
108658         * modules/error (Files): Remove m4/strerror_r.m4.
108659         * modules/filemode (Files): Add m4/st_dm_mode.m4.
108660         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
108661         m4/inttypes_h.m4, m4/uintmax_t.m4.
108662         (Depends-on): Add stdint.
108663         (lib_SOURCES): Add fsusage.h.
108664         * modules/getcwd (Files): Remove d-ino.m4.
108665         (Depends-on): Add d-ino.
108666         * modules/getndelim2 (Depends-on): Add stdint.
108667         * modules/glob (Files): Remove m4/d-type.m4.
108668         (Depends-on): Add d-type.
108669         * modules/host-os: New module.
108670         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
108671         m4/inttypes_h.m4, m4/uintmax_t.m4.
108672         * Depends-on: Add stdint.
108673         (lib_SOURCES): Add human.h.
108674         * modules/inttostr (Files): Remove m4/intmax_t.m4,
108675         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
108676         m4/uintmax_t.m4, m4/ulonglong.m4.
108677         (Depends-on): Add stdint.
108678         (EXTRA_DIST): Add inttostr.h.
108679         * modules/lchmod: New module.
108680         * modules/link-follow: New module.
108681         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
108682         (Depends-on): Add lchmod.
108683         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
108684         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
108685         (Depends-on): Add stdint.
108686         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
108687         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
108688         (Depends-on): Add stdint.
108689         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
108690         * modules/perl: New module.
108691         * modules/regex (Depends-on): Add stdint.
108692         * modules/rmdir-errno: New module.
108693         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
108694         m4/intmax_t.m4.
108695         (Depends-on): Add stdint.
108696         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
108697         m4/uintmax_t.m4.
108698         (Depends-on): Add stdint.
108699         * modules/unlink-busy: New module.
108700         * modules/utimecmp (Depends-on): Add stdint.
108701         * modules/uptime: New module.
108702         * modules/winsz-ioctl: New module.
108703         * modules/winsz-termios: New module.
108704         * modules/xnanosleep (Depends-on): Add nanosleep.
108705         * modules/ullong_max: Remove.
108706         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
108707         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
108708         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
108709         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
108710         (Depends-on): Add inttypes.
108711         (lib_SOURCES): Add xstrtol.h.
108712         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
108713         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
108714         * MODULES.html.sh: Move 'assert' into the assert section.
108715         Move 'dummy' into the linking section.
108716         Remove ullong_max.
108717         Add section for compatibility checks for POSIX:2001 functions,
108718         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
108719         winsz-ioctl, and winsz-termios into it.
108720         Add lchmod.
108721         Add top-level Misc section and put host-os, perl, and uptime
108722         into it.
108724 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
108726         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
108727         now assume the stdint module.  Do not include inttypes.h.
108728         * lib/fsusage.h: Likewise.
108729         * lib/getndelim2.c: Likewise.
108730         * lib/human.h: Likewise.
108731         * lib/inttostr.h: Likewise.
108732         * lib/obstack.c: Likewise.
108733         * lib/regex_internal.h: Likewise.
108734         * lib/tempname.c: Likewise.
108735         * lib/utimecmp.c: Likewise.
108736         * lib/xstrtol.h: Likewise.
108738         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
108740         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
108741         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
108742         * lib/xtime.h: Likewise.
108744 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108746         * modules/openat (Files): Add lib/fchmodat.c.
108747         Fixes problem reported by Jay Youngman.
108749 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108751         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
108752         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
108754 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
108755             Bruno Haible  <bruno@clisp.org>
108757         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
108758         and is a script that invokes bison. Tighten the code. Add comments.
108760 2006-08-18  Jim Meyering  <jim@meyering.net>
108762         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
108763         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
108764         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
108765         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
108767 2006-08-18  Bruno Haible  <bruno@clisp.org>
108769         * modules/bison-i18n: New file.
108770         * MODULES.html.sh (Internationalization functions): Add it.
108772 2006-08-18  Bruno Haible  <bruno@clisp.org>
108774         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
108775         sys/statvfs.h. When getmntinfo was found, check its declaration and
108776         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
108778 2006-08-18  Bruno Haible  <bruno@clisp.org>
108780         * m4/bison-i18n.m4: New file, from bison.
108782 2006-08-18  Bruno Haible  <bruno@clisp.org>
108784         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
108785         (ME_DUMMY): Treat "kernfs" as a dummy.
108786         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
108788 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108790         Update from coreutils.
108792         2006-08-15  Jim Meyering  <jim@meyering.net>
108794         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
108796         2006-01-17  Jim Meyering  <jim@meyering.net>
108798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
108800         2006-01-11  Jim Meyering  <jim@meyering.net>
108802         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
108803         Check for the lchmod function.
108805 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108807         Update from coreutils.
108809         * lib/__fpending.h: Add copyright notice.
108810         * lib/fprintftime.h: Likewise.
108811         * lib/savedir.c: Use (C) in copyright notice.
108812         * lib/savedir.h: Likewise.
108814         2006-08-15  Jim Meyering  <jim@meyering.net>
108816         * lib/at-func.c: New file, with the logic of all emulated at-functions.
108817         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
108818         in support of the EXPECTED_ERRNO macro.
108819         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
108820         definitions.  Instead, define the appropriate symbols and include
108821         "at-func.c".
108822         * lib/mkdirat.c (mkdirat): Likewise.
108823         * lib/fchmodat.c (fchmodat): Likewise.
108824         (ENOSYS): Remove definition.
108825         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
108826         it.  Don't include "unistd--.h" -- it wasn't ever used.
108828         2006-01-17  Jim Meyering  <jim@meyering.net>
108830         Rewrite fts.c not to change the current working directory,
108831         by using openat, fstatat, fdopendir, etc..
108833         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
108834         (HAVE_OPENAT_SUPPORT): Define.
108835         [_LIBC] (fchdir): Don't undef or define; no longer used.
108836         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
108837         Now, this `function' always succeeds, and consumes its file descriptor
108838         parameter -- so callers must not close such FDs.  Update callers.
108839         (diropen_fd, opendirat, cwd_advance_fd): New functions.
108840         (diropen): Add parameter, SP.  Adjust all callers.
108841         Implement using diropen_fd, rather than open.
108842         (fts_open): Initialize new member, fts_cwd_fd.
108843         Remove fts_rft-setting code.
108844         (fts_close): Close fts_cwd_fd, if necessary.
108845         (__opendir2): Define in terms of opendir or opendirat,
108846         depending on whether the FST_NOCHDIR flag is set.
108847         (fts_build): Since fts_safe_changedir consumes its FD, and since
108848         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
108849         and close the dup'd file descriptor upon failure.
108850         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
108851         (fts_safe_changedir): Tweak semantics to reflect that this function
108852         now calls cwd_advance_fd and hence consumes its FD argument.
108853         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
108854         [struct FTS] (fts_rft): Remove now-unused member.
108855         [struct FTS] (fts_cycle.state): Improve comment.
108857         * lib/openat.c (openat_needs_fchdir): New function.
108858         * lib/openat.h (openat_needs_fchdir): Declare it.
108860 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
108862         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
108863         Problem and fix reported by Pádraig Brady in
108864         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
108866 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108868         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
108870 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108872         * lib/memcoll.c (memcoll): Optimize for the common case where the
108873         arguments are bytewise equal.
108875 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108877         * doc/regexprops-generic.texi: Add a copyright notice.
108879 2006-08-15  Bruno Haible  <bruno@clisp.org>
108881         * modules/tmpdir (License): Change to LGPL.
108883 2006-08-15  Bruno Haible  <bruno@clisp.org>
108885         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
108886         module.
108888 2006-08-14  Simon Josefsson  <jas@extundo.com>
108890         * config/srclist.txt: Add gnupload.
108892 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108894         Change copyright notice from LGPL 2 to GPL 2, since that's the
108895         standard form used in the gnulib repository.
108896         * tests/test-lock.c: Likewise.
108897         * tests/test-stdint.c: Likewise.
108898         * tests/test-tls.c: Likewise.
108900         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
108901         prelude-manager.  User shorter URLs for GNU projects, without '?'.
108902         Add copyright notice.
108904         * check-module: Add copyright notice.  Output a copyright
108905         notice if "--version" is specified.
108906         * modules/COPYING: New file.
108907         * tests/test-getaddrinfo.c: Add copyright notice.
108908         * tests/test-verify.c: Likewise.
108910 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108912         Change copyright notice from LGPL 2 to GPL 2, since that's the
108913         standard form used in the gnulib repository.
108914         * lib/lock.c: LGPL -> GPL.
108915         * lib/lock.h: Likewise.
108916         * lib/strnlen1.c: Likewise.
108917         * lib/strnlen1.h: Likewise.
108918         * lib/tls.c: Likewise.
108919         * lib/tls.h: Likewise.
108920         * lib/tmpdir.c: Likewise.
108922         * lib/TODO: Remove; this belongs only in coreutils.
108924 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108926         Add copyright notices to long-enough files that lack them, since
108927         otherwise the files aren't clearly free.  Use the same notice that
108928         getdate.texi already uses.
108929         * doc/alloca-opt.texi: Add copyright notice.
108930         * doc/alloca.texi: Likewise.
108931         * doc/ctime.texi: Likewise.
108932         * doc/functions.texi: Likewise.
108933         * doc/gcd.texi: Likewise.
108934         * doc/gnulib-tool.texi: Likewise.
108935         * doc/inet_ntoa.texi: Likewise.
108936         * doc/visibility.texi: Likewise.
108938         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
108939         * doc/quote.texi: Add copyright notice.
108941         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
108942         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
108943         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
108944         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
108945         is now obsolete, and give a pointer to the Sun list.
108946         Add copyright notice.
108948 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108950         * config/srclistvars.sh: Add copyright notice.
108952 2006-08-14  Eric Blake  <ebb9@byu.net>
108954         Import the following change from libc:
108956         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
108958         Upstream bug 2997.
108959         * lib/misc/error.c: Add space between program name and message if file
108960         name is missing.
108962 2006-08-12  Karl Berry  <karl@gnu.org>
108964         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
108965         remove, these originate in gnulib now.
108967 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108969         * doc/Makefile (standards.info standards.html standards.dvi):
108970         Also depend on make-stds.texi.
108972 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108974         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
108975         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
108977         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
108978         in wchar_t.  Problem reported by Eric Blake.
108980         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
108981         LEN is smaller than SIZE.  Suggested by Bruno Haible.
108982         Also, help the compiler to keep LEN in a register.
108984 2006-08-11  Eric Blake  <ebb9@byu.net>
108986         * users.txt: Sort.  Add tar.
108988 2006-08-11  Bruno Haible  <bruno@clisp.org>
108990         * users.txt: New file.
108992 2006-08-11  Bruno Haible  <bruno@clisp.org>
108994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
108995         before <wchar.h>. Needed for OSF/1 and BSD/OS.
108997 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
108999         * modules/snprintf (Depends-on): Remove minmax.
109000         (Maintainer): Add self and Bruno.
109002 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
109004         * lib/.cppi-disable: Add snprintf.h, socket_.h.
109005         * lib/snprintf.c: Include <errno.h> and <limits.h>.
109006         (EOVERFLOW): Define if the system does not.
109007         Do not include "minmax.h"; it wasn't used.
109008         (snprintf): Don't assume size_t promotes to an unsigned type.
109009         Fix bug when generated string was too long for the buffer: the
109010         buffer's contents are supposed to be the initial prefix of the
109011         output.  Don't assume vasnprintf returns EOVERFLOW if the size
109012         exceeds INT_MAX; do the check ourselves.
109014         Import the following changes from libc:
109016         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
109018         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
109019         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
109020         set wc to the byte which couldn't be converted.
109021         (re_string_reconstruct): Don't clear valid_raw_len before calling
109022         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
109023         tip_context using re_string_context_at.
109025         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
109027         * lib/posix/regex.h: g++ still cannot handled [restrict].
109029         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
109031         * lib/posix/regex.h: Remove special handling for VMS.
109033 2006-08-10  Jim Meyering  <jim@meyering.net>
109035         * modules/same-inode: New module.
109036         * modules/dev-ino: New module.
109037         * modules/cycle-check: Depend on these modules, rather than simply
109038         including their .h files.
109039         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
109040         required via m4/cycle-check.m4.
109041         * modules/same: Depend on new same-inode module, rather than
109042         including same-inode.h.
109043         * modules/chdir-safer: New file.
109045         * modules/chown (Depends-on): Add stat-macros.
109047 2006-08-10  Jim Meyering  <jim@meyering.net>
109049         * m4/cycle-check.m4: New file.
109050         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
109051         * m4/dev-ino.m4, m4/same-inode.m4: New files.
109053 2006-08-10  Eric Blake  <ebb9@byu.net>
109055         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
109056         in from original proposal.
109058 2006-08-10  Eric Blake  <ebb9@byu.net>
109059         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109061         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
109062         namespace.
109064 2006-08-10  Bruno Haible  <bruno@clisp.org>
109066         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
109067         as well.
109069 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109071         Sync from coreutils.
109073         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
109075         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
109076         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
109078 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109080         * modules/restrict: Remove; no longer needed now that we assume
109081         Autoconf 2.59 or later.
109082         * MODULES.html.sh: Remove 'restrict'.
109083         * modules/argp (Depends-on): Remove 'restrict'.
109084         * modules/base64 (Depends-on): Likewise.
109085         * modules/gc (Depends-on): Likewise.
109086         * modules/getaddrinfo (Depends-on): Likewise.
109087         * modules/glob (Depends-on): Likewise.
109088         * modules/inet_ntop (Depends-on): Likewise.
109089         * modules/inet_pton (Depends-on): Likewise.
109090         * modules/memxor (Depends-on): Likewise.
109091         * modules/regex (Depends-on): Likewise.
109092         * modules/strtok_r (Depends-on): Likewise.
109093         * modules/time_r (Depends-on): Likewise.
109095 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109097         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
109098         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
109099         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
109100         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
109101         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
109102         * m4/memxor.m4 (gl_MEMXOR): Likewise.
109103         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
109104         gl_C_RESTRICT replaced by AC_C_RESTRICT.
109106         Merge from coreutils.
109107         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
109108         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
109109         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109110         * m4/time_r.m4 (gl_TIME_R): Likewise.
109112 2006-08-09  Karl Berry  <karl@gnu.org>
109114         * config/srclist.txt: no more gettext-tools, per Bruno.
109116 2006-08-08  Eric Blake  <ebb9@byu.net>
109118         * modules/verror: New module.
109119         * MODULES.html.sh: Document it.
109121 2006-08-08  Eric Blake  <ebb9@byu.net>
109123         * lib/verror.h, lib/verror.c: New files.
109125 2006-08-08  Eric Blake  <ebb9@byu.net>
109127         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
109128         verror_at_line output complies with GNU Coding Standards even when
109129         file is NULL.
109131 2006-08-07  Bruno Haible  <bruno@clisp.org>
109133         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
109134         versions of AIX.
109135         Reported by Ralf Wildenhues.
109137 2006-08-07  Bruno Haible  <bruno@clisp.org>
109139         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
109140         in an AC_DEFUN. Needed so that the autoconf snippets can use
109141         AC_REQUIRE.
109143 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109145         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109146         Initialize pkgdata_DATA.
109147         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
109148         overriding it.
109150 2006-08-06  Eric Blake  <ebb9@byu.net>
109152         * lib/error.h: Fold in some upstream changes from glibc.
109153         * lib/error.c: Likewise.
109155 2006-08-04  Bruno Haible  <bruno@clisp.org>
109157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109158         Make the mostlyclean-local rule depend on mostlyclean-generic.
109159         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
109161 2006-07-31  Bruno Haible  <bruno@clisp.org>
109163         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
109164         <stdlib.h>, <string.h>.
109166 2006-07-30  Bruno Haible  <bruno@clisp.org>
109168         * modules/readlink (License): Change to LGPL.
109170 2006-07-30  Bruno Haible  <bruno@clisp.org>
109172         * modules/javaversion (Makefile.am): Distribute javaversion.java and
109173         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
109174         set PKGDATADIR to point to it.
109176 2006-07-30  Bruno Haible  <bruno@clisp.org>
109178         * modules/csharpexec (configure.ac): Comment out macro invocation.
109179         * modules/javaexec (configure.ac): Likewise.
109180         * modules/javacomp-script (configure.ac): Likewise.
109182         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
109184 2006-07-30  Bruno Haible  <bruno@clisp.org>
109186         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
109187         linked-list.
109189 2006-07-30  Bruno Haible  <bruno@clisp.org>
109191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
109193 2006-07-30  Bruno Haible  <bruno@clisp.org>
109195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109196         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
109197         get removed.
109199 2006-07-29  Bruno Haible  <bruno@clisp.org>
109201         Make it possible for gnulib-tool to work with locally modified or
109202         augmented gnulib repositories.
109203         * gnulib-tool (func_usage): Document --local-dir option.
109204         (local_gnulib_dir): New variable.
109205         Handle --local-dir option.
109206         (func_lookup_file): New function.
109207         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
109208         (func_get_description, func_get_filelist, func_get_description,
109209         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
109210         func_get_automake_snippet, func_get_include_directive,
109211         func_get_license, func_get_maintainer): Use func_lookup_file.
109212         (func_import, func_create_testdir): Use func_lookup_file.
109214 2006-07-29  Bruno Haible  <bruno@clisp.org>
109216         * modules/setenv (Depends-on): Add unistd.
109218 2006-07-29  Bruno Haible  <bruno@clisp.org>
109220         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
109222 2006-07-29  Bruno Haible  <bruno@clisp.org>
109224         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
109226 2006-07-29  Bruno Haible  <bruno@clisp.org>
109228         * gnulib-tool (import, update): If there is no Makefile.am, look at
109229         aclocal.m4, instead of bailing out.
109231 2006-07-29  Bruno Haible  <bruno@clisp.org>
109233         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
109234         Categorize the options by when they are useful.
109236 2006-07-29  Bruno Haible  <bruno@clisp.org>
109238         * gnulib-tool (func_usage): Document option --no-libtool.
109239         Handle option --no-libtool.
109240         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
109241         for changed semantics of $libtool variable.
109242         (func_import): Likewise. If libtool is not used, show this through
109243         an option --no-libtool.
109244         (func_create_testdir): Update.
109246 2006-07-29  Bruno Haible  <bruno@clisp.org>
109248         * gnulib-tool (func_import): Extend error message about missing
109249         --doc-base.
109251 2006-07-29  Bruno Haible  <bruno@clisp.org>
109253         * gnulib-tool (func_import): Don't create the $docbase directory if
109254         there is no file to store there.
109256 2006-07-29  Bruno Haible  <bruno@clisp.org>
109258         * gnulib-tool (autoconf_minversion): If a --dir option is given and
109259         relevant, look for configure.ac there, not in the current directory.
109260         Also use a simple search for AC_PREREQ, not "autoconf --trace".
109262 2006-07-29  Bruno Haible  <bruno@clisp.org>
109264         * gnulib-tool (SORT): New variable.
109265         (func_usage): Undocument --assume-autoconf option.
109266         Remove --assume-autoconf option handling.
109267         (autoconf_minversion): Determine from the contents of configure.ac.
109268         (func_import): Remove autoconf_minversion handling.
109269         Suggested by Eric Blake.
109271 2006-07-29  Bruno Haible  <bruno@clisp.org>
109273         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
109275 2006-07-29  Bruno Haible  <bruno@clisp.org>
109277         * config/srclist.txt (*setenv.[ch]): Remove rules.
109279 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109281         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
109283 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109285         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
109286         arpa/inet.h.
109288 2006-07-28  Simon Josefsson  <jas@extundo.com>
109290         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
109291         * modules/inet_pton (Depends-on): Likewise.
109293 2006-07-28  Simon Josefsson  <jas@extundo.com>
109295         * m4/netinet_in_h.m4: New file.
109297 2006-07-28  Simon Josefsson  <jas@extundo.com>
109299         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
109300         #include's.
109302 2006-07-28  Simon Josefsson  <jas@extundo.com>
109304         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
109305         #include's.
109307 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
109309         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
109310         setgid on directories only if they set these bits.
109311         * lib/modechange.h: Remove obsolete comment about masks.
109313 2006-07-28  Eric Blake  <ebb9@byu.net>
109315         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
109316         macro expansion.
109318 2006-07-28  Bruno Haible  <bruno@clisp.org>
109320         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
109322 2006-07-28  Bruno Haible  <bruno@clisp.org>
109324         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
109326 2006-07-28  Bruno Haible  <bruno@clisp.org>
109328         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
109329         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
109330         Define fallbacks.
109331         Avoids link error on FreeBSD 4.x.
109332         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
109334         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
109335         encoding.
109336         * lib/mbswidth.c (iswcntrl): Likewise.
109338 2006-07-27  Bruno Haible  <bruno@clisp.org>
109340         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
109341         test.
109343 2006-07-27  Bruno Haible  <bruno@clisp.org>
109345         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
109346         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
109347         defined.
109349 2006-07-26  Eric Blake  <ebb9@byu.net>
109351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
109353 2006-07-26  Eric Blake  <ebb9@byu.net>
109355         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
109356         like mingw that lack mkstemp.
109357         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
109358         avoid compilation warning on mingw.
109360 2006-07-26  Bruno Haible  <bruno@clisp.org>
109362         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
109363         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
109364         INT_FAST*_MIN, INTPTR_MIN.
109366 2006-07-25  Bruno Haible  <bruno@clisp.org>
109368         * modules/version-etc (Depends-on): Add stdarg.
109370 2006-07-25  Bruno Haible  <bruno@clisp.org>
109372         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
109373         complex commands.
109375 2006-07-25  Bruno Haible  <bruno@clisp.org>
109377         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
109378         defined in <stdarg.h> or config.h.
109380 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
109382         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
109383         (gl_STDIO_SAFER): Remove.
109385 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
109387         * MODULES.html.sh (File stream based Input/Output):
109388         Add fopen-safer, tmpfile-safer; remove stdio-safer.
109389         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
109390         * modules/fopen-safer, modules/tmpfile-safer: New files.
109391         * modules/stdio-safer: Remove.
109393 2006-07-24  Bruno Haible  <bruno@clisp.org>
109395         * modules/tmpdir: New file.
109396         * MODULES.html.sh (File system functions): Add it.
109398 2006-07-24  Bruno Haible  <bruno@clisp.org>
109400         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
109401         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
109403 2006-07-24  Bruno Haible  <bruno@clisp.org>
109405         * modules/clean-temp: New file.
109407 2006-07-24  Bruno Haible  <bruno@clisp.org>
109409         * m4/tmpdir.m4: New file, from GNU gettext.
109411 2006-07-24  Bruno Haible  <bruno@clisp.org>
109413         * lib/tmpdir.h: New file, from GNU gettext.
109414         * lib/tmpdir.c: New file, from GNU gettext.
109416 2006-07-24  Bruno Haible  <bruno@clisp.org>
109418         * lib/clean-temp.h: New file, from GNU gettext.
109419         * lib/clean-temp.c: New file, from GNU gettext.
109421 2006-07-23  Eric Blake  <ebb9@byu.net>
109423         * modules/stdio-safer (Files): Add tmpfile-safer.c.
109424         (Depends-on): Add binary-io.
109426 2006-07-23  Eric Blake  <ebb9@byu.net>
109428         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
109430 2006-07-23  Eric Blake  <ebb9@byu.net>
109432         * lib/tmpfile-safer.c: New file.
109433         * lib/stdio-safer.h (fopen_safer): Add prototype.
109434         * lib/stdio--.h (tmpfile): Make safer.
109436 2006-07-23  Bruno Haible  <bruno@clisp.org>
109438         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
109439         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
109440         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
109441         gl_linked_remove_at): Use it.
109443 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109444         and Simon Josefsson <jas@extundo.com>
109446         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
109448         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
109450 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
109452         * modules/close-stream: New file.
109453         * modules/closeout (Description): Make it clear that it exits
109454         with a diagnostic on error.
109455         (Depends-on): Add close-stream.  Remove fpending, stdbool.
109456         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
109458 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
109460         * m4/close-stream.m4: New file.
109462 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
109464         * lib/close-stream.c, lib/close-stream.h: New files.
109466 2006-07-22  Bruno Haible  <bruno@clisp.org>
109468         Merge from GNU gettext 0.15.
109470         2006-05-01  Bruno Haible  <bruno@clisp.org>
109472                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
109474         2006-07-22  Bruno Haible  <bruno@clisp.org>
109476                 * modules/javaversion: New file.
109477                 * MODULES.html.sh (Java): Add javaversion.
109479         2006-03-12  Bruno Haible  <bruno@clisp.org>
109481                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
109483         2005-12-04  Bruno Haible  <bruno@clisp.org>
109485                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
109486                 (untested).
109488         2006-06-21  Bruno Haible  <bruno@clisp.org>
109490                 Avoid warnings from recent versions of mcs.
109491                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
109492                 -o, -L, -r any more. Use options documented since mcs-1.0
109493                 instead. Similarly for -g.
109495         2005-12-04  Bruno Haible  <bruno@clisp.org>
109497                 * build-aux/csharpcomp.sh.in: Suffix for resources is
109498                 .resources, not .resource.
109500         2005-07-09  Bruno Haible  <bruno@clisp.org>
109502                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
109503                 add a .dll suffix.
109504                 Reported by Mark Junker <mjscod@gmx.de>.
109506         2006-07-22  Bruno Haible  <bruno@clisp.org>
109508                 * modules/gettext: Upgrade to gettext-0.15.
109509                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
109510                 m4/visibility.m4.
109511                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
109513 2006-07-22  Bruno Haible  <bruno@clisp.org>
109515         Merge from GNU gettext 0.15.
109517         2006-03-25  Bruno Haible  <bruno@clisp.org>
109519                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
109521         2006-07-21  Bruno Haible  <bruno@clisp.org>
109523                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
109524                 "1.1".
109526         2006-05-09  Bruno Haible  <bruno@clisp.org>
109528                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
109529                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
109530                 for the conftestver execution.
109532         2006-05-01  Bruno Haible  <bruno@clisp.org>
109534                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
109535                 optional target-version argument. Verify that the compiler
109536                 groks source of the specified source-version, or add -source
109537                 option as necessary. Verify that the compiler produces
109538                 bytecode in the specified target-version, or add -target and
109539                 -source options as necessary. Make the result of the test
109540                 available as variable CONF_JAVAC. Also log error output in
109541                 config.log.
109543         2006-03-11  Bruno Haible  <bruno@clisp.org>
109545                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
109547         2006-05-09  Bruno Haible  <bruno@clisp.org>
109549                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
109550                 CLASSPATH_SEPARATOR to a semicolon.
109552         2006-03-12  Bruno Haible  <bruno@clisp.org>
109554                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
109555                 available as variable CONF_JAVA, for subsequent autoconf
109556                 tests. Also log error output in config.log.
109558         2006-07-19  Bruno Haible  <bruno@clisp.org>
109560                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
109561                 that getline works on glibc2 systems. Needed to avoid trouble
109562                 in relocatable.c.
109563                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
109565         2005-12-04  Bruno Haible  <bruno@clisp.org>
109567                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
109568                 launcher (untested).
109570         2005-12-04  Bruno Haible  <bruno@clisp.org>
109572                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
109574         2006-07-22  Bruno Haible  <bruno@clisp.org>
109576                 * gettext.m4: Update from GNU gettext-0.15.
109577                 * nls.m4: Likewise.
109578                 * po.m4: Likewise.
109579                 * inttypes-pri.m4: Likewise.
109580                 * inttypes-h.m4: Renamed from inttypes.m4.
109581                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
109583 2006-07-22  Bruno Haible  <bruno@clisp.org>
109585         Merge from GNU gettext 0.15.
109587         2005-07-05  Bruno Haible  <bruno@clisp.org>
109589                 * printf-args.c (printf_fetchargs): Work around broken
109590                 definition of wint_t on mingw.
109592         2005-02-12  Bruno Haible  <bruno@clisp.org>
109594                 * xallocsa.h: Add extern "C" for C++.
109596         2006-05-17  Bruno Haible  <bruno@clisp.org>
109598                 Cygwin portability.
109599                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
109601         2006-04-30  Bruno Haible  <bruno@clisp.org>
109603                 * progreloc.c: Include <mach-o/dyld.h> if available.
109604                 (find_executable): Use _NSGetExecutablePath when possible.
109606         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
109608                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
109609                 function.
109611         2005-12-29  Bruno Haible  <bruno@clisp.org>
109613                 * progreloc.c (set_program_name_and_installdir): Fix
109614                 compilation error.
109616         2005-12-04  Bruno Haible  <bruno@clisp.org>
109618                 Cygwin portability.
109619                 * progreloc.c: Include <windows.h> also on Cygwin.
109620                 (find_executable): Add support for Cygwin.
109621                 (set_program_name_and_installdir): Handle also platforms with
109622                 nonempty EXEEXT.
109624         2006-07-11  Bruno Haible  <bruno@clisp.org>
109626                 * javacomp.c: Fix a comment.
109627                 Reported by Jim Meyering.
109629         2006-04-30  Bruno Haible  <bruno@clisp.org>
109631                 * javacomp.h (compile_java_class): Add source_version,
109632                 target_version arguments.
109633                 * javacomp.c: Rewritten to choose only a compiler that
109634                 respects the specified source_version and target_version.
109636         2006-06-27  Bruno Haible  <bruno@clisp.org>
109638                 Assume correct S_ISDIR macro.
109639                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
109641         2006-07-22  Bruno Haible  <bruno@clisp.org>
109643                 * javaversion.h: New file, from GNU gettext.
109644                 * javaversion.c: New file, from GNU gettext.
109645                 * javaversion.java: New file, from GNU gettext.
109646                 * javaversion.class: New file, from GNU gettext.
109648         2006-05-17  Bruno Haible  <bruno@clisp.org>
109650                 Cygwin portability.
109651                 * javaexec.c (execute_java_class): Test for jview program
109652                 also on Cygwin.
109654         2006-04-09  Bruno Haible  <bruno@clisp.org>
109656                 * fatal-signal.c: Don't include string.h.
109657                 (at_fatal_signal): Use a copying loop instead of memcpy.
109659         2005-12-04  Bruno Haible  <bruno@clisp.org>
109661                 * csharpexec.c: Add support for 'clix' launcher (untested).
109662                 (execute_csharp_using_sscli): New function.
109663                 (execute_csharp_program): Call it.
109665         2006-06-21  Bruno Haible  <bruno@clisp.org>
109667                 Avoid warnings from recent versions of mcs.
109668                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
109669                 -o, -L, -r any more. Use options documented since mcs-1.0
109670                 instead. Similarly for -g.
109672         2005-07-09  Bruno Haible  <bruno@clisp.org>
109674                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
109675                 add a .dll suffix.
109676                 Reported by Mark Junker <mjscod@gmx.de>.
109678         2006-06-17  Bruno Haible  <bruno@clisp.org>
109680                 * config.charset: Update for NetBSD 3.0.
109682         2006-05-17  Bruno Haible  <bruno@clisp.org>
109684                 Cygwin portability.
109685                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
109687         2006-05-16  Bruno Haible  <bruno@clisp.org>
109689                 * localcharset.c [CYGWIN]: Include <windows.h>.
109690                 (get_charset_aliases): For Cygwin, return the same CPxxx
109691                 aliases list as under WIN32.
109692                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
109693                 the environment variables. Fall back to GetACP().
109695         2006-04-05  Bruno Haible  <bruno@clisp.org>
109697                 * config.charset: Update Juan Manuel Guerrero's address.
109699         2005-02-12  Bruno Haible  <bruno@clisp.org>
109701                 * allocsa.h: Add extern "C" for C++.
109703         2005-02-10  Bruno Haible  <bruno@clisp.org>
109705                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
109706                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
109708         2006-07-22  Bruno Haible  <bruno@clisp.org>
109710                 * gettext.h: Update to GNU gettext-0.15.
109712 2006-07-22  Bruno Haible  <bruno@clisp.org>
109714         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
109715         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
109716         lib-prefix.m4, longdouble.m4, ssize_t.m4.
109718 2006-07-21  Eric Blake  <ebb9@byu.net>
109720         * modules/stdlib-safer: New file.
109721         * MODULES.html.sh (File stream based Input/Output): Add
109722         stdlib-safer.
109724 2006-07-21  Eric Blake  <ebb9@byu.net>
109726         * lib/stdlib-safer.h: New file from coreutils, required by
109727         stdlib--.h.
109729 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
109731         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
109733 2006-07-20  Bruno Haible  <bruno@clisp.org>
109735         * gnulib-tool: Recognize new option --assume-autoconf.
109736         (autoconf_minversion): New variable.
109737         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
109739 2006-07-20  Bruno Haible  <bruno@clisp.org>
109741         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
109743 2006-07-19  Derek R. Price  <derek@ximbiot.com>
109745         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
109746         Reindent and repaginate.
109748 2006-07-19  Derek Price  <derek@ximbiot.com>
109750         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
109751         Correct grammar.
109753 2006-07-17  Bruno Haible  <bruno@clisp.org>
109755         * modules/list: New file.
109756         * modules/array-list: New file.
109757         * modules/carray-list, modules/carray-list-tests: New files.
109758         * modules/linked-list, modules/linked-list-tests: New files.
109759         * modules/avltree-list, modules/avltree-list-tests: New files.
109760         * modules/rbtree-list, modules/rbtree-list-tests: New files.
109761         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
109762         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
109763         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
109764         * modules/oset: New file.
109765         * modules/array-oset: New file.
109766         * modules/avltree-oset, modules/avltree-oset-tests: New files.
109767         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
109768         * tests/test-carray_list.c: New file.
109769         * tests/test-linked_list.c: New file.
109770         * tests/test-avltree_list.c: New file.
109771         * tests/test-rbtree_list.c: New file.
109772         * tests/test-linkedhash_list.c: New file.
109773         * tests/test-avltreehash_list.c: New file.
109774         * tests/test-rbtreehash_list.c: New file.
109775         * tests/test-avltree_oset.c: New file.
109776         * tests/test-rbtree_oset.c: New file.
109777         * MODULES.html.sh (Container data structures): New section.
109779 2006-07-17  Bruno Haible  <bruno@clisp.org>
109781         * m4/gl_list.m4: New file.
109783 2006-07-17  Bruno Haible  <bruno@clisp.org>
109785         * lib/gl_list.h: New file.
109786         * lib/gl_list.c: New file.
109787         * lib/gl_array_list.h: New file.
109788         * lib/gl_array_list.c: New file.
109789         * lib/gl_carray_list.h: New file.
109790         * lib/gl_carray_list.c: New file.
109791         * lib/gl_linked_list.h: New file.
109792         * lib/gl_linked_list.c: New file.
109793         * lib/gl_anylinked_list1.h: New file.
109794         * lib/gl_anylinked_list2.h: New file.
109795         * lib/gl_avltree_list.h: New file.
109796         * lib/gl_avltree_list.c: New file.
109797         * lib/gl_anyavltree_list1.h: New file.
109798         * lib/gl_anyavltree_list2.h: New file.
109799         * lib/gl_rbtree_list.h: New file.
109800         * lib/gl_rbtree_list.c: New file.
109801         * lib/gl_anyrbtree_list1.h: New file.
109802         * lib/gl_anyrbtree_list2.h: New file.
109803         * lib/gl_anytree_list1.h: New file.
109804         * lib/gl_anytree_list2.h: New file.
109805         * lib/gl_linkedhash_list.h: New file.
109806         * lib/gl_linkedhash_list.c: New file.
109807         * lib/gl_anyhash_list1.h: New file.
109808         * lib/gl_anyhash_list2.h: New file.
109809         * lib/gl_avltreehash_list.h: New file.
109810         * lib/gl_avltreehash_list.c: New file.
109811         * lib/gl_rbtreehash_list.h: New file.
109812         * lib/gl_rbtreehash_list.c: New file.
109813         * lib/gl_anytreehash_list1.h: New file.
109814         * lib/gl_anytreehash_list2.h: New file.
109816         * lib/gl_oset.h: New file.
109817         * lib/gl_oset.c: New file.
109818         * lib/gl_array_oset.h: New file.
109819         * lib/gl_array_oset.c: New file.
109820         * lib/gl_avltree_oset.h: New file.
109821         * lib/gl_avltree_oset.c: New file.
109822         * lib/gl_rbtree_oset.h: New file.
109823         * lib/gl_rbtree_oset.c: New file.
109824         * lib/gl_anytree_oset.h: New file.
109826 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109828         * m4/mkancesdirs.m4: New file.
109829         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
109830         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
109831         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
109832         it.
109834 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109836         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
109837         * lib/mkancesdirs.h: New files.
109838         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
109839         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
109840         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
109841         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
109842         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
109843         callers changed.  Revamp internals significantly, by not
109844         attempting to create directories that are temporarily more
109845         permissive than the final results.  Do not attempt to use
109846         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
109847         This removes some race conditions, fixes some bugs, and simplifies
109848         things.  Use new dirchownmod function to do owner and mode changes.
109849         * lib/mkdir-p.h: Likewise.
109850         * lib/modechange.c (octal_to_mode): New function.
109851         (struct mode_change): New member mentioned.
109852         (make_node_op_equals): New arg mentioned.  All callers changed.
109853         (mode_compile): Keep track of which mode bits the user has explicitly
109854         mentioned.
109855         (mode_adjust): New arg DIR, so that we implement the X op correctly.
109856         New arg PMODE_BITS, to keep track of which mode bits the user
109857         mentioned; it treats S_ISUID and S_ISGID speciall.
109858         All callers changed.
109859         * lib/modechange.h: Likewise.
109861 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109863         * MODULES.html.sh: Add mkancestors.
109864         * modules/mkancesdirs: New module.
109865         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
109866         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
109867         The chdir-safer and afs files are now orphans; I'll remove them
109868         unless someone speaks up.
109869         Add lib/dirchownmod.c, lib/dirchownmod.h.
109870         (Depends-on): Remove alloca, chown, save-cwd, dirname.
109871         Add lchown, mkancesdirs.
109872         (Maintainer): Add self.
109874 2006-07-15  Karl Berry  <karl@gnu.org>
109876         * gnulib-tool: help message wording/arrangement.
109878 2006-07-14  Simon Josefsson  <jas@extundo.com>
109880         * doc/gnulib.texi (Libtool and Windows): New section.
109882 2006-07-12  Simon Josefsson  <jas@extundo.com>
109884         * modules/gendocs (License): Fix license, approved by Karl.
109886 2006-07-12  Eric Blake  <ebb9@byu.net>
109888         * MODULES.html.sh: Add gendocs.
109890 2006-07-11  Eric Blake  <ebb9@byu.net>
109892         * modules/fdl: New module, to install doc/fdl.texi.
109893         * MODULES.html.sh: Add new section for documentation modules.
109894         * gnulib-tool: Avoid space-tab.
109895         (--doc-base): New option, to manage files from doc.
109897 2006-07-11  Eric Blake  <ebb9@byu.net>
109899         * m4/absolute-header.m4: Fix comments to match recent change.
109901 2006-07-11  Eric Blake  <ebb9@byu.net>
109903         * gnulib-tool: List --doc-base before --tests-base.
109905 2006-07-11  Derek R. Price  <derek@ximbiot.com>
109907         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
109909 2006-07-11  Bruno Haible  <bruno@clisp.org>
109911         * README: Mention where to put documentation.
109913 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109915         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
109917 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
109919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
109920         to stdint.m4.
109922 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
109924         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
109925         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
109926         "no/such/file/stdint.h" when there is no such file, so that
109927         the resulting C code can be parsed by dodgy compilers.
109928         Problems reported by Bob Proulx.
109930 2006-07-10  Derek R. Price  <derek@ximbiot.com>
109932         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
109933         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
109934         macros into the GNU _D_EXACT_NAMLEN.
109935         * lib/savedir.c:  Likewise.
109936         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
109938 2006-07-10  Derek R. Price  <derek@ximbiot.com>
109939         and Paul Eggert  <eggert@cs.ucla.edu>
109941         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
109942         * m4/savedir.m4:
109943         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
109944         macros into the GNU _D_EXACT_NAMLEN.
109946 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109948         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
109949         around the absolute name, to work around a problem with the HP-UX
109950         11.23 native C compiler, reported by Bob Proulx.
109952 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109954         * doc/maintain.texi, make-stds.texi: Sync from
109955         <http://savannah.gnu.org/projects/gnustandards>.
109957 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109959         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
109961 2006-07-09  Jim Meyering  <jim@meyering.net>
109963         * m4/glob.m4: Remove a doubled word in a comment.
109965 2006-07-09  Jim Meyering  <jim@meyering.net>
109967         * lib/argp-pv.c: Remove a doubled word in a comment.
109968         * lib/check-version.c (check_version): Likewise.
109969         * lib/javacomp.c (compile_java_class): Likewise.
109971 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
109973         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
109974         for the benefit of people using Autoconf 2.60.  If you want to
109975         support older Autoconf versions you can copy m4/onceonly_2_57.m4
109976         (or m4/onceonly.m4, if pre-2.57) manually.
109978 2006-07-08  Jim Meyering  <jim@meyering.net>
109980         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
109981         comment.
109982         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
109983         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
109984         comment.
109986 2006-07-08  Jim Meyering  <jim@meyering.net>
109988         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
109990 2006-07-07  Simon Josefsson  <jas@extundo.com>
109992         * tests/test-crc.c: Change expected crc value, the test vector
109993         were probably computed using the old broken crc.c?
109995 2006-07-06  Simon Josefsson  <jas@extundo.com>
109997         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
109998         now the canonical place for the M4 file).
110000         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
110001         from the sys_socket dependency now.
110003         * modules/inet_pton (Files): Ditto.
110005         * modules/inet_ntop (Files): Ditto.
110007 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
110009         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
110010         not gl_PREREQ_GETUSERSHELL.
110012 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110014         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
110015         with only one argument, for Autoconf 2.60.
110016         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
110017         expand to nothing, so add a shell command to avoid syntax error.
110018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
110020 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110022         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
110024 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
110026         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
110027         no longer needed.  Check for isblank decl.
110028         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
110029         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
110030         of existence.
110032 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
110034         * lib/getloadavg.c: Use __VMS, not VMS.
110035         * lib/getopt.c: Likewise.
110036         * lib/getpagesize.h: Likewise.
110037         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
110038         and probably does not work.
110040 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
110042         * lib/.cppi-disable: Add wcwidth.
110043         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
110044         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
110045         (ISGRAPH): Remove.  All uses changed to isgraph.
110046         (FOLD) [!defined _LIBC]: Remove special case.
110047         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
110048         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
110049         HAVE_ISBLANK.
110050         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
110051         case.
110053 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
110055         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
110056         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
110057         brackets.  Other minor changes to suppress some compiler
110058         warnings.
110060 2006-07-06  Derek R. Price  <derek@ximbiot.com>
110061         and Paul Eggert  <eggert@cs.ucla.edu>
110063         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
110064         of invoking obsolescent AC_HEADER_DIRENT macro.
110065         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
110066         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
110067         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
110068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
110069         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
110070         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110071         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
110072         * m4/readdir.m4: Remove; no longer needed.
110074 2006-07-06  Derek R. Price  <derek@ximbiot.com>
110075         and Paul Eggert  <eggert@cs.ucla.edu>
110077         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
110078         Don't worry about this obsolete case any more.
110079         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
110080         directories.
110081         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
110082         worry about this obsolete case any more.
110083         * lib/fts.c: Likewise.
110084         * lib/getcwd.c: Likewise.
110085         * lib/glob.h: Likewise.
110086         * lib/savedir.c: Likewise.
110088 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
110090         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
110091         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
110092         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
110093         needed.
110094         All uses removed.
110095         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
110096         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
110097         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
110098         needed.
110099         * m4/getdate.m4 (gl_GETDATE): Likewise.
110100         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
110101         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
110102         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
110103         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
110104         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
110105         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110106         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
110107         needed.
110109 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
110111         * lib/memcasecmp.c: Include <limits.h>.
110112         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
110113         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
110114         Don't assume isdigit succeeds only on '0' through '9'.
110116 2006-07-05  Eric Blake  <ebb9@byu.net>
110118         * modules/getaddrinfo (Depends-on): Add snprintf.
110120 2006-07-05  Eric Blake  <ebb9@byu.net>
110122         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
110123         to avoid 'header present but could not be compiled' on cygwin.
110125 2006-07-05  Eric Blake  <ebb9@byu.net>
110127         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
110128         missing from netdb.h.
110129         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
110131 2006-07-05  Derek R. Price  <derek@ximbiot.com>
110133         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
110134         no longer needed.
110135         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
110136         * m4/getdate.m4 (gl_GETDATE): Likewise.
110137         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
110138         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
110139         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
110140         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
110141         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110143 2006-07-05  Derek R. Price  <derek@ximbiot.com>
110145         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
110146         All uses of is_space replaced by isspace.
110147         * lib/exit.h: Don't talk about STDC_HEADERS.
110148         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
110149         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
110150         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
110151         replaced by isprint etc.
110152         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
110153         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
110154         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
110155         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
110156         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
110157         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
110159 2006-07-05  Bruno Haible  <bruno@clisp.org>
110161         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
110162         the function exists, before testing against AIX.
110163         Reported by Martin Lambers <marlam@marlam.de>.
110165 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
110167         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
110168         From Mark D. Baushke.
110170 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
110172         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
110173         to the absolute name, not just one, to bypass Sun C 5.8's
110174         "warning: #include of /usr/include/... may be non-portable".
110176 2006-07-04  Eric Blake  <ebb9@byu.net>
110178         * modules/dirname-tests: New test module.
110179         * tests/test-dirname.c: New file, replacing dirname.c
110180         TEST_DIRNAME section that was recently deleted.
110182 2006-07-04  Bruno Haible  <bruno@clisp.org>
110184         Assume ANSI C header files and <ctype.h> functions.
110185         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
110186         (mbsnwidth): Use isprint, iscntrl instead.
110188 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110190         Merge from coreutils.
110191         * MODULES.html.sh: Add xstrtold.
110192         * modules/xstrtold: New file.
110193         * modules/cycle-check (Files): Add lib/same-inode.h.
110194         * modules/dirname (Files): Add m4/double-slash-root.m4.
110195         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
110196         * modules/mkdir-p (Files): Add lib/same-inode.h.
110197         * modules/same (Files): Add lib/same-inode.h.
110199 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110201         * m4/absolute-header.m4: Renamed from full-header-path.m4.
110202         This is to keep the terminology clean; POSIX talks about
110203         "absolute pathnames", not "full pathnames", but the GNU
110204         Coding Standards say to use "path" for something else;
110205         so use "absolute" to keep both sides happy.
110206         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
110207         Set gl_absolute_header, not gl_full_header_path.
110208         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
110209         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
110210         All uses changed.
110212         Merge from coreutils.
110214         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
110216         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
110217         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
110218         want to require the building of c-strtod.o.
110219         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
110220         needs -lm directly.
110221         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
110223         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
110225         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
110226         --as-needed option if available.  Problem reported by Albert Chin in
110227         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
110228         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
110229         cc merely issues a bunch of annoying warnings for --as-needed
110230         (this problem was reported by Bob Proulx).  Also, try linking with
110231         -lm to detect a bug in binutils 2.16 (this problem was reported
110232         by Ralf Wildenhues).
110234         2006-06-18  Jim Meyering  <jim@meyering.net>
110236         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
110237         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
110238         macro.
110239         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
110240         also check for glibc-2.4's abort-inducing bug.
110242         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
110243         Low-probability clean-up should be to use rmdir to get rid of
110244         the just-created directory, not unlink.
110246         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
110247         configure fail, and request a bug report to inform us about it.
110248         Add a comment that, barring reports to the contrary, in 2007 we'll
110249         assume ftruncate is universally available.
110251         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
110253         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
110255         2006-03-12  Jim Meyering  <jim@meyering.net>
110257         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
110258         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
110259         * m4/same.m4 (gl_SAME): Likewise.
110260         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
110262         2006-03-11  Eric Blake  <ebb9@byu.net>
110264         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
110265         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
110266         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
110267         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
110269 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
110271         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
110272         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
110273         reported by Mark D. Baushke, one in
110274         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
110276         Merge from coreutils.
110278         * lib/.cppi-disable: Add stdint_.h.
110279         * lib/.cvsignore: Add stdint.h.
110281         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
110283         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
110284         both double and long double versions.
110285         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
110286         * lib/xstrtold.c: New file.
110287         * lib/xstrtod.h (xstrtold): New decl.
110289         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
110291         * lib/filemode.c (setst): Remove.
110292         (strmode): Rewrite to avoid setst.  This makes the code shorter,
110293         (arguably) clearer, and the generated code is a bit smaller on my
110294         Debian GNU/Linux stable x86 host.
110296         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
110298         * lib/filemode.c: Include "filemode.h" first, to test the interface.
110299         Assume that filemode.h includes sys/types.h and sys/stat.h.
110300         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
110301         (ftypelet): Reorder to put common cases first, for efficiency.
110302         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
110303         to do 'M'.
110304         (strmode): Renamed from mode_string, and now stores 12 bytes instead
110305         of 10, for compatibility with FreeBSD.  All callers changed.
110306         (filemodestring): Now stores 12 bytes instead of 10, and sets file
110307         types that can't be deduced solely from st_mode.  First arg is now a
110308         const pointer.
110309         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
110310         (strmode): Renamed from mode_string.
110311         (filemodestring): New decl.
110312         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
110313         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
110314         needed.
110315         (S_ISPORT, S_ISWHT): New macros, if not already defined.
110317         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
110319         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
110320         fsusage.h now does that.  Include fsusage.h first, to test interface.
110321         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
110322         at most one method (the old code could have generated decls that
110323         didn't conform to C89, not that this was ever exercised).
110324         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
110326         2006-03-19  Jim Meyering  <jim@meyering.net>
110328         Work even in a chroot where d_ino values for entries in "/"
110329         don't match the stat.st_ino values for the same names.
110330         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
110331         number, iterate through all entries again, using lstat instead.
110332         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
110333         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
110335         * lib/getcwd.c (__getcwd): Clarify a comment.
110336         Use memcpy in place of a call to strcpy.
110338         2006-03-12  Jim Meyering  <jim@meyering.net>
110340         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
110341         matches that of the current directory (which we're about to chdir ".."
110342         out of), then save the dev-ino of the parent, instead.
110344         * lib/same-inode.h (SAME_INODE): New file/macro.
110345         * lib/chdir-safer.c (SAME_INODE): Remove definition.
110346         Include "same-inode.h", instead.
110347         * lib/same.c: Likewise.
110348         * lib/cycle-check.h: Include "same-inode.h".
110349         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
110350         * lib/cycle-check.c (SAME_INODE): Remove definition.
110351         * lib/root-dev-ino.h: Include "same-inode.h".
110353         2006-03-11  Eric Blake  <ebb9@byu.net>
110355         * lib/same.c (same_name): s/base_name/last_component/
110356         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
110357         * lib/filenamecat.c (file_name_concat): Likewise.
110359         2006-03-11  Eric Blake  <ebb9@byu.net>,
110360                     Paul Eggert  <eggert@cs.ucla.edu>
110362         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
110363         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
110364         drive prefix.
110365         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
110366         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
110367         (last_component): New method.
110368         * lib/dirname.c (dir_len): Determine when drive letters need a
110369         subsequent slash.  Preserve // when it is special.
110370         (dir_name): Don't append dot when drive letter is absolute.
110371         [TEST_DIRNAME]: Move into a full-blown gnulib test.
110372         * lib/basename.c (base_name): New semantics - malloc the result.
110373         Preserve // when it is special.  Preserve relative files that look
110374         like drive letters.
110375         (base_len): Preserve // when it is special.
110376         (last_component): New method, similar to old base_name semantics.
110377         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
110378         base_name.  Strip redundant slashes from ///.
110380 2006-07-03  Jim Meyering  <jim@meyering.net>
110382         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
110383         macro is used before the first cycle_check call.
110385 2006-07-03  Eric Blake  <ebb9@byu.net>
110387         * modules/dirname (Depends-on): Add xstrndup.
110389 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
110391         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
110392         test cases, so that config.log is a bit easier to follow.
110394 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
110396         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
110397         both are 64 bits, since this seems to be the tradition, and this
110398         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
110399         we ever run into a host that prefers long long to long in this
110400         case, we'll need another configure-time test.  Problem reported by
110401         Jim Meyering.
110403 2006-07-02  Eric Blake  <ebb9@byu.net>
110405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
110407 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110409         * modules/inttypes (Depends-on): No longer depends on stdint.
110410         * modules/stdint (Description): Say more about assumptions.
110411         Say that the fast types might differ.  Say macros are used.
110412         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
110413         (Makefile.am): Revise list of substituted symbols to match
110414         new stdint.m4.
110415         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
110416         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
110417         * tests/test-stdint.c (verify_same_types)
110418         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
110419         the code conforms to C99/C89.
110420         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
110421         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
110423 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110425         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
110426         but fix a bug, by requiring at least 64 bits.
110427         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
110428         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
110429         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
110430         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
110432         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
110433         changes.  Make 2.59 a prerequisite.  Check and substitute for
110434         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
110435         inttypes.h.  Do not use special include files; just use the
110436         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
110437         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
110438         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
110439         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
110440         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
110441         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
110442         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
110443         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
110444         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
110445         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
110446         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
110447         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
110448         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
110449         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
110450         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
110451         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
110452         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
110453         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
110454         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
110455         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
110456         WINT_MAX.  Check for C99 conformance more strictly, by detecting
110457         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
110458         not check for things that C99 does not require, e.g., int8_t.  If
110459         a test isn't needed unless <stdint.h> isn't working, and is
110460         unlikely to be needed for any other reason, then don't do it
110461         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
110462         size_t, since we assume C89 freestanding at least.  Do not check
110463         for sig_atomic_t, wchar_t, or wint_t, since the code now does
110464         the right thing even if the types are not defined.  Instead use:
110465         (gl_STDINT_TYPE_PROPERTIES): New macro.
110466         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
110467         testing whether <sys/types.h> clashes, as Autoconf does this for
110468         us now.  All uses removed.
110469         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
110470         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
110471         (gl_CHECK_TYPE_SAME):
110472         Remove; no longer needed.
110473         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
110474         exists, since we'll return 0 anyway in that case.
110475         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
110477 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110479         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
110480         possible collision with system files.
110481         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
110482         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
110483         WCHAR_MIN and WCHAR_MAX in this case.
110484         (<stddef.h>): Do not include; no longer needed.
110485         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
110486         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
110487         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
110488         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
110489         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
110490         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
110491         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
110492         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
110493         !defined(__c99))]: Include in this case too, since it's harmless
110494         now.
110495         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
110496         dangerous to do so.
110497         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
110498         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
110499         (_STDINT_MIN, _STDINT_MAX): New macros.
110500         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
110501         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
110502         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
110503         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
110504         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
110505         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
110506         macros, not typedefs; this simplifies things quite a bit.
110507         Use long int for all types narrower than int64_t.
110508         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
110509         Define in terms of long long int or int64_t or long int,
110510         not int64_t or int32_t.  This saves some compile-time testing.
110511         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
110512         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
110513         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
110514         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
110515         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
110516         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
110517         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
110518         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
110519         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
110520         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
110521         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
110522         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
110523         undef any previous version and define our own version, for
110524         simplicity and consistency with the new macros for types.
110525         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
110526         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
110527         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
110528         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
110529         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
110530         @WINT_T_SUFFIX@ to keep things simple here.
110531         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
110532         Simplify by assuming typical 8/16/32/64 host, since we're
110533         already doing that elsewhere anyway.
110534         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
110535         and assume long long int is 64 bits if available.  This
110536         speeds up 'configure'.
110538 2006-07-01  Eric Blake  <ebb9@byu.net>
110540         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
110541         Reported by Andreas Buening.
110543 2006-07-01  Eric Blake  <ebb9@byu.net>
110545         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
110547 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
110549         * lib/getaddrinfo.c: fixed typo
110551 2006-06-29  Jim Meyering  <jim@meyering.net>
110553         * modules/strftime (Maintainer): Add my name, since with the
110554         FPRINTFTIME changes strftime.c has forked from glibc.
110556 2006-06-29  Eric Blake  <ebb9@byu.net>
110558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
110560 2006-06-29  Eric Blake  <ebb9@byu.net>
110562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
110564 2006-06-29  Eric Blake  <ebb9@byu.net>
110566         * lib/stat_.h: New file.
110568 2006-06-29  Eric Blake  <ebb9@byu.net>
110570         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
110571         unused static function.
110573 2006-06-29  Eric Blake  <ebb9@byu.net>
110575         * doc/functions.texi (Function Portability): Document missing lstat
110576         on mingw.
110578 2006-06-29  Eric Blake  <ebb9@byu.net>
110580         * MODULES.html.sh: Add sys_stat.
110581         * modules/sys_stat: New module.
110582         * modules/mkstemp (Depends-on): Add sys_stat.
110584 2006-06-29  Derek R. Price  <derek@ximbiot.com>
110586         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
110588 2006-06-29  Derek R. Price  <derek@ximbiot.com>
110590         * m4/c-bs-a.m4: Removed.
110592 2006-06-29  Derek R. Price  <derek@ximbiot.com>
110594         * lib/strftime.c: Assume strftime() exists.
110596 2006-06-29  Derek Price  <derek@ximbiot.com>
110598         * modules/c-bs-a: Removed - \a is C89.
110599         * MODULES.html.sh: Remove c-bs-a.
110601 2006-06-29  Bruno Haible  <bruno@clisp.org>
110603         * modules/wcwidth (License): Change to LGPL.
110605 2006-06-28  Simon Josefsson  <jas@extundo.com>
110607         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
110608         on _WIN32.
110610         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
110611         getnameinfo.
110613 2006-06-28  Simon Josefsson  <jas@extundo.com>
110615         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
110617 2006-06-28  Simon Josefsson  <jas@extundo.com>
110619         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
110620         functions there.  It will succeed on Windows XP, but on Windows
110621         2000 and (presumably) earlier, it will fail, and use the internal
110622         re-implementation.
110623         (use_win32_p): New function.
110624         (getaddrinfo): Use strtoul on servname, to support numeric ports.
110625         Support AI_NUMERICSERV to disable getservbyname.
110626         (getnameinfo): New function, only supports
110627         NI_NUMERICHOST|NI_NUMERICSERV for now.
110629         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
110630         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
110631         getnameinfo.
110633 2006-06-28  Eric Blake  <ebb9@byu.net>
110635         * modules/wcwidth: New file.
110636         * modules/mbchar (Depends-on): Add wcwidth.
110637         * modules/mbswidth (Depends-on): Add wcwidth.
110638         * MODULES.html.sh: Add wcwidth.
110640 2006-06-28  Eric Blake  <ebb9@byu.net>
110642         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
110643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
110645 2006-06-28  Eric Blake  <ebb9@byu.net>
110647         * lib/xvasprintf.h: Fix comments.
110649 2006-06-28  Eric Blake  <ebb9@byu.net>
110651         * lib/mbchar.h (wcwidth): Include wcwidth.h.
110652         * lib/mbswidth.c (wcwidth): Move from here...
110653         * lib/wcwidth.h: ...to this new file.
110655 2006-06-28  Derek R. Price  <derek@ximbiot.com>
110657         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
110659         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
110660         it's obsolete.
110661         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
110663 2006-06-28  Derek R. Price  <derek@ximbiot.com>
110665         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
110666         Autoconf 2.60 says this stuff was obsolete.
110668 2006-06-28  Bruno Haible  <bruno@clisp.org>
110670         * modules/wcwidth (Files): Add m4/wchar_t.m4.
110672 2006-06-28  Bruno Haible  <bruno@clisp.org>
110674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
110675         gt_TYPE_WCHAR_T.
110677 2006-06-28  Bruno Haible  <bruno@clisp.org>
110679         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
110680         declaration for wcwidth.
110681         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
110683 2006-06-28  Bruno Haible  <bruno@clisp.org>
110685         * lib/mkdtemp.c [MINGW]: Include <io.h>.
110686         (mkdir): Define using _mkdir.
110688 2006-06-28  Bruno Haible  <bruno@clisp.org>
110690         * lib/getaddrinfo.h: Fix POSIX URL.
110691         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
110692         _WIN32.
110693         (use_win32_p): Make static.
110694         (getaddrinfo): Reject service name if it is empty or does not consist
110695         solely of decimal digits, or if its value is > 65535.
110696         (getnameinfo): Remove useless casts.
110698 2006-06-27  Simon Josefsson  <jas@extundo.com>
110700         * modules/sys_select: New file, suggested by Bruno Haible, Paul
110701         Eggert and Martin Lambers.
110703 2006-06-27  Simon Josefsson  <jas@extundo.com>
110705         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
110706         Eggert and Martin Lambers.
110708 2006-06-27  Bruno Haible  <bruno@clisp.org>
110710         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
110711         result to 0, not to empty.
110712         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
110714 2006-06-27  Bruno Haible  <bruno@clisp.org>
110716         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
110718 2006-06-26  Simon Josefsson  <jas@extundo.com>
110720         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
110721         present.
110723 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
110725         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
110726         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
110727         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
110729 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
110731         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
110733 2006-06-26  Bruno Haible  <bruno@clisp.org>
110735         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
110737 2006-06-26  Bruno Haible  <bruno@clisp.org>
110739         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
110741 2006-06-26  Bruno Haible  <bruno@clisp.org>
110743         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
110744         SGI C compiler in pre-C99 mode.
110745         Suggested by Mark D. Baushke and Larry Jones.
110747 2006-06-26  Bruno Haible  <bruno@clisp.org>
110749         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
110750         WCHAR_MAX.
110751         Reported by Mark D. Baushke and Larry Jones.
110753 2006-06-26  Bruno Haible  <bruno@clisp.org>
110755         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
110756         in pre-C99 mode.
110757         Suggested by Mark D. Baushke and Larry Jones.
110759 2006-06-23  Simon Josefsson  <jas@extundo.com>
110760             Bruno Haible  <bruno@clisp.org>
110762         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
110763         Emit mostlyclean-local rule.
110764         (func_emit_tests_Makefile_am): Likewise.
110765         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
110767 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
110769         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
110771 2006-06-23  Bruno Haible  <bruno@clisp.org>
110773         * tests/test-stdint.c: Update to match ISO C 99 Technical
110774         Corrigendum 1.
110776 2006-06-23  Bruno Haible  <bruno@clisp.org>
110778         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
110780 2006-06-23  Bruno Haible  <bruno@clisp.org>
110782         * lib/stdint_.h: Treat IRIX like OpenBSD.
110784 2006-06-23  Bruno Haible  <bruno@clisp.org>
110786         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
110787         ISO C 99 Technical Corrigendum 1.
110789 2006-06-22  Simon Josefsson  <jas@extundo.com>
110791         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
110792         MinGW.
110794 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
110796         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
110797         needed.  Some compiler complained about some of them.  Problem reported
110798         by Larry Jones in
110799         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
110801 2006-06-21  Simon Josefsson  <jas@extundo.com>
110803         * tests/test-getaddrinfo.c: New file.
110805         * modules/getaddrinfo-tests: New file.
110807         * MODULES.html.sh: Add inet_pton.
110809         * modules/inet_pton: New file.
110811 2006-06-21  Simon Josefsson  <jas@extundo.com>
110813         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
110814         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
110815         of using the (limited) gnulib implementation on Windows XP.
110817         * m4/inet_pton.m4: New file.
110819 2006-06-21  Simon Josefsson  <jas@extundo.com>
110821         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
110822         variable.
110824         * lib/socket_.h: Don't define WINVER.
110826         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
110827         slightly modified to work in gnulib.
110829 2006-06-21  Simon Josefsson  <jas@extundo.com>
110831         * doc/gnulib.texi (Windows sockets): Add.
110833 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
110835         * lib/read-file.c (fread_file): Start with buffer allocation of
110836         0 bytes rather than 1 byte; this simplifies the code.
110837         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
110838         code to free buffer and save/restore errno.
110839         (internal_read_file): Remove unused local.
110841 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
110843         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
110844         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
110845         Problem reported by Denis Excoffier in
110846         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
110848 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110850         * modules/sys_socket, modules/socklen: Include sys/types since
110851         FreeBSD 4.x's sys/socket.h needs it.
110853 2006-06-19  Simon Josefsson  <jas@extundo.com>
110855         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
110857 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
110859         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
110861 2006-06-19  Bruno Haible  <bruno@clisp.org>
110863         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
110864         and FULL_PATH_INTTYPES_H in angle brackets.
110865         Reported by Mark D. Baushke <mdb@gnu.org>.
110867 2006-06-17  Eric Blake  <ebb9@byu.net>
110869         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
110870         errno.
110872 2006-06-17  Bruno Haible  <bruno@clisp.org>
110874         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
110875         <sys/inttypes.h>.
110877 2006-06-17  Bruno Haible  <bruno@clisp.org>
110879         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
110880         whether errno is declared. Assume <errno.h> declares errno.
110882 2006-06-17  Bruno Haible  <bruno@clisp.org>
110884         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
110886 2006-06-17  Bruno Haible  <bruno@clisp.org>
110888         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
110889         problem on Solaris 2.5.1.
110891 2006-06-16  Eric Blake  <ebb9@byu.net>
110893         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
110894         * lib/unicodeio.c [!defined errno]: Likewise.
110895         * lib/strtol.c [!defined errno]: Likewise.
110896         * lib/strtod.c [!defined errno]: Likewise.
110898 2006-06-15  Eric Blake  <ebb9@byu.net>
110900         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
110902 2006-06-15  Eric Blake  <ebb9@byu.net>
110904         * config/srclist.txt (ssize_t.m4): Lose sync.
110906 2006-06-15  Bruno Haible  <bruno@clisp.org>
110908         * modules/stdint (Files): Include m4/full-header-path.m4,
110909         m4/size_max.m4, m4/wchar_t.m4.
110910         (Makefile.am): Many more substitutions.
110911         * modules/stdint-tests: New file.
110912         * tests/test-stdint.c: New file.
110914 2006-06-15  Bruno Haible  <bruno@clisp.org>
110916         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
110917         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
110918         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
110919         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
110920         gl_CHECK_TYPE_SAME): New macros.
110922 2006-06-15  Bruno Haible  <bruno@clisp.org>
110924         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
110926 2006-06-15  Bruno Haible  <bruno@clisp.org>
110928         * lib/stdint_.h: Rewritten to be fully auto-configured.
110929         Fixes bug on HP-UX/IA64.
110931 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
110933         * lib/getdate.y (__attribute__): Don't define if already defined.
110934         Problem reported by Larry Jones.
110935         * lib/utimens.c (__attribute__): Likewise.
110937 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
110939         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
110940         reported by Andreas Schwab.
110942 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110943             Bruno Haible  <bruno@clisp.org>
110945         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
110946         check for the declaration of strnlen and a run test that exposes the
110947         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
110948         rpl_strndup.
110950 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110951             Bruno Haible  <bruno@clisp.org>
110953         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
110955 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110957         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
110958         compile test, for Tru64 4.0D.
110960 2006-05-28  Karl Berry  <karl@gnu.org>
110962         * config/srclist.txt (printf-args.c): lose sync.
110964 2006-05-26  Martin Lambers  <marlam@marlam.de>
110966         * lib/getpass.c: Updates the test for the native W32 API, and adds
110967         missing includes, thus fixing compilation warnings.
110969 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
110971         * lib/exclude.c (exclude_fnmatch): New function.
110972         (excluded_file_name): Call exclude_fnmatch.
110973         * lib/exclude.h (excluded_file_name): New prototype
110975 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
110977         * lib/tempname.c (small_open, large_open): New macros.
110978         (__open, __open64) [!_LIBC]: Remove.
110979         (__gen_tempname): Use small_open and large_open instead of __open
110980         and __open64.  This fixes a portability bug on HP-UX 11.11i
110981         reported by Simon Wing-Tang in
110982         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
110984 2006-05-24  Bruno Haible  <bruno@clisp.org>
110986         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
110987         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
110988         Reported by Thorsten Maerz <torte@netztorte.de> via
110989         Aaron Stone <aaron@serendipity.cx>.
110991 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
110993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
110994         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
110995         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
110996         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
110997         not really conditional on the cache.
110998         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
111000 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
111002         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
111003         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
111004         (my_usleep): Don't mishandle maximum value.
111006 2006-05-19  Jim Meyering  <jim@meyering.net>
111008         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
111010 2006-05-17  Bruno Haible  <bruno@clisp.org>
111012         Cygwin portability.
111013         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
111015 2006-05-17  Bruno Haible  <bruno@clisp.org>
111017         * lib/stdint_.h: Fix recognition of Cygwin.
111019 2006-05-15  Bruno Haible  <bruno@clisp.org>
111021         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
111022         on libtool patch by Ralf Wildenhues.
111024 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
111026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
111027         test for C99 conformance; (bool) 0.5 is an integer constant
111028         expression, but (bool) -0.5 is not.  Problem reported by Fedor
111029         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
111031 2006-05-11  Simon Josefsson  <jas@extundo.com>
111033         * m4/xvasprintf.m4: Fix obvious typo.
111035 2006-05-11  Jim Meyering  <jim@meyering.net>
111037         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
111038         James Lemley.
111040 2006-05-10  Simon Josefsson  <jas@extundo.com>
111042         * lib/md4.c: Typo fix, update copyright years.
111043         (K1, K2): Don't use L because it turn computations into 64-bit on
111044         64-bit platforms.
111046 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
111048         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
111049         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
111050         unwanted sign propagation, e.g., on hosts with 64-bit int.
111051         There still are some problems with reeelly weird theoretical hosts
111052         (e.g., 33-bit int) but it's not worth worrying about now.
111053         * lib/sha1.c (rol): Likewise.
111054         (K1, K2, K3, K4): Remove unnecessary L suffix.
111056 2006-05-10  Bruno Haible  <bruno@clisp.org>
111058         * lib/des.c: Cast to avoid warnings.
111060 2006-05-09  Bruno Haible  <bruno@clisp.org>
111062         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
111063         (Depends-on): Depend also on xsize, stdarg.
111064         (configure.ac): Add gl_XVASPRINTF.
111066 2006-05-09  Bruno Haible  <bruno@clisp.org>
111068         * m4/xvasprintf.m4: New file.
111070 2006-05-09  Bruno Haible  <bruno@clisp.org>
111072         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
111073         (EOVERFLOW): Define fallback value.
111074         (xstrcat): New function.
111075         (xvasprintf): Recognize the special case of a string concatenation.
111077 2006-05-08  Eric Blake  <ebb9@byu.net>
111079         * gnulib-tool (func_version): Base copyright year on CVS date.
111080         (func_emit_copyright_notice): New function.
111081         (func_emit_lib_Makefile_am): Use it.
111082         (func_emit_tests_Makefile_am): Likewise.
111083         (func_import): Likewise.
111085 2006-05-08  Bruno Haible  <bruno@clisp.org>
111087         * modules/stdarg: New file.
111088         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
111090 2006-05-08  Bruno Haible  <bruno@clisp.org>
111092         * m4/stdarg.m4: New file, from GNU gettext.
111094 2006-05-08  Bruno Haible  <bruno@clisp.org>
111096         * config/srclist.txt (build-aux/config.rpath): different from latest
111097         release.
111099 2006-05-08  Bruno Haible  <bruno@clisp.org>
111101         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
111103 2006-05-05  Jim Meyering  <jim@meyering.net>
111105         * m4/warning.m4: New file, derived from bison's file by the same name.
111107 2006-05-03  Bruno Haible  <bruno@clisp.org>
111109         * lib/stdint_.h: Shorter URL.
111110         * lib/inttypes.h: Likewise.
111112 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
111114         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
111116 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
111118         * lib/verify.h: Document the internals better.  Most of this change
111119         was written by Bruno Haible.
111121 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
111123         * doc/verify.texi: New file, partly based on a proposal by
111124         Bruno Haible.
111126 2006-05-02  Bruno Haible  <bruno@clisp.org>
111128         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
111129         test from here...
111130         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
111132 2006-04-29  Bruno Haible  <bruno@clisp.org>
111134         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
111135         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
111137 2006-04-29  Bruno Haible  <bruno@clisp.org>
111139         * gnulib-tool: Make --update option actually work.
111141 2006-04-29  Bruno Haible  <bruno@clisp.org>
111143         * doc/gcd.texi: New file.
111144         * doc/gnulib.texi: Include it.
111146 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
111148         * lib/getdate.y (get_date): When adding relative date, start with the
111149         initial time, not with the result of the first mktime call.
111151 2006-04-25  Bruno Haible  <bruno@clisp.org>
111153         * gnulib-tool (func_import): Output the include directives in three
111154         blocks, sorted separately.
111155         Reported by Ben Pfaff <blp@cs.stanford.edu>.
111157 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
111159         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
111160         to define main with arguments, for C++.  Reported by Eric Blake.
111161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
111162         Prefer 'int main ()' to 'int main (void)', for C++.
111163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
111164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
111165         for 'main', for C99 and C++.
111167 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
111169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
111170         Don't assume that exit status -1 is valid.
111171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
111172         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
111173         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
111174         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
111175         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
111176         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
111177         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
111178         functions can be used without declaring them, or that you can
111179         exit with status -1.
111180         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
111182 2006-04-24  Karl Berry  <karl@gnu.org>
111184         * config/srclist.txt (longdouble.m4): sync lost.
111186 2006-04-24  Eric Blake  <ebb9@byu.net>
111188         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
111190 2006-04-24  Bruno Haible  <bruno@clisp.org>
111192         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
111193         poll() implementation in AIX.
111194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111196 2006-04-24  Bruno Haible  <bruno@clisp.org>
111198         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
111199         assigned exactly once.
111201 2006-04-23  Claudio Fontana  <claudio@gnu.org>
111202             Bruno Haible  <bruno@clisp.org>
111204         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
111205         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
111206         for AM_CPPFLAGS.
111208 2006-04-23  Bruno Haible  <bruno@clisp.org>
111210         * modules/copy-file: Depend on unistd.
111211         * modules/execute: Likewise.
111212         * modules/fatal-signal: Likewise.
111213         * modules/findprog: Likewise.
111214         * modules/mkdtemp : Likewise.
111215         * modules/pipe: Likewise.
111216         * modules/wait-process: Likewise.
111218 2006-04-23  Bruno Haible  <bruno@clisp.org>
111220         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
111221         condition was already detected.
111222         Reported by Ben Pfaff <blp@cs.stanford.edu>.
111224 2006-04-23  Bruno Haible  <bruno@clisp.org>
111226         * lib/copy-file.c: Include <unistd.h> unconditionally.
111227         * lib/execute.c: Likewise.
111228         * lib/fatal-signal.c: Likewise.
111229         * lib/findprog.c: Likewise.
111230         * lib/mkdtemp.c: Likewise.
111231         * lib/pipe.h: Likewise.
111232         * lib/pipe.c: Likewise.
111233         * lib/wait-process.h: Likewise.
111235 2006-04-23  Bruno Haible  <bruno@clisp.org>
111237         * gnulib-tool (func_usage): Fix --import description. Document
111238         --update.
111239         (func_import): Create temporary file in a temporary directory, if
111240         --dry-run is specified. Silence errors from 'grep' when there are no
111241         m4 files in $m4dir.
111242         (func_create_testdir): Silence errors from 'grep' when there are no
111243         m4 files in $m4dir.
111244         Reported by Karl Berry <karl@freefriends.org>.
111246 2006-04-20  Bruno Haible  <bruno@clisp.org>
111248         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
111249         one argument, so that the code will be portable to Autoconf 2.60.
111250         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
111251         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111252         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
111254 2006-04-19  Derek Price  <derek@ximbiot.com>
111255             Eric Blake  <ebb9@byu.net>
111257         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
111258         rather than "/full/path.h".  Update comment to match.  Shorten &
111259         generalize m4_translit call via AS_TR_CPP.
111261 2006-04-19  Derek Price  <derek@ximbiot.com>
111262             Eric Blake  <ebb9@byu.net>
111264         * lib/inttypes.h: Correct grammar in comment.
111266 2006-04-18  Derek Price  <derek@ximbiot.com>
111267             Paul Eggert  <eggert@cs.ucla.edu>
111269         * modules/inttypes: New file.
111270         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
111272 2006-04-18  Derek Price  <derek@ximbiot.com>
111273             Paul Eggert  <eggert@cs.ucla.edu>
111275         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
111276         New files.
111278 2006-04-18  Derek Price  <derek@ximbiot.com>
111279             Paul Eggert  <eggert@cs.ucla.edu>
111281         * lib/inttypes.h: New file.
111282         * lib/strtoimax.c: Assume <inttypes.h>.
111284 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
111286         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
111287         isn't mounted.  Problem reported by Kir Kolyshkin.
111289 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
111291         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
111292         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
111293         Derek R. Price.
111294         * lib/regex.h (RE_DUP_MAX): Update comment to match current
111295         implementation.
111297 2006-04-12  Eric Blake  <ebb9@byu.net>
111299         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
111300         is now done automatically by the corresponding Autoconf macro.
111302 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
111304         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
111305         time_r.h.
111307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111309         Merge regex changes from libc, removing some of our
111310         POSIX-conformance changes that were rejected and redoing them in a
111311         less-intrusive way.
111313         * lib/regcomp.c (re_compile_internal, init_dfa):
111314         Length arg is now size_t, not Idx.  All uses changed.
111315         (peek_token): Forward decl now says internal_function.
111316         (__re_error_msgid, __re_error_msgid_idx):
111317         Now static rather than extern with attribute_hidden.
111318         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
111319         For some reason libc prefers K&R style defns for external functions.
111320         (regerror) [!defined _LIBC]: Likewise.
111321         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
111322         (seek_collating_symbol_entry, lookup_collation_sequence_value):
111323         (build_range_exp, build_collating_symbol):
111324         Use K&R-style defn.
111325         (re_compile_fastmap): Use '\0' to memset, not 0.
111326         (utf8_sb_map): Make the calculations more obvious.
111327         (init_dfa, parse_bracket_exp, build_charclass_op):
111328         Call calloc and cast result, as glibc does.
111329         (init_word_char, fetch_token, peek_token, peek_token_bracket):
111330         (build_range_exp, build_collating_symbol):
111331         Now internal functions.
111333         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
111335         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
111336         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
111337         Don't depend on VMS; depend on __VMS instead, for POSIX
111338         namespace cleanness.
111339         (regoff_t): Define to ssize_t, not long int.
111341         Remove the REG_ macros named below.  Instead, make the old names
111342         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
111343         __USE_GNU_REGEX.
111344         (REG_BACKSLASH_ESCAPE_IN_LISTS):
111345         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
111346         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
111347         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
111348         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
111349         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
111350         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
111351         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
111352         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
111353         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
111354         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
111355         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
111356         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
111357         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
111358         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
111359         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
111360         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
111361         (REG_NREGS):
111362         Remove.  All uses replaced by the old RE_* names.
111363         (RE_BACKSLASH_ESCAPE_IN_LISTS):
111364         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
111365         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
111366         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
111367         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
111368         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
111369         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
111370         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
111371         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
111372         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
111373         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
111374         Don't bother having these macros be independent of each others'
111375         values, since they no longer exist in the POSIX name space.
111377         Rename the following member names back to their old names,
111378         unless !__USE_GNU_REGEX.  All uses changed back.
111379         (buffer): Renamed from re_buffer.
111380         (allocated): Renamed from re_allocated.
111381         (used): Renamed from re_used.
111382         (syntax): Renamed from re_syntax.
111383         (fastmap): Renamed from re_fastmap.
111384         (translate): Renamed from re_translate.
111385         (can_be_null): Renamed from re_can_be_null.
111386         (regs_allocated): Renamed from re_regs_allocated.
111387         (fastmap_accurate): Renamed from re_fastmap_accurate.
111388         (no_sub): Renamed from re_no_sub.
111389         (not_bol): Renamed from re_not_bol.
111390         (not_eol): Renamed from re_not_eol.
111391         (newline_anchor): Renamed from re_newline_anchor.
111392         (num_regs): Renamed from rm_num_regs.
111393         (start): Renamed from rm_start.
111394         (end): Renamed from rm_end.
111396         (free_state): Move up a bit.
111398         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
111399         #define to be empty.
111400         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
111401         when that is what is intended.
111402         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
111403         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
111404         (MAX): New macro.
111405         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
111406         All uses changed back to re_malloc, etc.  It's now the caller's
111407         responsibility to check for overflow; all callers changed.
111408         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
111409         (re_x2nrealloc): Remove.
111410         (free_state): Remove decl.
111412         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
111413         (re_set_registers, re_exec):
111414         Use K&R-style defn.
111416         2006-01-31  Roland McGrath  <roland@redhat.com>
111418         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
111419         Reported by Mike Frysinger <vapier@gentoo.org>.
111421         2006-01-15  Andreas Jaeger  <aj@suse.de>
111423         [BZ #1950]
111424         * lib/regex_internal.c (re_string_reconstruct): Adjust for
111425         build_wcs_upper_buffer change.
111426         (build_wcs_upper_buffer): Change return type.
111428         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
111430         * lib/regex_internal.h: Include <stdint.h> if available.
111432         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
111434         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
111436         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
111438         * lib/regcomp.c: Adjust for changed secondary hash function.
111440         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
111442         * lib/regex.h: Pretty printing.
111443         Clean up namespace a bit.
111445         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
111447         * lib/regexec.c (update_cur_sifted_state, check_arrival,
111448         check_arrival_add_next_nodes): Avoid using uninitialized variable.
111450         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111451                     Ulrich Drepper  <drepper@redhat.com>
111453         [BZ #1302]
111454         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
111455         changed.
111456         (bitset_word_t): Renamed from bitset_word.  All uses changed.
111458         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
111460         [BZ #281]
111461         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
111462         * lib/regcomp.c: Remove unnecessary uses of
111463         unsigned RE_TRANSLATE_TYPE.
111464         * lib/regex_internal.h: Likewise.
111465         * lib/regex_internal.c: Likewise.
111466         * lib/regexec.c: Likewise.
111467         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
111469         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
111471         * lib/regexec.c (find_recover_state): Remove unnecessary
111472         initialization.
111473         (transit_state_bkref): Make DFA a const pointer.
111474         (get_subexp): Likewise.
111475         (check_arrival): Likewise.
111476         (update_cur_sifted_state): Likewise.
111477         (re_search_internal): Likewise.
111478         (prune_impossible_nodes): Likewise.
111479         (acquire_init_state_context): Likewise.
111480         (proceed_next_node): Likewise.
111481         (set_regs): Likewise.
111482         (free_fail_stack_return): Likewise.
111483         (check_arrival_expand_ecl): Mark DFA parameter as const.
111484         (check_arrival_expand_ecl_sub): Likewise.
111485         (check_subexp_limits): Likewise.
111486         (sub_epsilon_src_nodes):  Likewise.
111487         (add_epsilon_src_nodes):  Likewise.
111488         (merge_state_array): Likewise.
111489         (update_regs): Likewise.
111490         (build_trtable): Likewise.
111491         (sift_states_backward): Mark MCTX parameter as const.
111492         (build_sifted_states): Likewise.
111493         (update_cur_sifted_state): Likewise.
111494         (sift_states_mkref): Likewise.
111495         (check_arrival_expand_ecl): Mark eclosure as const.
111496         (check_dst_limits_calc_pos_1): Likewise.
111497         * lib/regex_internal.h (re_match_context_t): Make dfa a const
111498         pointer.
111500         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
111502         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
111503         (transit_state_sb): Likewise.
111504         (transit_state_mb): Likewise.
111505         (sift_states_iter_mb): Likewise.
111506         (check_arrival_add_next_nodes): Likewise.
111507         (check_node_accept_bytes): Change first parameter to pointer-to-const.
111508         [_LIBC] (re_search_2_stub): Use mempcpy.
111510         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
111511         mbrtowc for very simple UTF-8 case.
111513         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
111514         a pointer-to-const.
111515         (re_acquire_state_context): Likewise.
111516         * lib/regex_internal.h: Adjust prototypes.
111518         * lib/regex.c: Prevent using C++ compilers.
111520         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
111521         (re_acquire_state_context): Likewise.
111523 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111525         * modules/regex (Depends-on): Add ssize_t.
111527 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111529         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
111530         translation table.
111532 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111534         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
111536 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
111537             Bruno Haible  <bruno@clisp.org>
111539         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
111540         <sys/types.h> and <inttypes.h>.
111542 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111544         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
111545         `__error_t_defined', so argp.h will not typedef the former.
111547 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
111549         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
111550         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
111551         glibc names.  Even if glibc is changed to conform to POSIX, the
111552         traditional names will be available anyway, since regex depends on
111553         the extensions module.  Also, fix a longstanding typo in the
111554         implementation of Spencer ERE test #75 from grep 2.3.  Problems
111555         reported by Emanuele Giaquinta.  Also, change sense of cached
111556         variable, so that the message makes sense.
111558 2006-03-24  Simon Josefsson  <jas@extundo.com>
111560         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
111561         including some doc fixes.
111562         (base64_encode_alloc): Fix +1 bug on allocation failures.
111564 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111566         * lib/base64.c (base64_encode): Do not read past end of array with
111567         unsanitized input on systems with CHAR_BIT > 8.
111569 2006-03-24  Eric Blake  <ebb9@byu.net>
111571         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
111573 2006-03-22  Karl Berry  <karl@gnu.org>
111575         * config/srclist.txt (*setenv.[ch]): get from coreutils.
111576         * config/srclistvars.sh (COREUTILS): new var.
111578 2006-03-17  Jim Meyering  <jim@meyering.net>
111580         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
111581         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
111583 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
111585         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
111586         no longer needs it.  Instead, check that regoff_t is as least
111587         as wide as ptrdiff_t.
111589         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
111590         so that our regex.h stays compatible with the installed regex.
111591         This is helpful for installers who configure --without-included-regex.
111592         Problem reported by Emanuele Giaquinta.
111594 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
111596         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
111597         Typedef to long int, not to off_, as POSIX will likely change
111598         in that direction.
111600 2006-03-15  Eric Blake  <ebb9@byu.net>
111602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
111604 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
111606         * lib/argp-help.c (validate_uparams): Fix typo
111607         * lib/argp-parse.c (argp_default_options): Consistently begin help
111608         messages with a lowercase letter.
111610 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
111612         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
111613         overrun buffers and shouldn't be used (much as gets shouldn't be
111614         used).
111615         * lib/time_r.c (asctime_r, ctime_r): Likewise.
111617 2006-03-08  Simon Josefsson  <jas@extundo.com>
111619         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
111620         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111622 2006-03-08  Simon Josefsson  <jas@extundo.com>
111624         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
111625         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111627 2006-03-08  Simon Josefsson  <jas@extundo.com>
111629         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
111630         signal that configure disabled the device.
111632 2006-03-08  Simon Josefsson  <jas@extundo.com>
111634         * build-aux/maint.mk: Fix refresh-po, to handle no translated
111635         languages.
111637 2006-03-07  Simon Josefsson  <jas@extundo.com>
111639         * modules/getopt (Depends-on): Add unistd.
111641         * modules/unistd: New file.
111643 2006-03-07  Simon Josefsson  <jas@extundo.com>
111645         * modules/gc-random: New file.
111647 2006-03-07  Simon Josefsson  <jas@extundo.com>
111649         * m4/unistd_h.m4: New file.
111651 2006-03-07  Simon Josefsson  <jas@extundo.com>
111653         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
111654         test to be side-effect free by storing the result in the cache
111655         variable gl_cv_lib_readline, and moving the assignment of
111656         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
111657         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111659 2006-03-07  Simon Josefsson  <jas@extundo.com>
111661         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
111662         error on missing devices (the functions will return an error).
111664         * m4/gc.m4: Move random stuff to gc-random.m4
111666 2006-03-07  Simon Josefsson  <jas@extundo.com>
111668         * lib/unistd_.h: New file.
111670 2006-03-07  Simon Josefsson  <jas@extundo.com>
111672         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
111674 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
111676         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
111677         Problem reported by Juan Manuel Guerrero.
111679 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
111681         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
111682         the unistd module.
111683         * lib/getlogin_r.c: Likewise.
111684         * lib/getlogin_r.h: Likewise.
111685         * lib/glob.c: Likewise.
111686         * lib/pagealign_alloc.c: Likewise.
111687         * lib/unistd_.h: Remove; no longer needed.
111689 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
111691         * MODULES.html.sh (Support for systems lacking POSIX:2001):
111692         Add unistd.
111693         * modules/c-stack (Depends-on): Add unistd.
111694         * modules/getlogin_r: Likewise.
111695         * modules/glob: Likewise.
111696         * modules/pagealign_alloc: Likewise.
111697         * modules/unistd (Files): Remove lib/unistd_.h.
111698         (EXTRA_DIST): Remove.
111699         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
111700         need unistd_.h.
111701         (MOSTLYCLEANFILES): Remove unistd.h-t.
111703 2006-03-03  Simon Josefsson  <jas@extundo.com>
111705         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
111707 2006-03-03  Simon Josefsson  <jas@extundo.com>
111709         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
111710         libidn and bison.
111712 2006-03-03  Simon Josefsson  <jas@extundo.com>
111714         * build-aux/maint.mk: Add indent target.
111716 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
111718         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
111719         our replacement poll.h in any case, to avoid a differing
111720         declaration from a system header.  Seen on AIX.
111722 2006-03-01  Simon Josefsson  <jas@extundo.com>
111724         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
111725         <kasal@ucw.cz>.
111727 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111729         * modules/gettime (Depends-on): Add extensions module.
111730         * modules/nanosleep (Depends-on): Likewise.
111731         * modules/settime (Depends-on): Likewise.
111733 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111735         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
111736         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
111737         pedantically.
111738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
111739         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
111741         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
111742         not "==".  Reported by Ralf Wildenhues.
111744 2006-03-01  Karl Berry  <karl@gnu.org>
111746         * doc/Copyright/request-*: new files, synced from gnuorg.
111748 2006-03-01  Karl Berry  <karl@gnu.org>
111750         * config/srclist.txt (Copyright/*): new entries.
111752 2006-02-28  Simon Josefsson  <jas@extundo.com>
111754         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
111756 2006-02-27  Simon Josefsson  <jas@extundo.com>
111758         * lib/base64.h: Indent #define's.  From Jim Meyering
111759         <jim@meyering.net>.
111761 2006-02-27  Jim Meyering  <jim@meyering.net>
111763         Revert the change of 2006-02-24, so these files can continue
111764         to be sync'd from gettext.
111765         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
111766         of `config.h'.
111768 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
111770         * modules/intprops: New file.
111771         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111772         Add intprops.
111773         * modules/getloadavg (Files): Remove lib/intprops.h.
111774         (Depends-on): Add intprops.
111775         * modules/human: Likewise.
111776         * modules/inttostr: Likewise.
111777         * modules/openat: Likewise.
111778         * modules/sig2str: Likewise.
111779         * modules/userspec: Likewise.
111780         * modules/utimecmp: Likewise.
111781         * modules/xnanosleep: Likewise.
111782         * modules/xstrtol: Likewise.
111784 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
111786         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
111787         * modules/lock-tests (TESTS): Use $(EXEEXT).
111788         * modules/tls-tests: Likewise.
111789         * modules/argp-tests: Likewise.
111790         (check_PROGRAMS): New var, replacing...
111791         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
111793 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111795         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
111796         `config.h'.
111798 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
111800         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
111802 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111804         Sync from coreutils.
111805         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
111806         gl_CHDIR_SAFER.
111808 2006-02-22  Jim Meyering  <jim@meyering.net>
111810         Sync from coreutils.
111811         * m4/chdir-safer.m4: New file.
111813 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
111815         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
111816         AT_FDCWD exceeds INT_MAX.
111817         * lib/openat.h (AT_FDCWD): Likewise.
111819 2006-02-17  Eric Blake  <address@hidden>
111821         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
111823 2006-02-16  Simon Josefsson  <jas@extundo.com>
111825         * modules/getaddrinfo (Depends-on): Add sys_socket.
111827 2006-02-15  Simon Josefsson  <jas@extundo.com>
111829         * build-aux/maint.mk: Add dsyntax-check rule.
111831 2006-02-15  Eric Blake  <ebb9@byu.net>
111833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
111834         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
111835         'present but cannot compile' warnings on cygwin.
111836         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
111837         use ws2tcpip.h if sys/socket.h works.
111838         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
111839         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
111841 2006-02-14  Simon Josefsson  <jas@extundo.com>
111843         * modules/maintainer-makefile (Files): Rename.
111845         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
111846         and (the local) Makefile.cfg to maint-cfg.mk.
111848         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
111849         to the latter.
111851         * modules/maintainer-makefile: New module.
111853         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
111854         severaly stripped to make it possible to build it up from scratch
111855         with reliable tests.
111857         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
111858         fixes to permit overriding the default actions when configure and
111859         makefile are not available.
111861 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
111863         Sync from coreutils.
111864         * modules/lstat (Depends-on): Don't depend on xalloc.
111865         (License): Change from GPL to LGPL, since this is now simply a
111866         replacement for a libc function.
111868 2006-02-14  Jim Meyering  <jim@meyering.net>
111870         Sync from coreutils.
111872         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
111873         failure on deficient systems, and simplify gnulib lgpl dependencies.
111874         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
111875         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
111877         * lib/xalloc-die.c: Remove unused definition of N_.
111879 2006-02-14  Jim Meyering  <jim@meyering.net>
111881         Sync from coreutils.
111882         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
111883         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
111884         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
111885         double-quote uses of that variable, to accommodate the rare case in
111886         which getmntent is available in none of the libraries checked.  This
111887         happens at least on FreeBSD 5.0.
111889 2006-02-13  Simon Josefsson  <jas@extundo.com>
111891         * gnulib-tool (Usage): Fix --import, from
111892         karl@freefriends.org (Karl Berry).
111894 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
111896         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
111898 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
111900         * lib/argp-namefrob.h: Restore changes accidentally lost during the
111901         "autoupdate" on 2005-12-12.
111903 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
111905         * modules/closeout (Depends-on): Remove atexit.
111907 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
111909         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
111910         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
111912 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
111914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
111915         __EXTENSIONS__ if this causes compilation to fail.  Problem
111916         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
111917         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
111919 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
111921         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
111922         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
111923         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
111924         All uses changed.
111926 2006-01-26  Simon Josefsson  <jas@extundo.com>
111928         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
111929         prototype is visible on mingw32.
111931         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
111932         for mingw32.
111934         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
111935         mingw32).
111937 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
111939         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
111940         attempt to open for write; this always fails, at least on POSIX
111941         hosts.  This reinstates the 2006-01-09 change, which was
111942         inadvertently removed.
111944 2006-01-26  Bruno Haible  <bruno@clisp.org>
111946         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
111947         Reported by Paul Eggert.
111949 2006-01-26  Bruno Haible  <bruno@clisp.org>
111950             Paul Eggert  <eggert@cs.ucla.edu>
111952         * lib/stdbool_.h (_Bool)
111953         [(! (defined __cplusplus || defined __BEOS__)
111954           && !defined __GNUC__
111955           && !(defined __HP_cc || defined __xlc__
111956                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
111957                || defined __sgi))]:
111958         #define to signed char in these cases too; this simplifies
111959         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
111960         etc., separately) and makes it more conservative.
111962 2006-01-25  Simon Josefsson  <jas@extundo.com>
111964         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
111965         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
111966         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
111968 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
111970         * lib/argp-namefrob.h: Bugfix. Remove stray #
111972 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
111974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
111975         so that we test the test.
111976         Check for yet another HP-UX cc bug involving *bool |= bool.
111978 2006-01-25  Karl Berry  <karl@gnu.org>
111980         * config/srclist.txt (vasnprintf.c): sync lost.
111982 2006-01-25  Jim Meyering  <jim@meyering.net>
111984         Sync from the stable (b5) branch of coreutils:
111986         * lib/fts.c (fts_children): Don't let close() clobber errno from
111987         failed fchdir().
111989         * lib/fts.c (fts_stat): When following a symlink-to-directory,
111990         don't necessarily interpret stat-fails+lstat-succeeds as indicating
111991         a dangling symlink.  That can also happen at least for ELOOP.
111992         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
111993         FYI, this bug predates the inclusion of fts.c in coreutils.
111995         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
111996         in their own block, so pre-c99 compilers don't object.
111998         Avoid the double-free (first in fts_read, second in fts_close) that
111999         would occur when an `active' directory is made inaccessible (e.g.,
112000         via chmod a-x) during a traversal.
112001         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
112002         before returning.  Reproduce this failure by
112003         mkdir -p a/b; cd a; chmod a-x . b
112004         Reported by Stavros Passas.
112006 2006-01-25  Jim Meyering  <jim@meyering.net>
112008         * lib/fileblocks.c: Remove more useless parentheses.
112009         * lib/readutmp.h: Likewise.
112011 2006-01-25  Bruno Haible  <bruno@clisp.org>
112013         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
112014         warnings.
112015         Reported by Paul Eggert.
112017 2006-01-25  Bruno Haible  <bruno@clisp.org>
112019         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
112020         rid of a trap command. For Solaris sh.
112021         Reported by Mark D. Baushke <mdb@gnu.org>.
112023 2006-01-24  Simon Josefsson  <jas@extundo.com>
112025         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
112026         Bruno.
112028 2006-01-24  Karl Berry  <karl@gnu.org>
112030         * config/srclist.txt (argp-namefrob.h): sync lost.
112032 2006-01-24  Jim Meyering  <jim@meyering.net>
112034         * modules/openat (Files): Add lib/intprops.h.
112035         From Mark D. Baushke.
112037 2006-01-24  Jim Meyering  <jim@meyering.net>
112039         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
112040         Reported by Mark D. Baushke.
112042 2006-01-24  Jim Meyering  <jim@meyering.net>
112044         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
112046 2006-01-24  Bruno Haible  <bruno@clisp.org>
112048         * modules/strnlen (Maintainer): Change from glibc to all.
112050 2006-01-24  Bruno Haible  <bruno@clisp.org>
112052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
112053         Patch by Paul Eggert.
112055 2006-01-24  Bruno Haible  <bruno@clisp.org>
112057         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
112058         already has it.
112059         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
112060         2005-11-26.
112062         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
112063         'signed char' to avoid problems with the built-in _Bool type.
112064         Reported by Paul Eggert on 2005-11-26.
112066 2006-01-24  Bruno Haible  <bruno@clisp.org>
112068         * gnulib-tool (func_import): Avoid constructing complicated sed
112069         expressions inside backquote.
112070         Report and solution by Mark D. Baushke <mdb@gnu.org>.
112072 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
112074         These changes imported from libc.
112075         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
112076         test and two separate function calls.
112077         * lib/strndup.c (__strndup): Add libc_hidden_def.
112079 2006-01-23  Simon Josefsson  <jas@extundo.com>
112081         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
112082         Remove the test_*_SOURCES variable: automake infers it by default.
112083         * modules/tls-tests: Likewise.
112085 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
112087         Work around porting bugs reported by Dieter in
112088         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
112089         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
112090         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
112091         Include "getopt.h" first, to check interface.
112092         (getenv): Declare only if defined HAVE_DECL_GETENV &&
112093         !HAVE_DECL_GETENV.
112094         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
112095         (__strndup): Revert to K&R-style function dfns, the glibc style.
112096         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
112097         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
112098         Include strnlen.h first, to get prototype properly.
112099         (strnlen): Renamed from __strnlen.
112100         Remove weak alias.
112102 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
112104         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
112106 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
112108         * config/srclist.txt: Adjust to reflect glibc reorganization.
112109         This affects only comments.
112111 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112113          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
112114          Reported by Bruce Korb <bkorb@gnu.org>.
112116 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
112118         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
112119         to pacify gcc -Wswitch-default.
112121 2006-01-22  Bruno Haible  <bruno@clisp.org>
112123         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
112124         temporary buffer for sprintf, take into account the precision also
112125         for 'd', 'i', 'u', 'o', 'x', 'X'.
112127 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
112129         * modules/argp-tests: New module
112130         * tests/test-argp.c: New file
112131         * tests/test-argp-2.sh: New file
112133 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
112135         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
112136         (__argp_base_name): Removed
112137         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
112138         typo.
112139         (__argp_base_name): Provide macro definition or extern declaration
112140         depending on the configuration
112142 2006-01-20  Simon Josefsson  <jas@extundo.com>
112144         * modules/inet_ntop (Depends-on): Depend on sys_socket.
112146 2006-01-20  Simon Josefsson  <jas@extundo.com>
112148         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
112150 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
112152         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
112153         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
112154         Suggested by Bruno Haible.
112156 2006-01-20  Karl Berry  <karl@gnu.org>
112158         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
112159         until changes propagate, I guess.
112161 2006-01-19  Simon Josefsson  <jas@extundo.com>
112163         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
112165 2006-01-19  Simon Josefsson  <jas@extundo.com>
112167         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
112169 2006-01-19  Simon Josefsson  <jas@extundo.com>
112171         * gnulib-tool: Set check_PROGRAMS.
112173         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
112174         modules/des-tests, modules/gc-arcfour-tests,
112175         modules/gc-arctwo-tests, modules/gc-des-tests,
112176         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
112177         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
112178         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
112179         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
112180         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
112181         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
112182         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
112183         test_*_SOURCES.
112185 2006-01-18  Simon Josefsson  <jas@extundo.com>
112187         * modules/socklen (Depends-on): Depend on sys_socket.
112189 2006-01-18  Simon Josefsson  <jas@extundo.com>
112191         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
112192         modules/des-tests, modules/gc-arcfour-tests,
112193         modules/gc-arctwo-tests, modules/gc-des-tests,
112194         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
112195         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
112196         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
112197         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
112198         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
112199         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
112200         $(EXEEXT) to automake TESTS variable, for mingw32.
112202 2006-01-17  Simon Josefsson  <jas@extundo.com>
112204         * modules/socklen (Include): Need sys/socket.h.
112206 2006-01-17  Bruno Haible  <bruno@clisp.org>
112208         * modules/ssize_t (Include): Add <sys/types.h>.
112210 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
112212         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
112213         it's not portable and it doesn't work with cross-compiles.
112214         Problem reported by Bruno Haible.  Fix missing-$ typo in
112215         'test "gl_cv_ignore_unused_libraries" ...' that prevented
112216         -zignore from being used with Sun's C compiler.
112218 2006-01-12  Simon Josefsson  <jas@extundo.com>
112220         * lib/base64.c: Fix warning, reported by Bruno Haible
112221         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
112223 2006-01-12  Bruno Haible  <bruno@clisp.org>
112225         * modules/ldd: New file.
112226         * build-aux/ldd.sh.in: New file.
112227         * MODULES.html.sh (Support for building libraries and executables): Add
112228         ldd.
112230 2006-01-12  Bruno Haible  <bruno@clisp.org>
112232         * m4/ldd.m4: New file.
112234 2006-01-12  Bruno Haible  <bruno@clisp.org>
112236         * gnulib-tool (func_import, func_create_testdir): Don't go into an
112237         endless loop while replacing $auxdir with build-aux.
112239 2006-01-11  Simon Josefsson  <jas@extundo.com>
112241         * lib/stdint_.h (SIZE_MAX): Add missing (.
112243 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
112245         Sync from coreutils.
112246         * lib/md5.c: Fix commentary typos.
112247         (alignof, UNALIGNED_P): No need for a GCC-specific version.
112248         * lib/md5.h (__attribute__): Remove; unused.
112249         * lib/sha1.c: Fix commentary to match md5 better.
112250         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
112251         so that we don't need to worry about alignment.  All uses changed.
112252         This merges the 2005-10-28 md5 change into sha1.
112254 2006-01-11  Jim Meyering  <jim@meyering.net>
112256         Sync from coreutils.
112257         * lib/md5.c (OP): Fix spacing.
112259 2006-01-11  Bruno Haible  <bruno@clisp.org>
112261         Ensure automatic ordering between gl_LOCK and gl_ARGP.
112262         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
112263         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
112265 2006-01-11  Bruno Haible  <bruno@clisp.org>
112267         Ensure automatic ordering between gl_LOCK and gl_ARGP.
112268         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
112269         the "early" section as well.
112271 2006-01-11  Bruno Haible  <bruno@clisp.org>
112273         Avoid "ar: no archive members specified" error on MacOS X.
112274         * gnulib-tool (func_modules_add_dummy): New function.
112275         (func_import, func_create_testdir): Invoke it.
112277 2006-01-11  Bruno Haible  <bruno@clisp.org>
112279         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
112280         with $auxdir in AC_CONFIG_FILES statements.
112282 2006-01-11  Bruno Haible  <bruno@clisp.org>
112284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112285         Initialize also noinst_HEADERS to empty.
112287 2006-01-11  Bruno Haible  <bruno@clisp.org>
112289         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
112290         variables.
112291         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
112292         autoreconf.
112294 2006-01-11  Bruno Haible  <bruno@clisp.org>
112296         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
112297         overridable by the user.
112298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112300 2006-01-10  Simon Josefsson  <jas@extundo.com>
112302         * modules/sys_socket: New file.
112304 2006-01-10  Simon Josefsson  <jas@extundo.com>
112306         * m4/sys_socket_h.m4: New file.
112308 2006-01-10  Simon Josefsson  <jas@extundo.com>
112310         * lib/socket_.h: New file.
112312 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
112314         * modules/readutmp (Maintainer): Add myself.
112316 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
112318         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
112319         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
112320         People who are still concerned with buggy memcmp implementations
112321         can invoke gl_FUNC_MEMCMP themselves.
112323 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
112325         * lib/regex_internal.h (BITSET_WORD_BITS):
112326         Work around a bug in 64-bit PGC (before version 6.1-2), where the
112327         preprocessor mishandles large unsigned values as if they were signed.
112328         Problem reported by Claudio Fontana in
112329         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
112331 2006-01-10  Jim Meyering  <jim@meyering.net>
112333         Avoid the double-free (first in fts_read, second in fts_close) that
112334         would occur when an `active' directory is made inaccessible (e.g.,
112335         via chmod a-x) during a traversal.
112336         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
112337         before returning.  Reproduce this failure by
112338         mkdir -p a/b; cd a; chmod a-x . b
112339         Reported by Stavros Passas.
112341         Sync from coreutils.
112342         * lib/sha1.c: Tweak grammar in a comment.
112344 2006-01-10  Jim Meyering  <jim@meyering.net>
112346         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
112347         Patch by Joerg Sonnenberger.
112349 2006-01-10  Bruno Haible  <bruno@clisp.org>
112351         * modules/readutmp: Depend on module free.
112352         * modules/strtok_r: Depend on module restrict.
112354 2006-01-10  Bruno Haible  <bruno@clisp.org>
112356         * modules/gettext (configure.ac): Add an invocation of
112357         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
112359 2006-01-10  Bruno Haible  <bruno@clisp.org>
112361         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
112362         Reported by Werner Lemberg <wl@gnu.org>.
112364 2006-01-10  Bruno Haible  <bruno@clisp.org>
112366         * lib/localcharset.c: Update from GNU gettext.
112368 2006-01-10  Bruno Haible  <bruno@clisp.org>
112370         * lib/argp.h (__const): Remove macro. Use const instead.
112371         * lib/argp-fmtstream.h (__const): Likewise.
112372         * lib/glob_.h (__const): Remove macro.
112373         * lib/glob-libc.h: Use const instead of __const.
112375 2006-01-10  Bruno Haible  <bruno@clisp.org>
112377         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
112378         variable.
112379         Needed to avoid an automake error regarding the 'gettext' module.
112381 2006-01-09  Simon Josefsson  <jas@extundo.com>
112383         * modules/inet_ntop (Depends-on): Add restrict.
112385 2006-01-09  Simon Josefsson  <jas@extundo.com>
112387         * modules/gc-rijndael-tests (License): Put under LGPL.
112389         * modules/gc-des-tests (License): Likewise.
112391         * modules/gc-arcfour-tests (License): Likewise.
112393         * modules/gc-arctwo-tests (License): Likewise.
112395         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
112397         * modules/gc-hmac-sha1-tests (Files): Likewise.
112399         * modules/gc-hmac-md5-tests (License): Likewise.
112401         * modules/gc-sha1-tests (License): Likewise.
112403         * modules/gc-md5-tests (License): Likewise.
112405         * modules/gc-md4-tests (License): Likewise.
112407         * modules/gc-md2-tests (License): Likewise.
112409         * modules/gc-tests (License): Likewise.
112411         * modules/des-tests (License): Likewise.
112413         * modules/md4-tests (License): Likewise.
112415         * modules/md2-tests (License): Likewise.
112417 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112419         Sync from coreutils:
112421         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
112422         * modules/lib-ignore: New file.
112423         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
112424         chdir-safer.m4, lchmod.m4.
112425         * modules/openat: Add mkdirat.c, openat-priv.h.
112427 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112429         Sync from coreutils.
112430         * m4/lib-ignore.m4: New file.
112431         * m4/lchmod.m4: New file.
112433 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112435         Sync from coreutils.
112436         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
112437         for write access: POSIX says that must fail.
112438         * lib/fts.c (diropen): Likewise.
112439         * lib/save-cwd.c (save_cwd): Likewise.
112440         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
112441         well, for minor improvements on hosts that lack O_DIRECTORY.
112442         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
112443         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
112444         Fall back on chown if open failed with EACCES.
112446         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
112447         Report an error at compile-time if only a 1-second nominal clock
112448         resolution is found.
112450         * lib/lchmod.h: New file.
112451         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
112452         (make_dir_parents): Use lchown rather than chown, and
112453         lchmod rather than chmod.
112455         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
112456         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
112457         "proc" reported by n0dalus.
112459         * lib/mountlist.c: Include <limits.h>.
112460         (dev_from_mount_options)
112461         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
112462         New function.  It no longer assumes "dev=" has the System V meaning
112463         on Linux (since it doesn't).  It also parses "dev=" more carefully.
112464         (read_file_system_list)
112465         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
112466         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
112467         dev= in that case.
112469         * lib/posixtm.h (PDS_PRE_2000): New macro.
112470         * lib/posixtm.c (year): Arg is now syntax_bits rather than
112471         allow_century.  All usages changed.  Reject dates outside the range
112472         1969-1999 if PDS_PRE_2000 is used.
112474 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112476         Sync from coreutils.
112477         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
112478         (Time of day items): Mention the possibility of leap seconds.
112479         Problem reported by Dr. David Alan Gilbert.
112481 2006-01-09  Jim Meyering  <jim@meyering.net>
112483         Sync from coreutils.
112485         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
112487         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
112489         * lib/modechange.c (mode_compile): Reject an invalid mode string
112490         that starts with an octal digit.  From Andreas Gruenbacher.
112492         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
112493         and dup to open_safer and dup_safer, respectively.
112494         (openat_permissive): Fix typo in comment.
112496         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
112497         "gettext.h"; either no longer needed or are guaranteed by openat.h.
112498         (_): Remove; no longer needed.
112499         (openat): Renamed from rpl_openat; no need for rpl_openat
112500         since openat.h renames openat for us.
112501         Replace most of the body with a call to openat_permissive,
112502         to avoid duplicate code.
112503         Port to (probably hypothetical) environments were mode_t is
112504         wider than int.
112505         (openat_permissive): Require mode arg, so that we can check
112506         types better.  Put it just after flags.  Change cwd failure
112507         indicator from pointer-to-bool to pointer-to-errno-value.
112508         All callers changed.
112509         Invoke openat_save_fail and/or openat_restore_fail if
112510         cwd_errno is null, so that openat can call us.
112511         (openat_permissive, fdopendir, fstatat, unlinkat):
112512         Simplify errno handling to avoid some duplicate code,
112513         as it's OK to set errno on success.
112514         * lib/openat.h: Revamp code so that function macros depend on
112515         __OPENAT_PREFIX only, not also on AT_FDCWD.
112516         (openat_ro): Remove.  Caller changed to use openat_permissive.
112517         (openat_permissive): Now a macro, if not a function.
112518         (openat_restore_fail, openat_save_fail): Now always functions,
112519         since mkdirat needs them even if __OPENAT_PREFIX is defined.
112521         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
112522         and openat.c.
112523         * lib/mkdirat.c: Include openat-priv.h.
112524         Remove definitions of macros defined therein.
112525         * lib/openat.c: Likewise.
112527         * lib/mkdirat.c (mkdirat): New file and function.
112528         * lib/openat.h (mkdirat): Declare.
112530         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
112532         * lib/openat.h (openat_permissive): Declare.
112533         (openat_ro): Define.
112535         * lib/openat.c (EXPECTED_ERRNO): New macro.
112536         (openat_permissive): New function -- used in remove.c rewrite.
112537         (all functions): Set errno just before returning, only if there
112538         was an actual failure.
112539         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
112541         Emulate openat-family functions using Linux's procfs, if possible.
112542         Idea and some code based on Ulrich Drepper's glibc changes.
112544         * lib/openat.c: (BUILD_PROC_NAME): New macro.
112545         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
112546         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
112547         before falling back on save_cwd and restore_cwd.
112548         (fdopendir, fstatat, unlinkat): Likewise.
112550         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
112551         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
112553         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
112554         as second argument to va_arg.  Otherwise, some versions of gcc
112555         warn that `if this code is reached, the program will abort'.
112557 2006-01-09  Jim Meyering  <jim@meyering.net>
112559         Sync from coreutils.
112560         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
112561         Require openat-priv.h.
112563 2006-01-09  Bruno Haible  <bruno@clisp.org>
112565         * modules/strnlen (Include): Use strnlen.h.
112567 2006-01-09  Bruno Haible  <bruno@clisp.org>
112569         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
112571 2006-01-09  Bruno Haible  <bruno@clisp.org>
112573         * lib/sysexit_.h (EX_OK): New macro.
112574         Suggested by Martin Lambers <marlam@marlam.de>.
112576 2006-01-09  Bruno Haible  <bruno@clisp.org>
112578         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
112579         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
112581 2006-01-09  Bruno Haible  <bruno@clisp.org>
112583         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
112584         numbers.
112586 2006-01-09  Bruno Haible  <bruno@clisp.org>
112588         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
112589         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
112590         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
112591         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
112593 2006-01-09  Bruno Haible  <bruno@clisp.org>
112595         * build-aux/javacomp.sh.in: New file, moved from lib/.
112596         * modules/javacomp-script (Files): Update.
112597         (configure.ac): Add AC_CONFIG_FILES invocation.
112598         (EXTRA_DIST): Remove variable.
112600         * build-aux/javaexec.sh.in: New file, moved from lib/.
112601         * modules/javaexec (Files): Update.
112602         (configure.ac): Add AC_CONFIG_FILES invocation.
112603         (EXTRA_DIST): Remove javaexec.sh.in.
112605         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
112606         * modules/csharpcomp-script (Files): Update.
112607         (configure.ac): Add AC_CONFIG_FILES invocation.
112608         (EXTRA_DIST): Remove variable.
112610         * build-aux/csharpexec.sh.in: New file, moved from lib/.
112611         * modules/csharpexec (Files): Update.
112612         (configure.ac): Add AC_CONFIG_FILES invocation.
112613         (EXTRA_DIST): Remove csharpexec.sh.in.
112615 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
112617         Sync from coreutils.
112619         Add POSIX ACL support
112620         * lib/acl.h (copy_acl, set_acl): Add declarations.
112621         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
112622         systems other than Linux.
112623         (chmod_or_fchmod): New function: use fchmod when possible,
112624         and chmod otherwise.
112625         (file_has_acl): Add a POSIX ACL implementation, with a
112626         Linux-specific subcase.
112627         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
112628         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
112629         acls are unsupported.
112630         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
112631         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
112632         are unsupported.
112634 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
112636         Sync from coreutils.
112637         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
112639 2006-01-07  Bruno Haible  <bruno@clisp.org>
112641         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
112642         gl_EARLY.
112644 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
112646         * lib/strftime.c (tzname): Don't declare if it is already #defined.
112647         Problem reported for Mingw by Mark Junker.
112649 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
112651         * README: Gnulib normally doesn't generate a tarball.
112653 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
112655         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
112656         long int, not int, for nanosecond counts, so that people who are
112657         used to POSIX struct timespec won't be surprised.  Reported by Jim
112658         Meyering.
112660 2005-12-28  Bruno Haible  <bruno@clisp.org>
112662         * build-aux/config.rpath: Update from GNU gettext.
112664 2005-12-16  Jim Meyering  <jim@meyering.net>
112666         * modules/fprintftime: New module.
112667         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
112669 2005-12-16  Jim Meyering  <jim@meyering.net>
112671         * m4/fprintftime.m4: New file.
112673 2005-12-16  Jim Meyering  <jim@meyering.net>
112675         * lib/fprintftime.c, lib/fprintftime.h: New files.
112677 2005-12-15  Simon Josefsson  <jas@extundo.com>
112679         * modules/socklen (configure.ac): Fix M4 macro name, to align with
112680         new m4/socklen.m4.
112682 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112684         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
112685         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
112687 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112689         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
112690         * lib/argp-help.c (fill_in_uparams): Check if the constructed
112691         struct uparams is valid. Fall back to the default values if it is
112692         not.
112694 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112696         * modules/argp (Files): Add argp-pin.c
112697         (Depends-on): dirname
112698         (lib_SOURCES): Add argp-pin.c
112700 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112702         * m4/argp.m4:  Check if program_invocation_name and
112703         program_invocation_short_name are declared and define appropriate
112704         macros if they are not.
112706 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112708         * lib/argp-help.c (__argp_base_name): New function
112709         (__argp_short_program_name): Rewrite using __argp_base_name
112710         * lib/argp-namefrob.h: Define program_invocation_name and
112711         program_invocation_short_name if requested
112712         (__argp_base_name): Add prototype
112713         * lib/argp-parse.c (argp_def): Use gettext wrappers
112714         (argp_default_parser): Use __argp_base_name
112715         * lib/argp-pin.c: New file. Defines program_invocation_name and
112716         program_invocation_short_name on systems that lack them.
112718 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
112720         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
112721         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
112722         porting problem reported by Georg Schwarz in
112723         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
112725 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
112727         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
112728         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
112729         porting problem reported by Georg Schwarz in
112730         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
112732 2005-12-05  Bruno Haible  <bruno@clisp.org>
112734         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
112735         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
112736         Reported by Mark Junker <mjscod@gmx.de>.
112738 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
112740         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
112741         Use implementation from Albert Chin, with some
112742         comments/corrections by Stepan Kasal and myself.
112744 2005-12-02  Bruno Haible  <bruno@clisp.org>
112746         * gnulib-tool (func_import): Accept GPLed build tool modules when
112747         --lgpl is given.
112748         * modules/csharpcomp-script: New file.
112749         * modules/csharpcomp: Depend on it.
112750         * modules/javacomp-script: New file.
112751         * modules/javacomp: Depend on it.
112752         Suggested by Simon Josefsson.
112754 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
112756         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
112757         statement, to work around an HP-UX 10.20 compiler bug reported by
112758         Peter O'Gorman.
112760 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
112762         * modules/savedir (Depends-on): Add openat.
112764 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
112766         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
112767         (uintmax_t) [defined uintmax_t]: Do not declare.
112768         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
112769         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
112770         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
112771         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
112772         sake of portability to weird hosts that C allows (though we don't
112773         know of any practical examples).
112775         * lib/savedir.h (fdsavedir): New decl.
112776         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
112777         contains most of the former guts of savedir.
112778         (savedir): Use savedirstream.
112779         Include "openat.h".
112781 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
112783         * modules/obstack (Files): Add m4/ulonglong.m4.
112784         Problem reported by Davide Angelocola.
112786 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
112788         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
112789         coreutils no longer futzes with rounding modes.
112791 2005-11-14  Jim Meyering  <jim@meyering.net>
112793         * lib/mkstemp-safer.c: Include <config.h>, required for possible
112794         replacement of mkstemp.
112796 2005-11-10  Simon Josefsson  <jas@extundo.com>
112798         * lib/readline.c: Remove EOL.
112800 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112802         * modules/gethrxtime (Depends-on): Add gettime.
112804 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112806         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
112807         or gettimeofday; no longer needed.
112809 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112811         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
112812         time business.
112813         (gethrxtime) [! (HAVE_NANOUPTIME
112814         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
112815         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
112816         our own approximation.
112818 2005-11-08  Eric Blake  <ebb9@byu.net>
112820         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
112822 2005-11-08  Eric Blake  <ebb9@byu.net>
112824         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
112826 2005-11-04  Bruno Haible  <bruno@clisp.org>
112828         * gnulib-tool: Implement --update mode.
112830 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
112832         Fix porting problem reported by Theodoros V. Kalamatianos.
112833         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
112834         Don't assume that futimes failing means we must fail.
112836 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
112838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
112839         variables to suggest the intended function of the PATH_MAX check.
112841 2005-10-30  Kean Johnston  <jkj@sco.com>
112843         Trivial changes to support SCO systems.
112844         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
112845         as PATH_MAX.
112846         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
112847         where __ptr is null when no I/O is pending.
112849 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
112851         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
112852         leave errno alone.  Problem reported by Dmitry V. Levin.
112854 2005-10-28  Simon Josefsson  <jas@extundo.com>
112856         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
112857         Test more.
112859         * tests/test-gc-md2.c, tests/test-md2.c: New files.
112861         * modules/md2, modules/md2-tests: New files.
112863 2005-10-28  Simon Josefsson  <jas@extundo.com>
112865         * m4/inet_ntop.m4: More tests.
112867         * m4/gc-md2.m4, md2.m4: New file.
112869 2005-10-28  Simon Josefsson  <jas@extundo.com>
112871         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
112872         "restrict" keywords, as per POSIX.  Protect the function
112873         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
112874         Don't use K&R prototypes.  Check the sprintf return values.
112875         Re-define EAFNOSUPPORT if not present.  Indent.
112877         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
112878         suggested by Bruno Haible <bruno@clisp.org>.
112880         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
112882         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
112884         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
112885         libgcrypt).
112887         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
112889         * lib/md2.h, lib/md2.c: New files.
112891 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
112893         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
112894         errno alone.  Problem reported by Frederic Jolliton.
112896 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
112898         * modules/verify (License): Change from GPL to LGPL.  This is a
112899         tiny module and there are apparently near-equivalents that are
112900         under the BSD license.
112902 2005-10-24  Simon Josefsson  <jas@extundo.com>
112904         * modules/sha1: Relicense to LGPL.
112906 2005-10-24  Simon Josefsson  <jas@extundo.com>
112908         * lib/md4.h: Shrink buffer size, now that we changed the type.
112910 2005-10-23  Simon Josefsson  <jas@extundo.com>
112912         * gnulib-tool (func_import): Fix --tests-base.
112914 2005-10-22  Simon Josefsson  <jas@extundo.com>
112916         * modules/arcfour (Depends-on): Need stdint.
112918 2005-10-22  Simon Josefsson  <jas@extundo.com>
112920         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
112921         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
112923 2005-10-22  Simon Josefsson  <jas@extundo.com>
112925         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
112926         suggested by Bruno Haible <bruno@clisp.org>.
112928 2005-10-22  Simon Josefsson  <jas@extundo.com>
112930         * lib/crc.h: Include stddef.h, for size_t.
112932 2005-10-22  Simon Josefsson  <jas@extundo.com>
112934         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
112935         arcfour_context struct (simplify test vector testing in GNU
112936         Shishi).
112938 2005-10-21  Simon Josefsson  <jas@extundo.com>
112940         * modules/des, modules/des-tests: New files.
112942         * modules/gc-des, modules/gc-des-tests: New files.
112944         * tests/test-des.c, tests/test-gc-des.c: New file.
112946 2005-10-21  Simon Josefsson  <jas@extundo.com>
112948         * modules/arctwo, modules/arctwo-tests: New files.
112950         * tests/test-arctwo.c: New file.
112952         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
112954         * tests/test-gc-arctwo.c: New file.
112956 2005-10-21  Simon Josefsson  <jas@extundo.com>
112958         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
112959         Bruno Haible <bruno@clisp.org>.
112961         * m4/gc-des.m4: New file.
112963 2005-10-21  Simon Josefsson  <jas@extundo.com>
112965         * m4/arctwo.m4: New file.
112967         * m4/gc-arctwo.m4: New file.
112969 2005-10-21  Simon Josefsson  <jas@extundo.com>
112971         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
112972         block.
112974 2005-10-21  Simon Josefsson  <jas@extundo.com>
112976         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
112977         <bruno@clisp.org>.
112979         * lib/hmac-sha1.c (hmac_sha1): Likewise.
112981         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
112982         Bruno Haible <bruno@clisp.org>.
112984         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
112985         <bruno@clisp.org>.
112987 2005-10-21  Simon Josefsson  <jas@extundo.com>
112989         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
112991 2005-10-21  Simon Josefsson  <jas@extundo.com>
112993         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
112995 2005-10-21  Simon Josefsson  <jas@extundo.com>
112997         * lib/des.h, lib/des.c: New files.
112999         * lib/gc-gnulib.c: Support DES.c
113001 2005-10-21  Simon Josefsson  <jas@extundo.com>
113003         * lib/arctwo.h, lib/arctwo.c: New files.
113005         * lib/gc-gnulib.c: Support ARCTWO.
113007 2005-10-21  Simon Josefsson  <jas@extundo.com>
113009         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
113010         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113012 2005-10-21  Simon Josefsson  <jas@extundo.com>
113014         * gnulib-tool (func_import, func_create_testdir): Define automake
113015         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
113016         Makefile.am snippet),
113017         suggested by Bruno Haible <bruno@clisp.org>.
113019         * modules/gc (Makefile.am): Use it.
113021 2005-10-21  Bruno Haible  <bruno@clisp.org>
113023         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
113024         patch.
113026 2005-10-19  Simon Josefsson  <jas@extundo.com>
113028         * tests/test-gc-rijndael.c: New file.
113030         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
113032 2005-10-19  Simon Josefsson  <jas@extundo.com>
113034         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
113035         interface too.
113037 2005-10-19  Simon Josefsson  <jas@extundo.com>
113039         * tests/test-gc-arcfour.c: New file.
113041         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
113043 2005-10-19  Simon Josefsson  <jas@extundo.com>
113045         * modules/gc-md4, modules/gc-md4-tests: New file.
113047         * tests/test-gc-md4.c: New file.
113049 2005-10-19  Simon Josefsson  <jas@extundo.com>
113051         * m4/gc-md4.m4: New file.
113053 2005-10-19  Simon Josefsson  <jas@extundo.com>
113055         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
113056         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
113057         <kasal@ucw.cz>.
113059 2005-10-19  Simon Josefsson  <jas@extundo.com>
113061         * m4/gc-arcfour.m4: New file.
113063         * m4/gc-rijndael.m4: New file.
113065 2005-10-19  Simon Josefsson  <jas@extundo.com>
113067         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
113069 2005-10-19  Simon Josefsson  <jas@extundo.com>
113071         * lib/gc-gnulib.c: Support ARCFOUR.
113073 2005-10-19  Simon Josefsson  <jas@extundo.com>
113075         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
113076         support.
113078         * lib/gc.h: Add ECB enum type.
113080         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
113082 2005-10-18  Simon Josefsson  <jas@extundo.com>
113084         * tests/test-md5.c: New file.
113086         * modules/md5-tests: New file.
113088 2005-10-18  Simon Josefsson  <jas@extundo.com>
113090         * tests/test-md4.c: New file.
113092         * modules/md4, modules/md4-tests: New files.
113094 2005-10-18  Simon Josefsson  <jas@extundo.com>
113096         * m4/md4.m4: New file.
113098 2005-10-18  Simon Josefsson  <jas@extundo.com>
113100         * lib/md4.h, lib/md4.c: New files, based on md5.?.
113102 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
113104         * gnulib-tool (func_create_testdir): Omit the second check whether
113105         BUILT_SOURCES in nonempty.
113107 2005-10-17  Simon Josefsson  <jas@extundo.com>
113109         * tests/test-rijndael.c: New file.
113111 2005-10-17  Simon Josefsson  <jas@extundo.com>
113113         * modules/sha1: Depend on stdint instead of md5.
113115         * modules/md5: Depend on stdint, remove uint32_t.
113117 2005-10-17  Simon Josefsson  <jas@extundo.com>
113119         * modules/gc-sha1-tests: New file.
113121         * tests/test-gc-sha1.c: New file.
113123 2005-10-17  Simon Josefsson  <jas@extundo.com>
113125         * m4/md5.m4: Remove call to uint32_t.m4.
113127 2005-10-17  Simon Josefsson  <jas@extundo.com>
113129         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
113131         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
113132         md5.h.
113134         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
113136         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
113138 2005-10-17  Simon Josefsson  <jas@extundo.com>
113140         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
113142 2005-10-17  Simon Josefsson  <jas@extundo.com>
113144         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
113146 2005-10-17  Simon Josefsson  <jas@extundo.com>
113148         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
113150         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
113152 2005-10-17  Bruno Haible  <bruno@clisp.org>
113154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
113155         that it can also be used in a test.
113157 2005-10-16  Bruno Haible  <bruno@clisp.org>
113159         * gnulib-tool (func_emit_tests_Makefile_am): Also define
113160         TESTS_ENVIRONMENT, so that individual tests can augment it.
113162         * gnulib-tool (func_create_testdir): Use an intermediate target for
113163         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
113164         macros, like $(ALLOCA_H), which cannot be passed through the command
113165         line.
113167 2005-10-15  Simon Josefsson  <jas@extundo.com>
113169         * modules/rijndael-tests: New file.
113171         * modules/rijndael: New file.
113173 2005-10-15  Simon Josefsson  <jas@extundo.com>
113175         * m4/rijndael.m4: New file.
113177 2005-10-15  Simon Josefsson  <jas@extundo.com>
113179         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
113181         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
113183 2005-10-14  Simon Josefsson  <jas@extundo.com>
113185         * tests/test-arcfour.c: New file.
113187         * modules/arcfour, modules/arcfour-tests: New files.
113189 2005-10-14  Simon Josefsson  <jas@extundo.com>
113191         * m4/arcfour.m4: New file.
113193 2005-10-14  Simon Josefsson  <jas@extundo.com>
113195         * lib/arcfour.h, lib/arcfour.c: New files.
113197 2005-10-14  Roland McGrath  <roland@redhat.com>
113199         Import from libc.  [BZ #1331]
113200         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
113201         macro argument.
113202         Reported by Matej Vela <vela@debian.org>.
113204 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
113206         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
113207         include <wchar.h>; no longer needed.
113209 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
113211         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
113213 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
113214         and  Ulrich Drepper  <drepper@redhat.com>
113216         Import from libc.
113217         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
113218         instead of inline stream orientation test and two separate
113219         function calls.  Pay no attention to USE_IN_LIBIO.
113221 2005-10-13  Simon Josefsson  <jas@extundo.com>
113223         * modules/gc-hmac-md5-tests: New file.
113225         * tests/test-gc-hmac-sha1.c: New file.
113227         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
113229         * modules/gc-hmac-md5-tests: New file.
113231         * tests/test-gc-md5.c: New file.
113233         * modules/gc-md5-tests: New file.
113235 2005-10-13  Simon Josefsson  <jas@extundo.com>
113237         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
113238         Move memory allocation outside of loop.
113240 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
113242         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
113243         intermediate directory is in a read-only file system.  Problem
113244         reported by Eric Blake.
113246 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
113248         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
113250 2005-10-12  Simon Josefsson  <jas@extundo.com>
113252         * tests/test-hmac-sha1.c: New file.
113254         * modules/hmac-sha1-tests: New file.
113256         * modules/hmac-sha1: New file.
113258 2005-10-12  Simon Josefsson  <jas@extundo.com>
113260         * modules/gc-sha1: New file.
113262 2005-10-12  Simon Josefsson  <jas@extundo.com>
113264         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
113266         * tests/test-gc-pbkdf2-sha1.c: New file.
113268 2005-10-12  Simon Josefsson  <jas@extundo.com>
113270         * modules/gc-md5, modules/gc-hmac-md5: New files.
113272         * modules/gc (Files): Remove md5, memxor and hmac files.
113274 2005-10-12  Simon Josefsson  <jas@extundo.com>
113276         * m4/gc-pbkdf2-sha1.m4: New file.
113278         * m4/gc-hmac-sha1.m4: New file.
113280         * m4/gc-sha1: New file.
113282         * m4/hmac-sha1.m4: New file.
113284 2005-10-12  Simon Josefsson  <jas@extundo.com>
113286         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
113288         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
113290 2005-10-12  Simon Josefsson  <jas@extundo.com>
113292         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
113293         suggested by Bruno Haible <bruno@clisp.org>.
113295 2005-10-12  Simon Josefsson  <jas@extundo.com>
113297         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
113299 2005-10-12  Simon Josefsson  <jas@extundo.com>
113301         * lib/gc-pbkdf2-sha1.c: New file.
113303         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
113305 2005-10-12  Simon Josefsson  <jas@extundo.com>
113307         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
113309         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
113311 2005-10-12  Simon Josefsson  <jas@extundo.com>
113313         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
113314         GC_USE_HMAC_MD5, respectively.
113316         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
113317         (gc_md5): Fix typo.
113319         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
113321         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
113323         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
113325 2005-10-12  Bruno Haible  <bruno@clisp.org>
113327         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
113328         Reported by Stepan Kasal <kasal@ucw.cz>.
113330 2005-10-11  Simon Josefsson  <jas@extundo.com>
113332         * tests/test-crc.c: New file.
113334         * modules/crc, modules/crc-tests: New files.
113336 2005-10-11  Simon Josefsson  <jas@extundo.com>
113338         * m4/crc.m4: New file.
113340 2005-10-11  Simon Josefsson  <jas@extundo.com>
113342         * lib/gc.h: Add gc_hash and gc_hash_buffer.
113344         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
113346         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
113348 2005-10-11  Simon Josefsson  <jas@extundo.com>
113350         * lib/crc.h, lib/crc.c: New files.
113352         * lib/gc.h (gc_hash_buffer): Add doc.
113354 2005-10-11  Bruno Haible  <bruno@clisp.org>
113356         * modules/c-strcasestr: New file.
113357         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
113359 2005-10-11  Bruno Haible  <bruno@clisp.org>
113361         * modules/c-strcase: New file.
113362         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
113364 2005-10-11  Bruno Haible  <bruno@clisp.org>
113366         * lib/strcasecmp.c: Include limits.h.
113367         (strcasecmp): Avoid integer overflow on exotic platforms.
113368         * lib/strncasecmp.c: Include limits.h.
113369         (strncasecmp): Avoid integer overflow on exotic platforms.
113370         Reported by Paul Eggert.
113372 2005-10-11  Bruno Haible  <bruno@clisp.org>
113374         * lib/c-strcasestr.h: New file, from GNU gettext.
113375         * lib/c-strcasestr.c: New file, from GNU gettext.
113377 2005-10-11  Bruno Haible  <bruno@clisp.org>
113379         * lib/c-strcase.h: New file, from GNU gettext.
113380         * lib/c-strcasecmp.c: New file, from GNU gettext.
113381         * lib/c-strncasecmp.c: New file, from GNU gettext.
113383 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113385         * modules/mempcpy (License): GPL -> LGPL.
113386         * modules/strchrnul (License): Likewise.
113387         * modules/sysexits (License): Likewise.
113389 2005-10-08  Simon Josefsson  <jas@extundo.com>
113391         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
113393 2005-10-07  Simon Josefsson  <jas@extundo.com>
113395         * m4/memxor.m4: Remove gl_C_RESTRICT call.
113397 2005-10-06  Simon Josefsson  <jas@extundo.com>
113399         * tests/test-hmac-md5.c: New file.
113401         * modules/hmac-md5-tests: New file.
113403         * modules/hmac-md5: New file.
113405 2005-10-06  Simon Josefsson  <jas@extundo.com>
113407         * m4/hmac-md5.m4: New file.
113409         * m4/memxor.m4: Require gl_C_RESTRICT.
113411 2005-10-06  Simon Josefsson  <jas@extundo.com>
113413         * lib/memxor.c (memxor): Avoid casts and warnings.
113415 2005-10-06  Simon Josefsson  <jas@extundo.com>
113417         * lib/hmac-md5.c: New file.
113419         * lib/hmac.h: New file.
113421 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
113424         promotes to int, not unsigned int, to catch the AIX 5.3
113425         compiler bug.
113427 2005-10-05  Simon Josefsson  <jas@extundo.com>
113429         * modules/memxor: New file.
113431         * modules/iconv (Files): Move config.rpath to havelib, it is used
113432         there.
113434         * modules/havelib (Files): Add config.rpath.
113436 2005-10-05  Simon Josefsson  <jas@extundo.com>
113438         * m4/memxor.m4: New file.
113440 2005-10-05  Simon Josefsson  <jas@extundo.com>
113442         * lib/memxor.c (memxor): Fix compiler error.
113444         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
113445         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
113447         * lib/memxor.h, lib/memxor.c: New files.
113449         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
113450         we assume all systems have it, suggested by Jim Meyering
113451         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
113452         any systems lack sys/socket.h; mingw32 is known to lack it, but we
113453         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
113454         same reasons.
113456 2005-10-05  Simon Josefsson  <jas@extundo.com>
113458         * config/srclist.txt: Add glibc bug 1423 for md5.h.
113460 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
113462         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
113463         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
113464         needed, since the source code now assumes these .h files.
113466 2005-10-05  Derek Price  <derek@ximbiot.com>
113468         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
113470 2005-10-05  Bruno Haible  <bruno@clisp.org>
113472         * modules/stdint (License): Change to LGPL.
113474 2005-10-04  Simon Josefsson  <jas@extundo.com>
113476         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
113477         D. Baushke" <mdb@gnu.org>.
113479 2005-10-04  Bruno Haible  <bruno@clisp.org>
113481         * lib/verify.h (verify_true): Provide alternative definition for C++.
113483 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
113485         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
113486         (SSIZE_MAX): New macro, if not already defined.
113487         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
113488         than 2 GiB.
113490 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113492         Sync from coreutils.
113493         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
113494         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
113495         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
113496         ULLONG_MAX doesn't work with 2.7.2.1.
113498 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113500         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
113501         From Ben Pfaff.
113503         * modules/exclude (Depends-on): Depend on verify.
113504         * modules/strtoimax (Depends-on): Likewise.
113505         * modules/utimecmp (Depends-on): Likewise.
113507 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113509         * lib/exclude.c: Include verify.h.
113510         (verify): Remove.  All callers changed to use verify.h's version.
113511         * lib/strtoimax.c: Likewise.
113512         * lib/utimecmp.c: Likewis.e
113514         Sync from coreutils.
113515         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
113516         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
113517         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
113518         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
113519         bother returning ENOSYS if settimeofday or stime fails; just let
113520         them return whatever errno they want to return.
113521         * lib/utimens.c: Include unistd.h, for dup2.
113522         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
113523         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
113525 2005-10-02  Jim Meyering  <jim@meyering.net>
113527         Sync from coreutils.
113528         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
113529         from glibc-2.2.5 that fails for read-only files.
113531 2005-10-02  Jim Meyering  <jim@meyering.net>
113533         Sync from coreutils.
113534         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
113535         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
113536         `#if HAVE_CONFIG_H'.
113537         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
113538         Remove AT_FDCWD test.
113539         Do not consume the fd unless successful.
113540         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
113541         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
113542         block, so that we don't even try to compile it if settimeofday is
113543         available.  This works around a compilation failure on OSF1 V5.1,
113544         due to stime requiring a `long int*' while tv_sec is `int'.
113546 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
113548         Sync from coreutils.
113549         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
113550         against `yes', rather than just testing for nonempty.
113552 2005-10-01  Simon Josefsson  <jas@extundo.com>
113554         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
113555         and Darwin.
113557         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
113558         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
113559         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
113560         freeaddrinfo and gai_strerror are declared by the POSIX headers.
113561         Check if struct addrinfo is declared.
113563 2005-10-01  Simon Josefsson  <jas@extundo.com>
113565         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
113566         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
113567         AI_* and EAI_* definitions.  Protect function declarations.
113569 2005-10-01  Jim Meyering  <jim@meyering.net>
113571         Sync from coreutils.
113573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
113574         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
113575         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
113576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
113577         in the inet and nsl libraries.  Required on Solaris 5.7.
113579 2005-10-01  Jim Meyering  <jim@meyering.net>
113581         Sync from coreutils.
113582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
113583         in the inet and nsl libraries.  Required on Solaris 5.7.
113585 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
113587         * lib/getdelim.c (getdelim): Remove unused variables.
113589 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113591         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
113592         so that the code works even with ancient cpp.  Portability problem
113593         with GCC 2.7.2.1 reported by Thomas M.Ott.
113595 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113597         * modules/regex (Depends-on): Add strcase.
113599         * modules/gethostname (Licence): Change from GPL to LGPL, since
113600         gethostname.c is a trivial implementation of a standard library
113601         function.
113602         * modules/poll (License): Change from GPL to LGPL, since it's
113603         derived from LGPL code.
113605 2005-09-27  Jim Meyering  <jim@meyering.net>
113607         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
113608         HAVE_CONFIG_H.
113610         * lib/intprops.h (signed_type_or_expr__): Define.
113611         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
113612         for unsigned types.
113614 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113616         * lib/verify.h (verify_expr): Remove, replacing with:
113617         (verify_true): New macro that returns true instead of void.
113618         (verify_type__): Remove.
113619         (verify): Use verify_true rather than verify_type__.
113621 2005-09-26  Bruno Haible  <bruno@clisp.org>
113623         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
113624         is necessary.
113625         (lib_SOURCES): Remove mbchar.c.
113626         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
113627         (Files): Add m4/mbrtowc.m4.
113628         * modules/mbiter: Likewise.
113629         * modules/mbuiter: Likewise.
113631 2005-09-26  Bruno Haible  <bruno@clisp.org>
113633         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
113634         compile mbchar.c if they are not both present.
113635         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
113636         * m4/mbiter.m4 (gl_MBITER): Likewise.
113637         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
113638         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
113639         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
113641 2005-09-25  Jim Meyering  <jim@meyering.net>
113643         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
113644         also uses socklen_t.
113646 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
113648         * lib/utimens.c (ENOSYS): Define if not already defined.
113649         (futimens): Support having a null PATH if the file descriptor
113650         is nonnegative.
113652         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
113653         Remove.
113654         (__attribute): Define to empty unless GCC 3.1 or later.
113655         This works around a core dump on OpenBSD 3.4, which has GCC
113656         2.95.3, which dumps core when given __attribute__(()).  It also
113657         simplifies other tests, since we really don't want to bother with
113658         worrying about which ancient version of GCC supported what.
113659         Original problem reported by Yoann Vandoorselaere, with part of
113660         the fix suggested by Derek Price.
113662 2005-09-24  Jim Meyering  <jim@meyering.net>
113664         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
113665         so we can once again use a positive bitfield width of 1 -- now we
113666         don't have to explain why we were using a bitfield width of 2.
113668 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
113670         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
113671         and similarly for the other external symbols.  Problem reported
113672         by James Gallager.
113674         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
113675         bug reported by Jim Meyering.
113677         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
113678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
113679         not needed, since socklen is a prerequisite module.
113681 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
113683         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
113684         Problem reported by Eric Blake.
113685         (getaddrinfo): Initialize se so that it's not garbage.
113686         Redo internal storage allocation so that it doesn't make unportable
113687         assumptions about alignment.
113688         Fix a memory leak.
113690         * lib/utimens.c (futimens): Use futimesat if available.
113691         Prefer it to futimes since it doesn't have the futimes bug.
113693         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
113694         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
113695         Instead, declare a function that returns a pointer to an array,
113696         and use verify_type__ to declare the size of the array.
113697         Problem and germ of a solution reported by Bruno Haible.
113698         (verify_type__): Use 2, not 1, for bitfield size, to avoid
113699         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
113701 2005-09-23  Jim Meyering  <jim@meyering.net>
113703         Sync from coreutils.
113704         Correct build failure (socklen_t not defined) on at least
113705         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
113706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
113708 2005-09-23  Jim Meyering  <jim@meyering.net>
113710         * modules/getaddrinfo (Depends-on): Add socklen.
113712 2005-09-23  Bruno Haible  <bruno@clisp.org>
113714         * tests/test-verify.c: New file.
113716 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113718         Sync from coreutils.
113720         * modules/argmatch (Depends-on): Add verify.
113721         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
113722         unistd-safer.
113723         * modules/save-cwd (Depends-on): Likewise.
113725         * modules/openat (Files): Add lib/openat-die.c.
113726         (Depends-on): Remove error, exitfail.
113727         Add dirname.
113729         * modules/verify: New file.
113730         * MODULES.html.sh (Diagnostics <assert.h>): New section,
113731         with "verify" module.
113733 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113735         Sync from coreutils.
113737         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
113738         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
113739         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
113740         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
113741         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
113742         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
113743         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
113744         Don't bother checking for string.h, stdlib.h, unistd.h.
113745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
113746         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
113747         module's job.
113748         * m4/jm-macros.m4 (gl_MACROS): Likewise.
113749         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
113751         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
113752         (gl_GETDATE): Use it.
113754         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
113756 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113758         Sync from coreutils.
113760         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
113761         stat-time.h.
113762         * lib/argmatch.h: Include verify.h
113763         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
113764         (ARGMATCH_ASSERT): Remove; unused.
113765         * lib/canonicalize.c: Assume STDC_HEADERS.
113766         * lib/exclude.c: Include "strcase.h".
113767         * lib/regex_internal.h [!defined _LIBC]: Likewise.
113768         * lib/getusershell.c: Include stdio--.h rather than stdio.h
113769         and stdio-safer.h.
113770         (getusershell): Call fopen, not fopen_safer.
113771         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
113772         Do not include unistd-safer.h.
113773         (save_cwd): Don't call fd_safer; no longer needed
113774         now that we include fcntl--.h.
113776         * lib/getdate.y (relative_time): New type.
113777         (RELATIVE_TIME_0): New constant.
113778         (parser_control): Use relative_time instead of doing it ourselves.
113779         (%union): Add new relative_time rel member.
113780         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
113781         Now typeless.
113782         (relunit, relunit_snumber): Now of type rel.
113783         (zone, rel, relunit, get_date): Adjust to above changes.
113785         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
113786         Do not include unistd-safer.h.
113787         (getloadavg): Don't call fd_safer; no longer needed
113788         now that we include fcntl--.h.
113790         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
113791         (make_dir_parents): Treat ENOSYS like EEXIST.
113793         Improve quality of diagnostics on restore_cwd failure.
113794         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
113795         (make_dir_parents): Last arg is now int * (for errno), not bool *.
113796         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
113797         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
113798         each time through the loop.  Do not diagnose restore_cwd failure;
113799         that is the caller's job (and perhaps the caller does not care).
113801         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
113802         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
113803         If the file already exists but is not a directory, don't bother
113804         to try to make its parents.
113805         Close potential file descriptor leak if we can't chdir("/") (!).
113806         Don't always return true if chdir($PWD) fails; return true only
113807         if the requested action was done successfully (except for the
113808         chdir($PWD)).
113809         Don't log final directory unless we actually made it.
113810         Refactor to avoid duplicate code to fix up permissions.
113811         Don't attempt to fix up parent permissions if chdir($PWD) fails.
113813         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
113814         to make it a bit faster and (I hope) clearer.
113815         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
113816         Fix bug in formats like %2N.
113818         * lib/verify.h: New file.
113820 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113822         Sync from coreutils.
113823         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
113825 2005-09-22  Jim Meyering  <jim@meyering.net>
113827         Sync from coreutils.
113829         * m4/lstat.m4 (gl_FUNC_LSTAT):
113830         Use AC_LIBSOURCES to require lstat.c and lstat.h.
113831         Remove obsolete comment.
113832         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
113833         * m4/xstrtod.m4: Likewise.
113835         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
113837 2005-09-22  Jim Meyering  <jim@meyering.net>
113839         Sync from coreutils.
113841         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
113843         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
113844         the .tm_year member, since otherwise gcc-4.0 would now warn about
113845         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
113847         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
113848         order to avoid an unsuppressible warning from gcc on 64-bit systems.
113850         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
113851         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
113852         when run in a time zone for which daylight savings time is in effect
113853         for the starting date.
113855         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
113856         stop us from restricting permissions of just-created absolute-named
113857         directories.
113858         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
113859         to restore initial working directory.
113860         * lib/mkdir-p.c (make_dir_parents): New parameter:
113861         different_working_dir, to tell caller if/when we change the working
113862         directory and are unable to return to the initial one.
113863         * lib/mkdir-p.h (make_dir_parents): Update prototype.
113864         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
113865         `return false'.  This fixes a bug introduced on 2004-07-30.
113867         * lib/openat.c (fdopendir): Be sure to close the supplied
113868         file descriptor before returning.  This makes our replacement
113869         implementation a little closer to Solaris's, where fdopendir
113870         ties the file descriptor to the returned DIR* pointer.
113871         * lib/openat.c (unlinkat): New function.
113872         * lib/openat.h (unlinkat): Add prototype.
113873         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
113874         (openat_restore_fail): Rename from openat_restore_die.
113875         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
113877         Provide an alternative to exiting immediately upon save_cwd or
113878         restore_cwd failure.  Now, an application can arrange e.g.,
113879         to perform a longjump in that case.
113880         * lib/openat.c: Include dirname.h.
113881         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
113882         (rpl_openat, fdopendir, fstatat): Call openat_save_die
113883         and openat_restore_die rather than calling error directly.
113884         Don't include "error.h" or "exitfail.h"; they're no longer needed.
113886         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
113887         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
113888         define.
113890         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
113891         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
113892                             int utc, int nanoseconds);
113893         Background:
113894         date should not have to allocate a megabyte of virtual memory to
113895         handle a format argument like +%1048575T.  When implemented with
113896         strftime, it must allocate such a buffer, use strftime to fill it
113897         in, print it, then free it.
113898         With fprintftime, it simply prints everything and exits.
113899         With no need for memory allocation, that's one fewer way to fail.
113900         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
113901         optional field width, not before, so we accept %9:z, not %:9z.
113902         (my_strftime): Be sure to use L_('x') for literals.
113904         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
113905         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
113906         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
113907         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
113908         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
113909         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
113910         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
113911         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
113912         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
113913         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
113914         * lib/xgethostname.c, lib/xreadlink.c:
113915         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
113917         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
113918         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
113919         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
113920         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
113921         and don't include <sys/file.h>).
113923 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
113925         Sync from coreutils.
113927         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
113928         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
113929         [!LDAV_DONE]: Avoid unused variable warning.
113931 2005-09-21  Bruno Haible  <bruno@clisp.org>
113933         * lib/unicodeio.h (unicode_to_mb): New declaration.
113935 2005-09-20  Derek Price  <derek@ximbiot.com>
113937         * lib/getaddrinfo.c: Don't include <netdb.h> included from
113938         getaddrinfo.h.
113940 2005-09-20  Bruno Haible  <bruno@clisp.org>
113942         * gnulib-tool: Remove trailing slashes from the values specified for
113943         --source-base, --m4-base, --tests-base, --aux-dir.
113944         Suggested by Simon Josefsson <jas@extundo.com>.
113946 2005-09-20  Bruno Haible  <bruno@clisp.org>
113948         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
113949         func_modules_to_filelist, func_import, func_create_testdir): Make all
113950         sorting results locale-independent, so that gnulib-cache.m4 doesn't
113951         change when gnulib-tool is invoked in a different locale.
113953 2005-09-19  Simon Josefsson  <jas@extundo.com>
113955         * m4/socklen.m4: Fix typo.
113957 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113959         Use a consistent style for including <config.h>.
113960         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
113961         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
113962         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
113963         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
113964         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
113965         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
113966         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
113967         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
113968         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
113969         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
113970         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
113971         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
113972         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
113973         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
113974         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
113975         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
113976         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
113977         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
113978         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
113979         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
113980         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
113981         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
113982         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
113983         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
113984         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
113985         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
113986         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
113987         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
113988         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
113989         lib/xstrtoumax.c, lib/yesno.c:
113990         Standardize inclusion of config.h.
113991         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
113992         lib/inttostr.h:  Removed inclusion of config.h from header files.
113993         * lib/inttostr.c:  Adjusted in-tree users.
113994         * lib/timespec.h: Remove superfluous warning to include config.h.
113995         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
113996         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
113997         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
113998         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
113999         config.h with HAVE_CONFIG_H.
114001 2005-09-19  Jim Meyering  <jim@meyering.net>
114003         * modules/pathmax (License): Change to LGPL.
114005 2005-09-19  Derek Price  <derek@ximbiot.com>
114007         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
114009 2005-09-19  Bruno Haible  <bruno@clisp.org>
114011         * gnulib-tool (import): Provide default for --tests-base.
114013 2005-09-19  Bruno Haible  <bruno@clisp.org>
114015         * doc/quote.texi: New file, extracted from gnulib.texi.
114016         * doc/ctime.texi: New file, extracted from gnulib.texi.
114017         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
114018         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
114019         * doc/gnulib.texi: Include them.
114021 2005-09-18  Bruno Haible  <bruno@clisp.org>
114023         Portability fix.
114024         * gnulib-tool (func_readlink): New function.
114025         (func_ln_if_changed): Use it.
114027 2005-09-18  Bruno Haible  <bruno@clisp.org>
114029         * gnulib-tool: Support --with-tests also with --import.
114030         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
114031         (func_import): Use variables $testsbase and $inctests. Emit a
114032         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
114033         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
114034         SUBDIRS += $testsdir.
114035         (func_create_testdir): Update.
114037 2005-09-18  Bruno Haible  <bruno@clisp.org>
114039         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
114040         instead of $dry_run.
114041         (func_cp_if_changed, func_mv_if_changed): Remove functions.
114042         (func_ln_if_changed): Don't handle dry-run here.
114043         (func_import): In dry-run mode, detect more precisely which actions
114044         would be performed, and don't use "...ing" verbs.
114046 2005-09-18  Bruno Haible  <bruno@clisp.org>
114048         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
114049         (func_import): Use join on two temporary files instead of three nested
114050         loops, in order to determine which files are new or old.
114052 2005-09-18  Bruno Haible  <bruno@clisp.org>
114054         * gnulib-tool (func_import): Comment out code that spits out the
114055         new files with --dry-run.
114057 2005-09-18  Bruno Haible  <bruno@clisp.org>
114059         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
114061 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
114063         * lib/stat-time.h: New file.
114064         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
114065         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
114066         in a different way.
114067         (timespec_cmp): New function.
114068         * lib/utimecmp.c: Include stat-time.h.
114069         (SYSCALL_RESOLUTION): Depend on whether various struct stat
114070         members exist, not on the obsolescent ST_MTIM_NSEC.
114071         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
114073 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
114075         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
114077 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
114079         * MODULES.html.sh (File system functions): Add stat-time.
114080         * modules/stat-time: New file.
114081         * modules/timespec (Files): Remove m4/st_mtim.m4; this
114082         is now done in a different way, by the stat-time module.
114083         * modules/utimecmp (Depends-on): Add stat-time.
114085 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114087         * m4/st_mtim.m4: Remove.  Superseded by...
114088         * m4/stat-time.m4: New file.
114089         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
114090         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
114092 2005-09-15  Derek Price  <derek@ximbiot.com>
114094         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
114096 2005-09-15  Derek Price  <derek@ximbiot.com>
114098         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
114099         * lib/regex_internal.c: Ditto, using this...
114100         (__GNUC_PREREQ): ...new macro.
114101         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
114102         using...
114103         (__GNUC_PREREQ): ...this new macro.
114105         * lib/strstr.h: Include string.h. Define strstr as a macro here.
114107 2005-09-15  Derek Price  <derek@ximbiot.com>
114108             Paul Eggert  <eggert@cs.ucla.edu>
114110         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
114111         changes, consolidating in...
114112         * lib/regex_internal.h: ...this file.
114114 2005-09-13  Jim Meyering  <jim@meyering.net>
114116         * lib/canon-host.c: Filter through gnu indent and reword comments
114117         slightly.
114118         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
114120 2005-09-13  Derek Price  <derek@ximbiot.com>
114122         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
114123         failure.
114124         Reported by Jim Meyering  <jim@meyering.net>.
114126 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114128         * lib/base64.c: Typo.
114129         (base64_encode): Put b64str in initialized data section.
114131 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
114133         Merge glibc and coreutils changes into gnulib, plus a few
114134         extra fixes.
114135         * lib/md5.c: Use #error rather than a string.
114136         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
114137         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
114138         (__attribute__): Define to empty for non recent-GCC.
114139         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
114140         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
114141         Renamed from their non-__ counterparts, with new macros replacing
114142         them if not _LIBC.  Add __THROW attribute.
114143         (rol): Remove.
114144         (struct md5_ctx): Align buffer if using GCC.
114145         * lib/sha1.h (struct sha1_ctx): Likewise.
114146         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
114147         The old name was backwards.
114148         (NOTSWAP): Remove; not used.
114149         (rol): New macro, moved here from md5.h.
114150         (sha1_process_block): Remove a FIXME that doesn't make sense.
114152 2005-09-12  Derek Price  <derek@ximbiot.com>
114154         Return usable errors from canon-host.
114155         * lib/canon-host.h: New file.
114156         * lib/canon-host.c (canon_host): Wrap...
114157         (canon_host_r): ...this new function, which now relies exclusively on
114158         getaddrinfo.
114159         (ch_strerror): New function.
114160         (last_cherror): New global.
114161         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
114162         interface.
114163         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
114164         void *.
114165         (freeaddrinfo): Free ai->ai_canonname when set.
114167 2005-09-12  Derek Price  <derek@ximbiot.com>
114169         Make canon-host require getaddrinfo.
114170         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
114171         AC_LIBSOURCE canon-host.h.  Call...
114172         (gl_PREREQ_CANON_HOST): ...this new function, which requires
114173         gl_GETADDRINFO.
114174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
114176 2005-09-12  Derek Price  <derek@ximbiot.com>
114178         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
114179         LGPL.
114180         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
114182 2005-09-12  Derek Price  <derek@ximbiot.com>
114184         * lib/gai_strerror.c: Include config.h when available.  Include
114185         getaddrinfo.h before other headers to test interface.
114186         Reported by Larry Jones <lawrence.jones@ugs.com>.
114188 2005-09-12  Derek Price  <derek@ximbiot.com>
114189             Paul Eggert  <eggert@cs.ucla.edu>
114191         * modules/glob (Files): Add glob-libc.h.
114193 2005-09-12  Derek Price  <derek@ximbiot.com>
114194             Paul Eggert  <eggert@cs.ucla.edu>
114196         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
114197         glob_.h, glob-libc.h.
114198         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
114200 2005-09-12  Derek Price  <derek@ximbiot.com>
114201             Paul Eggert  <eggert@cs.ucla.edu>
114203         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
114204         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
114205         protecting things that should be done only in gnulib contexts.
114206         * lib/glob_.h: New file, containing only the glob things needed for
114207         gnulib.
114208         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
114209         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
114210         (glob, globfree, glob_pattern_p): Now defined simply in terms of
114211         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
114212         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
114213         and to respect the namespace rules better.
114215 2005-09-08  Simon Josefsson  <jas@extundo.com>
114217         * modules/socklen: New file.
114219 2005-09-08  Simon Josefsson  <jas@extundo.com>
114221         * m4/socklen.m4: New file.
114223 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114225         * modules/utimens (Files): Add m4/utimbuf.m4, since
114226         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
114227         Reported by Sergey Poznyakoff.
114229 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114231         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
114232         definitions, since that's the preferred style in glibc.
114233         Fix a minor spacing issue, and update copyright notice to match
114234         glibc's.
114236 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114238         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
114240 2005-09-06  Simon Josefsson  <jas@extundo.com>
114242         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
114243         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
114245 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
114247         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
114248         warning.
114250 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
114252         * config/srclist.txt: Add glibc bug 1302.
114254 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
114256         Change bitset word type from unsigned int to unsigned long int,
114257         as this has better performance on typical 64-bit hosts.
114258         Port bitset code to hosts with unusual word sizes.
114259         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
114260         (build_collating_symbol):
114261         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
114262         argument is a bitset.  This is merely a style issue, but it makes
114263         it clearer that an entire array is expected.
114264         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
114265         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
114266         Port to the case where bitset_word is not the same as unsigned int.
114267         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
114268         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
114269         Likewise.
114270         * lib/regexec.c (check_dst_limits_calc_pos_1,
114271         check_subexp_matching_top):
114272         (build_trtable, group_nodes_into_DFAstates):
114273         Likewise.
114274         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
114275         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
114276         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
114277         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
114278         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
114279         * lib/regcomp.c (optimize_subexps, lower_subexp):
114280         Work even if bitset_word has holes in its bitwise representation.
114281         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
114282         * lib/regexec.c (check_dst_limits_calc_pos_1,
114283         check_subexp_matching_top):
114284         Likewise.
114285         * lib/regex_internal.c (re_string_reconstruct):
114286         Don't assume UCHAR_MAX == 255.
114287         * lib/regex_internal.h (bitset_set_all): Likewise.
114288         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
114289         All uses changed.
114290         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
114291         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
114292         All uses changed.
114293         (BITSET_WORD_MAX): New macro.
114294         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
114295         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
114296         (bitset_empty, bitset_copy):
114297         Prefer sizeof (bitset) to multiplying it out ourselves.
114298         (bitset_not_merge): Remove; unused.
114299         (bitset_contain): Return bool, not unsigned int with one bit on.
114300         All callers changed.
114301         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
114302         alignment than re_node_set; do this by defining a new internal
114303         type struct dests_alloc and using it to allocate memory.
114305 2005-09-05  Bruno Haible  <bruno@clisp.org>
114307         * gnulib-tool (func_import): Fix comparison in handling of symbolic
114308         links.
114310 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
114312         * modules/size_max (Makefile.am): Add size_max.h
114314 2005-09-04  Derek Price  <derek@ximbiot.com>
114316         * gnulib-tool (func_import): Fix reversed $symbolic logic.
114318 2005-09-03  Simon Josefsson  <jas@extundo.com>
114320         * gnulib-tool: Fix typo.
114322 2005-09-03  Simon Josefsson  <jas@extundo.com>
114324         * config/srclist.txt: Add glibc bug 1293.
114326 2005-09-03  Derek Price  <derek@ximbiot.com>
114328         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
114329         From Larry Jones <lawrence.jones@ugs.com>.
114331 2005-09-02  Simon Josefsson  <jas@extundo.com>
114333         * modules/socklen: New file.
114335 2005-09-02  Simon Josefsson  <jas@extundo.com>
114337         * modules/havelib: New module.
114339         * modules/gettext, modules/iconv, modules/lock, modules/readline:
114340         Use havelib.
114342 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
114344         Check for arithmetic overflow when calculating sizes, to prevent
114345         some buffer-overflow issues.  These patches are conservative, in the
114346         sense that when I couldn't determine whether an overflow was possible,
114347         I inserted a run-time check.
114348         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
114349         macros.
114350         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
114351         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
114352         (re_xnrealloc, re_x2nrealloc): New inline functions.
114353         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
114354         parse_bracket_exp):
114355         (build_equiv_class, build_charclass): Check for arithmetic overflow
114356         in size expression calculations.
114357         * lib/regex_internal.c (re_string_realloc_buffers):
114358         (build_wcs_upper_buffer, re_node_set_add_intersect):
114359         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
114360         (re_dfa_add_node, register_state): Likewise.
114361         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
114362         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
114363         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
114364         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
114366 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
114368         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
114369         m4/ulonglong.m4.  Problem reported by Martin Lambers.
114371 2005-09-02  Bruno Haible  <bruno@clisp.org>
114373         Support for lib vs. lib64 distinction on biarch platforms.
114374         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
114375         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
114376         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
114378 2005-09-02  Bruno Haible  <bruno@clisp.org>
114380         * gnulib-tool (import): In the other first-use case, provide defaults
114381         as well.
114383 2005-09-02  Bruno Haible  <bruno@clisp.org>
114385         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
114386         patches not yet found in the latest gettext release.
114388 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114390         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
114391         to avoid a collision with bits/local_lim.h in glibc.
114392         All uses changed.  Problem reported by Dmitry V. Levin in
114393         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
114395         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
114396         bugs in int versus size_t comparisons.
114397         (re_string_context_at): Fix bug where the code assumed that
114398         Idx is signed.
114400         Use bool where appropriate.
114401         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
114402         All callers changed.
114403         (calc_eclosure_iter): Likewise, for ROOT arg.
114404         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
114405         (build_charclass_op): Likewise, for NON_MATCH arg.
114406         * lib/regex_internal.c (re_string_allocate, re_string_construct):
114407         (re_string_construct_common): Likewise, for ICASE arg.
114408         * lib/regexec.c (re_search_2_stub, re_search_stub):
114409         Likewise, for RET_LEN arg.
114410         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
114411         (set_regs): Likewise, for FL_BACKTRACK arg.
114412         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
114413         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
114414         (calc_eclosure_iter, parse_bracket_exp):
114415         Use bool for internal variables that are booleans.
114416         * lib/regexec.c (re_search_internal, check_matching,
114417         proceed_next_node):
114418         (set_regs, build_sifted_states, sift_states_bkref):
114419         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
114420         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
114421         (find_collation_sequence_value):
114422         Likewise.
114423         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
114424         (re_node_set_compare):
114425         Return bool, not int. All callers changed.
114426         * lib/regexec.c (check_halt_node_context, check_dst_limits):
114427         (build_trtable, check_node_accept): Likewise.
114428         * lib/regex_internal.h: Include stdbool.h.
114430         Fix bugs uncovered when converting to bool.
114431         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
114432         failure instead of charging ahead blindly.
114433         * lib/regex_internal.c (register_state): Likewise.
114434         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
114435         for freeing internal storage.
114436         (group_nodes_into_DFA_states): Use unsigned int, not int, for
114437         bitset pieces used as boolean, to avoid undefined behavior
114438         on hosts that do int overflow checking.
114440 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114442         * config/srclist.txt: Add glibc bugs 1285-1287.
114444 2005-09-01  Jim Meyering  <jim@meyering.net>
114446         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
114447         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
114448         Require gl_STAT_MACROS, too.
114450 2005-09-01  Bruno Haible  <bruno@clisp.org>
114452         * gnulib-tool (import): In the first-use case, provide defaults.
114454 2005-09-01  Bruno Haible  <bruno@clisp.org>
114456         * gnulib-tool (func_import): Remove the .tmp files.
114458 2005-09-01  Bruno Haible  <bruno@clisp.org>
114460         * gnulib-tool (func_import): Fix handling of symbolic links.
114462 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114464         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
114465         old glibc regex code mishandles strings longer than 2**31 bytes.
114466         This patch fixes this when the regex code is used in gnulib
114467         (i.e., outside glibc).
114469         This patch should not affect the use of the regex code inside
114470         glibc.  No doubt this problem also needs to be handled for glibc
114471         as well, but the result will be an incompatible change to the
114472         glibc ABI, and the old ABI will have to be supported too.  That
114473         can be the subject for another patch.
114475         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
114476         governing whether the rest of this patch is active.  By default,
114477         the macro is disabled and the patch has no effect.
114478         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
114479         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
114480         (struct re_pattern_buffer, re_search, re_search_2, re_match):
114481         (re_match_2, re_set_registers): Use the new types.
114482         * lib/regex_internal.h (Idx, re_hashval_t): New types.
114483         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
114484         New macros.
114485         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
114486         (re_string_context_at, bin_tree_t, re_dfastate_t):
114487         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
114488         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
114489         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
114490         (re_string_char_size_at, re_string_wchar_at):
114491         (re_string_elem_size_at):
114492         Use the new types and macros to port to 64-bit hosts.
114493         Use unsigned types for internal values, so that the code
114494         mostly works even for arrays larger than SSIZE_MAX.
114495         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
114496         (search_duplicated_node, calc_eclosure_iter, fetch_number):
114497         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
114498         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
114499         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
114500         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
114501         (calc_inveclosure, parse_dup_op, build_range_exp):
114502         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
114503         (fetch_number, create_token_tree, mark_opt_subexp):
114504         Likewise.
114505         * lib/regex_internal.c (re_string_construct_common,
114506         create_ci_newstate):
114507         (create_cd_newstate, re_string_allocate, re_string_construct):
114508         (re_string_realloc_buffers, build_wcs_upper_buffer):
114509         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
114510         (re_string_reconstruct, re_string_peek_byte_case):
114511         (re_string_fetch_byte_case, re_string_context_at):
114512         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
114513         (re_node_set_init_copy, re_node_set_add_intersect):
114514         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
114515         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
114516         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
114517         (re_acquire_state, re_acquire_state_context, register_state):
114518         Likewise.
114519         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
114520         search_cur_bkref_entry):
114521         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
114522         (re_search_internal, re_search_2_stub, re_search_stub)
114523         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
114524         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
114525         (update_cur_sifted_state, check_dst_limits):
114526         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
114527         (check_subexp_limits, sift_states_bkref, merge_state_array):
114528         (check_subexp_matching_top, get_subexp, get_subexp_sub):
114529         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
114530         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
114531         (expand_bkref_cache, check_node_accept_bytes):
114532         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
114533         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
114534         (acquire_init_state_context, check_halt_node_context):
114535         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
114536         (sift_states_backward, clean_state_log_if_needed):
114537         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
114538         (find_recover_state, transit_state_sb, transit_state_mb):
114539         (transit_state_bkref, build_trtable, match_ctx_clean):
114540         Likewise.
114541         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
114542         to work around an assumption that REG_MISSING is negative.
114544         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
114545         (seek_collating_symbol_entry) [defined _LIBC]:
114546         (lookup_collation_sequence_value) [defined _LIBC]:
114547         (build_range_exp, build_collating_symbol) [defined _LIBC]:
114548         Use prototypes rather than old-style function definitions.
114549         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
114550         (transit_state_sb) [0]:
114551         (find_collation_sequence_value) [defined _LIBC]: Likewise.
114553         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
114554         rm_eo.
114556         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
114557         (optimize_subexps, lower_subexp):
114558         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
114559         since the signed shift might overflow.  Use 1u<<31 instead.
114560         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
114561         Likewise.
114562         * lib/regexec.c (check_dst_limits_calc_pos_1,
114563         check_subexp_matching_top): Likewise.
114565         * lib/regcomp.c (optimize_subexps, lower_subexp):
114566         Use CHAR_BIT rather than 8, for clarity.
114567         * lib/regexec.c (check_dst_limits_calc_pos_1):
114568         (check_subexp_matching_top): Likewise.
114569         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
114570         have to worry about portability issues when shifting it left.
114571         Remove no-longer-needed test for table_size > 0.
114572         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
114573         in a word, as the resulting behavior is undefined.
114574         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
114575         in one case, a <= should have been an <, and in another case the
114576         whole test was missing.
114577         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
114578         the standard name CHAR_BIT.
114579         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
114580         this is not true on one's complement and signed-magnitude hosts.
114582         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
114583         next_last_offset.
114584         (struct re_dfa_t): Remove unused member states_alloc.
114585         * lib/regcomp.c (init_dfa): Don't initialize unused members.
114587 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114589         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
114590         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
114591         and large-file glibc and in 32-bit large-file Solaris.
114593 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114595         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
114596         lengths fit in regoff_t; this isn't true if regoff_t is the same
114597         width as size_t.
114598         * lib/regex.c (re_search_internal): 5th arg is LAST_START
114599         (= START + RANGE) instead of RANGE.  This avoids overflow
114600         problems when regoff_t is the same width as size_t.
114601         All callers changed.
114602         (re_search_2_stub): Check for overflow when adding the
114603         sizes of the two strings.
114604         (re_search_stub): Check for overflow when adding START
114605         to RANGE; if it occurs, substitute the extreme value.
114607 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114609         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
114611 2005-08-31  Jim Meyering  <jim@meyering.net>
114613         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
114614         a pointer-to-const.
114615         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
114616         (register_state): Likewise.
114617         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
114618         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
114619         (group_nodes_into_DFAstates): Likewise.
114621 2005-08-31  Jim Meyering  <jim@meyering.net>
114623         * check-module: Add a FIXME comment.
114625 2005-08-31  Eric Blake  <ebb9@byu.net>
114627         * modules/unistd-safer (Files): Add unistd--.h.
114628         * modules/stdio-safer (Files): Add stdio--.h.
114630 2005-08-31  Derek Price  <derek@ximbiot.com>
114632         * lib/getdelim.c (getdelim): Return EOF on EOF.
114633         Reported by Larry Jones <lawrence.jones@ugs.com>.
114635 2005-08-31  Bruno Haible  <bruno@clisp.org>
114637         Avoid unnecessary diffs in the generated lib/Makefile.am.
114638         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
114639         the generated files.
114640         (func_import): Don't set cmd.
114642 2005-08-31  Bruno Haible  <bruno@clisp.org>
114644         * lib/strstr.c: Include <stddef.h>, for NULL.
114645         * lib/strcasestr.c: Likewise.
114646         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114648 2005-08-31  Bruno Haible  <bruno@clisp.org>
114650         * gnulib-tool: New option --macro-prefix.
114651         (func_import): Use macro_prefix.
114652         (import): Handle option --macro-prefix.
114654 2005-08-31  Bruno Haible  <bruno@clisp.org>
114656         * gnulib-tool (import): Rename most ac_* variables to cached_*.
114657         Also use new variables cached_lgpl, cached_libtool.
114659 2005-08-31  Bruno Haible  <bruno@clisp.org>
114661         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
114662         always instantiating them.
114664 2005-08-31  Bruno Haible  <bruno@clisp.org>
114666         * gnulib-tool (func_import): Read the previous cached settings
114667         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
114668         earlier added by gnulib but are now dropped. Warn when a gnulib file
114669         overwrites a non-gnulib file.
114671 2005-08-31  Bruno Haible  <bruno@clisp.org>
114673         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
114674         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
114675         projects that don't keep autogenerated files in CVS. Put into
114676         actioncmd only the specified modules, not the transitive closure.
114678 2005-08-31  Bruno Haible  <bruno@clisp.org>
114680         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
114681         Create directories that shall be filled.
114682         (import): Don't look for gl_* macros in configure.ac. Recurse across
114683         all directories containing a gnulib-cache.m4 files, if meaningful.
114685 2005-08-31  Bruno Haible  <bruno@clisp.org>
114687         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
114688         (import): Set seen_libtool when we see gl_LIBTOOL.
114690 2005-08-31  Bruno Haible  <bruno@clisp.org>
114692         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
114693         declaration macro definitions from generated gnulib.m4.
114695 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
114697         * lib/iconvme.h: Add prototype for iconv_alloc.
114699 2005-08-29  Simon Josefsson  <jas@extundo.com>
114701         * lib/iconvme.c: Fix errno.
114703 2005-08-29  Bruno Haible  <bruno@clisp.org>
114705         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
114706         that it works when the directory contains spaces.
114708 2005-08-29  Bruno Haible  <bruno@clisp.org>
114710         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
114712 2005-08-29  Bruno Haible  <bruno@clisp.org>
114714         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
114715         Emit more advice.
114717 2005-08-29  Bruno Haible  <bruno@clisp.org>
114718         and Stepan Kasal  <kasal@ucw.cz>
114720         * check-module: If more parameters are given, check each of them
114721         separately; add more exceptions, as noted by Jim Meyering.
114722         (check_module): New procedure.
114723         (%exempt_header): Now contains all exceptions.
114725 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
114727         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
114729 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
114731         * lib/iconvme.c: Split iconv_string into iconv_alloc.
114733 2005-08-28  Bruno Haible  <bruno@clisp.org>
114735         * m4/gnulib-tool.m4: New file.
114737 2005-08-27  Jim Meyering  <jim@meyering.net>
114739         * modules/unistd-safer (Files): Add pipe-safer.c.
114740         * modules/fcntl-safer (Files): Add creat-safer.c.
114742 2005-08-27  Jim Meyering  <jim@meyering.net>
114744         * m4/stdlib-safer.m4: New file.  From coreutils.
114745         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
114746         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
114747         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
114748         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
114749         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
114751 2005-08-27  Jim Meyering  <jim@meyering.net>
114753         * lib/fopen-safer.c: Merge minor changes from coreutils.
114754         * lib/dup-safer.c: Likewise.
114755         * lib/fd-safer.c: Likewise.
114757         Merge from coreutils.
114758         * lib/stdio--.h: New file.
114759         * lib/stdlib--.h: New file.
114760         * lib/mkstemp-safer.c: New file.
114762         GNU tar needs these.
114763         * lib/pipe-safer.c: New file.
114764         * lib/creat-safer.c: New file.
114765         * lib/fcntl--.h (creat): Define to creat_safer.
114766         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
114767         * lib/unistd--.h (pipe): Define to pipe_safer.
114768         * lib/unistd-safer.h: Declare pipe_safer.
114770 2005-08-26  Simon Josefsson  <jas@extundo.com>
114772         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
114773         Haible <bruno@clisp.org>.
114775 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
114777         * lib/regex_internal.h: Remove all references to
114778         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
114779         or better.
114780         (bitset_not, bitset_merge, bitset_not_merge):
114781         (bitset_mask, re_string_allocate, re_string_construct):
114782         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
114783         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
114784         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
114785         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
114786         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
114787         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
114788         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
114789         (re_acquire_state_context):
114790         Remove unnecessary forward decls.
114791         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
114792         Put __attribute at function definition,
114793         now that the function decl has been removed.
114794         * lib/regex_internal.c (re_string_peek_byte_case):
114795         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
114796         Likewise.
114798 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
114800         * m4/regex.m4: Add AC_PREREQ(2.50).
114801         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
114803 2005-08-25  Simon Josefsson  <jas@extundo.com>
114805         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
114806         __fsetlocking.
114808 2005-08-25  Simon Josefsson  <jas@extundo.com>
114810         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
114811         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
114812         GLIBC specific code.
114814 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114816         Make regex safe for g++.  This fixes one real bug (an "err"
114817         that should have been "*err").  g++ problem reported by
114818         Sam Steingold.
114819         * lib/regex_internal.h (re_calloc): New macro, consistent with
114820         re_malloc etc.  All callers of calloc changed to use re_calloc.
114821         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
114822         not int.  All callers changed.
114823         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
114824         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
114825         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
114826         (find_recover_state): Change "err" to "*err"; this fixes what
114827         appears to be a real bug.
114828         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
114829         versus int.
114831 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114833         * modules/regex (Depends-on): Add malloc, since the code
114834         assumes that !malloc(0) means failure.
114836 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114838         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
114840         alloca modernization/simplification for regex.
114841         * lib/regex.c: Remove portability cruft for alloca.  This no longer
114842         needs to be at the start of the file, and can be moved into
114843         regex_internal.h and simplified.
114844         * lib/regex_internal.h: Include <alloca.h>.
114845         (__libc_use_alloca) [!defined _LIBC]: New macro.
114846         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
114847         now works outside glibc.
114849 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114851         * config/srclist.txt: Add glibc bugs 1241, 1245.
114853 2005-08-25  Jim Meyering  <jim@meyering.net>
114855         * lib/open-safer.c: Include <config.h>.
114856         Otherwise, we'd lose LARGEFILE support in any file using
114857         e.g. "fcntl--.h"
114859 2005-08-25  Bruno Haible  <bruno@clisp.org>
114861         * m4/minmax.m4: Require autoconf 2.52.
114862         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
114863         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
114864         alternatives of translit over the alphabet.
114865         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
114867 2005-08-24  Simon Josefsson  <jas@extundo.com>
114869         * tests/test-getpass.c: New file.
114871 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114873         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
114874         for GNU regex features.
114876 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114878         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
114879         * lib/regex.h (regerror): Likewise.
114881         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
114882         requires this.  (The code never needed it.)
114884         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
114885         All uses of recently-renamed identifiers changed to use the new,
114886         POSIX-compliant names.  The code will build and run just fine
114887         without these changes, but it's better to eat our own dog food
114888         and use the standard-conforming names.
114890         * lib/regex.h: Fix a multitude of POSIX name space violations.
114891         These changes have an effect only for programs that define
114892         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
114893         do not change anything for programs compiled in the normal way.
114894         Also, there is no effect on the ABI.
114896         (_REGEX_SOURCE): New macro.
114897         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
114898         defined and _GNU_SOURCE is not; this fixes a name space violation.
114900         Rename the following macros to obey POSIX requirements.
114901         The old names are still visible as macros if _REGEX_SOURCE is defined.
114902         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
114903         RE_BACKSLASH_ESCAPE_IN_LISTS.
114904         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
114905         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
114906         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
114907         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
114908         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
114909         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
114910         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
114911         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
114912         (REG_INTERVALS): renamed from RE_INTERVALS.
114913         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
114914         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
114915         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
114916         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
114917         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
114918         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
114919         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
114920         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
114921         RE_UNMATCHED_RIGHT_PAREN_ORD.
114922         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
114923         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
114924         (REG_DEBUG): renamed from RE_DEBUG.
114925         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
114926         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
114927         unusual, since we can't clash with the POSIX REG_ICASE.
114928         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
114929         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
114930         (REG_NO_SUB): renamed from RE_NO_SUB.
114931         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
114932         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
114933         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
114934         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
114935         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
114936         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
114937         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
114938         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
114939         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
114940         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
114941         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
114942         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
114943         RE_SYNTAX_POSIX_MINIMAL_BASIC.
114944         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
114945         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
114946         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
114947         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
114948         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
114949         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
114950         (REG_FIXED): Renamed from REGS_FIXED.
114951         (REG_NREGS): Renamed from RE_NREGS.
114953         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
114954         of other REG_* macros, since POSIX says the user is allowed to
114955         #undef these macros selectively.
114957         (reg_errcode_t): Update comment stating what other tables need
114958         to be consistent.
114960         Rename the following enum values to obey POSIX requirements.
114961         The old names are still visible as macros.
114962         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
114963         is not defined, since GNU is supposed to be a superset of POSIX as
114964         much as possible, and since we want reg_errcode_t to be a signed
114965         type for implementation consistency.
114966         (_REG_NOERROR): Renamed from REG_NOERROR.
114967         (_REG_NOMATCH): Renamed from REG_NOMATCH.
114968         (_REG_BADPAT): Renamed from REG_BADPAT.
114969         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
114970         (_REG_ECTYPE): Renamed from REG_ECTYPE.
114971         (_REG_EESCAPE): Renamed from REG_EESCAPE.
114972         (_REG_ESUBREG): Renamed from REG_ESUBREG.
114973         (_REG_EBRACK): Renamed from REG_EBRACK.
114974         (_REG_EPAREN): Renamed from REG_EPAREN.
114975         (_REG_EBRACE): Renamed from REG_EBRACE.
114976         (_REG_BADBR): Renamed from REG_BADBR.
114977         (_REG_ERANGE): Renamed from REG_ERANGE.
114978         (_REG_ESPACE): Renamed from REG_ESPACE.
114979         (_REG_BADRPT): Renamed from REG_BADRPT.
114980         (_REG_EEND): Renamed from REG_EEND.
114981         (_REG_ESIZE): Renamed from REG_ESIZE.
114982         (_REG_ERPAREN): Renamed from REG_ERPAREN.
114983         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
114984         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
114985         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
114986         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
114988         (_REG_RE_NAME, _REG_RM_NAME): New macros.
114989         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
114990         changed.  But support the old name if the new one is not defined
114991         and if _REGEX_SOURCE.
114993         Change the following member names in struct re_pattern_buffer.
114994         The old names are still supported if !_REGEX_SOURCE.
114995         The new names are always supported, regardless of _REGEX_SOURCE.
114996         (re_buffer): Renamed from buffer.
114997         (re_allocated): Renamed from allocated.
114998         (re_used): Renamed from used.
114999         (re_syntax): Renamed from syntax.
115000         (re_fastmap): Renamed from fastmap.
115001         (re_translate): Renamed from translate.
115002         (re_can_be_null): Renamed from can_be_null.
115003         (re_regs_allocated): Renamed from regs_allocated.
115004         (re_fastmap_accurate): Renamed from fastmap_accurate.
115005         (re_no_sub): Renamed from no_sub.
115006         (re_not_bol): Renamed from not_bol.
115007         (re_not_eol): Renamed from not_eol.
115008         (re_newline_anchor): Renamed from newline_anchor.
115010         Change the following member names in struct re_registers.
115011         The old names are still supported if !_REGEX_SOURCE.
115012         The new names are always supported, regardless of _REGEX_SOURCE.
115013         (rm_num_regs): Renamed from num_regs.
115014         (rm_start): Renamed from start.
115015         (rm_end): Renamed from end.
115017         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
115018         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
115019         Prepend __ to parameter names.
115021         Undo yesterday's changes.
115023 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
115025         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
115026         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
115027         lib/regex.c.
115029 2005-08-24  Jim Meyering  <jim@meyering.net>
115031         Sync from coreutils.
115032         * m4/fcntl-safer.m4: New file.
115034         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
115035         and object files for this module.
115037 2005-08-24  Jim Meyering  <jim@meyering.net>
115039         Sync from coreutils.
115040         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
115042 2005-08-24  Jim Meyering  <jim@meyering.net>
115044         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
115045         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
115047 2005-08-24  Jim Meyering  <jim@meyering.net>
115049         * modules/fcntl-safer: New module.
115050         * modules/fts (Depends-on): Add fcntl-safer.
115051         * MODULES.html.sh (File descriptor based Input/Output):
115052         Add fcntl-safer.
115054 2005-08-24  Bruno Haible  <bruno@clisp.org>
115056         Support for unit test modules.
115057         * modules/README: Mention tests modules.
115058         * modules/TEMPLATE-TESTS: New file.
115059         * gnulib-tool: New options --extract-tests-module, --with-tests and
115060         --tests-base (unused for the moment).
115061         (testsbase, inctests): New variables.
115062         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
115063         (func_verify_module): Exclude TEMPLATE-TESTS.
115064         (func_verify_nontests_module, func_verify_tests_module): New functions.
115065         (func_get_dependencies): Add implicit dependency for tests modules.
115066         (func_get_tests_module): New function.
115067         (func_modules_transitive_closure): When --with-tests was specified,
115068         include the unit tests as well, unless explicitly avoided.
115069         (func_emit_lib_Makefile_am): Ignore the tests modules here.
115070         (func_emit_tests_Makefile_am): New function.
115071         (func_create_testdir): When --with-tests was specified, emit a
115072         tests/ directory.
115073         * MODULES.html.sh (Future developments): Update.
115075 2005-08-24  Bruno Haible  <bruno@clisp.org>
115077         * modules/tls-tests: New file.
115078         * tests/test-tls.c: New file, from GNU gettext.
115080 2005-08-24  Bruno Haible  <bruno@clisp.org>
115082         * modules/lock-tests: New file.
115083         * tests/test-lock.c: New file, from GNU gettext.
115085 2005-08-24  Bruno Haible  <bruno@clisp.org>
115087         * lib/lock.h: Add multiple inclusion guard.
115088         * lib/tls.h: Add multiple inclusion guard.
115090 2005-08-24  Bruno Haible  <bruno@clisp.org>
115092         * gnulib-tool: Add support for the --aux-dir option to
115093         --create-testdir, --create-megatestdir, --test, --megatest.
115094         (func_create_testdir, func_create_megatestdir): Optionally emit a
115095         AC_CONFIG_AUX_DIR directive.
115096         (create-testdir, create-megatestdir, test, megatest): Provide a
115097         default value for $auxdir.
115099 2005-08-24  Bruno Haible  <bruno@clisp.org>
115101         * gnulib-tool (import): Use compound statement instead of subshell
115102         where possible.
115104 2005-08-24  Bruno Haible  <bruno@clisp.org>
115106         * gnulib-tool (import): Change --aux-dir default to "build-aux".
115108 2005-08-24  Bruno Haible  <bruno@clisp.org>
115110         * gnulib-tool (func_version): Update.
115112 2005-08-24  Bruno Haible  <bruno@clisp.org>
115114         * gnulib-tool (func_import, func_create_testdir,
115115         func_create_megatestdir): Quote all autoconf macro arguments.
115117 2005-08-24  Bruno Haible  <bruno@clisp.org>
115119         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
115120         option --force, because --force causes the aclocal.m4 of each
115121         subdirectory to be newer than the corresponding config.h.in.
115123 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
115125         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
115126         All contents moved to gl_REGEX.
115127         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
115128         assume that it does.
115130 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
115132         * lib/regex.h (REG_NOSYS)
115133         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
115134         Define, since POSIX requires it as of 2001.
115135         (_REG_ENOSYS)
115136         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
115137         New private symbol, used to keep the enum signed in all cases.
115138         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
115139         Youngman in
115140         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
115142         * lib/regex_internal.c (re_string_skip_chars, register_state):
115143         (calc_state_hash):
115144         Remove forward decls; no longer needed now that we use prototypes.
115145         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
115146         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
115147         (clean_state_log_if_needed): Likewise.
115149 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
115151         * config/srclist.txt: Add glibc bugs 1231-1233.
115153 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115155         Fix problems reported by Sam Steingold in
115156         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
115157         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
115158         assumed that reg_errcode_t is a signed type, which is not
115159         necessarily true if _XOPEN_SOURCE is not defined.
115160         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
115161         since some compilers warn about it otherwise.
115163 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115165         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
115166         (init_word_char, create_initial_state, duplicate_node_closure):
115167         (fetch_token, peek_token_bracket, build_range_exp):
115168         (build_collating_symbol): Remove forward decls; no longer needed
115169         now that we use prototypes.
115171         * lib/regcomp.c:
115172         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
115173         (re_compile_fastmap_iter, regcomp, regerror, regfree):
115174         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
115175         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
115176         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
115177         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
115178         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
115179         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
115180         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
115181         (build_range_exp, build_collating_symbol, parse_bracket_exp):
115182         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
115183         (build_charclass, build_charclass_op, fetch_number, create_tree):
115184         (create_token_tree, mark_opt_subexp, duplicate_tree):
115185         Use prototypes rather than old-style definitions.
115187         * lib/regex_internal.c:
115188         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
115189         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
115190         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
115191         (re_string_reconstruct, re_string_peek_byte_case):
115192         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
115193         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
115194         (re_node_set_init_copy, re_node_set_add_intersect):
115195         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
115196         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
115197         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
115198         (re_acquire_state, re_acquire_state_context, register_state):
115199         (create_ci_newstate, create_cd_newstate, free_state):
115200         Likewise.
115201         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
115202         re_search_2):
115203         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
115204         (re_search_internal, prune_impossible_nodes):
115205         (acquire_init_state_context, check_matching, static):
115206         (check_halt_node_context, check_halt_state_context, proceed_next_node):
115207         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
115208         (update_regs, sift_states_backward, build_sifted_states):
115209         (clean_state_log_if_needed, merge_state_array):
115210         (update_cur_sifted_state, add_epsilon_src_nodes):
115211         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
115212         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
115213         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
115214         (find_recover_state, check_subexp_matching_top, transit_state_mb):
115215         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
115216         (check_arrival, check_arrival_add_next_nodes):
115217         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
115218         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
115219         (check_node_accept_bytes, check_node_accept, extend_buffers):
115220         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
115221         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
115222         (sift_ctx_init):
115223         Likewise.
115225         * lib/regex_internal.h:
115226         (re_string_allocate, re_string_construct, re_string_reconstruct):
115227         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
115228         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
115229         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
115230         (re_string_context_at, re_string_peek_byte_case):
115231         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
115232         is defined, since we now use prototypes always.
115234         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
115235         C89 or better.  All uses removed.
115237 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115239         * config/srclist.txt: Add glibc bugs 1220-1227.
115241 2005-08-20  Jim Meyering  <jim@meyering.net>
115243         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
115244         of unused local, dfa.
115246 2005-08-20  Bruno Haible  <bruno@clisp.org>
115248         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
115250 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115252         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
115253         (re_node_set_insert_last, re_dfa_add_node):
115254         Rename local variables to avoid GCC shadowing warnings.
115256 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115258         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
115259         [defined lint]: Suppress bogus uninitialized-variable warnings.
115261         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
115262         and let the caller return REG_ESPACE if out of space.  This
115263         removes an uninitialied-variable warning with GCC 4.0.1, and also
115264         avoids taking the address of a local variable.  All callers
115265         changed.
115267 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115269         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
115270         $LIBCSRC/posix/regexec.c.
115271         Add glibc bug 1217 for regcomp.c.
115273 2005-08-19  Jim Meyering  <jim@meyering.net>
115275         * lib/regexec.c (proceed_next_node): Redo local variables to
115276         avoid GCC shadowing warnings.
115278 2005-08-18  Bruno Haible  <bruno@clisp.org>
115280         * lib/strstr.c (strstr): Fix return value in multibyte case.
115281         * lib/strcasestr.c (strcasestr): Likewise.
115283 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115285         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
115287 2005-08-17  Jim Meyering  <jim@meyering.net>
115289         Make the %s format (seconds since the epoch) work for a negative
115290         number and when used with a zero-padded field width, e.g. %015s.
115292         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
115293         label so that it precedes the code to set `digits'.  Otherwise,
115294         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
115295         print `00-22'.  Now, it prints `-0022', as it should.
115297 2005-08-17  Bruno Haible  <bruno@clisp.org>
115299         * modules/strstr (Files): Add m4/mbrtowc.m4.
115300         (Depends-on): Add mbuiter.
115302 2005-08-17  Bruno Haible  <bruno@clisp.org>
115304         * modules/strcasestr: New file.
115305         * MODULES.html.sh (String handling, based on ANSI C 89): Add
115306         strcasestr.
115308 2005-08-17  Bruno Haible  <bruno@clisp.org>
115310         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
115312 2005-08-17  Bruno Haible  <bruno@clisp.org>
115314         * modules/mbuiter: New file.
115315         * MODULES.html.sh (Extended multibyte and wide character utilities):
115316         Add mbuiter.
115318 2005-08-17  Bruno Haible  <bruno@clisp.org>
115320         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
115321         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
115323 2005-08-17  Bruno Haible  <bruno@clisp.org>
115325         * m4/strcasestr.m4: New file.
115327 2005-08-17  Bruno Haible  <bruno@clisp.org>
115329         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
115330         * lib/strstr.c: Completely rewritten, with multibyte locale support.
115332 2005-08-17  Bruno Haible  <bruno@clisp.org>
115334         * lib/strcasestr.h: New file.
115335         * lib/strcasestr.c: New file.
115337 2005-08-17  Bruno Haible  <bruno@clisp.org>
115339         * lib/strcasecmp.c: Use mbuiter.h.
115341 2005-08-17  Bruno Haible  <bruno@clisp.org>
115343         * lib/mbuiter.h: New file.
115345 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
115347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
115348         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
115349         and gl_GETOPT are both invoked via different paths (as happens
115350         with GNU tar CVS because it uses both argp and getopt), the former
115351         wins.
115353 2005-08-16  Bruno Haible  <bruno@clisp.org>
115355         * modules/tls: New file.
115356         * MODULES.html.sh (Multithreading): Add tls.
115358 2005-08-16  Bruno Haible  <bruno@clisp.org>
115360         * modules/strnlen1: New file.
115361         * MODULES.html.sh (String handling): Add strnlen1.
115363 2005-08-16  Bruno Haible  <bruno@clisp.org>
115365         * modules/strcase (Files): Add m4/mbrtowc.m4.
115366         (Depends-on): Add strnlen1, mbchar.
115368 2005-08-16  Bruno Haible  <bruno@clisp.org>
115370         * modules/mbiter: New file.
115371         * MODULES.html.sh (Extended multibyte and wide character utilities):
115372         Add mbiter.
115374 2005-08-16  Bruno Haible  <bruno@clisp.org>
115376         * modules/mbfile: New file.
115377         * MODULES.html.sh (Extended multibyte and wide character utilities):
115378         Add mbfile.
115380 2005-08-16  Bruno Haible  <bruno@clisp.org>
115382         * modules/mbchar: New file.
115383         * MODULES.html.sh (Extended multibyte and wide character utilities):
115384         New section.
115386 2005-08-16  Bruno Haible  <bruno@clisp.org>
115388         * m4/tls.m4: New file, from GNU gettext.
115390 2005-08-16  Bruno Haible  <bruno@clisp.org>
115392         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
115393         always.
115394         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
115396 2005-08-16  Bruno Haible  <bruno@clisp.org>
115398         * m4/mbiter.m4: New file.
115400 2005-08-16  Bruno Haible  <bruno@clisp.org>
115402         * m4/mbfile.m4: New file.
115404 2005-08-16  Bruno Haible  <bruno@clisp.org>
115406         * m4/mbchar.m4: New file.
115408 2005-08-16  Bruno Haible  <bruno@clisp.org>
115410         * lib/tls.h: New file, from GNU gettext.
115411         * lib/tls.c: New file, from GNU gettext.
115413 2005-08-16  Bruno Haible  <bruno@clisp.org>
115415         * lib/strnlen1.h: New file.
115416         * lib/strnlen1.c: New file.
115418 2005-08-16  Bruno Haible  <bruno@clisp.org>
115420         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
115421         (mbi_init): Update.
115422         (mbi_avail, mbi_advance): Let the iteration end before the terminating
115423         NUL byte, not after it.
115425 2005-08-16  Bruno Haible  <bruno@clisp.org>
115427         * lib/strcase.h (strcasecmp): Add note in comments.
115428         * lib/strncasecmp.c: Use code from strcasecmp.c.
115429         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
115430         (strcasecmp): Work correctly in multibyte locales.
115432 2005-08-16  Bruno Haible  <bruno@clisp.org>
115434         * lib/mbiter.h: New file.
115436 2005-08-16  Bruno Haible  <bruno@clisp.org>
115438         * lib/mbfile.h: New file.
115440 2005-08-16  Bruno Haible  <bruno@clisp.org>
115442         * lib/mbchar.h: New file.
115443         * lib/mbchar.c: New file.
115445 2005-08-16  Bruno Haible  <bruno@clisp.org>
115447         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
115448         the valid ones. Makes the comparison operations transitive:
115449         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
115450         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
115452 2005-08-15  Simon Josefsson  <jas@extundo.com>
115454         * modules/ssize_t (License): Change to 'unlimited'.
115456         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
115458 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115460         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
115461         Add comments for each pending glibc patch.
115463 2005-08-15  Bruno Haible  <bruno@clisp.org>
115465         * lib/regex.h (__restrict_arr): Don't define to __restrict if
115466         __cplusplus is defined.
115468 2005-08-14  Jim Meyering  <jim@meyering.net>
115470         Sync from coreutils.
115472         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
115473         Use the hash-table-based cycle-detection code not just when
115474         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
115475         Reported by James Youngman in
115476         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
115477         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
115478         FTS_TIGHT_CYCLE_CHECK.
115479         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
115480         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
115481         once again.
115482         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
115483         * lib/fts.c (fd_safer): Remove decl.
115484         Include fcntl--.h rather than unistd-safer.h
115485         (fts_safe_changedir): Don't call fd_safer; no longer needed
115486         now that we include fcntl--.h.
115488 2005-08-12  Simon Josefsson  <jas@extundo.com>
115490         * modules/getndelim2: Use ssize_t module.
115491         * modules/getnline: Likewise.
115492         * modules/safe-read: Likewise.
115493         * modules/xreadlink: Likewise.
115495         * modules/ssize_t: New file.
115497 2005-08-12  Simon Josefsson  <jas@extundo.com>
115499         * m4/readline.m4: Look for termcap, curses or ncurses if required.
115501 2005-08-12  Simon Josefsson  <jas@extundo.com>
115503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115504         ssize_t.
115506 2005-08-12  Simon Josefsson  <jas@extundo.com>
115508         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
115509         readline, getdelim and check_version.
115510         (Support for systems lacking ISO C 99: Sizes of integer types):
115511         Add size_max.
115513 2005-08-12  Bruno Haible  <bruno@clisp.org>
115515         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
115517 2005-08-11  Simon Josefsson  <jas@extundo.com>
115519         * modules/readline: New file.
115521         * modules/strnlen (Files): Add strnlen.h.
115523 2005-08-11  Simon Josefsson  <jas@extundo.com>
115525         * m4/readline.m4: New file.
115527 2005-08-11  Simon Josefsson  <jas@extundo.com>
115529         * lib/readline.h, readline.c: New file.
115531 2005-08-11  Simon Josefsson  <jas@extundo.com>
115533         * doc/gnulib.texi (Initial import, Finishing touches): Mention
115534         gl_AVOID.
115536 2005-08-11  Bruno Haible  <bruno@clisp.org>
115538         * lib/strnlen.h (strnlen): Change parameter name to match comment.
115540 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
115542         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
115544 2005-08-10  Simon Josefsson  <jas@extundo.com>
115546         * tests/test-iconvme.c: New file.
115548 2005-08-10  Simon Josefsson  <jas@extundo.com>
115550         * m4/strnlen.m4: New file.
115552         * m4/strndup.m4: Don't check for strnlen declaration, done in
115553         strnlen.m4.
115555 2005-08-10  Simon Josefsson  <jas@extundo.com>
115557         * lib/strndup.c: Use strnlen.h.
115559         * lib/strnlen.h: New file.
115561 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115563         * README: Typos.
115565 2005-08-02  Simon Josefsson  <jas@extundo.com>
115567         * modules/readline: New file.
115569 2005-08-02  Simon Josefsson  <jas@extundo.com>
115571         * modules/getdelim: New file.
115573         * modules/getline: Rewrite, don't use getndelim2.
115575 2005-08-02  Simon Josefsson  <jas@extundo.com>
115577         * m4/getline.m4: Separate out getdelim stuff into separate module.
115579         * m4/getdelim.m4: New file.
115581 2005-08-02  Simon Josefsson  <jas@extundo.com>
115583         * lib/getline.h, getline.c: Rewrite.
115585         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
115587 2005-07-31  Bruno Haible  <bruno@clisp.org>
115589         * lib/lock.h (gl_lock_initializer): New macro.
115590         (gl_lock_define_initialized): Use it.
115591         (gl_rwlock_initializer): New macro.
115592         (gl_rwlock_define_initialized): Use it.
115593         (gl_recursive_lock_initializer): New macro.
115594         (gl_recursive_lock_define_initialized): Use it.
115596 2005-07-30  Karl Berry  <karl@gnu.org>
115598         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
115599         Report from Ben Pfaff, regarding getopt.
115601 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
115603         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
115604         normal way.
115605         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
115606         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
115607         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
115608         (gl_GETOPT): Use the new macros.  Most of the implementation
115609         is moved to the new macros.  This is for programs like Emacs
115610         that don't want all the functionality of gl_GETOPT.
115612 2005-07-26  Bruno Haible  <bruno@clisp.org>
115614         * m4/lock.m4: Update from GNU gettext.
115616 2005-07-26  Bruno Haible  <bruno@clisp.org>
115618         * lib/lock.h: Update from GNU gettext.
115619         * lib/lock.c: Update from GNU gettext.
115621 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
115623         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
115624         obsolescent AC_TRY_RUN.  Include the default includes files, for
115625         'exit'.
115627 2005-07-24  Bruno Haible  <bruno@clisp.org>
115629         * modules/visibility: New file.
115630         * MODULES.html.sh (Misc): Add visibility.
115632 2005-07-24  Bruno Haible  <bruno@clisp.org>
115634         * m4/visibility.m4: New file.
115636 2005-07-24  Bruno Haible  <bruno@clisp.org>
115638         * doc/visibility.texi: New file.
115640 2005-07-22  Bruno Haible  <bruno@clisp.org>
115642         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
115643         $(ALLOCA_H), redundant through BUILT_SOURCES.
115644         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
115645         redundant through BUILT_SOURCES.
115646         * modules/byteswap (Makefile.am): Remove explicit dependency on
115647         $(BYTESWAP_H), redundant through BUILT_SOURCES.
115648         * modules/fnmatch (Makefile.am): Remove explicit dependency on
115649         $(FNMATCH_H), redundant through BUILT_SOURCES.
115650         * modules/getopt (Makefile.am): Remove explicit dependency on
115651         $(GETOPT_H), redundant through BUILT_SOURCES.
115652         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
115653         redundant through BUILT_SOURCES.
115654         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
115655         redundant through BUILT_SOURCES.
115656         * modules/stdbool (Makefile.am): Remove explicit dependency on
115657         $(STDBOOL_H), redundant through BUILT_SOURCES.
115658         * modules/stdint (Makefile.am): Remove explicit dependency on
115659         $(STDINT_H), redundant through BUILT_SOURCES.
115660         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
115661         Remove explicit dependency on $(SYSEXITS_H).
115662         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
115664 2005-07-18  Simon Josefsson  <jas@extundo.com>
115666         * lib/check-version.c (check_version): Accept identical versions too.
115668 2005-07-18  Bruno Haible  <bruno@clisp.org>
115670         * modules/lock: New file.
115671         * MODULES.html.sh (Multithreading): New section.
115673 2005-07-18  Bruno Haible  <bruno@clisp.org>
115675         * m4/lock.m4: New file, from GNU gettext.
115677 2005-07-18  Bruno Haible  <bruno@clisp.org>
115679         * lib/lock.h: New file, from GNU gettext.
115680         * lib/lock.c: New file, from GNU gettext.
115682 2005-07-18  Bruno Haible  <bruno@clisp.org>
115684         * lib/lock.h (gl_once_t): New type.
115685         (gl_once_define, gl_once): New macros.
115686         * lib/lock.c (fresh_once): New variable.
115687         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
115688         functions.
115690 2005-07-16  Simon Josefsson  <jas@extundo.com>
115692         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
115693         workaround, suggested by Bruno.
115695 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
115697         * modules/xalloc (Depends-on): Add xalloc-die.
115698         * modules/xvasprintf (Depends-on): Add xalloc-die.
115700 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
115702         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
115703         with a minor change.
115705 2005-07-15  Bruno Haible  <bruno@clisp.org>
115707         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
115708         When using lib/poll.c, define poll as rpl_poll.
115710 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
115712         * modules/argp (Depends-on): Remove unlocked-io.
115714 2005-07-14  Derek Price  <derek@ximbiot.com>
115716         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
115717         for glob symlink bug.
115719 2005-07-14  Bruno Haible  <bruno@clisp.org>
115721         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
115722         Instead, test for *_unlocked function declarations directly.
115724 2005-07-11  Simon Josefsson  <jas@extundo.com>
115726         * modules/size_max: New file.
115728         * modules/xsize: Depend on size_max module for size_max.m4.
115730 2005-07-11  Simon Josefsson  <jas@extundo.com>
115732         * lib/size_max.h: New file.
115734 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
115736         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
115737         copyright symbol and the year.
115738         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
115739         (version_etc_va): Use parameterized copyright notice.
115740         Reword to conform to the current GNU coding standards.
115742 2005-07-11  Karl Berry  <karl@gnu.org>
115744         * doc/gnulib.texi (Quoting): new node.
115745         (Initial import): more info, from Patrice.
115747 2005-07-11  Bruno Haible  <bruno@clisp.org>
115749         * gnulib-tool (func_usage): Document option --avoid.
115750         (Command line options): Handle --avoid.
115751         (func_acceptable): New function.
115752         (func_modules_transitive_closure): Use it.
115754 2005-07-11  Bruno Haible  <bruno@clisp.org>
115756         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
115757         Reported by Jim Meyering.
115759 2005-07-10  Bruno Haible  <bruno@clisp.org>
115761         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
115762         Needed when size_t is smaller than 'unsigned int'.
115763         Reported by Paul Eggert.
115765 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115767         * modules/argp (Depends-on): Add unlocked-io
115769 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115771         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
115772         block of defines.
115774 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115776         * config/srclist.txt: Comment out regcomp.c, since we have a porting
115777         fix now.
115779 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
115780         and Paul Eggert  <eggert@cs.ucla.edu>
115782         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
115783         in wint_t, not wchar_t.  Remove now-unnecessary cast.
115785 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115787         * modules/regex (Files): Add lib/regex_internal.c,
115788         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
115789         (Depends-on): Add extensions.
115790         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
115792 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115794         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
115795         pathconf.
115796         * m4/same.m4 (gl_SAME): Likewise.
115797         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
115799         * m4/regex.m4: Adjust to new libc regex implementation.
115800         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
115801         all the .c and .h parts of (the new) regex.
115802         Quote the m4 stuff better.
115803         Check for RE_ICASE bug of old gnulib.
115804         Check for REG_STARTEND of recent libc.
115805         Rename local variables from jm_* to gl_*.
115806         Quote operand of "test -f".
115807         Say "recent enough" version of libc, not "version 2".
115808         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
115809         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
115810         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
115811         Remove check for btowc, isascii.
115812         Require AM_LANGINFO_CODESET.
115814 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115816         * lib/regex.c, regex.h: Sync from libc.
115817         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
115818         * lib/regexec.c:
115819         New files, synced from libc, except that regex_internal.h
115820         currently has a small porting fix.
115822 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115824         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
115825         regex_internal.c, regexec.c.
115826         Add regex_internal.h too, but as a comment, since the libc version
115827         is currently broken in gnulib mode.
115829 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115831         Support programs like Emacs that use gnulib but not gettext.
115832         * MODULES.html.sh (Internationalization functions): Add gettext-h.
115833         * modules/gettext-h: New file.
115834         * modules/gettext (Files): Remove lib/gettext.h.
115835         (Depends-on): Add gettext-h.
115836         (Makefile.am): Remove lib_SOURCES.
115837         * modules/argmatch, modules/c-stack, modules/closeout:
115838         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
115839         * modules/execute, modules/file-type, modules/getaddrinfo:
115840         * modules/getopt, modules/human, modules/javacomp:
115841         * modules/javaexec, modules/mkdir-p, modules/obstack:
115842         * modules/openat, modules/pagealign_alloc, modules/pipe:
115843         * modules/quotearg, modules/regex, modules/rpmatch:
115844         * modules/unicodeio, modules/userspec, modules/version-etc:
115845         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
115846         * modules/xsetenv:
115847         Depend on gettext-h, not gettext.
115849 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115851         * gnulib-tool (func_import): Add support for 'public domain' license.
115852         * modules/alloca, modules/atexit, modules/memmove:
115853         Now public domain, not GPL.
115854         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
115855         * modules/realloc, modules/strerror, modules/strtod:
115856         Now LGPL, not GPL.
115858 2005-07-05  Bruno Haible  <bruno@clisp.org>
115860         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
115861         autoconf CVS. Needed for mingw.
115863 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115865         Remove the dependency of the strftime module on the tzset module.
115866         * modules/strftime (Depends-on): Remove dependency on tzset.
115868 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115870         Remove the dependency of the strftime module on the tzset module.
115871         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
115872         gl_FUNC_TZSET_CLOBBER.
115874 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115876         Remove the dependency of the strftime module on the tzset module.
115877         * lib/strftime.c (my_strftime)
115878         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
115879         Copy the input structure, to work around some of the bug with
115880         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
115881         Solaris releases, you should also use the tzset module, but we won't
115882         require it as a dependency any more since we don't want LGPLed code
115883         to depend on GPLed code.
115885 2005-07-02  Jim Meyering  <jim@meyering.net>
115887         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
115888         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
115889         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
115890         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
115892 2005-07-02  Jim Meyering  <jim@meyering.net>
115894         * lib/backupfile.c (backup_args): Change a `0' to NULL.
115896 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115898         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
115899         declares only 'struct timespec;' (!).
115901 2005-07-01  Jim Meyering  <jim@meyering.net>
115903         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
115904         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
115905         * lib/save-cwd.c, tempname.c:
115906         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115907         and don't include <sys/file.h>).
115909 2005-06-29  Jim Meyering  <jim@meyering.net>
115911         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
115912         type name.  Use the variable name instead.
115913         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
115914         Likewise.
115916 2005-06-28  Simon Josefsson  <jas@extundo.com>
115918         * modules/check-version (Files): Add check-version.m4.
115920 2005-06-28  Simon Josefsson  <jas@extundo.com>
115922         * m4/check-version.m4: New file, suggested by Jim Meyering
115923         <jim@meyering.net>.
115925 2005-06-28  Simon Josefsson  <jas@extundo.com>
115927         * lib/check-version.h, lib/check-version.c: New files.
115929 2005-06-28  Simon Josefsson  <jas@extundo.com>
115931         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
115932         collision with global variable.  Better indentation.  Don't
115933         increment buffer pointer beyond buffer end.  Based on comments
115934         from Paul Eggert <eggert@cs.ucla.edu>.
115936         * lib/base64.h: Indent.
115938 2005-06-28  Simon Josefsson  <jas@extundo.com>
115940         * doc/gnulib.texi (Library version handling): New section.
115942 2005-06-28  Jim Meyering  <jim@meyering.net>
115944         * check-module (find_included_lib_files): Hard-code another
115945         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
115946         but modules/fts-lgpl (correctly) does not list those files.
115948         * modules/canonicalize (Files): Add lib/pathmax.h.
115950 2005-06-25  Simon Josefsson  <jas@extundo.com>
115952         * modules/check-version: New file.
115954 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
115956         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
115957         initializer of struct addrinfo, as an indication that we don't
115958         care how many members the structure has.
115960 2005-06-24  Derek Price  <derek@ximbiot.com>
115961         and Bruno Haible  <bruno@clisp.org>
115963         Remove stat module & update lstat.
115964         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
115965         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115966         * m4/stat.m4: Remove this file.
115968 2005-06-24  Derek Price  <derek@ximbiot.com>
115969         and Bruno Haible  <bruno@clisp.org>
115971         Remove stat module & update lstat.
115972         * lib/stat.c: Remove this file...
115973         (slash_aware_lstat): ...moving this content and its support...
115974         * lib/lstat.c (rpl_lstat): ...into here.
115975         * lib/lstat.h: New file.
115977 2005-06-24  Derek Price  <derek@ximbiot.com>
115978         and Bruno Haible  <bruno@clisp.org>
115980         Remove stat module & update lstat.
115981         * config/srclist.txt (libc sources): Remove stat.
115983 2005-06-24  Derek Price  <derek@ximbiot.com>
115984         and Bruno Haible  <bruno@clisp.org>
115986         Remove stat module & update lstat.
115987         * MODULES.html.sh (stat): Remove.
115988         * MODULES.html: Regenerated.
115989         * modules/lstat (Description): Correct function name.
115990         (Files): Add "lstat.h".
115991         (Depends-on): Remove stat, add xalloc, stat-macros.
115992         * modules/stat: Remove this file.
115993         (Include): Add "lstat.h", remove <sys/stat.h>.
115995 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
115997         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
115998         (ranged_convert): Don't save conversion in a temporary struct.
115999         This causes a warning with GCC 4.0.0, and anyway in the typical
116000         case it's not worth the extra 100 bytes or so of code.
116001         (ranged_convert, __mktime_internal): When calling a function via a
116002         pointer P, use P () rather than (*P) (), as we now assume C89 or
116003         better.
116005 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116007         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
116008         "who -r" failed to give output.  Problem reported by Tim Waugh.
116010         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
116011         (xcalloc): Use it to avoid needless tests.
116012         Problem reported by Jim Meyering.
116014 2005-06-20  Derek Price  <derek@ximbiot.com>
116016         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
116017         unnecessary for Autoconfs > 2.59c.
116019 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
116021         * lib/argp.h (__option_is_short): Check upper limit of
116022         __key. Isprint() requires its argument to have the value
116023         of an unsigned char or EOF.
116025 2005-06-16  Jim Meyering  <jim@meyering.net>
116027         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
116028         when either N or S is zero.
116030 2005-06-16  Derek Price  <derek@ximbiot.com>
116032         * m4/bison.m4: Declare YACC & YFLAGS precious.
116034 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
116036         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
116037         multibyte string or pattern, fall back on unibyte matching.
116038         Problem reported by James Youngman.
116040 2005-06-08  Bruno Haible  <bruno@clisp.org>
116042         * modules/csharpcomp: New file.
116043         * MODULES.html.sh (C#): Add csharpcomp.
116045 2005-06-08  Bruno Haible  <bruno@clisp.org>
116047         * m4/csharpcomp.m4: New file, from GNU gettext.
116049 2005-06-08  Bruno Haible  <bruno@clisp.org>
116051         * lib/csharpcomp.h: New file, from GNU gettext.
116052         * lib/csharpcomp.c: New file, from GNU gettext.
116053         * lib/csharpcomp.sh.in: New file, from GNU gettext.
116055 2005-06-08  Bruno Haible  <bruno@clisp.org>
116057         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
116058         warning on mingw.
116060 2005-06-07  Derek Price  <derek@ximbiot.com>
116062         Sync from CVS.
116063         * lib/glob_.h: Indent nested #ifdef.
116065 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
116067         Sync from coreutils.
116068         Use "file name" when talking about file names, instead of "filename"
116069         or "path", as per the GNU coding standards.
116070         * lib/mkdir-p.c: Renamed from makepath.c.
116071         (make_dir_parents): Renamed from make_path.  All callers changed.
116072         * lib/mkdir-p.h: Likewise.  All includers changed.
116073         * lib/filenamecat.c: Renamed from path-concat.c.
116074         (file_name_concat): Renamed from path_concat.  All callers changed.
116075         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
116076         * lib/filenamecat.h: Likewise.  All includers changed.
116077         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
116078         in comments or local variable names.
116079         * lib/basename.c: Likewise.
116080         * lib/canonicalize.c, canonicalize.h: Likewise.
116081         * lib/dirname.c, dirname.h: Likewise.
116082         * lib/euidaccess.c: Likewise.
116083         * lib/exclude.c: Likewise
116084         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
116085         * lib/fsusage.c, fsuage.h: Likewise.
116086         * lib/fts.c, fts_.h: Likewise.
116087         * lib/getcwd.c: Likewise.
116088         * lib/getloadavg.c: Likewise.
116089         * lib/mkstemp.c: Likewise.
116090         * lib/mountlist.c, mountlist.h: Likewise.
116091         * lib/openat.c, openat.h: Likewise.
116092         * lib/readlink-stub.c: Likewise.
116093         * lib/readutmp.c, readutmp.h: Likewise.
116094         * lib/rename.c: Likewise.
116095         * lib/rmdir.c: Likewise.
116096         * lib/same.c: Likewise.
116097         * lib/savedir.c: Likewise.
116098         * lib/stripslash.c: Likewise.
116099         * lib/tempname.c: Likewise.
116100         * lib/xreadlink.c: Likewise.
116101         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
116102         All uses changed.
116103         * lib/exclude.h: Likewise.
116105         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
116106         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
116107         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
116108         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
116109         * lib/pathmax.h: Include <limits.h> unconditionally, since other
116110         files have been getting away with it for years (MORE/BSD 4.3
116111         is extinct now).
116112         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
116113         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
116115         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
116116         Define to 256, not 255, as per modern POSIX.
116118 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
116120         Sync from coreutils.
116121         Use "file name" when talking about file names, instead of "filename"
116122         or "path", as per the GNU coding standards.
116123         * MODULES.html.sh: mkdir-p renamed from makepath.
116124         filenamecat renamed from path-concat.
116125         * modules/filenamecat: Renamed from modules/path-concat.
116126         (Files): filenamecat.h and filenamecat.c renamed from
116127         path-concat.h and path-concat.c.
116128         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
116129         (Include): filenamecat.h, not path-concat.h.
116130         * modules/mkdir-p: Renamed from modules/makepath.
116131         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
116132         makepath.c.
116133         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
116134         (Include): mkdir-p.h, not makepath.h.
116136 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
116138         Sync from coreutils.
116139         * m4/mkdir-p.m4: Renamed from makepath.m4.
116140         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
116141         Rename files from makepath.c to mkdir-p.c, and from
116142         makepath.h to mkdir-p.h.
116143         * m4/filenamecat.m4: Renamed from path-concat.m4.
116144         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
116145         Rename files from path-concat.c to filenamecat.c,
116146         and from path-concat.h to filenamecat.h.
116147         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
116148         "file name" in local variables or comments.
116149         * m4/rename.m4: Likewise.
116151 2005-06-01  Bruno Haible  <bruno@clisp.org>
116153         * modules/csharpexec: New file.
116154         * MODULES.html.sh (C#): New section.
116156 2005-06-01  Bruno Haible  <bruno@clisp.org>
116158         * m4/csharp.m4: New file, from GNU gettext.
116159         * m4/csharpexec.m4: New file, from GNU gettext.
116161 2005-06-01  Bruno Haible  <bruno@clisp.org>
116163         * lib/csharpexec.h: New file, from GNU gettext.
116164         * lib/csharpexec.c: New file, from GNU gettext.
116165         * lib/csharpexec.sh.in: New file, from GNU gettext.
116167 2005-05-31  Derek Price  <derek@ximbiot.com>
116168             Paul Eggert  <eggert@cs.ucla.edu>
116170         Sync from cvs.
116171         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
116173 2005-05-31  Derek Price  <derek@ximbiot.com>
116174             Paul Eggert  <eggert@cs.ucla.edu>
116176         Sync from cvs.
116177         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
116179 2005-05-29  Derek Price  <derek@ximbiot.com>
116181         * config/srclist.txt (glob_.h, glob.c): Add these files.
116183 2005-05-29  Derek Price  <derek@ximbiot.com>
116185         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
116186         * modules/glob: New file.
116187         * modules/getlogin_r: Add link to POSIX spec in description.
116189 2005-05-29  Derek Price  <derek@ximbiot.com>
116190             Paul Eggert  <eggert@cs.ucla.edu>
116192         * m4/glob.m4: New file.
116194 2005-05-29  Derek Price  <derek@ximbiot.com>
116195             Paul Eggert  <eggert@cs.ucla.edu>
116197         * lib/glob_.h, lib/glob.c: New files.
116199 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
116201         * modules/fts (Files): Remove m4/inttypes-pri.m4.
116202         * modules/fts-lgpl (Depends-on): Remove gettext.
116204 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
116206         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
116207         and don't require gt_INTTYPES_PRI.
116209 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
116211         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
116213         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
116214         the configuration hassle isn't worth it.
116215         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
116216         (LONGEST_MODIFIER, PRIuMAX): Remove.
116218 2005-05-27  Bruno Haible  <bruno@clisp.org>
116220         * lib/getlogin_r.h: Remove second include of <stddef.h>.
116222 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
116224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
116225         _POSIX_PTHREAD_SEMANTICS for Solaris.
116227 2005-05-25  Derek Price  <derek@ximbiot.com>
116229         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
116231 2005-05-25  Derek Price  <derek@ximbiot.com>
116232             Paul Eggert  <eggert@cs.ucla.edu>
116234         * modules/getlogin_r, m4/getlogin_r.m4: New files.
116235         * lib/getlogin_r.c, getlogin_r.h: New files.
116237 2005-05-25  Bruno Haible  <bruno@clisp.org>
116238             Derek Price  <derek@ximbiot.com>
116240         * lib/getlogin_r.h: Simplify API documentation.
116242 2005-05-23  Derek Price  <derek@ximbiot.com>
116244         * modules/minmax (Files): Add m4/minmax.m4.
116245         (configure.ac): Add gl_MINMAX.
116247 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116249         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
116250         so that unistd-safer.h (GPL'ed code) need not be included.
116252 2005-05-22  Bruno Haible  <bruno@clisp.org>
116254         * m4/minmax.m4: New file.
116255         Based on a patch by Derek Price <derek@ximbiot.com>.
116257 2005-05-22  Bruno Haible  <bruno@clisp.org>
116259         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
116260         (INT64_MIN): Fix definition.
116261         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
116263         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
116264         NEED_SIGNED_INT_TYPES.
116266         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
116267         HAVE_SYSTEM_INTTYPES.
116269 2005-05-22  Bruno Haible  <bruno@clisp.org>
116271         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
116272         Also include <sys/param.h> if it defines MIN, MAX.
116273         Based on a patch by Derek Price <derek@ximbiot.com>.
116275 2005-05-21  Jim Meyering  <jim@meyering.net>
116277         * modules/fts (Files): Add m4/inttypes-pri.m4.
116278         (Depends-on): Add lstat and remove gettext.  Alphabetize.
116280 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116282         New fts module.
116283         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
116284         (setup_dir, free_dir): New functions.
116285         (enter_dir, leave_dir): Define trivial
116286         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
116287         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
116288         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
116289         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
116290         Move to fts-cycle.c.
116291         (fts_open): Use setup_dir.
116292         (fts_close): Use free_dir.
116293         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
116294         This adds a label and some gotos, but the alternatives were messier.
116295         Check for memory allocation failure when entering a dir.
116296         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
116297         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
116298         (FTS): New member fts_cycle, that is a union that contains the
116299         old active_dir_ht and cycle_state.  All uses changed to mention
116300         fts_cycle.ht and fts_cycle.state.
116301         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
116302         fts.c, with the following changes:
116303         (setup_dir, free_dir): New functions.
116304         (enter_dir): Now returns bool.  Return true if successful, false
116305         if memory exhausted.  All callers changed.
116306         Do not bother partly cleaning up on
116307         memory allocation failure; that is free_dir's job.
116308         However, free ad if hash_insert fails, to avoid memory leak.
116309         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
116310         fts->fts_options to see which union member to use.
116312 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
116315         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
116317 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116319         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
116321 2005-05-20  Jim Meyering  <jim@meyering.net>
116323         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
116324         Now a macro, to pacify GCC.
116326 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
116328         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
116329         of -1.
116331 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
116333         * lib/chown.c (rpl_chown): Return -1 on failure.
116335 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
116337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
116338         Don't check for stddef.h.
116339         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
116340         don't use its results.
116341         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
116342         since we include them unconditionally.  Don't require
116343         AM_STDBOOL_H, since stdbool is a prerequisite.
116344         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
116345         since we assume C89 or better.
116346         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
116347         as we don't use their results.
116348         Don't check for fchdir, memmove, memset, strrchr, as we use
116349         them unconditionally.
116350         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
116351         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
116353 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
116355         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
116356         Include <stddef.h> unconditionally, since we assume C89 now.
116357         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
116358         * lib/fts.c: Include fts_.h first, to check interface.
116359         Do not include intprops.h; no longer needed.
116360         Include cycle-check.h and hash.h, since fts_.h no longer does.
116361         Remove unnecessary casts of closedir to void.
116362         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
116363         decide whether to decrement nlinks.
116364         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
116365         (FTS): Use struct hash_table * instead of Hash_table, so that
116366         we no longer need to include hash.h here.
116368 2005-05-18  Jim Meyering  <jim@meyering.net>
116370         * modules/dirfd (License): Change to LGPL.  Most of the code
116371         is already in the public domain.
116373 2005-05-18  Jim Meyering  <jim@meyering.net>
116375         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
116376         Reported by Yoann Vandoorselaere.
116378 2005-05-17  Jim Meyering  <jim@meyering.net>
116380         * m4/fts.m4: New file, from coreutils.
116382 2005-05-17  Jim Meyering  <jim@meyering.net>
116384         * lib/fts.c, lib/fts_.h: New files, from coreutils.
116386 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116388         Sync from coreutils.
116389         * m4/unlinkdir.m4: New file.
116391 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116393         Sync from coreutils.
116394         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
116395         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
116396         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
116397         White space changes only.
116398         * lib/makepath.c (make_path): Port to hosts where leading "//" is
116399         special.
116400         * lib/yesno.c: Include getline.h, not ctype.h.
116401         (yesno): Don't remove leading white space; POSIX doesn't allow it.
116402         Use getline to remove arbitrary restriction on response length.
116404 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116406         * config/srclist-update: Spell out "Street" in FSF postal
116407         mail address; this is the style the FSF seems to prefer.
116409         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
116410         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
116411         this updates FSF postal mail address.
116413         Sync from coreutils.
116414         * modules/unlinkdir: New file.
116415         * modules/yesno (Depends-on): Add getline.
116416         * MODULES.html.sh (File system functions): Add unlinkdir.
116418 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
116420         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
116421         lib/strsep.h:
116422         Change the initial comment to refer to GPL, not LGPL.
116423         gnulib-tool will change it to LGPL as needed.
116425         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
116426         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
116427         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
116428         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
116429         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
116430         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
116431         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
116432         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
116433         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
116434         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
116435         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
116436         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
116437         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
116438         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
116439         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
116440         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
116441         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
116442         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
116443         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
116444         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
116445         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
116446         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
116447         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
116448         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
116449         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
116450         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
116451         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
116452         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
116453         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
116454         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
116455         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
116456         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
116457         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
116458         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
116459         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
116460         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
116461         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
116462         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
116463         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
116464         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
116465         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
116466         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
116467         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
116468         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
116469         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
116470         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
116471         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
116472         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
116473         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
116474         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
116475         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
116476         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
116477         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
116478         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
116479         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
116480         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
116481         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
116482         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
116483         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
116484         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
116485         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
116486         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
116487         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
116488         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
116489         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
116490         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
116491         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
116492         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
116493         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
116494         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
116495         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
116496         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
116497         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
116498         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
116499         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
116500         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
116501         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
116502         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
116503         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
116504         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
116505         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
116506         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
116507         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
116508         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
116509         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
116510         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
116511         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
116512         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
116513         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
116514         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
116515         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
116516         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
116517         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
116518         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
116519         lib/yesno.c, lib/yesno.h:
116520         Update FSF postal mail address.
116522 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
116524         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
116525         tests/test-memmem.c, tests/test-stpncpy.c:
116526         Update FSF postal mail address.
116528 2005-05-13  Bruno Haible  <bruno@clisp.org>
116530         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
116531         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
116532         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
116533         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
116534         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
116535         Add support for 64-bit integers in the MSVC compiler.
116537 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
116539         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
116541 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
116543         * gnulib-tool (func_import): Sort and uniquify recommended includes.
116545 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
116547         * doc/getdate.texi (General date syntax): Don't say that date
116548         date --iso-8601=ns generates acceptable dates; it doesn't yet.
116549         Problem reported by Nic Ferrier.
116551 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116553         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
116554         specified in ai_socktype. Fix invalid ai_protocol
116555         check. ai_protocol is usually set to 0 or depending on
116556         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
116557         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
116558         ai_socktype / ai_protocol in the returned addrinfo structure.
116560 2005-05-10  Simon Josefsson  <jas@extundo.com>
116562         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
116563         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116565 2005-05-10  Karl Berry  <karl@gnu.org>
116567         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
116568         (from http://www.gnu.org/licenses).
116569         * doc/COPYING.LIB: also rename to COPYING.LESSER.
116570         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
116571         fdl.texi suffices.
116573 2005-05-10  Karl Berry  <karl@gnu.org>
116575         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
116576         (COPYING.DOC): remove.
116578         * config/srclist-update: new FSF address.
116580 2005-05-10  Derek Price  <derek@ximbiot.com>
116582         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
116583         possible.
116585 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116586             Bruno Haible  <bruno@clisp.org>
116588         * modules/inet_ntop: New file.
116589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116590         inet_ntop.
116592 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116593             Bruno Haible  <bruno@clisp.org>
116595         * m4/inet_ntop.m4: New file.
116597 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116598             Bruno Haible  <bruno@clisp.org>
116600         * lib/inet_ntop.h: New file.
116601         * lib/inet_ntop.c: New file, from glibc with modifications.
116603 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
116605         * modules/time_r (License): Change to LGPL.
116606         * modules/extensions (License): Change to LGPL.  Actually,
116607         the license is more permissive than that, but currently gnulib-tool
116608         doesn't know how to handle more-permissive licenses.
116610         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
116611         Problem reported by Dave Love.
116613 2005-05-08  Jim Meyering  <jim@meyering.net>
116615         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
116616         blank.
116618 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
116620         * modules/argmatch (Depends-on): Add stdbool.
116621         * modules/backupfile (Depends-on): Likewise.
116622         * modules/chdir-long (Depends-on): Likewise.
116623         * modules/closeout (Depends-on): Likewise.
116624         * modules/cycle-check (Depends-on): Likewise.
116625         * modules/dirname (Depends-on): Likewise.
116626         * modules/fnmatch (Depends-on): Likewise.
116627         * modules/fsusage (Depends-on): Likewise.
116628         * modules/fwriteerror (Depends-on): Likewise.
116629         * modules/getcwd (Depends-on): Likewise.
116630         * modules/getloadavg (Depends-on): Likewise.
116631         * modules/hard-locale (Depends-on): Likewise.
116632         * modules/makepath (Depends-on): Likewise.
116633         * modules/mountlist (Depends-on): Likewise.
116634         * modules/nanosleep (Depends-on): Likewise.
116635         * modules/posixtm (Depends-on): Likewise.
116636         * modules/quotearg (Depends-on): Likewise.
116637         * modules/readtokens (Depends-on): Likewise.
116638         * modules/readtokens0 (Depends-on): Likewise.
116639         * modules/readutmp (Depends-on): Likewise.
116640         * modules/save-cwd (Depends-on): Likewise.
116641         * modules/strftime (Depends-on): Likewise.
116642         * modules/userspec (Depends-on): Likewise.
116643         * modules/utimecmp (Depends-on): Likewise.
116644         * modules/xgetcwd (Depends-on): Likewise.
116645         * modules/xnanosleep (Depends-on): Likewise.
116646         * modules/xstrtod (Depends-on): Likewise.
116647         * modules/yesno (Depends-on): Likewise.
116649 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
116651         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
116652         needless checks.
116654 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116656         Merge from coreutils.  Among other things,
116657         add bulletproofing for cases where stdin, stdout, or stderr are closed.
116658         * lib/fd-safer.c: New file.
116659         * lib/fcntl-safer.h, open-safer.c: Remove.
116660         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
116661         * lib/dup-safer.c: Include unistd-safer.h first.
116662         Don't include errno.h.
116663         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
116664         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
116665         * lib/file-type.c: Rely on file-type.h change.
116666         * lib/getloadavg.c: Include unistd-safer.h.
116667         (getloadavg): Use safer open.
116668         * lib/getusershell.c: Include "stdio-safer.h".
116669         (getusershell): Use safer fopen.
116670         * lib/long-options.c (long_options): Use NULL rather than 0.
116671         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
116672         'free'.
116673         * lib/modechange.c: Likewise.
116674         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
116675         (MODE_DONE): New constant.
116676         (struct mode_change): Remove 'next' member.
116677         (make_node_op_equals): New function; like the old one of the
116678         same name, except it allocates an array.
116679         (mode_compile, mode_create_from_ref): Use it.
116680         (mode_compile): Allocate result as an array, not a linked list.
116681         Parse octal string ourself, so that we catch mistakes like "+0".
116682         (mode_adjust): Arg is an array, not a linked list.
116683         * lib/modechange.c: Include stat-macros.h, xalloc.h.
116684         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
116685         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
116686         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
116687         Remove.  This is now stat-macros.h's job.
116688         (talloc): Remove.  All callers replaced by xalloc, so that
116689         our invokers don't have to worry about reporting memory failures.
116690         (make_node_op_equals): Remove.
116691         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
116692         New constants.
116693         (struct mode_change): Moved here from modechange.h.
116694         (mode_append_entry): Remove.
116695         (mode_compile): Remove MASKED_OPS arg, since it encouraged
116696         apps to have incorrect behavior.  Use simpler algorithm for head
116697         and tail.  Don't futz with umask; that's now the job of mode_adjust.
116698         Detect more invalid usages rather than having somewhat-random behavior.
116699         Don't insert an "a=" action, as that leads to incorrect behavior.
116700         (mode_compile, mode_create_from_ref): Return NULL on error instead
116701         of an enum, since now there's only one way to have an error.  All
116702         callers changed.
116703         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
116704         at the correct time.  Simplify calculation of "+u" and its ilk.
116705         Don't mishandle "+X".
116706         (mode_free): Remove "register" and localize decls.
116707         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
116708         (struct mode_change): Move to modechange.c; callers don't
116709         need to see this stuff.
116710         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
116711         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
116712         (mode_change, mode_adjust): Reflect the new signatures noted above.
116713         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
116714         that might redefine system include files.
116715         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
116716         (my_usleep): Use NULL rather than (void *) 0.
116717         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
116718         Use siginterrupt to specify that system calls should be interrupted.
116719         (rpl_nanosleep): Move initialization of suspended closer to call of
116720         my_usleep.
116721         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
116722         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
116723         (desirable_utmp_entry): New function.
116724         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
116725         using x2nrealloc, to simplify logic.
116726         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
116727         size calculation.  Do not assume utmp file is a regular file.
116728         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
116729         (READ_UTMP_CHECK_PIDS): New constant.
116730         * lib/save-cwd.c: Include unistd-safer.h.
116731         (save_cwd): Use fd_safer.
116732         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
116733         [!_LIBC] Include "stat-macros.h" instead.
116734         * lib/unistd-safer.h (fd_safer): New decl.
116736 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116738         * modules/getloadavg (Depends-on): Add unistd-safer.
116739         * modules/getusershell (Depends-on): Add stdio-safer.
116740         * modules/lstat (Depends-on): Remove xalloc.
116741         * modules/mkstemp (Depends-on): Add stat-macros.
116742         * modules/modechange (Depends-on): Remove xstrtol.
116743         Add stat-macros, xalloc.
116744         * modules/save-cwd (Depends-on): Add unistd-safer.
116745         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
116746         * modules/unistd-safer (Files): Add lib/fd-safer.c
116747         (Makefile.am): Remove lib_SOURCES.
116749         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
116750         Remove fcntl-safer; unistd-safer supersedes it.
116752 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116754         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
116755         AC_HEADER_STAT.
116756         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
116757         (gl_PREREQ_CHOWN): Remove.
116758         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
116759         it.  Don't require AC_HEADER_STAT.
116760         (gl_PREREQ_LSTAT): Remove.
116761         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
116762         Don't require AC_HEADER_STAT.
116763         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
116764         (gl_PREREQ_RMDIR): Remove.
116765         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
116766         mention stat-macros.h or AC_HEADER_STAT, since we'll make
116767         the stat-macros module a prerequisite.
116768         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
116769         * m4/filemode.m4 (gl_FILEMODE): Likewise.
116770         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
116771         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
116772         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
116773         variable names.
116774         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
116775         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
116776         variable prefixes.
116777         * m4/fcntl-safer.m4: Remove.
116778         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
116779         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
116780         Invoke gl_PREREQ_FD_SAFER.
116781         (gl_PREREQ_FD_SAFER): New macro.
116782         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
116783         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
116784         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
116785         Remove duplicate call to AC_LIBOBJ(readutmp).
116786         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
116788         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
116789         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
116791 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116793         * MODULES.html.sh (Misc): Add byteswap.
116795 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116797         * modules/getcwd (Depends-on): Add extensions.
116798         * modules/openat (Depends-on): Likewise.
116800 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116802         * modules/byteswap: New file.
116804 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116806         * m4/byteswap.m4: New file.
116808 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116810         * lib/byteswap_.h: New file.
116812 2005-04-25  Karl Berry  <karl@gnu.org>
116814         * m4/gettext.m4: Update from GNU gettext 0.14.4.
116816 2005-04-25  Albert Chin  <china@thewrittenword.com>
116818         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
116819         Toolkit C bug.
116821 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
116823         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
116824         (func_ln_if_changed): Remove forcibly for no error message
116825         in case file does not exist.
116827 2005-04-19  Simon Josefsson  <jas@extundo.com>
116829         * gnulib-tool (Options): Make --symlink mean --symbolic.
116831 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
116833         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
116835 2005-04-16  Simon Josefsson  <jas@extundo.com>
116837         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
116839 2005-04-15  Simon Josefsson  <jas@extundo.com>
116841         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
116843 2005-04-15  Simon Josefsson  <jas@extundo.com>
116845         * gnulib-tool: Rename --symlink to --symbolic.
116847 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
116849         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
116850         symbolic links to files instead of copying/moving.  Add --aux-dir,
116851         specifying directory relative --dir where auxiliary build tools
116852         are placed.
116854 2005-04-14  Bruno Haible  <bruno@clisp.org>
116856         * modules/allocsa (License): Change to LGPL.
116857         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
116859 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116861         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
116862         that "UTC +1 second" continues to work.  Problem reported
116863         by Dmitry V. Levin.
116864         (relunit_snumber): New rule.
116865         (relunit): Use it.
116867 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116869         * lib/getdate.y (universal_time_zone_table): New constant.
116870         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
116871         universal_time_zone_table.
116872         (lookup_zone): Prefer universal_time_zone_table to
116873         local_time_zone_table, so that "GMT" time stamps are allowed in
116874         London during the summer.  Problem reported by Ian Abbott.
116876 2005-04-12  Jim Meyering  <jim@meyering.net>
116878         * lib/human.c (humblock): Set *options even when returning due to
116879         xstrtoumax conversion failure.  Thanks to a used-uninitialized
116880         warning from gcc-4.
116882 2005-04-09  Jim Meyering  <jim@meyering.net>
116884         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
116885         -Wuninitialized: initialize tm0.tm_year.
116887 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
116889         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
116890         count, since there's no maximum.  All uses changed.
116891         Add member dsts_seen.
116892         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
116893         not being INT_MAX.
116894         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
116895         Use pc_rels_seen to decide whether a date is absolute.
116897         * lib/getdate.y (number): Don't overwrite year.
116898         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
116899         check.
116901 2005-04-02  Simon Josefsson  <jas@extundo.com>
116903         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
116904         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
116906 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
116908         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
116909         where no absolute path name can be longer than PATH_MAX.
116911 2005-03-27  Jim Meyering  <jim@meyering.net>
116913         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
116915 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
116917         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
116918         "one's complement" -> "ones' complement" in comment, as per Knuth.
116919         "value of type" -> "type or expression" in comment.
116920         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
116922 2005-03-26  Jim Meyering  <jim@meyering.net>
116924         Comment nits.
116925         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
116926         Correct typos: s/or/of/.
116928 2005-03-26  Jim Meyering  <jim@meyering.net>
116930         * modules/check-include-files: Move to ../ and rename to...
116931         * check-module: ...this.
116933 2005-03-25  Jim Meyering  <jim@meyering.net>
116935         * modules/xvasprintf (Files): Add xalloc.h.
116937 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
116939         * modules/gettext (Files): config/config.rpath ->
116940         build-aux/config.rpath
116941         * modules/iconv (Files): Likewise.
116942         Problem reported by Oskar Liljeblad.
116944 2005-03-23  Jim Meyering  <jim@meyering.net>
116946         * modules/check-include-files: New script to check for
116947         missing dependencies, multiple includes, etc.
116949         * modules/c-strtold (Depends-on): Add xalloc.
116950         * modules/c-strtod (Depends-on): Add xalloc.
116951         * modules/hash (Depends-on): Add xalloc.
116952         (Files): Remove lib/xalloc.h.
116954         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
116955         * modules/userspec (Files): Add lib/inttostr.h.
116957 2005-03-23  Jim Meyering  <jim@meyering.net>
116959         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
116961 2005-03-22  Jim Meyering  <jim@meyering.net>
116963         * modules/stat-macros: New module.
116964         * modules/canonicalize, modules/euidaccess, modules/file-type,
116965         * modules/filemode, modules/lchown, modules/makepath,
116966         * modules/rmdir, modules/stat: Depend on new stat-macros module
116967         rather than listing lib/stat-macros.h manually.
116968         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
116970 2005-03-22  Jim Meyering  <jim@meyering.net>
116972         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
116974 2005-03-22  Bruno Haible  <bruno@clisp.org>
116976         * config/srclist.txt: Replace target directory 'config' with
116977         'build-aux'.
116978         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
116979         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
116980         ../build-aux/.
116982 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
116984         * modules/chdir-long (Depends-on): Add mempcpy.
116986         * modules/acl, modules/backupfile, modules/c-strtod,
116987         modules/c-strtold, modules/canon-host, modules/canonicalize,
116988         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
116989         modules/exclude, modules/exitfail, modules/file-type,
116990         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
116991         modules/getdate, modules/getline, modules/getpagesize,
116992         modules/getpass, modules/getugroups, modules/group-member,
116993         modules/hard-locale, modules/hash, modules/human, modules/idcache,
116994         modules/inttostr, modules/long-options, modules/makepath,
116995         modules/md5, modules/memcasecmp, modules/memcoll,
116996         modules/modechange, modules/mountlist, modules/path-concat,
116997         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
116998         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
116999         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
117000         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
117001         modules/strftime, modules/strndup, modules/strverscmp,
117002         modules/timespec, modules/unlocked-io, modules/userspec,
117003         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
117004         modules/yesno:
117005         Remove lib_SOURCES line from Makefile.am section, as this is now
117006         done automatically by the corresponding Autoconf macro.
117008 2005-03-21  Jim Meyering  <jim@meyering.net>
117010         Changes imported from coreutils.
117012         * lib/cycle-check.c: Don't include xalloc.h.
117014         * lib/path-concat.c: Don't include assert.h.
117015         (path_concat): Remove assertion that would have triggered
117016         for ABASE starting with more than one slash.
117017         Reported by Andreas Schwab.
117019         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
117020         properly when ABASE is an absolute file name.
117021         Correct the description of this function.
117022         Include <assert.h>.
117023         Add an assertion and a test driver.
117024         This fixes a bug introduced on 2004-07-02.
117025         Andreas Schwab reported the resulting failure of cp --parents:
117026         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
117028 2005-03-21  Jim Meyering  <jim@meyering.net>
117030         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
117031         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
117033 2005-03-21  Jim Meyering  <jim@meyering.net>
117034         and  Paul Eggert  <eggert@cs.ucla.edu>
117036         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
117037         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
117038         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
117039         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
117040         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
117041         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
117042         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
117043         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
117044         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
117045         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
117046         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
117047         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
117048         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
117049         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
117050         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
117051         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
117052         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
117053         for these modules.
117055 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
117057         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
117058         (which shouldn't happen), generate nothing instead of returning 0
117059         immediately, so that nstrftime (NULL, ...) doesn't return 0.
117061 2005-03-16  Bruno Haible  <bruno@clisp.org>
117063         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
117064         HAVE_LONGLONG_64BIT.
117066 2005-03-16  Bruno Haible  <bruno@clisp.org>
117068         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
117069         HAVE_LONGLONG_64BIT.
117071 2005-03-16  Bruno Haible  <bruno@clisp.org>
117073         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
117074         HAVE_LONGLONG_64BIT.
117076 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
117078         * lib/strftime.c (my_strftime): Prepend space to format so that we can
117079         reliably distinguish strftime failure from empty output on POSIX
117080         hosts.
117082 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
117084         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
117085         (iconv_string): Don't guess a size-zero buffer, as that might cause
117086         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
117087         result would be 'too large', where 'too large' is (heuristically)
117088         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
117089         overflow concerns.  This will prevent some unwanted malloc failures
117090         when the inputs are very large.
117092 2005-03-15  Karl Berry  <karl@gnu.org>
117094         * config/srclist.txt (config.rpath): from gettext.
117095         * config/config.rpath: update.
117097 2005-03-15  Bruno Haible  <bruno@clisp.org>
117099         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
117100         to 'negate'.
117102         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
117103         variable.
117105         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
117106         results.
117108 2005-03-14  Simon Josefsson  <jas@extundo.com>
117110         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
117111         <fx@gnu.org>.
117113 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
117115         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
117116         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
117117         intprops.h.
117118         * lib/strtol.c: Likewise.
117120 2005-03-14  Jim Meyering  <jim@meyering.net>
117122         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
117123         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
117124         to be nonzero so that we (and caller) can detect the difference
117125         between a valid zero-length expansion and an error return, even
117126         when the underlying strftime fails before writing anything into
117127         that location.
117129 2005-03-14  Bruno Haible  <bruno@clisp.org>
117131         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
117132         Update from GNU gettext 0.14.3.
117134 2005-03-10  Jim Meyering  <jim@meyering.net>
117136         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
117138 2005-03-10  Jim Meyering  <jim@meyering.net>
117140         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
117141         so that this module works on systems without fchdir.
117143 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
117145         Factor int-properties macros into a single file, except for
117146         glibc-related files.
117147         * lib/intprops.h: New file.
117148         * lib/getloadavg.c: Include it instead of limits.h.
117149         (INT_STRLEN_BOUND): Remove.
117150         * lib/human.c: Include intprops.h.
117151         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
117152         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
117153         302/1000.
117154         * lib/inttostr.h: Include intprops.h instead of limits.h.
117155         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
117156         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
117157         for consistency with intprops.h.
117158         (time_t_is_integer, twos_complement_arithmetic): Use them.
117159         * lib/sig2str.h: Include <signal.h>, intprops.h.
117160         (INT_STRLEN_BOUND): Remove.
117161         * lib/strftime.c (TYPE_SIGNED): Remove.
117162         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
117163         * lib/strtol.c: Adjust comments to match intprops.h.
117164         * lib/userspec.c: Include intprops.h.
117165         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
117166         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
117167         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
117168         instead of rolling our own expressions.
117169         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
117171         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
117172         instead of int.
117173         (my_strftime): Do not mishandle years close to INT_MAX, by doing
117174         the right thing even if adding 1900 would overflow.  Similarly
117175         for tm_mon + 1 and tm_yday + 1.
117176         Make %Y always equivalent to %C%y, and similarly for %G and %g.
117177         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
117178         (DO_SIGNED_NUMBER): New macro.
117179         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
117181 2005-03-07  Bruno Haible  <bruno@clisp.org>
117183         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
117185 2005-03-07  Bruno Haible  <bruno@clisp.org>
117187         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
117189 2005-03-04  Derek R. Price  <derek@ximbiot.com>
117191         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
117192         (func_import): Only replace files via --import when they have actually
117193         changed.
117195 2005-03-03  Derek R. Price  <derek@ximbiot.com>
117197         * m4/mmap-anon.m4: New file.
117198         * m4/pagealign_alloc.m4: New file.
117200 2005-03-03  Derek R. Price  <derek@ximbiot.com>
117201             Bruno Haible  <bruno@clisp.org>
117203         * modules/pagealign_alloc: New file.
117204         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
117206 2005-03-03  Derek R. Price  <derek@ximbiot.com>
117207             Bruno Haible  <bruno@clisp.org>
117209         * lib/pagealign_alloc.h: New file.
117210         * lib/pagealign_alloc.c: New file.
117212 2005-03-03  Bruno Haible  <bruno@clisp.org>
117214         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
117215         Use an all-permissive copyright notice, recommended by RMS.
117217 2005-03-02  Bruno Haible  <bruno@clisp.org>
117219         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
117220         of AIX, the replacement has to be done only after <string.h> is
117221         included, therefore not in config.h. stpncpy.h does the replacement,
117222         and stpncpy.c uses it.
117224 2005-03-02  Bruno Haible  <bruno@clisp.org>
117226         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
117227         stpncpy.c uses it.
117229 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117231         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
117232         The workaround isn't strictly needed for POSIX conformance, and
117233         it's too much of a pain to configure and maintain.  We'll ask
117234         people to fix their kernels instead.
117235         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
117236         (NANOSLEEP_BUG_WORKAROUND): Remove.
117237         (xnanosleep): Remove the workaround.
117239 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117241         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
117242         Reported by Derek Price.
117243         (Include): Add "timespec.h".
117245         * modules/xnanosleep (Depends-on): Remove gethrxtime.
117247 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117249         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
117250         to detect nanosleep bug.
117252 2005-03-01  Bruno Haible  <bruno@clisp.org>
117254         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
117256 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117258         * modules/gethrxtime: New file.
117259         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
117260         (Depends-on): Add gethrxtime.
117261         (configure.ac): Add gl_XNANOSLEEP.
117262         (Makefile.am): Remove lib_SOURCES line.
117264 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
117266         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
117267         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
117269 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
117271         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
117272         * lib/timespec.h (gettime): Return void, since it always
117273         succeeds now.  All uses changed.
117274         * lib/gettime.c (gettime): Likewise.
117275         [HAVE_NANOTIME]: Prefer nanotime.
117276         Assume gettimeofday succeeds, as POSIX requires.
117277         Assime time () succeeds, since other code already does.
117278         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
117279         (timespec_subtract): Remove.
117280         (NANOSLEEP_BUG_WORKAROUND): New constant.
117281         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
117282         things considerably.  Use it only on GNU/Linux hosts, since the
117283         workaround shouldn't be needed elsewhere.
117285 2005-02-24  Bruno Haible  <bruno@clisp.org>
117287         * modules/gettext (Files): Add m4/glibc2.m4.
117289 2005-02-24  Bruno Haible  <bruno@clisp.org>
117291         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
117292         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
117293         * m4/progtest.m4:
117294         Update from GNU gettext 0.14.2.
117295         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
117297 2005-02-24  Bruno Haible  <bruno@clisp.org>
117299         * lib/localcharset.c: Update from GNU gettext 0.14.2.
117300         * lib/config.charset: Update from GNU gettext 0.14.2.
117302 2005-02-24  Bruno Haible  <bruno@clisp.org>
117304         * lib/gettext.h: Update from GNU gettext 0.14.2.
117306 2005-02-23  Simon Josefsson  <jas@extundo.com>
117308         * m4/iconvme.m4: New file.
117310 2005-02-23  Jim Meyering  <jim@meyering.net>
117312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
117313         change.
117314         Thanks to Bruno Haible for catching it.
117316 2005-02-22  Simon Josefsson  <jas@extundo.com>
117318         * modules/iconvme: New file.
117320         * MODULES.html.sh: Add iconvme.
117322 2005-02-22  Simon Josefsson  <jas@extundo.com>
117324         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
117326 2005-02-22  Simon Josefsson  <jas@extundo.com>
117328         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
117330 2005-02-22  Jim Meyering  <jim@meyering.net>
117332         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
117333         s/ifndef/ifdef/.
117335 2005-02-20  Neil Conway  <neilc@samurai.com>
117337         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
117338         returned by OSX/Darwin if the specified buffer is not large
117339         enough for the hostname.
117341 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117343         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
117344         pass it to _help, otherwise the latter coredumps trying to
117345         dereference state.root_argp.
117347 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
117349         * modules/chdir-long (Depends-on): Add memrchr.
117350         * modules/memrchr (Files): Add lib/memrchr.h.
117351         (Include): "memrchr.h".
117353 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
117355         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
117357 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
117359         * lib/memrchr.h: New file.
117360         * lib/chdir-long.c: Include it.
117361         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
117362         Don't bother including stddef.h.
117364 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
117366         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
117367         inclusion.
117368         Include <sys/types.h>, for dev_t.
117369         (ME_DUMMY, ME_REMOTE): Move from here....
117370         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
117371         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
117372         Dmitry V. Levin.
117373         Include mountlist.h first, to test the interface.
117375 2005-01-29  Bruno Haible  <bruno@clisp.org>
117377         * lib/progname.c (program_name): Initialize.
117378         Needed when linking statically on MacOS X.
117380 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
117382         Sync from coreutils.
117383         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
117384         (Depends-on): Add c-strtod.
117385         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
117387 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
117389         Sync from coreutils.
117390         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
117392         Remove files that are specific to coreutils.
117393         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
117395 2005-01-28  Bruno Haible  <bruno@clisp.org>
117397         * modules/javacomp: New file.
117398         * MODULES.html.sh (Java): Add javacomp.
117400 2005-01-28  Bruno Haible  <bruno@clisp.org>
117402         * m4/javacomp.m4: New file, from GNU gettext.
117404 2005-01-28  Bruno Haible  <bruno@clisp.org>
117406         * lib/javacomp.sh.in: New file, from GNU gettext.
117407         * lib/javacomp.h: New file, from GNU gettext.
117408         * lib/javacomp.c: New file, from GNU gettext.
117410 2005-01-26  Simon Josefsson  <jas@extundo.com>
117412         * lib/gai_strerror.c: Use GPL in header.
117414 2005-01-26  Bruno Haible  <bruno@clisp.org>
117416         * modules/javaexec: New file.
117417         * MODULES.html.sh (Java): Add javaexec.
117419 2005-01-26  Bruno Haible  <bruno@clisp.org>
117421         * m4/javaexec.m4: New file, from GNU gettext.
117423 2005-01-26  Bruno Haible  <bruno@clisp.org>
117425         * lib/javaexec.sh.in: New file, from GNU gettext.
117426         * lib/javaexec.h: New file, from GNU gettext.
117427         * lib/javaexec.c: New file, from GNU gettext.
117429 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117431         * modules/lchown (Depends-on): Remove lchown.h
117433 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117435         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
117436         must be defined if the header file was not found, in order
117437         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
117439 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117441         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
117442         initializers for struct pentry_state.
117443         (__argp_error): Check return value of __asprintf
117444         (__argp_failure): Translate error message
117446         * lib/argp-parse.c: Removed braces around the expansion of N_()
117448 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117450         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
117451         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
117452         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
117453         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
117454         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
117455         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
117456         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
117457         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
117458         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
117459         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
117460         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
117461         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
117462         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
117463         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
117464         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
117465         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
117466         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
117467         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
117468         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
117469         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
117470         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
117471         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
117472         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
117473         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
117474         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
117475         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
117476         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
117477         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
117478         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
117479         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
117480         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
117481         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
117482         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
117483         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
117484         xstrtol.m4, xstrtoumax.m4, yesno.m4:
117485         Use an all-permissive copyright notice, recommended by RMS.
117487 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
117489         * modules/chdir-long (Depends-on): Remove mempcpy.
117491 2005-01-21  Jim Meyering  <jim@meyering.net>
117493         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
117494         same value as for Solaris 9.
117496         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
117497         component length.  This included changing the parameter to be
117498         of type `char *' rather than `char const *'.
117499         * lib/chdir-long.h (chdir_long): Update prototype.
117501         * lib/openat.c (fdopendir, fstatat): New functions.
117502         * lib/openat.h: Include headers required for use of DIR and struct
117503         stat.
117504         [AT_SYMLINK_NOFOLLOW]: Define.
117505         (fdopendir, fstatat): Add prototypes.
117507 2005-01-21  Bruno Haible  <bruno@clisp.org>
117509         * modules/classpath: New file.
117510         * MODULES.html.sh (Java): Add classpath.
117512 2005-01-21  Bruno Haible  <bruno@clisp.org>
117514         * lib/classpath.h: New file, from GNU gettext.
117515         * lib/classpath.c: New file, from GNU gettext.
117517 2005-01-20  Simon Josefsson  <jas@extundo.com>
117519         * modules/version-etc-fsf: New file.
117521 2005-01-20  Simon Josefsson  <jas@extundo.com>
117523         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
117524         * lib/version-etc.c: Remove version_etc_copyright.
117525         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
117526         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
117528 2005-01-20  Simon Josefsson  <jas@extundo.com>
117530         * lib/base64.h (isbase64): Add.
117532         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
117533         using a unsigned prototype, don't inline.
117534         (base64_decode): Use it.
117536 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117538         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
117539         it.
117541 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117543         * lib/save-cwd.c (save_cwd): Remove code to support the case
117544         where fchdir is missing or flaky.
117546 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117548         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
117550 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
117552         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
117553         AC_LIBSOURCES now does this.
117554         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
117555         with new ullong_max module.
117557 2005-01-19  Bruno Haible  <bruno@clisp.org>
117559         * modules/sh-quote: New file.
117560         * MODULES.html.sh (Executing programs): Add sh-quote.
117562 2005-01-19  Bruno Haible  <bruno@clisp.org>
117564         * lib/sh-quote.h: New file, from GNU gettext.
117565         * lib/sh-quote.c: New file, from GNU gettext.
117567 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
117569         Merge from coreutils.
117570         * m4/ullong_max.m4: New file.
117571         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
117572         (gl_MACROS): Assume localeconv exists.
117574 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
117576         Merge changes from coreutils, as described below in several
117577         changelogs dated today.
117579         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
117580         (O_DIRECTORY): Remove; not needed here, since "." must be
117581         a directory.  All uses removed.
117582         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
117583         universal on Suns, and we also need to test for IRIX.
117584         Revamp code to use 'if' rather than '#if'.
117585         Avoid unnecessary comparison of cwd->desc to 0.
117587         * lib/utimens.c (futimens): Robustify the previous patch, by checking
117588         for known valid error numbers rather than observed invalid ones.
117590 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
117592         * modules/ullong_max: New file.
117594         * modules/chdir-long, modules/openat: New files.
117595         * modules/save-cwd (Depends-on): Depend on chdir-long.
117596         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
117598 2005-01-18  Jim Meyering  <jim@meyering.net>
117600         Merge from coreutils.
117601         * m4/chdir-long.m4, m4/openat.m4: New files.
117602         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
117603         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
117604         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
117605         is sane and DOES follow symlinks.  Besides, testing 20 different
117606         systems found no broken chown implementations.
117607         Prompted by a change in rsync's copy of this macro.
117608         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
117610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
117612         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
117613         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
117614         NULL-means-set-to-current-time semantics.
117615         Remove temporary file immediately, rather than waiting
117616         for configure's at-exit trap code to do it.
117618 2005-01-18  Jim Meyering  <jim@meyering.net>
117620         * lib/version-etc.c (version_etc_copyright): Update copyright date.
117622         * lib/utimens.c (futimens): Account for the fact that futimes
117623         can also fail with errno == ENOSYS or errno == ENOENT.
117624         Patch from Dmitry V. Levin.
117626         Change the name of the robust chdir function from chdir to chdir_long.
117627         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
117628         (restore_cwd): Use chdir_long, not chdir.
117629         * lib/chdir-long.c: Renamed from chdir.c.
117630         * lib/chdir-long.h: Renamed from chdir.h.
117631         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
117632         Hurd.
117634 2005-01-18  Bruno Haible  <bruno@clisp.org>
117636         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
117637         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
117638         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
117639         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
117640         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
117641         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
117642         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
117643         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
117644         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
117645         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
117646         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
117647         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
117648         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
117649         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
117650         Use an all-permissive copyright notice, recommended by RMS.
117652 2005-01-18  Bob Proulx  <bob@proulx.com>
117654         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
117655         simplify offsetof() macro construct to avoid compile failure with
117656         native HP-UX 11.0 ANSI C compiler.
117658 2005-01-17  Bruno Haible  <bruno@clisp.org>
117660         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
117661         redundant because stpncpy.m4 takes care of it.
117663 2005-01-17  Bruno Haible  <bruno@clisp.org>
117665         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
117667 2005-01-17  Bruno Haible  <bruno@clisp.org>
117669         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
117670         used.
117672 2005-01-17  Bruno Haible  <bruno@clisp.org>
117674         * lib/fwriteerror.h (fwriteerror): Change specification to include
117675         fclose.
117676         * lib/fwriteerror.c: Include <stdbool.h>.
117677         (fwriteerror): At the end, close the file stream. Record whether
117678         stdout was already closed.
117680 2005-01-17  Bruno Haible  <bruno@clisp.org>
117682         * lib/execute.c (environ): Declare if needed.
117683         * lib/pipe.c (environ): Likewise.
117684         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
117686 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117688         * modules/argp: Depend on vsnprintf
117690 2005-01-10  Jim Meyering  <jim@meyering.net>
117692         * modules/closeout (Depends-on): Add atexit.
117694 2005-01-06  Bruno Haible  <bruno@clisp.org>
117696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
117698 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117700         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
117701         definitions to be after all include files, to avoid collisions.
117702         Problem reported by Bob Proulx.
117704 2005-01-04  Jim Meyering  <jim@meyering.net>
117706         Changes imported from coreutils.
117707         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
117708         as the mkstemp template, use a temporary directory and an
117709         8.3-friendly template to avoid trouble on systems like DJGPP.
117710         Reported by Juan M. Guerrero via Stepan Kasal.
117711         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
117712         close. Remove the temporary directory right away, rather than waiting
117713         for configure's at-exit trap code to do it.
117714         Suggestion from Stepan Kasal.
117716 2005-01-01  Simon Josefsson  <jas@extundo.com>
117718         * gnulib-tool: Print #include directives when --import'ing.
117720 2004-12-28  Simon Josefsson  <jas@extundo.com>
117722         * tests/test-base64.c: Include required header files.  Remove
117723         unused variables.
117725 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
117727         * modules/error (Depends-on): Remove gettext.
117729 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
117731         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
117732         not needed.  This removes a dependency on the gettext module.
117733         [defined _LIBC]: Do not include <libintl.h>; not needed.
117735 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
117737         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
117738         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
117740 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
117742         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
117743         HAVE_DECL_STRTOLD.
117745 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
117747         * modules/getdate (Depends-on): Remove alloca-opt.
117749 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
117751         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
117753 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
117755         * lib/argp-parse.c: Include <stddef.h>.
117756         (alignof, alignto): New macros.
117757         (parser_init): Don't assume that void * is aligned sufficiently
117758         for struct option.
117760         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
117761         need to extend the stack.
117762         (YYINITDEPTH): New macro, so that the initial stack isn't overly
117763         large.
117765 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117767         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
117769 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
117771         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
117772         (2004-10-24) change.  Apparently this was a false alarm.
117774         * modules/getdate: Depend on alloca-opt, not alloca.
117776 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
117778         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
117779         Remove now-obsolete comment about AIX.
117780         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
117781         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
117782         (YYMAXDEPTH): New macro.
117784 2004-12-18  Simon Josefsson  <jas@extundo.com>
117786         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
117788 2004-12-18  Bruno Haible  <bruno@clisp.org>
117790         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
117792 2004-12-18  Bruno Haible  <bruno@clisp.org>
117794         * lib/fatal-signal.c (fatal_signals): Make non-const.
117795         (init_fatal_signals): New function.
117796         (uninstall_handlers, install_handlers): Ignore signals that were set to
117797         SIG_IGN.
117798         (at_fatal_signal): Call init_fatal_signals.
117799         (init_fatal_signal_set): Likewise. Ignore signals that were set to
117800         SIG_IGN.
117801         Reported by Paul Eggert.
117803 2004-12-18  Bruno Haible  <bruno@clisp.org>
117805         * doc/alloca.texi: New file.
117806         * doc/alloca-opt.texi: New file.
117808 2004-12-17  Jim Meyering  <jim@meyering.net>
117810         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
117811         Otherwise, install-sh could exit with improper exit status when
117812         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
117814 2004-12-16  Simon Josefsson  <jas@extundo.com>
117816         * tests/test-base64.c: Add license.
117818 2004-12-15  Stepan Kasal  <address@hidden>
117820         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
117822 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
117824         * modules/getcwd (Files): Add m4/d-ino.m4.
117825         Suggested by Mark D. Baushke.
117827 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
117829         * lib/getdate.y (textint): New member "negative".
117830         (time_zone_hhmm): New function.
117831         Expect 14 shift-reduce conflicts, not 13.
117832         (o_colon_minutes): New rule.
117833         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
117834         (yylex): Set the "negative" member of signed numbers.
117836 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
117838         * doc/getdate.texi (Time of day items, Time zone items):
117839         Describe new formats +00:00, UTC+00:00.
117841 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117843         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
117844         spurious "-l"s.  Problem reported by Stepan Kasal.
117846 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
117848         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
117849         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
117851 2004-12-04  Simon Josefsson  <jas@extundo.com>
117853         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
117854         Vandoorselaere <yoann@prelude-ids.org>.
117856 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
117858         Changes imported from coreutils.
117859         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
117860         exist.
117861         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
117863 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
117865         Changes imported from coreutils.
117866         * lib/hard-locale.c: Assume <locale.h> exists.
117867         Include "strdup.h".
117868         (GLIBC_VERSION): New macro.
117869         (hard_locale): Assume setlocale exists.
117870         Rewrite to avoid #ifdef.
117871         Use strdup rather than malloc + strcpy.
117872         * lib/human.c: Assume <locale.h> exists.
117873         (human_readable): Assume localeconv exists.
117875 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
117877         * modules/hard-locale (Depends-on): Add strdup.
117879 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
117881         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
117882         convert T2, not T.  (Imported from libc.)
117884 2004-11-30  Simon Josefsson  <jas@extundo.com>
117886         * modules/restrict (License): Change to LGPL.
117888 2004-11-30  Simon Josefsson  <jas@extundo.com>
117890         * m4/restrict.m4: Add copyright and copying conditions.
117892 2004-11-30  Simon Josefsson  <jas@extundo.com>
117894         * m4/base64.m4: New file.
117896 2004-11-30  Simon Josefsson  <jas@extundo.com>
117898         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
117899         base64.
117901         * tests/test-base64.c: New file.
117903         * modules/base64: New file.
117905 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
117907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
117908         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
117910         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
117912 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
117914         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
117915         (__getcwd.c): Don't restore errno; glibc doesn't.
117916         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
117917         first, falling back to our code only if its results look suspicious.
117918         Ensure that the resulting buffer is only as large as necessary.
117920         * lib/readutmp.c: Include readutmp.h first.
117921         Include <errno.h>, since readutmp.h no longer does that.
117922         * lib/readutmp.h: Don't include <errno.h>,
117923         <sys/param.h>, <time.h>; not needed to establish interface.
117924         (errno): Remove decl.
117925         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
117926         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
117927         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
117929 2004-11-28  Simon Josefsson  <jas@extundo.com>
117931         * lib/base64.h, base64.c: New file.
117933 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
117935         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
117937 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
117939         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
117940         (Depends-on): Remove pathmax, same.  Add mempcpy.
117941         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
117942         (Makefile.am): Append getcwd.h to lib_SOURCES.
117943         (Include): Add getcwd.h.
117944         (Maintainer): Change from Jim Meyering to "all, glibc",
117945         since getdate now uses intended-for-glibc code.
117946         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
117947         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
117949 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117951         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
117952         HP's ANSI C compiler.
117953         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
117954         Declaring int functions causes warnings on some modern systems and
117955         shouldn't be needed to compile on ancient ones.
117956         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
117957         defined.
117959         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
117960         with the following changes.
117961         (__set_errno): Parenthesize properly.
117962         Include <stdbool.h>.
117963         (MIN, MAX, MATCHING_INO): New macros.
117964         (__getcwd): Define with prototype, not K&R form.
117965         Use heuristics to allocate default buffer on stack if possible.
117966         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
117967         behavior, and to avoid the PATH_MAX limit when computing
117968         ../../../../...
117969         Use MATCHING_INO to compare inode number to file.
117970         Check for arithmetic overflow in size calculations.
117971         Fix bug in reallocation of dot array that caused getcwd to fail
117972         on directories nested deeper than 75.
117973         Be more careful about saving errno on error.
117974         Do not use realloc; use only free+malloc, as this is a bit
117975         more flexible and avoids a needless copy operation.
117976         Do not inspect st_dev and st_ino for symbolic links; POSIX
117977         doesn't specify the latter.
117978         Check for closedir errors.
117979         Avoid needless casts.
117980         Use "#ifdef weak_alias" around weak_alias, to be like other
117981         glibc code.
117982         The following changes to getcwd.c have effect only when used in
117983         gnulib; they have no effect inside glibc proper.
117984         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
117985         as alloca isn't used.
117986         (alloca, __alloca): Likewise.
117987         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
117988         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
117989         unconditionally, as gnulib assumes C89 or better.
117990         Do not include <sys/param.h>.
117991         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
117992         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
117993         better.
117994         (NULL) [!defined NULL]: Remove; we assume C89 or better.
117995         Include <dirent.h> in a way that is compatible with modern Autoconf.
117996         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
117997         New macros, if not already defined.
117998         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
117999         Use "_LIBC", not "defined _LIBC", for consistency.
118000         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
118001         a mempcpy module.
118002         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
118003         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
118004         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
118005         credit only to Jim Meyering and adjust the copyright dates.
118006         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
118007         <stdlib.h>, <unistd.h>, "pathmax.h".
118008         Instead, include "xgetcwd.h" (first) and "getcwd.h".
118009         (INITIAL_BUFFER_SIZE): Remove.
118010         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
118012 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
118015         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
118016         Use the _ONCE methods, for efficiency.
118017         Check for fcntl.h.  In test program, include <errno.h>
118018         and <fcntl.h> if available.  Remove old K&R cruft from
118019         test program.  Check for common errors in GNU/Linux,
118020         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
118021         don't do AC_LIBOBJ, as that's getcwd.m4's job.
118022         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
118023         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
118024         name accordingly.
118025         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
118026         accommodate new getcwd.c.
118027         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
118028         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
118029         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
118030         that's all we need now.
118032 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118034         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
118035         argp-parse.c depends on getopt internals, that means we should
118036         always use our getopt, to be on the safe side.
118037         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
118038         order not to spoil the result of an eventual previous invocation
118039         of gl_GETOPT_SUBSTITUTE.
118041 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118043         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
118044         redefinition warnings. To avoid them, include the defines
118045         in `#if !defined __need_getopt ... #endif'. The only place
118046         where __getopt_argv_const is used is in definitions
118047         of getopt_long and getopt_long_only below, which are as well
118048         protected by `#ifndef __need_getopt'.
118049         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
118050         __need_getopt after including <stdio.h> and <unistd.h> These
118051         headers might have defined it.
118053 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
118055         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
118057 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
118059         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
118060         (futimens): New function, which uses futimes if available.
118061         (futimens, utimens): Support timespec==NULL, with same semantics
118062         as utime and utimens.
118063         * lib/utimens.h (futimens): New decl.
118065 2004-11-23  Jim Meyering  <jim@meyering.net>
118067         * lib/getopt_.h: Remove trailing blanks.
118069 2004-11-23  Jim Meyering  <jim@meyering.net>
118071         * lib/__fpending.c: Add comment.
118073 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
118075         * modules/canonicalize (Depends-on): Add xreadlink.
118076         Problem reported by James Youngman.
118078 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
118080         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
118081         New macros.
118082         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
118083         optopt): Use them instead of invoking ## directly; otherwise, the
118084         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
118086 2004-11-19  Bruno Haible  <bruno@clisp.org>
118088         * lib/strtok_r.c: Move comments from here...
118089         * lib/strtok_r.h: ... to here.
118091 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
118093         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
118094         implementations that mishandle size_t overflow.
118096 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
118098         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
118099         might fail.  Problem reported by Yoann Vandoorselaere.
118100         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
118101         implementations that mishandle size_t overflow.
118103 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
118105         * modules/canon-host (Depends-on): Add strdup.
118107 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
118109         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
118111 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
118113         * lib/canon-host.c: Include "strdup.h".
118114         (canon_host): Use getaddrinfo if available, so that IPv6 works.
118115         Use strdup instead of malloc/strcpy to duplicate strings.
118117         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
118118         (human_space_before_unit): New constant.
118119         * lib/human.c (human_readable): Support it.
118121         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
118122         (xgetcwd): Set errno correctly when failing.
118123         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
118124         the failure is actually due to a PATH_MAX problem.
118126         Further getopt changes to make it more likely that glibc will
118127         buy the changes back.
118128         * lib/getopt.c (POSIXLY_CORRECT): New constant.
118129         (getopt): Use it, so to preserve glibc semantic
118130         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
118131         when compiling for libc.
118132         * lib/getopt_.h (__getopt_argv_const): Bring it back.
118133         (getopt_long, getopt_long_only): Use it.
118135         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
118136         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
118137         (getopt): Argv is now char * const *, as per standard.
118138         (_getopt_internal_r, _getopt_internal): Argv is now char **,
118139         not char *__getopt_argv_const *.
118140         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
118141         _getopt_long_only_r): Likewise.
118142         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
118143         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
118144         _getopt_long_r, _getopt_long_only_r): Likewise.
118145         * lib/getopt_.h (__getopt_argv_const): Remove.
118146         (getopt): Argv is now char * const *, as per standard.
118148         * lib/getdate.y (tORDINAL): New token.
118149         (day, relunit): Allow it for relative times.
118150         (relative_time_table): Use tORDINAL for ordinals.
118152 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
118154         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
118155         Document that "second" isn't allowed as an ordinal number.
118157 2004-11-16  Jim Meyering  <jim@meyering.net>
118159         * modules/closeout (Depends-on): Add fpending.
118161 2004-11-15  Jim Meyering  <jim@meyering.net>
118163         * lib/closeout.c: Include "__fpending.h" once again.
118164         Include <stdbool.h>.
118165         (close_stdout): Don't fail just because stdout was closed initially,
118166         since some programs don't write to stdout in the normal course of
118167         operation (other than --version and --help), and we don't want this
118168         function to make e.g. `touch file >&-' fail.
118169         But do fail if it was closed and someone has tried to write to it.
118170         E.g., `printf foo >&-' must fail.
118172 2004-11-13  Jim Meyering  <jim@meyering.net>
118174         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
118176 2004-11-12  Simon Josefsson  <jas@extundo.com>
118178         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
118179         small doc fix is still pending.
118181 2004-11-11  Simon Josefsson  <jas@extundo.com>
118183         * modules/strtok_r: New file.
118185         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118186         strtok_r.
118188 2004-11-11  Simon Josefsson  <jas@extundo.com>
118190         * m4/strtok_r.m4: New file.
118192         * m4/getopt.m4: Replace opterr.
118194 2004-11-11  Simon Josefsson  <jas@extundo.com>
118196         * lib/strtok_r.h, strtok_r.c: New file.
118198 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
118200         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
118201         of replacing opterr, getopt, etc.  This should handle the
118202         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
118204 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
118206         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
118207         we can stop lying to compilers about the constness of argv when we
118208         are compiled outside glibc.
118209         (getopt, getopt_long, getopt_long_only): Use it.
118210         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
118211         _getopt_internal, getopt): Likewise.
118212         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
118213         _getopt_long_only_r): Likewise.
118214         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
118215         _getopt_long_r, _getopt_long_only_r): Likewise.
118217         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
118218         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
118219         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
118220         the other external symbols.
118221         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
118222         declaration, since the above renaming now works around collisions.
118224 2004-11-11  Jim Meyering  <jim@meyering.net>
118226         * lib/linebreak.c: Remove trailing blanks.
118227         * lib/alloca_.h: Likewise.
118228         * lib/acosl.c: Likewise.
118229         * lib/euidaccess.c: Likewise.
118230         * lib/allocsa.h: Likewise.
118232 2004-11-10  Simon Josefsson  <jas@extundo.com>
118234         * m4/getaddrinfo.m4: New file.
118236 2004-11-10  Simon Josefsson  <jas@extundo.com>
118238         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
118240 2004-11-10  Simon Josefsson  <jas@extundo.com>
118242         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118243         getaddrinfo.
118245         * modules/getaddrinfo: New file.
118247 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118249         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
118251 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118253         * lib/mktime.c (SHR): New macro, which is a portable
118254         substitute for >> that should work even on Crays.
118255         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
118256         Problem reported by Mark D. Baushke in
118257         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
118258         * lib/getdate.y (SHR): Likewise.
118259         (tm_diff): Use it.
118260         * lib/strftime.c (SHR): Likewise.
118261         (tm_diff): Use it.
118262         * lib/quotearg.c (struct quoting_options): Use unsigned int for
118263         quote_these_too, so that right shifts are well defined.  All uses
118264         changed.
118266 2004-11-10  Jim Meyering  <jim@meyering.net>
118268         Ensure that no close failure goes unreported.
118269         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
118270         return early when it seems there's nothing to flush.
118271         Don't include __fpending.h.
118273 2004-11-10  Jim Meyering  <jim@meyering.net>
118275         * modules/closeout (Depends-on): Remove fpending.
118277 2004-11-10  Jim Meyering  <jim@meyering.net>
118279         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
118281 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
118283         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
118284         gl_FUNC_STRFTIME.
118285         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
118286         and AC_REQUIRE when possible, to avoid duplicate checks.
118287         Check for <wchar.h>.
118289 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
118291         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
118293 2004-11-09  Bruno Haible  <bruno@clisp.org>
118295         * m4/sockpfaf.m4: New file.
118297 2004-11-05  Bruno Haible  <bruno@clisp.org>
118299         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
118300         Reported by Mark D. Baushke <mdb@cvshome.org>.
118302 2004-11-04  Bruno Haible  <bruno@clisp.org>
118304         2004-09-11  Bruno Haible  <bruno@clisp.org>
118305                 * allocsa.valgrind: New file.
118306         2004-02-06  Bruno Haible  <bruno@clisp.org>
118307                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
118308                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
118309                 Reported by Christopher Seip <chris.seip@hp.com>.
118311 2004-11-04  Bruno Haible  <bruno@clisp.org>
118313         * modules/allocsa (Files): Add lib/allocsa.valgrind.
118314         (Makefile.am): Distribute it.
118316 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
118318         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
118319         with errno == ERANGE if the buffer is too small.
118320         Problem reported by Mark D. Baushke.
118322 2004-11-03  Albert Chin  <china@thewrittenword.com>
118323             Paul Eggert  <eggert@cs.ucla.edu>
118325         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
118326         equivalent, substitute $ac_type for equivalent type rather than
118327         blindly using uint32_t *always* which won't work if uint32_t is not
118328         available.  Define _UINT32_T to work around typedef of uint32_t if
118329         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
118330         2.5.1.
118332 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
118334         * m4/jm-macros.m4: Sync from coreutils.
118335         (gl_MACROS): Check for mbrlen, for pathchk.
118336         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
118338 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
118340         * lib/xreadlink.c (MAXSIZE): New macro.
118341         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
118342         size does not exceed MAXSIZE.  Avoid cast.
118343         As suggested by Mark D. Baushke in
118344         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
118345         if readlink fails with buffer size just under MAXSIZE, try again
118346         with MAXSIZE.
118348 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
118350         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
118352 2004-11-02  Derek R. Price  <derek@ximbiot.com>
118353         and  Paul Eggert  <eggert@cs.ucla.edu>
118355         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
118356         (get_date): Overparenthesize to avoid GCC warning.
118358 2004-11-02  Bruno Haible  <bruno@clisp.org>
118360         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
118361         returns void.
118363 2004-11-02  Bruno Haible  <bruno@clisp.org>
118365         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
118366         function returns void.
118368 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
118370         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
118371         fflush_unlocked, flockfile, funlockfile, funlockfile,
118372         fputs_unlocked, putc_unlocked.
118374 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
118376         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
118377         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
118378         already declared.
118380 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118382         * modules/getdate (Files): Add doc/getdate.texi.
118383         (Depends-on): Add setenv, xalloc.
118385 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118387         * lib/getdate.y: Add support for TZ="foo" within a date string.
118388         Fix some bugs near time_t boundaries.  Reject dates with
118389         out-of-range components, e.g., "Sept 31".
118390         Include <stdlib.h>, "setenv.h", "xalloc.h".
118391         (ISDIGIT_LOCALE): Remove; unused.
118392         Note that the TZ and time functions used here are not reentrant.
118393         (mktime_ok, get_tz): New functions.
118394         (TZBUFSIZE): New constant.
118395         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
118396         This requires that we sometimes generate our own TZ="XXX..." setting.
118398 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118400         * doc/getdate.texi: New file, from coreutils with modifications for
118401         the new TZ parsing.
118403 2004-10-27  Derek R. Price  <derek@ximbiot.com>
118405         * lib/mktime.c (not_equal_tm): Remove redundant check.
118407 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
118409         * modules/regex (lib_SOURCES): Add regex.c.
118410         Reported by James Youngman in
118411         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
118413 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
118415         * lib/getdate.y: Use Bison 1.875 features, and some minor
118416         code cleanups.  This change does not affect semantics.
118417         Don't include <stdlib.h>; no longer needed.
118418         Don't include unlocked-io.h; only the "#if TEST" code uses
118419         stdio, and performance isn't crucial there.
118420         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
118421         Bison 1.875 features as described below.
118422         All uses of "PC." replaced by "pc->".
118423         (YYSTYPE): Add a forward declaration.
118424         (yylex, yyerror): Use full prototypes in forward decls.
118425         Use "%pure-parser" rather than obsolescent "%pure_parser".
118426         Use %parse-param and %lex-param instead of obsolescent
118427         YYPARSE_PARAM and YYLEX_PARAM.
118428         (meridian_table, month_and_day_table, time_units_table,
118429         relative_time_table, time_zone_table, military_table,
118430         lookup_zone, lookup_word, get_date):
118431         Use NULL instead of 0 where appropriate.
118432         (to_hour): Avoid abort (), to avoid a dependency on
118433         stdlib.h.
118434         (yyerror, yylex): Now accepts parser_control * arg.
118435         (main) [TEST]: Use '\0' rather than 0 for char.
118437 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
118439         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
118441 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
118443         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
118444         It's now the caller's responsibility to handle the case where
118445         !HAVE_GETPAGESIZE && !defined getpagesize.
118447         * lib/mktime.c (leapyear): Arg is long int, not int.
118449 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
118451         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
118453 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
118455         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
118456         missing.  Problem reported by James Youngman.
118458 2004-10-16  Simon Josefsson  <jas@extundo.com>
118460         * gnulib-tool: Fix comments.  Fix parse problem.
118461         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
118463 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
118465         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
118466         implementation of getopt_long.  Problem reported by Alexander Taler in:
118467         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
118469 2004-10-15  Bruno Haible  <bruno@clisp.org>
118471         * gnulib-tool: Untabify. Initialize supplied_libname.
118472         (func_usage): More homogenous output.
118473         (func_modules_transitive_closure, func_modules_to_filelist,
118474         func_emit_lib_Makefile_am): New functions.
118475         (func_import): New function, extracted from big case statement. Use
118476         func_get_license, func_modules_transitive_closure,
118477         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
118478         opt_lgpl. Don't use test -a, as it's not portable.
118479         (func_create_testdir): Use func_modules_transitive_closure,
118480         func_modules_to_filelist, func_emit_lib_Makefile_am.
118482 2004-10-15  Bruno Haible  <bruno@clisp.org>
118484         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
118486 2004-10-15  Bruno Haible  <bruno@clisp.org>
118488         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
118489         the portions belonging to each module.
118490         Suggested by Derek Robert Price <derek@ximbiot.com>.
118492 2004-10-12  Simon Josefsson  <jas@extundo.com>
118494         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
118495         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
118496         to real functions.
118498 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118500         * modules/vsnprintf: New file.
118502 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118504         * m4/vsnprintf.m4: New file.
118506 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118508         * lib/vsnprintf.h: New file.
118509         * lib/vsnprintf.c: New file.
118511 2004-10-11  Bruno Haible  <bruno@clisp.org>
118513         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
118514         vsnprintf.
118516 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118518         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
118520 2004-10-07  Bruno Haible  <bruno@clisp.org>
118522         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
118523         fits into the provided buffer.
118525 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118527         * lib/diacrit.c, diacrit.h: Add GPL notice.
118529         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
118530         notice.
118531         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
118532         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
118533         This avoids a potential constant-folding bug.
118535 2004-10-05  Bruno Haible  <bruno@clisp.org>
118537         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
118538         for the declaration of strsep.
118540 2004-10-05  Bruno Haible  <bruno@clisp.org>
118542         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
118544 2004-10-04  Simon Josefsson  <jas@extundo.com>
118546         * modules/memmem: New file.
118547         * tests/test-memmem.c: New file.
118548         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
118550 2004-10-04  Simon Josefsson  <jas@extundo.com>
118552         * m4/memmem.m4: New file.
118554 2004-10-04  Simon Josefsson  <jas@extundo.com>
118556         * lib/memmem.h: New file.
118557         * lib/memmem.c: New file, taken from glibc.
118559 2004-10-04  Simon Josefsson  <jas@extundo.com>
118561         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
118562         '#ifdef USE_UNLOCKED_IO'.
118564 2004-10-04  Simon Josefsson  <jas@extundo.com>
118566         * config/srclist.txt: Add memmem from glibc.
118568 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118570         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
118572         * modules/argmatch, modules/argp, modules/closeout, modules/error,
118573         modules/exclude, modules/getdate, modules/getline,
118574         modules/getndelim2, modules/getpass, modules/getpass-gnu,
118575         modules/getusershell, modules/linebuffer, modules/md5,
118576         modules/mountlist, modules/posixtm, modules/readtokens,
118577         modules/readutmp, modules/regex, modules/sha1,
118578         modules/version-etc, modules/yesno:
118579         Remove dependency on unlocked-io.
118581 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118583         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
118585         * m4/unlocked-io.m4: Add copyright notice.
118586         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
118588 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118590         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
118591         * lib/xmalloc.c (xmemdup): Likewise.
118592         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
118593         XFREE): Remove these long-obsolescent macros.
118594         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
118595         * lib/xstrdup.c: Remove.
118597         * lib/regex.c (re_comp): Cast gettext return value to char *,
118598         Problem reported by Martin Neitzel via Mark D. Baushke.
118600 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118602         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
118603         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
118604         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
118605         regex.c, sha1.c, version-etc.c, yesno.c:
118606         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
118607         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
118608         the includer's responsibility.
118610         Sync from coreutils.
118612         * lib/modechange.c (mode_compile): Don't decrement a pointer that
118613         points to the start of a string, as the C Standard says the
118614         resulting behavior is undefined.
118616         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
118617         simple -> simple_backups, numbered_existing ->
118618         numbered_existing_backups, numbered -> numbered_backups
118619         to avoid shadowing problems.  All uses changed.
118620         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
118621         * lib/backupfile.c (check_extension, numbered_backup):
118622         Rename locals to avoid shadowing 'basename'.
118623         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
118624         once.
118626         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
118627         * lib/.cvsignore: Add getopt.h.
118629 2004-10-04  Bruno Haible  <bruno@clisp.org>
118631         * modules/README: New file.
118632         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
118633         not a module.
118635 2004-10-02  Jim Meyering  <jim@meyering.net>
118637         * lib/dirfd.h, getpagesize.h: Add copyright notice.
118639 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118641         * modules/strsep: New file.
118643 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118645         * m4/strsep.m4: New file.
118647 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118649         * lib/strsep.h: New file.
118650         * lib/strsep.c: New file.
118652 2004-10-01  Simon Josefsson  <jas@extundo.com>
118654         * lib/snprintf.c (snprintf): Handle size==0.
118656 2004-10-01  Simon Josefsson  <jas@extundo.com>
118657             Bruno Haible  <bruno@clisp.org>
118659         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
118660         (snprintf): Declare 'args'.
118662 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
118664         * lib/snprintf.c: Remove comments as to why each header is needed.
118666 2004-10-01  Bruno Haible  <bruno@clisp.org>
118668         * MODULES.html.sh: Add strsep.
118670 2004-09-30  Simon Josefsson  <jas@extundo.com>
118672         * modules/snprintf: New file.
118674 2004-09-30  Simon Josefsson  <jas@extundo.com>
118676         * m4/snprintf.m4: New file.
118678 2004-09-30  Simon Josefsson  <jas@extundo.com>
118680         * lib/snprintf.h, lib/snprintf.c: New files.
118682 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118684         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
118685         (hol_entry_help): Never translate an empty string.
118686         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
118687         * lib/argp.h (OPTION_NO_TRANS): New option.
118689 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
118691         * modules/argp (Maintainer): Replace Simon Josefsson
118692         by Sergey Poznyakoff.
118694 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
118696         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
118697         changes merged back into glibc.
118699 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
118701         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
118703 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
118705         * lib/xvasprintf.c: Include xalloc.h.
118706         (xvasprintf): Use xalloc_die, not xmalloc_die.
118708 2004-09-29  Bruno Haible  <bruno@clisp.org>
118710         * modules/alloca-opt: New file, derived from modules/alloca.
118711         * modules/allocsa: Depend on alloca-opt instead of alloca.
118712         * modules/setenv: Likewise.
118713         * modules/vasnprintf: Likewise.
118714         * MODULES.html.sh: Add alloca-opt.
118716 2004-09-28  Simon Josefsson  <jas@extundo.com>
118718         * gnulib-tool: New parameter --lgpl, to asseert that modules are
118719         LGPL, and to replace license template from GPL to LGPL.
118721 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
118723         * modules/dummy: Change license to LGPL.
118725 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
118727         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
118729 2004-09-24  Simon Josefsson  <jas@extundo.com>
118731         * modules/minmax (License): Change from GPL to LGPL.
118733 2004-09-23  Simon Josefsson  <jas@extundo.com>
118735         * gnulib-tool (--import): Typo.
118737 2004-09-23  Simon Josefsson  <jas@extundo.com>
118739         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
118741 2004-09-22  Bruno Haible  <bruno@clisp.org>
118743         * modules/*: Add 'License' field.
118744         * gnulib-tool: Accept --extract-license option.
118745         (func_get_license): New function.
118747 2004-09-21  Bruno Haible  <bruno@clisp.org>
118749         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
118750         Reported by Simon Josefsson.
118752 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
118754         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
118755         gl_AC_TYPE_LONG_LONG.
118757 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
118759         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
118761 2004-09-18  Simon Josefsson  <jas@extundo.com>
118762         and  Paul Eggert  <eggert@cs.ucla.edu>
118764         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
118765         calls with autoreconf.  Define GL_LIB.
118767 2004-09-14  Karl Berry  <karl@gnu.org>
118769         * config/srclist.txt: unsync setenv.c, sigh.
118771 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
118773         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
118774         Problem reported by Bruno Haible in:
118775         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
118777 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
118779         * config/srclist.txt: Comment out argp-pvh.c.
118781 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
118783         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
118784         in case some system header has #define'd it.  Problem reported by
118785         Soeren D. Schulze in
118786         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
118788 2004-09-09  Karl Berry  <karl@gnu.org>
118790         * regex.[ch]: delete from the root.  These were supposed to be
118791                 synced with emacs cvs, but this has not happened for about
118792                 a year, and anyway nothing else uses emacs regex.[ch].
118793                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
118794                 lib/regex[.ch] is untouched.
118796 2004-09-09  Bruno Haible  <bruno@clisp.org>
118798         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
118800 2004-09-09  Bruno Haible  <bruno@clisp.org>
118802         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
118803         modifications.
118804         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
118806 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
118808         * modules/xvasprintf: New file.
118809         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
118811 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
118813         * lib/xvasprintf.h: New file.
118814         * lib/xvasprintf.c: New file.
118815         * lib/xasprintf.c: New file.
118817 2004-09-08  Bruno Haible  <bruno@clisp.org>
118819         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
118821 2004-09-08  Bruno Haible  <bruno@clisp.org>
118823         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
118824         length is > INT_MAX.
118825         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
118826         more.
118828 2004-09-08  Bruno Haible  <bruno@clisp.org>
118830         * lib/stdint_.h: New file, taken from GNU clisp.
118832 2004-09-08  Bruno Haible  <bruno@clisp.org>
118833             Oskar Liljeblad  <oskar@osk.mine.nu>
118835         * modules/stdint: New file.
118836         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
118838 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118840         Import from coreutils.
118841         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
118842         strings on unbounded length.  alloca's performance benefits aren't
118843         that important here.
118844         (V_STRDUP): Remove.
118845         (parse_with_separator): New function, with most of the internals
118846         of the old parse_user_spec.  Allow user to omit both user and group,
118847         for compatibility with FreeBSD.
118848         Clone only the user name, not the entire spec.
118849         Do not set *uid, *gid unless entirely successful.
118850         Avoid memory leak in some failing cases.
118851         Fix regression for USER.GROUP reported by Dmitry V. Levin in
118852         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
118853         (parse_user_spec): Rewrite to use parse_with_separator.
118855 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118857         * modules/userspec: Don't depend on alloca.
118859 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118861         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
118863 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
118865         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
118866         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
118867         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
118869 2004-08-16  Simon Josefsson  <jas@extundo.com>
118871         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
118872         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
118873         Add --dry-run for --import.
118874         Let user provided command line parameters override configure.ac
118875         settings.
118877 2004-08-12  Simon Josefsson  <jas@extundo.com>
118879         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
118880         as discussed with Paul Eggert in threads rooted at
118881         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
118882         and
118883         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
118884         Before, the test was empty, and relied on ELIDE_CODE in source
118885         code.)
118886         (gl_PREREQ_GETOPT): New macro.
118887         (gl_GETOPT): Use them.
118889 2004-08-12  Simon Josefsson  <jas@extundo.com>
118891         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
118892         * lib/getopt_.h: Renamed from getopt.h.
118894 2004-08-12  Simon Josefsson  <jas@extundo.com>
118896         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
118897         Change default library name from libfoo to libgnu.
118898         Now, if you have a configure.ac that says:
118899                 gl_SOURCE_BASE(gl)
118900                 gl_M4_BASE(gl/m4)
118901                 gl_MODULES(error getopt etcetera)
118902                 gl_INIT
118903         you can import all you need by running:
118904                 ../gnulib/gnulib-tool --import
118906         * modules/getopt (Files): Rename getopt.h to getopt_.h.
118907         (Makefile.am): Rewrite, use logic from argz.
118908         (Include): Use <getopt.h> instead of "getopt.h".
118910 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118912         * modules/argp (Files): Add m4/unlocked-io.m4.
118913         (Depends-on): Add extensions.
118915 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118917         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
118918         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
118919         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
118920         Check for program_invocation_name, program_invocation_short_name,
118921         flockfile, funlockfile, features.h, _getopt_long_only_r.
118923 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118925         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
118926         its complicated substitute.
118927         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
118928         and program_invocation_name.
118929         (__argp_basename) [!_LIBC]: Remove; the only use was
118930         replaced by its body.
118931         (__argp_short_program_name): Change condition from
118932         !defined __argp_short_program_name to
118933         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
118934         to match argp-namefrob.h.
118935         (__argp_failure): Don't assume strerror_r returns char *.
118936         * lib/argp-parse.c (N_): Define unconditionally.
118937         (argp_default_options): Fill out initializers with 0 to avoid
118938         gcc warnings.
118940 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118942         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
118943         getopt1.c.
118945 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
118947         Merge from coreutils.
118949         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
118951         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
118952         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
118954 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
118956         Merge from coreutils.
118958         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
118959         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
118960         for Reliant Unix 5.43.
118962         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
118963         (union fooround): Use uintmax_t, not long int.
118964         The rest is a merge from libc:
118965         [defined _LIBC]: Include <shlib-compat.h>.
118966         (_obstack) [defined _LIBC]: Remove after 2.3.4.
118968         * lib/settime.c (settime): Recode to avoid warning with
118969         Sun Forte C 6U2.
118971         * lib/strverscmp.c: Convert to UTF-8.
118973 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
118975         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
118976         m4/uintmax_t.m4.
118978 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
118980         * modules/xalloc-die: New file.
118981         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
118983         * modules/md5 (Files): Add m4/uint32_t.m4.
118984         * modules/sha1: Renamed from modules/sha.
118985         (Files):
118986         Rename lib/sha.h to lib/sha1.h.
118987         Rename lib/sha.c to lib/sha1.c.
118988         Rename m4/sha.m4 to m4/sha1.m4.
118989         (lib_SOURCES): Likewise.
118990         (configure.ac): Rename gl_SHA to gl_SHA1.
118991         (Include): sha.h -> sha1.h.
118993 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
118995         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
118996         * m4/sha1.m4: Renamed from sha.m4.
118997         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
118999 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
119001         * lib/obstack.h (obstack_empty_p):
119002         Don't assume that chunk->contents is suitably aligned.
119003         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
119004         Likewise. Problem reported by Benno in
119005         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
119007         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
119008         readable.  This could be improved further but it'd take some work.
119010 2004-08-08  Simon Josefsson  <jas@extundo.com>
119012         * modules/xgethostname (Depends-on): Remove exit and error (not
119013         used).
119015         * modules/getpass-gnu: Add getpass.h.
119016         (Depends-on): Add stdbool.
119017         * modules/getpass: Add getpass.h.
119019 2004-08-08  Simon Josefsson  <jas@extundo.com>
119021         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
119022         Check getpass declaration.
119024 2004-08-08  Simon Josefsson  <jas@extundo.com>
119026         * lib/xgethostname.c: Don't include error.h (not used).
119028         * lib/getpass.h: Add.
119029         * lib/getpass.c: Include getpass.h first.
119031 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
119033         * lib/xalloc-die.c: New file.
119034         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
119035         All uses removed.
119036         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
119037         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
119038         xalloc-die.c.
119039         (_, N_, xalloc_die): Move to xalloc-die.c.
119040         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
119041         so that we needn't mess with xalloc_msg_memory_exhausted.
119043         * lib/sha1.h: Renamed from sha.h.
119044         (SHA1_H): Renamed from _SHA_H.
119045         (sha1_ctx): Renamed from sha_ctx.
119046         (sha1_init_ctx): Renamed from sha_init_ctx.
119047         (sha1_process_block): Renamed from sha_process_block.
119048         (sha1_process_bytes): Renamed from sha_process_bytes.
119049         (sha1_finish_ctx): Renamed from sha_finish_ctx.
119050         (sha1_read_ctx): Renamed from sha_read_ctx.
119051         (sha1_stream): Renamed from sha_stream.
119052         (sha1_buffer): Renamed from sha_buffer.
119053         * lib/sha1.c: Likewise; renamed from sha.c.
119054         Do not include <sys/types.h>.
119055         Include <stddef.h> rather than <stdlib.h>.
119057 2004-08-08  Bruno Haible  <bruno@clisp.org>
119059         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
119060         FILESYSTEM_PREFIX_LEN.
119061         * lib/progreloc.c: Likewise.
119062         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
119064 2004-08-06  Simon Josefsson  <jas@extundo.com>
119066         * modules/progname (Depends-on): Don't depend on stdbool.
119068 2004-08-06  Simon Josefsson  <jas@extundo.com>
119070         * modules/getsubopt: New file.
119071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119072         getsubopt.
119074 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
119076         More merge from coreutils.
119078         * m4/utimens.m4, m4/utimecmp.m4: New files.
119079         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
119080         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
119081         prereq.m4, sha.m4: Import changes from coreutils.
119083 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
119085         More merge from coreutils.
119086         * modules/raise, modules/readtokens0, modules/utimens:
119087         * modules/utimecmp, module/xnanosleep: New files.
119088         * modules/strftime: Add lib/strftime.h.
119089         Change include from <time.h> to "strftime.h".
119090         * modules/yesno: Add lib/yesno.h.
119091         * modules/backupfile: Remove lib/addext.c.
119092         * modules/euidaccess: Add stat-macros.h.
119093         * modules/canonicalize, modules/euidaccess,
119094         modules/filemode, modules/lchown, modules/makepath,
119095         modules/rmdir, modules/stat: Likewise.
119097 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
119099         Merge from tar.
119100         * lib/argp-help.c (make_hol, hol_append): Don't assume that
119101         SIZE_MAX is a valid preprocessor constant.
119102         (__argp_basename): Change from "#ifndef _LIBC"
119103         to "#ifndef __argp_short_program_name", so that
119104         we don't compile these functions for tar.
119106         More merges from coreutils.
119107         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
119108         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
119109         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
119110         * lib/addext.c: Remove; no longer needed.
119111         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
119112         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
119113         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
119114         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
119115         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
119116         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
119117         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
119118         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
119119         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
119120         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
119121         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
119122         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
119123         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
119124         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
119125         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
119126         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
119127         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
119128         Import changes from coreutils.
119130 2004-08-05  Simon Josefsson  <jas@extundo.com>
119132         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
119134 2004-08-05  Simon Josefsson  <jas@extundo.com>
119136         * m4/getsubopt.m4: New file.
119138 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
119140         Merge from coreutils.
119142         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
119143         * m4/getcwd-path-max.m4: New files.
119145         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
119146         FILESYSTEM_PREFIX_LEN ->
119147         FILE_SYSTEM_PREFIX_LEN.
119148         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
119149         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
119150         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
119151         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
119153         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
119154         prerequisite modules now handle the DOS stuff.
119155         Don't check for unistd.h.
119157 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
119159         Merge from coreutils.
119161         * lib/.gdb-history: Remove; this doesn't belong here.
119163         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
119164         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
119165         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
119166         * lib/getcwd.c: New files.
119168         * lib/dirname.h: Include <stdbool.h>.
119169         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
119170         for consistency with POSIX terminology.  All uses changed.
119171         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
119172         (strip_trailing_slashes): Use bool for booleans.
119173         * lib/stripslash.c (strip_trailing_slashes): Likewise.
119175         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
119176         sometimes returns a positive errno value even when it succeeds.
119177         (print_errno_message) [!LIBC]: Fall back on strerror if
119178         __strerror_r fails.
119180         * lib/path-concat.c (mempcpy): Don't define if a system header defines
119181         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
119182         (longest_relative_suffix): New function.
119183         (path_concat): Use it.  Assume first argument is not NULL.
119184         Port to DOS.  Omit redundant separators.
119185         Report an error instead of returning NULL.
119186         Use mempcpy instead of memcpy.
119187         (xpath_concat): Remove: not declared or used.
119189         * lib/same.h: Include <stdbool.h>
119190         (same_name): Return bool, not int.
119191         * lib/same.c (same_name): Likewise.
119192         (errno): Don't declare; we assume C89 or better now.
119194         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
119195         if not already defined.
119197         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
119198         * lib/dup-safer.c (errno): Likewise.
119200 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
119202         Merge from coreutils.
119203         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
119204         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
119205         * modules/path-concat: Don't depend on strdup.
119207 2004-08-03  Simon Josefsson  <jas@extundo.com>
119209         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
119210         * lib/progname.h: Don't include stdbool.h.
119212 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
119214         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
119215         * MODULES.html.sh (func_all_modules): Remove fatal.
119217 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
119219         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
119221 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
119223         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
119224         working.
119226 2004-08-02  Simon Josefsson  <jas@extundo.com>
119228         * lib/getsubopt.h: New file, with comments from Bruno Haible.
119229         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
119230         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
119232 2004-08-01  Simon Josefsson  <jas@extundo.com>
119234         * lib/xgetdomainname.c: Include stdlib.h, for free().
119236 2004-07-19  Bruno Haible  <bruno@clisp.org>
119238         * MODULES.html.sh (func_all_modules): Add dummy.
119240 2004-07-16  Simon Josefsson  <jas@extundo.com>
119242         * modules/dummy: New file.
119244 2004-07-16  Simon Josefsson  <jas@extundo.com>
119246         * lib/dummy.c: New file.
119248 2004-07-16  Bruno Haible  <bruno@clisp.org>
119250         * lib/backupfile.h: Add extern "C" for C++.
119251         * lib/closeout.h: Likewise.
119252         * lib/copy-file.h: Likewise.
119253         * lib/findprog.h: Likewise.
119254         * lib/full-write.h: Likewise.
119255         * lib/pathname.h: Likewise.
119256         * lib/progname.h: Likewise.
119257         * lib/stpcpy.h: Likewise.
119258         * lib/stpncpy.h: Likewise.
119259         * lib/strcase.h: Likewise.
119260         * lib/strstr.h: Likewise.
119261         * lib/xalloc.h: Likewise.
119263         * lib/mbswidth.h: Add extern "C" for C++.
119264         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
119266 2004-07-13  Robert Millan  <robertmh@gnu.org>
119268         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
119270 2004-07-09  Simon Josefsson  <jas@extundo.com>
119272         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
119273         failed without this.)
119275 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
119277         * modules/chown (Files): Add lib/fchown-stub.c, since
119278         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
119280 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
119282         * lib/fchown-stub.c: New file.
119284 2004-06-24  Jim Meyering  <jim@meyering.net>
119286         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
119288 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119290         * modules/argz: Omit "#include".
119292         * MODULES.html.sh (func_all_modules): Add calloc, to match
119293         2004-06-01 addition of calloc module.
119295 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119297         * m4/argz.m4: New file, which is autoupdated from libtool.
119299 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119301         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
119302         libtool.
119304 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119306         * config/srclist-update: Don't insist on "USA." before the
119307         close-comment, as libtool omits the period and puts the */ on a
119308         separate line.
119309         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
119310         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
119312 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
119314         * modules/argz: New file.
119315         * MODULES.html.sh (func_all_modules): Add argz.
119317 2004-06-12  Jim Meyering  <jim@meyering.net>
119318         and  Paul Eggert  <eggert@cs.ucla.edu>
119320         * modules/hash (Files): Add lib/xalloc.h.
119321         * modules/pipe (Depends-on): Add wait-process.
119322         * modules/stat (Depends-on): Add xalloc.
119323         * modules/userspec (Files): Add lib/userspec.h.
119324         * modules/xstrto
119326         Upgrade from gettext-0.13.
119327         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
119328         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
119329         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
119331 2004-06-10  Jim Meyering  <jim@meyering.net>
119333         * lib/calloc.c: New file.
119335 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
119337         * lib/getdate.y (yylex): Allow space between sign and number.
119338         Problem reported by Dan Jacobson.
119340 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
119342         Merge from coreutils CVS.
119344         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
119345         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
119346         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
119347         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
119348         xstrtol.m4: Fix copyright date and/or serial number.
119350         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
119351         See if we need an fchown replacement.
119352         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
119353         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
119354         and use the replacement function if we detect either defect.
119356         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
119357         gl_UTIMECMP.
119359 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
119360         and  Jim Meyering  <jim@meyering.net>
119362         Merge from coreutils CVS.
119364         * lib/stat-macros.h: New file, with contents from file-type.h
119365         and coreutils' system.h.
119366         * lib/file-type.c: Include "stat-macros.h".
119367         * lib/file-type.h (file_type): Move all macro definitions to new file,
119368         stat-macros.h.
119370         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
119371         Wrap old code with this conditional.
119372         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
119373         function that does not dereference symlinks.
119374         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
119376         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
119377         dependency problems.
119378         (xreadlink): Accept new arg SIZE, for efficiency.
119379         All decls and uses changed.
119380         * lib/xreadlink.h: Include <stddef.h>, for size_t.
119382         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
119383         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
119385         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
119386         sysexits.h.
119388 2004-06-01  Jim Meyering  <jim@meyering.net>
119390         * m4/calloc.m4: New file.
119392 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
119394         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
119395         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
119396         Also, fix a typo in a diagnostic.
119398 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
119400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
119401         or AC_FUNC_REALLOC.
119403 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
119405         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
119406         macros to be defined.
119407         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
119408         the allocator returns NULL because the requested size is zero.
119410 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119412         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
119413         var.  Add comment explaining why libc still defines it.  This
119414         merges the following patch from glibc:
119415         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
119417 2004-05-20  Andreas Schwab  <schwab@suse.de>
119419         * m4/free.m4: Replace free if it not known to work, not the other
119420         way round.
119422 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
119424         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
119425         present in glibc since revision 1.1 of this file.
119426         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
119427         obstack_alignment_mask, obstack_alloc, obstack_base,
119428         obstack_blank, obstack_blank_fast, obstack_chunk_size,
119429         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
119430         obstack_grow0, obstack_init, obstack_int_grow,
119431         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
119432         obstack_next_free, obstack_object_size, obstack_ptr_grow,
119433         obstack_ptr_grow_fast, obstack_room): Remove declarations of
119434         nonexistent functions.
119436 2004-05-18  Karl Berry  <karl@gnu.org>
119438         * config/srclist.txt: break link for vasnprintf.c.
119440 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
119442         Port obstack to the AS/400, where pointers are 16 bytes wide and
119443         you cannot cast an integer to a valid pointer.  This patch is
119444         currently waiting to be integrated into glibc; see
119445         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
119447         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
119448         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
119449         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
119450         (struct obstack): temp member is now a union of a pointer and
119451         an integer, instead of an integer.  All integer uses changed.
119452         This does not affect the physical layout of struct obstack,
119453         except on hosts (like the AS/400) where the size or alignment of
119454         void * is greater than that of ptrdiff_t.
119455         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
119456         __STDC__)]: Store temporary in pointer member of union, not
119457         integer member.
119458         * lib/obstack.c: Include <stddef.h>, for offsetof.
119459         (struct fooalign): Remove; it doesn't need a name.
119460         (union fooround): Change double to long double, and add void *.
119461         (DEFAULT_ALIGNMENT): Use offsetof to compute.
119462         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
119463         not a macro.  Hence the values are always int; so remove all
119464         casts-to-int in uses.
119466 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
119468         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
119469         we can get this patch merged into glibc.
119471 2004-05-17  Derek R. Price  <derek@ximbiot.com>
119472             Paul Eggert  <eggert@cs.ucla.edu>
119474         * m4/argp: Depend on alloca.
119476 2004-05-17  Derek R. Price  <derek@ximbiot.com>
119477             Paul Eggert  <eggert@cs.ucla.edu>
119479         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
119480         freecoding.
119482 2004-05-17  Bruno Haible  <bruno@clisp.org>
119484         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
119485         precision that consists of a '.' followed by an empty digit string.
119486         Patch by Tor Lillqvist <tml@iki.fi>.
119488 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
119490         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
119491         for backward compatibility with older code.  We need our own
119492         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
119493         it under some other name, and our alloca.h will define it.
119495 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
119496             Derek Price  <derek@ximbiot.com>
119498         * lib/alloca.c: Include <alloca.h>, to get our interface.
119499         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
119500         include <alloca.h> first.  Use C89 prototype for alloca; this
119501         requires including <stddef.h> for size_t.  Use extern "C" if C++.
119502         Use #elif for simplicity, since we can assume C89 now.
119503         Don't try to source the system alloca.h since it will not be found
119504         and to prevent recursively including its replacement.
119505         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
119506         * lib/regex.c: Likewise.
119508 2004-05-16  Derek Price  <derek@ximbiot.com>
119509             Paul Eggert  <eggert@cs.ucla.edu>
119511         getline cleanup.  This changes the getndelim2 API: both order of
119512         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
119513         no delimiter).
119515         * lib/getline.c: Don't include stddef.h or stdio.h, since our
119516         interface does that.
119517         (getline): Always use getdelim, so that we don't have two
119518         copies of this code.
119519         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
119520         if available.
119521         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
119522         (GETNDELIM2_MAXIMUM): New macro.
119523         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
119524         instead of the old practice of delim2==0.  All callers changed.
119525         Return -1 on overflow, instead of returning junk.
119526         Do not set *linesize unless allocation succeeds.
119527         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
119528         that we include sys/types.h.
119529         * lib/getnline.h: Likewise.
119530         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
119531         (getndelim2): Reorder arguments.
119532         * lib/getnline.c (getnline, getndelim):
119533         Don't discard the NMAX argument.
119534         (getnline): Invoke getndelim, to avoid code duplication.
119535         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
119536         of (size_t) -1 by callers of the getnline family.
119538 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119540         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
119541         Check for gettimeofday.
119542         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
119543         Check for settimeofday, stime.
119545 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119547         * lib/nanosleep.c (suspended): Change its type from int to
119548         sig_atomic_t volatile.
119549         (first_call): Make it private to rpl_nanosleep, and have it
119550         be zero initially as that's a bit faster.
119551         (my_usleep): Round up fractional times instead of truncating them,
119552         as this is the usual meaning for 'sleep'.
119554         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
119555         doesn't work.
119556         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
119557         (ENOSYS): Define if not defined.
119558         (settime): Fall back on stime if it exists and settimeofday fails.
119559         But don't bother with fallbacks if a method fails with errno == EPERM.
119561 2004-05-11  Jim Meyering  <jim@meyering.net>
119563         Prior to this change, the save_cwd caller required read access to the
119564         current directory on most systems (ones with the fchdir function).
119566         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
119567         fails, try write-only, and finally, resort to using xgetcwd.
119569 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
119571         * lib/obstack.c, obstack.h: Import changes from libc.
119573 2004-04-28  Bruno Haible  <bruno@clisp.org>
119575         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
119576         also implicitly appends .exe to executables.
119577         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
119578         accepts Windows pathnames.
119579         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
119580         Treat Cygwin like Windows, since it now accepts Windows pathnames.
119581         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
119582         Treat Cygwin like Windows, since it now accepts Windows pathnames.
119583         Reported by Derek Robert Price <derek@ximbiot.com>.
119585 2004-04-21  Karl Berry  <karl@gnu.org>
119587         * config/srclist.txt (localcharset.c): break sync.
119589 2004-04-20  Paul Eggert  <eggert@twinsun.com>
119591         * m4/host-os.m4: Add a copyright notice.
119593 2004-04-20  Jim Meyering  <jim@meyering.net>
119595         Change UTILS_ to gl_ in AC_DEFINE'd names.
119596         Change utils_- and jm_-prefixed variables, too.
119597         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
119598         UTILS_FUNC_MKDIR_TRAILING_SLASH.
119599         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
119601         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
119602         Don't emit trailing blanks.
119603         Also rename jm_-prefixed variables to have gl_ prefix.
119605         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
119606         Also rename jm_-prefixed variables to have gl_ prefix.
119608         * m4/jm-macros.m4: Reflect the renamings.
119609         * m4/prereq.m4: Likewise.
119611 2004-04-20  Jim Meyering  <jim@meyering.net>
119613         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
119614         memory.
119616 2004-04-20  Jim Meyering  <jim@meyering.net>
119617             Bruno Haible  <bruno@clisp.org>
119619         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
119620         memory when realloc fails.
119622 2004-04-19  Jim Meyering  <jim@meyering.net>
119624         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
119625         now that readutmp.c may call `free (0)'.
119627 2004-04-19  Bruno Haible  <bruno@clisp.org>
119629         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
119630         * m4/inttypes_h.m4: Likewise.
119631         * m4/stdint_h.m4: Likewise.
119632         * m4/intmax_t.m4: Likewise.
119633         * m4/uintmax_t.m4: Likewise.
119635 2004-04-18  Jim Meyering  <jim@meyering.net>
119637         * m4/prereq.m4: Don't forbid jm_ prefix.
119639         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
119640         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
119641         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
119642         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
119643         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
119644         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
119645         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
119646         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
119647         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
119648         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
119649         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
119650         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
119651         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
119652         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
119653         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
119654         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
119655         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
119656         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
119657         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
119659 2004-04-18  Jim Meyering  <jim@meyering.net>
119661         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
119662         failure, don't leak memory and do call END_UTMP_ENT.
119664 2004-04-16  Jim Meyering  <jim@meyering.net>
119666         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
119667         coreutils' stat program.
119668         (gl_PREREQ): Don't require jm_PREREQ_STAT.
119670 2004-04-11  Paul Eggert  <eggert@twinsun.com>
119672         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
119673         C89.
119674         (CHAR_BIT): Remove, since we assume C89.
119675         Include <stdint.h> if available, as per current Autoconf CVS advice.
119677 2004-03-31  Jim Meyering  <jim@meyering.net>
119679         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
119680         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
119681         * m4/xalloc.m4: Likewise.
119683 2004-03-30  Paul Eggert  <eggert@twinsun.com>
119685         Merge from coreutils.
119687         * m4/inttostr.m4: New file.
119688         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
119689         Require AM_STDBOOL_H and gl_TIMESPEC instead.
119690         Require gl_CLOCK_TIME.
119691         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
119693 2004-03-30  Paul Eggert  <eggert@twinsun.com>
119695         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
119696         not bool, to be more consistent with Unix conventions.
119697         Suggested by Bruno Haible.
119699         Merge from coreutils.
119701         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
119702         * lib/umaxtostr.c: New files.
119704         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
119705         the usual <time.h> dance.
119706         (get_date): Change signature to support fractional time stamps.
119707         All callers changed.
119708         * lib/getdate.y: Include "getdate.h" first, as we can now
119709         assume C89 and don't need to worry about 'const'.
119710         Similarly, include "unlocked-io.h" near start, not in middle.
119711         Include <limits.h>.
119712         (textint.value): Use long int rather than int.
119713         (textint.digits): Use size_t rather than int.
119714         (BILLION, LOG10_BILLION): New constants.
119715         (parser_control): New member rel_ns.  Members day_ordinal,
119716         time_zone, month, day, hour, minutes, rel_year, rel_month,
119717         rel_day, rel_hour, rel_minutes, rel_seconds
119718         are now long int, not int.  Member seconds is now struct timespec,
119719         not int.  New member timespec_seen.  Members dates_seen, days_seen,
119720         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
119721         not int.
119722         (%union.intval): Now long int, not int.
119723         New member timespec.
119724         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
119725         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
119726         (spec): Now is a timespec or an item list.
119727         (timespec, items): New nonterminals.
119728         (time, rel, relunit, number, get_date):
119729         Add support for fractional seconds.
119730         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
119731         (gmtime, localtime, mktime): Remove decls; not needed with C89.
119732         (to_hour): First arg is now long int, not int.
119733         (to_year): Returns long int, not int.
119734         Don't treat year -70 like 70.
119735         (tm_diff): Returns long int, not int.
119736         (lookup_word): Use bool instead of int when appropriate.
119737         (yylex): Use size_t for count, not int.
119738         Detect overflow when parsing large integer constants.
119739         Add support for fractions.
119740         (get_date): Make pointers 'const' if possible.
119741         Use more-portable code to detect integer overflow.
119742         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
119743         Don't use ctime; it's not reliable if the year has >4 digits.
119745         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
119746         This is for compatibility with BSD.
119748         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
119749         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
119750         From coreutils' system.h.
119752         * lib/userspec.c: Don't include "posixver.h".
119753         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
119754         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
119755         compatible extension.  Simplify code by removing a boolean int
119756         that was always nonzero if a string was nonnull.
119758 2004-03-30  Jim Meyering  <jim@meyering.net>
119760         Merge from coreutils.
119762         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
119763         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
119764         on some systems one must include <grp.h> before it.
119765         Reported by Christian Krackowizer.
119767 2004-03-30  Jim Meyering  <jim@meyering.net>
119769         Merge from coreutils.
119771         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
119773         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
119774         an empty input stream.
119776         * lib/readtokens.c: Include <stdbool.h>.
119777         (readtoken): Use `size_t' rather than int/long.
119778         All callers adjusted.
119779         Use `bool' rather than `int' where appropriate.
119780         Use memset rather than an explicit loop.
119781         Use x2nrealloc rather than xrealloc.
119782         Allow the use of `\0' as a delimiter.
119783         (readtokens): Likewise.
119784         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
119786 2004-03-30  Jim Meyering  <jim@meyering.net>
119788         * m4/realloc.m4: Remove file, since now it does no more than
119789         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
119790         the `configure.ac' section of module/realloc.
119791         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
119793 2004-03-30  Bruno Haible  <bruno@clisp.org>
119795         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
119796         nonnull.
119798 2004-03-29  Paul Eggert  <eggert@twinsun.com>
119800         Merge changes to getloadavg.c from coreutils and Emacs.
119802         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
119803         Define to an expression, not to the empty string.
119804         Include cloexec.h and xalloc.h.
119805         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
119806         Use set_cloexec_flag rather than rolling our own.
119807         * lib/cloexec.c, lib/cloexec.h: New files.
119809 2004-03-29  Paul Eggert  <eggert@twinsun.com>
119811         * m4/cloexec.m4: New file.
119813 2004-03-18  Paul Eggert  <eggert@twinsun.com>
119815         * lib/getopt.h: Sync with libc CVS.
119817 2004-03-18  Paul Eggert  <eggert@twinsun.com>
119818             Bruno Haible  <bruno@clisp.org>
119820         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
119821         mbswidth.
119823 2004-03-18  Paul Eggert  <eggert@twinsun.com>
119824             Bruno Haible  <bruno@clisp.org>
119826         * lib/mbswidth.h: Include <wchar.h> only if
119827         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
119828         <wchar.h>.
119829         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
119831 2004-03-09  Paul Eggert  <eggert@twinsun.com>
119833         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
119834         Sync with libc CVS.
119835         * lib/getopt_int.h: New file, also synced from libc.
119837 2004-03-09  Paul Eggert  <eggert@twinsun.com>
119839         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
119840         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
119841         Bring back getopt.c, getopt.h, getopt1.c.
119843 2004-03-07  Paul Eggert  <eggert@twinsun.com>
119845         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
119846         All uses changed.  Check for sa_sigaction member; this fixes
119847         a bug first reported by Jason Andrade in
119848         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
119850 2004-03-07  Paul Eggert  <eggert@twinsun.com>
119852         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
119853         '#if' expressions.  Unlike the code it replaces, it does not
119854         depend on (defined _SC_PAGESIZE).  However, it does depend on
119855         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
119856         first reported by Jason Andrade in
119857         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
119859 2004-02-25  Simon Josefsson  <jas@extundo.com>
119861         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
119863 2004-02-25  Simon Josefsson  <jas@extundo.com>
119865         * lib/strdup.h: New file.
119866         * lib/strdup.c: Include it.
119867         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
119868         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
119870 2004-02-23  Karl Berry  <karl@gnu.org>
119872         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
119873         (from fencepost.gnu.org:/gd/gnuorg).
119875 2004-02-23  Karl Berry  <karl@gnu.org>
119877         * config/srclistvars.sh (GNUORG) [karl]: redefine.
119878         * config/srclist.txt: add maintain/standards documents.
119880 2004-02-18  Bruno Haible  <bruno@clisp.org>
119882         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
119883         Reported by Derek Robert Price <derek@ximbiot.com>.
119885 2004-02-16  Karl Berry  <karl@gnu.org>
119887         * config/mkinstalldirs, install-sh: update from automake.
119889 2004-02-06  Karl Berry  <karl@gnu.org>
119891         * m4/po.m4: update from gettext 0.14.1.
119893 2004-02-06  Karl Berry  <karl@gnu.org>
119895         * lib/config.charset: update from gettext 0.14.1.
119897 2004-02-05  Paul Eggert  <eggert@twinsun.com>
119899         Add comments and code, prompted by suggestions from Bruno Haible
119900         for sh-quote.
119901         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
119902         describing the enum quoting_style values.
119903         * lib/quotearg.c (quotearg_alloc): New function.
119904         (quotearg_buffer_restyled): Treat lone { and } as special.
119905         Treat = as special.  Work around bug with older shells
119906         that "see" a '\' that is really the 2nd byte of a multibyte char.
119907         Quote empty string with shell_quoting_style.
119909 2004-02-03  Bruno Haible  <bruno@clisp.org>
119911         * m4/pipe.m4: New file, from GNU gettext.
119913 2004-02-03  Bruno Haible  <bruno@clisp.org>
119915         * lib/pipe.h: New file, from GNU gettext.
119916         * lib/pipe.c: New file, from GNU gettext.
119918 2004-01-27  Bruno Haible  <bruno@clisp.org>
119920         * m4/execute.m4: New file, from GNU gettext.
119922 2004-01-27  Bruno Haible  <bruno@clisp.org>
119924         * lib/execute.h: New file, from GNU gettext.
119925         * lib/execute.c: New file, from GNU gettext.
119926         * lib/w32spawn.h: New file, from GNU gettext.
119928 2004-01-24  Paul Eggert  <eggert@twinsun.com>
119930         Merge from diffutils.
119932         * lib/file-type.c (file_type): Add typed memory objects.
119933         * lib/file-type.h (S_TYPEISTMO): New macro.
119935         * lib/c-stack.h (c_stack_action): Remove argv argument.
119936         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
119937         (die): Don't calculate message unless segv_action returns.
119938         (get_stack_location, min_address_from_argv, max_address_from_argv,
119939         volatile stack_base, volatile_stack_size): Remove.
119940         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
119941         that every segmentation violation is a stack overflow.  (Ouch!)
119942         See Debian bug 136249 (still outstanding) for more info about why
119943         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
119945 2004-01-24  Paul Eggert  <eggert@twinsun.com>
119947         Exit-status fix from coreutils.
119949         Use exit_failure consistently in place of EXIT_FAILURE,
119950         so that program exit statuses are consistent on failure.
119952         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
119953         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
119954         * lib/argmatch.h: Comment fix to match the above.
119955         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
119956         Now a macro referring to exit_failure, instead of a separate
119957         variable.  Include "exitfail.h" to get it.
119958         * lib/xstrtol.h: Include "exitfail.h".
119959         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
119961         * lib/long-options.c (parse_long_options): Use prototype
119962         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
119963         for clarity.
119965 2004-01-21  Jim Meyering  <jim@meyering.net>
119967         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
119968         so as not to conflict with a different-sized __mktime_internal
119969         function in GNU libc.
119970         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
119971         Problem building statically-linked `ls' reported by Michael Brunnbauer.
119973 2004-01-20  Karl Berry  <karl@gnu.org>
119975         * config/config.guess: update from config.
119977         * config/srclistvars.sh: GNUWWWLICENSES for karl.
119979 2004-01-20  Bruno Haible  <bruno@clisp.org>
119981         Safer stack allocation.
119982         * lib/setenv.c: Include allocsa.h.
119983         (alloca): Remove fallback definition.
119984         (freea): Remove macro.
119985         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
119986         instead of freea.
119988 2004-01-20  Bruno Haible  <bruno@clisp.org>
119990         * m4/eealloc.m4: New file, from GNU gettext.
119992 2004-01-20  Bruno Haible  <bruno@clisp.org>
119994         * m4/allocsa.m4: New file, from GNU gettext.
119996 2004-01-20  Bruno Haible  <bruno@clisp.org>
119998         * lib/xallocsa.h: New file, from GNU gettext.
119999         * lib/xallocsa.c: New file, from GNU gettext.
120001 2004-01-20  Bruno Haible  <bruno@clisp.org>
120003         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
120005 2004-01-20  Bruno Haible  <bruno@clisp.org>
120007         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
120008         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
120009         specially.
120011 2004-01-20  Bruno Haible  <bruno@clisp.org>
120013         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
120014         patch.
120016 2004-01-20  Bruno Haible  <bruno@clisp.org>
120018         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
120020 2004-01-20  Bruno Haible  <bruno@clisp.org>
120022         * lib/eealloc.h: New file.
120024 2004-01-20  Bruno Haible  <bruno@clisp.org>
120026         * lib/binary-io.h: Avoid warnings on Cygwin.
120028 2004-01-20  Bruno Haible  <bruno@clisp.org>
120030         * lib/allocsa.h: New file, from GNU gettext.
120031         * lib/allocsa.c: New file, from GNU gettext.
120033 2004-01-18  Karl Berry  <karl@gnu.org>
120035         * doc/gpl.texi, doc/lgpl.texi: new files.
120037 2004-01-18  Karl Berry  <karl@gnu.org>
120039         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
120040         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
120042 2004-01-15  Paul Eggert  <eggert@twinsun.com>
120044         Merge from coreutils.
120046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
120047         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
120048         (gl_DEFAULT_POSIX2_VERSION): Move
120049         the documentation from 'configure' into 'config.hin',
120050         so that 'configure --help' isn't burdened by it and
120051         we don't have to worry about its formatting there.
120052         Reword the documentation so that it's more succinct
120053         and can be run together into a single paragraph.
120054         * m4/same.m4 (gl_SAME): Check for pathconf.
120056 2004-01-15  Paul Eggert  <eggert@twinsun.com>
120058         Merge from coreutils.
120060         * lib/posixver.c: Include posixver.h.
120062         * lib/same.c: Include <stdbool.h>, <limits.h>.
120063         (_POSIX_NAME_MAX): Define if not defined.
120064         (MIN): New macro.
120065         (same_name): If file names are silently truncated, report
120066         that the file names are the same if they are the same after
120067         the silent truncation.
120069         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
120070         conversion function.
120071         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
120072         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
120073         longer needed.
120075 2004-01-15  Jim Meyering  <jim@meyering.net>
120077         Merge from coreutils.
120079         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
120080         if no library is required.
120081         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
120082         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
120083         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
120084         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
120085         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
120086         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
120087         value, $ac_cv_search_crypt, if it's "none required".
120088         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
120089         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
120090         not gl_FUNC_GETLOADAVG.
120091         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
120092         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
120094 2004-01-15  Jim Meyering  <jim@meyering.net>
120096         Merge from coreutils.
120098         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
120099         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
120100         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
120102         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
120103         optional configure-time default.
120105         * lib/version-etc.c (version_etc_copyright): Update copyright date.
120107         * lib/xreadlink.c (xreadlink): Correct outdated comment.
120109 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
120111         Merge from coreutils.
120113         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
120114         value, $ac_cv_search_nanosleep, if it's "none required".
120116 2004-01-14  Paul Eggert  <eggert@twinsun.com>
120118         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
120119         with like-named macro in fnmatch.c.
120120         (EXT): Use an internal constant instead.
120122         Merge fnmatch patches from glibc.
120123         * lib/fnmatch.c (mbsinit): Remove define.
120124         Add libc_hidden_ver (__fnmatch, fnmatch).
120125         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
120126         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
120128 2004-01-14  Karl Berry  <karl@gnu.org>
120130         * config/install-sh: update from automake.
120132 2004-01-13  Karl Berry  <karl@gnu.org>
120134         * config/install-sh: update from automake.
120136 2004-01-09  Karl Berry  <karl@gnu.org>
120138         * config/install-sh: update from automake.
120140 2004-01-05  Karl Berry  <karl@gnu.org>
120142         * config/config.{sub,guess}: update from config.
120144 2003-12-31  Karl Berry  <karl@gnu.org>
120146         * config/depcomp: update from automake.
120148 2003-12-14  Karl Berry  <karl@gnu.org>
120150         * lib/config.charset: update from gettext-runtime.
120152 2003-12-03  Paul Eggert  <eggert@twinsun.com>
120154         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
120155         Bug reported by Alfred M. Szmidt.
120157 2003-12-03  Bruno Haible  <bruno@clisp.org>
120159         * m4/gettext.m4: Upgrade from gettext-0.13.
120160         * m4/po.m4: Upgrade from gettext-0.13.
120161         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
120162         * m4/intmax.m4: New file, from gettext-0.13.
120163         * m4/printf-posix.m4: New file, from gettext-0.13.
120165 2003-11-29  Karl Berry  <karl@gnu.org>
120167         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
120169 2003-11-25  Paul Eggert  <eggert@twinsun.com>
120170             Bruno Haible  <bruno@clisp.org>
120172         * lib/printf-parse.h: Don't include sys/types.h.
120173         (ARG_NONE): New macro.
120174         (char_directive): Change type of *arg_index fields to size_t.
120175         * lib/printf-parse.c: Don't include sys/types.h.
120176         (SSIZE_MAX): Remove macro.
120177         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
120178         Remove unnecessary overflow check.
120179         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
120180         fields.
120182 2003-11-25  Bruno Haible  <bruno@clisp.org>
120184         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
120186 2003-11-25  Bruno Haible  <bruno@clisp.org>
120188         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
120189         gt_TYPE_SSIZE_T.
120191 2003-11-24  Paul Eggert  <eggert@twinsun.com>
120193         * modules/alloca: Remove dependency on xalloc.
120195 2003-11-24  Paul Eggert  <eggert@twinsun.com>
120197         * lib/alloca.c: Remove dependency on xalloc module.
120198         (xalloc_die): Remove.
120199         (memory_full) [!defined emacs]: New macro.
120200         [!defined emacs]: Don't include xalloc.h.
120201         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
120202         address arithmetic overflows.  Change datatypes a bit to avoid
120203         unnecessary casts.
120205 2003-11-22  Jim Meyering  <jim@meyering.net>
120207         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
120208         s/size/size_t/.
120210 2003-11-21  Karl Berry  <karl@gnu.org>
120212         * config/config.{sub,guess}: update from config.
120214 2003-11-18  Karl Berry  <karl@gnu.org>
120216         * config/config.{sub,guess}: update from config.
120218         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
120220 2003-11-17  Paul Eggert  <eggert@twinsun.com>
120222         * README: Mention that S+T cannot overflow if S is the size of
120223         an existing object and T is sufficiently small.
120225 2003-11-17  Jim Meyering  <jim@meyering.net>
120227         On systems without utime and without a utimes function capable of
120228         dealing with a NULL struct utimbuf* argument, this utime replacement
120229         could -- in unusual circumstances -- leak a file descriptor.
120230         * lib/utime.c: Include <unistd.h> and <errno.h>.
120231         (utime_null): Be sure to close `fd' and to preserve errno.
120232         Reported by Geoff Collyer via Arnold Robbins.
120234 2003-11-17  Bruno Haible  <bruno@clisp.org>
120236         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
120237         (Depends-on): Add xsize.
120239 2003-11-17  Bruno Haible  <bruno@clisp.org>
120241         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
120243 2003-11-17  Bruno Haible  <bruno@clisp.org>
120245         * lib/vasnprintf.c (alloca): Remove fallback definition.
120246         (freea): Remove definition.
120247         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
120248         Reported by Paul Eggert.
120250 2003-11-16  Paul Eggert  <eggert@twinsun.com>
120251             Bruno Haible  <bruno@clisp.org>
120253         Protect against address arithmetic overflow.
120254         * lib/printf-args.h: Include stddef.h.
120255         (arguments): Change type of field 'count' to size_t.
120256         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
120257         'unsigned int' where appropriate.
120258         * lib/printf-parse.h: Include sys/types.h.
120259         (char_directive): Change type of *arg_index fields to ssize_t.
120260         (char_directives): Change type of fields 'count', max_*_length to
120261         size_t.
120262         * lib/printf-parse.c: Include sys/types.h and xsize.h.
120263         (SSIZE_MAX): Define fallback value.
120264         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
120265         instead of 'int' where appropriate. Check a_allocated, d_allocated
120266         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
120267         * lib/vasnprintf.c: Include xsize.h.
120268         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
120269         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
120270         overflow. Avoid wraparound when converting a width or precision from
120271         decimal to binary.
120273 2003-11-16  Bruno Haible  <bruno@clisp.org>
120275         Update from GNU gettext.
120276         * lib/printf-parse.c: Generalize to it can be compiled for wide
120277         strings.
120278         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
120279         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
120280         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
120281         SNPRINTF): New macros.
120282         Don't include <alloca.h> if the file is used inside libintl.
120283         (local_wcslen): New function, for Solaris 2.5.1.
120284         (VASNPRINTF): Use it instead of wcslen.
120286 2003-11-16  Bruno Haible  <bruno@clisp.org>
120288         * lib/xsize.h (xmax): New function.
120289         (xsum, xsum3, xsum4): Declare as "pure" functions.
120291 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120293         * modules/xalloc (Files): Undo latest change, since xalloc.h
120294         no longer needs SIZE_MAX or PTRDIFF_MAX.
120296 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120298         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
120299         gl_PTRDIFF_MAX.
120301 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120303         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
120304         "return", to pacify some unknown compiler.  Problem reported
120305         by Joerg Schilling.
120307 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120309         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
120310         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
120311         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
120312         heuristic is just as accurate as far as we know, and it removes a
120313         dependency on size_max.m4 and ptrdiff_max.m4.
120315 2003-11-11  Bruno Haible  <bruno@clisp.org>
120317         * modules/xsize (Files): Add m4/size_max.m4.
120318         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
120320 2003-11-11  Bruno Haible  <bruno@clisp.org>
120322         * m4/size_max.m4: New file.
120323         * m4/ptrdiff_max.m4: New file.
120324         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
120325         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
120326         (gl_XALLOC): Invoke it.
120328 2003-11-11  Bruno Haible  <bruno@clisp.org>
120330         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
120331         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
120332         defined.
120334 2003-11-10  Paul Eggert  <eggert@twinsun.com>
120336         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
120337         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
120338         rejected some allocations of exactly SIZE_MAX - 2 bytes.
120339         From Bruno Haible.
120340         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
120341         not (size_t) -1, since it's defined here.
120343 2003-11-09  Karl Berry  <karl@gnu.org>
120345         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
120347 2003-11-06  Paul Eggert  <eggert@twinsun.com>
120349         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
120350         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
120351         Reject sizes of exactly SIZE_MAX bytes.
120352         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
120353         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
120355 2003-11-05  Bruno Haible  <bruno@clisp.org>
120357         * lib/xsize.h: Include limits.h, to avoid a possible collision with
120358         SIZE_MAX defined in <limits.h> on Solaris.
120360 2003-11-04  Jim Meyering  <jim@meyering.net>
120362         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
120363         variable names, rather than @VAR@.
120364         * modules/poll: Likewise.
120366 2003-11-04  Bruno Haible  <bruno@clisp.org>
120368         * modules/xsize: New file.
120369         * modules/linebreak: Depend on xsize.
120370         * MODULES.html.sh (func_all_modules): Add xsize.
120372 2003-11-04  Bruno Haible  <bruno@clisp.org>
120374         * m4/xsize.m4: New file.
120376 2003-11-04  Bruno Haible  <bruno@clisp.org>
120378         * lib/xsize.h: New file.
120379         * lib/linebreak.c: Include xsize.h.
120380         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
120381         argument for overflow.
120382         Suggested by Paul Eggert.
120384 2003-11-03  Karl Berry  <karl@gnu.org>
120386         * config/config.{guess,sub}: update from config.
120388 2003-11-03  Jim Meyering  <jim@meyering.net>
120390         * modules/userspec (lib_SOURCES): Add userspec.h.
120391         (Include): Add "userspec.h".
120392         Improve description.
120394 2003-11-03  Jim Meyering  <jim@meyering.net>
120396         * lib/userspec.c: Include "userspec.h".
120397         * lib/userspec.h: New file.
120399 2003-11-03  Bruno Haible  <bruno@clisp.org>
120401         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
120403 2003-11-03  Bruno Haible  <bruno@clisp.org>
120405         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
120406         available, to avoid (extremely rare) race condition.
120407         Suggested by Paul Eggert.
120409 2003-11-02  Karl Berry  <karl@gnu.org>
120411         * config/srclist.txt (vasprintf.c): sync broken, sigh.
120413 2003-10-31  Paul Eggert  <eggert@twinsun.com>
120415         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
120416         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
120417         (read_filesystem_list): Set and use me_type_malloced.
120418         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
120419         whatever the type happens to be), for brevity and consistency.
120420         Check for size calculation overflow on Alphas running OSF/1.
120422 2003-10-31  Jim Meyering  <jim@meyering.net>
120424         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
120426         * lib/linebuffer.c: Include <string.h> for declaration of memset.
120428 2003-10-30  Paul Eggert  <eggert@twinsun.com>
120429             Bruno Haible  <bruno@clisp.org>
120431         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
120432         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
120434 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
120436         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
120437         netbsd*-gnu*.  Suggested by Robert Millan.
120439 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120441         * modules/group-member: Depend on stdbool.
120443 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120445         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
120447 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120449         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
120450         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
120451         after the 'gnu' in these cases.  This fixes some bugs in the
120452         previous change, and is based on suggestions by Robert Millan.
120454 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120456         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
120457         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
120458         no longer needed.
120459         * lib/quotearg.c (quotearg_n_options): Use it.
120460         * lib/group-member.c: Include <stdbool.h>.
120461         (free_group_info): Arg is now const *; don't free arg.
120462         (get_group_info): Now returns bool and accepts struct group_info *,
120463         rather than returning a malloc'ed struct group_info *.
120464         All uses changed.  Check for overflow in internal size calculation.
120466         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
120467         rather than xmalloc/xrealloc.
120468         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
120469         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
120470         conformance bug: the old code used a pointer after freeing the
120471         storage that it addressed.
120472         * lib/hash.c (hash_initialize): Simplify the code by using
120473         xalloc_oversized rather than doing it by hand.
120474         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
120475         the buffer preserved.  Use free and xmalloc instead.
120476         * lib/quotearg.c (quotearg_n_options): Likewise.
120477         Use a simpler test for size overflow.  Don't use xalloc_oversized
120478         because unsigned int might be wider than size_t (!); this suggests
120479         that we should switch from unsigned int to size_t for slot numbers.
120481 2003-10-28  Paul Eggert  <eggert@twinsun.com>
120483         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
120484         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
120485         NetBSD kernels.  Requested by Richard Stallman.
120487 2003-10-27  Paul Eggert  <eggert@twinsun.com>
120489         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
120490         to allocate the returned structure.  Do not allocate a subarray,
120491         as x2nrealloc will do that.
120492         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
120493         instead of xnrealloc.
120494         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
120496 2003-10-27  Bruno Haible  <bruno@clisp.org>
120498         * lib/stdbool_.h: Better support for BeOS.
120500 2003-10-26  Paul Eggert  <eggert@twinsun.com>
120502         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
120503         now uses inline.
120505 2003-10-26  Paul Eggert  <eggert@twinsun.com>
120507         * lib/xalloc.h (xalloc_oversized): New static inline function, for
120508         callers that want to do their own size-overflow checking.  Include
120509         <stdbool.h>, since xalloc_oversized returns bool.
120510         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
120511         to use xalloc_oversized.
120513         Add two functions x2realloc, x2nrealloc, for programs that grow
120514         arrays dynamically by doubling their sizes.
120515         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
120516         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
120517         New functions.
120519         Port to C99 semantics for 'inline' of external functions.
120520         Bug reported by Bruno Haible.
120521         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
120522         with the old contents of xnmalloc.
120523         (xnmalloc, xmalloc): Use it.
120524         (xnrealloc_inline): New static inline function,
120525         with the old contents of xnrealloc.
120526         (xnrealloc, xrealloc): Use it.
120528         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
120529         that.
120531 2003-10-26  Karl Berry  <karl@gnu.org>
120533         * config/srclist.txt (COPYING.DOC): no longer available from
120534         /gd/gnuorg; don't know where the ultimate source is.
120536 2003-10-25  Paul Eggert  <eggert@twinsun.com>
120538         Fix several address-calculation bugs in the hash modules,
120539         plus some minor code cleanup.
120541         * lib/hash.h: Include <stdbool.h>, for bool.
120542         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
120543         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
120544         hash_get_n_entries, hash_get_max_bucket_length,
120545         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
120546         hash_rehash): Use size_t rather than unsigned.
120547         * lib/hash.c (struct hash_table, hash_get_n_buckets,
120548         hash_get_n_buckets_used, hash_get_n_entries,
120549         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
120550         hash_get_entries, hash_do_for_each, hash_string, is_prime,
120551         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
120552         Likewise.
120553         (SIZE_MAX): Define if not defined.
120554         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
120555         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
120556         hash_print):
120557         Use const * when possible.
120558         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
120559         (check_tuning): Fix bug: if tuning parameters were very close to
120560         0 or 1, rounding errors could have caused subscript violations.
120561         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
120562         (hash_initialize): Add 'fail:' label
120563         to free table and return NULL, and use it to simplify code.
120564         Use calloc rather than clearing the storage ourself.
120565         (hash_initialize, hash_rehash): Check for arithmetic overflow in
120566         buffer size calculations.
120567         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
120568         Include <stddef.h>, for size_t.
120569         * lib/hash-pjw.c (hash_pjw): Likewise.
120570         Switch to method described by Bruno Haible.
120571         Include <limits.h>, for CHAR_BIT.
120572         (SIZE_BITS): New macro.
120574 2003-10-23  Paul Eggert  <eggert@twinsun.com>
120576         * m4/getline.m4 (AM_FUNC_GETLINE):
120577         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
120578         hosts.  Problem reported by Derek Robert Price in
120579         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
120580         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
120581         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
120583 2003-10-21  Paul Eggert  <eggert@twinsun.com>
120585         * lib/getndelim2.c (getndelim2): When size calculation overflows,
120586         ceiling the allocation at NMAX bytes rather than silently
120587         discarding input bytes before NMAX is reached.  This makes
120588         a difference only if NMAX exceeds SIZE_MAX / 2.
120590         * lib/obstack.c: Merge from glibc.
120591         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
120592         Add libc_hidden_def (_obstack_newchunk).
120593         (_obstack_free) [! defined _LIBC]: Remove.
120594         [defined _LIBC]: Make a strong alias from obstack_free, rather than
120595         a clone of the function body.
120596         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
120597         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
120599         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
120600         glibc.
120601         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
120602         arg to memcpy.
120604         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
120605         (obstack_ptr_grow_fast, obstack_int_grow_fast):
120606         Don't use lvalue casts, as GCC plans to remove support for them
120607         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
120608         was also present in the non-GCC version, indicating that this
120609         code had always been buggy and had never been widely used.
120610         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
120611         Use the fast variant of each macro, rather than copying the
120612         definiens of the fast variant; that way, we'll be more likely to
120613         catch future bugs in the fast variants.
120615 2003-10-20  Bruno Haible  <bruno@clisp.org>
120617         * modules/wait-process: New file.
120618         * MODULES.html.sh (func_all_modules): Add wait-process.
120620 2003-10-20  Bruno Haible  <bruno@clisp.org>
120622         * m4/wait-process.m4: New file.
120624 2003-10-20  Bruno Haible  <bruno@clisp.org>
120626         * lib/wait-process.h: New file, from GNU gettext.
120627         * lib/wait-process.c: New file, from GNU gettext.
120629 2003-10-19  Jim Meyering  <jim@meyering.net>
120631         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
120632         HPUX 10.20.
120634 2003-10-18  Karl Berry  <karl@gnu.org>
120636         * config/config.guess: update from config.
120638 2003-10-16  Paul Eggert  <eggert@twinsun.com>
120640         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
120641         (getgroups): First arg is int, not size_t.
120642         Don't let 'free' mangle errno.
120644 2003-10-16  Paul Eggert  <eggert@twinsun.com>
120646         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
120648 2003-10-16  Karl Berry  <karl@gnu.org>
120650         * config/config.{guess,sub}: update from config.
120652 2003-10-16  Jim Meyering  <jim@meyering.net>
120654         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
120655         memcpy.
120657 2003-10-15  Paul Eggert  <eggert@twinsun.com>
120659         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
120660         (SIZE_MAX): Remove.
120661         (new_exclude, add_exclude_file): Initial size no longer needs to
120662         be a power of 2.
120663         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
120664         our own address arithmetic overflow checking.
120666         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
120667         (fnmatch): Do not alloca more than 2000 wide characters;
120668         instead, use malloc for large buffers.
120669         Check for address arithmetic overflow, and return -1
120670         with errno set to ENOMEM in that case.
120671         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
120672         (NEW_PATTERN): Do not alloca more than 8000 bytes;
120673         instead, return -1.  Check for address arithmetic overflow.
120675 2003-10-14  Paul Eggert  <eggert@twinsun.com>
120677         Handle invalid suffixes and overflow independently, so that
120678         callers can treat them independently as needed.  Fix some bugs in
120679         suffix handling, e.g., "100k@" was not diagnosed as an invalid
120680         suffix for a human-readable blocksize.  The major caller-visible
120681         change is the addition of a new
120682         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
120683         that both overflow and suffix chars were found.
120685         * lib/human.c (humblock): Don't check separately for invalid suffix
120686         char; that is xstrtoumax's job (now that its bug is fixed).
120687         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
120688         INTMAX_MAX]: New macros.
120689         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
120690         TYPE_MAXIMUM): New macros.
120691         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
120692         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
120693         if overflow occurs, as it's what __strtol does and it's more useful
120694         in practice.
120695         (__xstrtol): If __strtol reports some error other than ERANGE,
120696         reflect it to the caller as LONGINT_INVALID.  If it reports
120697         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
120698         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
120699         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
120700         value.
120701         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
120702         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
120703         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
120704         [defined UINTMAX_MAX]: New macros.
120706 2003-10-14  Bruno Haible  <bruno@clisp.org>
120708         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
120710 2003-10-14  Bruno Haible  <bruno@clisp.org>
120712         * m4/sig_atomic_t: New file, from GNU gettext.
120713         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
120715 2003-10-14  Bruno Haible  <bruno@clisp.org>
120717         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
120718         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
120719         Also use volatile where needed.
120721 2003-10-12  Paul Eggert  <eggert@twinsun.com>
120723         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
120724         Change maintainer from Bruno Haible to 'all'.
120726 2003-10-12  Paul Eggert  <eggert@twinsun.com>
120728         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
120730 2003-10-12  Paul Eggert  <eggert@twinsun.com>
120732         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
120733         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
120734         and define in terms of the other primitives.
120735         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
120736         (SIZE_MAX): Define if not already defined.
120737         (array_size_overflow): New function.
120738         (xalloc_die): Abort instead of exiting if 'error' returns.
120739         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
120740         (xmalloc, xrealloc): Use them.
120741         (xcalloc): Check for address arithmetic overflow.
120742         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
120743         a bit faster than strcpy.
120745 2003-10-10  Simon Josefsson  <jas@extundo.com>
120747         * modules/argp (Depends-on): Add restrict and strcase.
120749 2003-10-10  Simon Josefsson  <jas@extundo.com>
120751         * m4/argp.m4: Add AC_C_INLINE.
120753 2003-10-08  Paul Eggert  <eggert@twinsun.com>
120755         Merge getpass from libc, plus a few fixes.
120757         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
120758         Include <stdbool.h>.
120759         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
120760         __fsetlocking to empty.
120761         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
120762         do include <bits/libc-lock.h>.
120763         Do not include <fcntl.h>; not needed.
120764         [_LIBC]: Include <wchar.h>.
120765         (NOTCANCEL_MODE): New macro.
120766         (flockfile, funlockfile) [_LIBC]: New macros.
120767         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
120768         [!_LIBC]: New macros.
120769         (call_fclose): New function.
120770         (getpass): Use it.  Save tty stream separately; this simplifies the
120771         code and makes it more reliable if stdin happens to equal stdout.
120772         Invoke __fsetlocking on tty.
120773         Handle thread cancellation if needed.
120774         Namespace cleanup (use __tcgetattr, __getline).
120775         Use bool for Booleans.
120776         [USE_IN_LIBIO]: Handle wide streams.
120777         [!_LIBC]: Unconditionally do the fseek, since we don't know what
120778         stream might go where.
120780         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
120781         doesn't have to include <stdio.h> before us.
120782         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
120783         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
120784         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
120785         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
120786         if not declared, so that we can use getpass.c code from libc without
120787         rewriting it.
120788         (flockfile, ftrylockfile, funlockfile): New macros.
120790 2003-10-08  Paul Eggert  <eggert@twinsun.com>
120792         * modules/getpass: Depend on stdbool.
120794 2003-10-08  Paul Eggert  <eggert@twinsun.com>
120796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
120798 2003-10-07  Karl Berry  <karl@gnu.org>
120800         * config/config.{guess,sub}: update from config.
120802 2003-10-06  Jim Meyering  <jim@meyering.net>
120803             Bruno Haible  <bruno@clisp.org>
120805         This lets translators provide better translations for the
120806         "Written by ..." part of --version output.
120807         * lib/version-etc.h: Include stdarg.h.
120808         (version_etc_copyright): Declare as readonly.
120809         (version_etc): Make this function variadic with a NULL-terminated list
120810         of author name strings.
120811         (version_etc_va): New declaration.
120812         * lib/version-etc.c: Include stdarg.h, stdlib.h.
120813         (version_etc_copyright): Declare as readonly.
120814         (version_etc_va): New function. Provide a different translatable string
120815         for each possible number of authors < 10. Abbreviate when there are 10
120816         authors or more.
120817         (version_etc): Make this function variadic. Call version_etc_va.
120818         Suggestion from Gary V. Vaughan.
120820         * lib/long-options.h (parse_long_options): Change prototype: the
120821         authors string is moved to the end and becomes variadic.
120822         * lib/long-options.c: Include stdarg.h.
120823         (parse_long_options): Make this function variadic, too.
120824         Call version_etc_va, not version_etc.
120826 2003-10-06  Bruno Haible  <bruno@clisp.org>
120828         * modules/version-etc-2: Remove file.
120829         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
120831 2003-10-06  Bruno Haible  <bruno@clisp.org>
120833         * modules/fatal-signal: New file.
120834         * MODULES.html.sh (func_all_modules): Add fatal-signal.
120836 2003-10-06  Bruno Haible  <bruno@clisp.org>
120838         * m4/fatal-signal.m4: New file.
120839         * m4/signalblocking.m4: New file, from GNU gettext.
120841 2003-10-06  Bruno Haible  <bruno@clisp.org>
120843         * lib/version-etc-2.h: Remove file.
120844         * lib/version-etc-2.c: Remove file.
120846 2003-10-06  Bruno Haible  <bruno@clisp.org>
120848         * lib/fatal-signal.h: New file, from GNU gettext.
120849         * lib/fatal-signal.c: New file, from GNU gettext.
120851 2003-10-05  Paul Eggert  <eggert@twinsun.com>
120853         * README: Rework advice for preventing empty .o files.
120854         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
120855         not <sys/types.h>.
120857 2003-10-04  Karl Berry  <karl@gnu.org>
120859         * lib/argp*: update from libc.
120861 2003-10-04  Karl Berry  <karl@gnu.org>
120863         * config/config.{guess,sub}: update from config.
120865 2003-10-02  Bruno Haible  <bruno@clisp.org>
120867         * modules/lchown (Include): Add lchown.h.
120868         * modules/time_r (Include): Use "..." syntax.
120869         * modules/xgetdomainname (Include): Add xgetdomainname.h.
120871 2003-10-01  Simon Josefsson  <jas@extundo.com>
120873         * MODULES.html.sh (func_all_modules): Move gethostname from section
120874         'based on' to section 'lacking' POSIX:2001.
120876 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
120878         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
120879         to output mode on the same stream.
120881 2003-09-29  Paul Eggert  <eggert@twinsun.com>
120883         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
120884         Fix arg typo in previous patch.
120886 2003-09-28  Jim Meyering  <jim@meyering.net>
120888         * lib/error.c: Correct cpp indentation.
120890 2003-09-27  Paul Eggert  <eggert@twinsun.com>
120892         * modules/free: New file.
120894 2003-09-27  Paul Eggert  <eggert@twinsun.com>
120896         * m4/free.m4: New file.
120898 2003-09-27  Paul Eggert  <eggert@twinsun.com>
120900         * lib/minmax.h (MIN, MAX)
120901         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
120902         Omit the special code that used __typeof__, since we worry that
120903         it could be more trouble than it's worth.  See:
120904         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
120905         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
120907         * lib/free.c: New file.
120909 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
120911         Trivial fixes to Makefile.am parts of module listings.
120912         * modules/strstr: Append strstr.h to lib_SOURCES.
120913         * modules/strcase: Likewise, for strcase.h.
120915 2003-09-27  Karl Berry  <karl@gnu.org>
120917         * config/mkinstalldirs: update from automake.
120919 2003-09-26  Paul Eggert  <eggert@twinsun.com>
120921         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
120922         (error_tail): Do not loop, reallocating temporary buffer, since
120923         the output cannot contain more wide characters than the input
120924         contains bytes, the size must be big enough already.  This avoids
120925         one potential size overflow calculation.  Check for size overflow
120926         when calculating temporary buffer size.  Free temporary buffer
120927         when done, if it was allocated with malloc; this plugs a memory
120928         leak.  Remove casts from void * to pointers, that are no longer
120929         needed now that we're assuming C89 or better.
120931         Merge error changes from glibc.
120933         * lib/error.c, error.h: Update copyright notice header to match glibc.
120934         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
120935         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
120936         Disable cancellation while printing error.
120937         * lib/error.h: Prepend __ to parameter names.
120939 2003-09-26  Jim Meyering  <jim@meyering.net>
120941         * lib/error.c (error_tail): Move some declarations
120942         into inner scope where the local variables are used.
120944 2003-09-26  Bruno Haible  <bruno@clisp.org>
120946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
120947         stpncpy().
120948         Don't define stpncpy through config.h; it's now done through stpncpy.h.
120950 2003-09-26  Bruno Haible  <bruno@clisp.org>
120952         * lib/stpncpy.h (gnu_stpncpy): New declaration.
120953         (stpncpy): Define as alias for gnu_stpncpy.
120954         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
120956 2003-09-25  Simon Josefsson  <jas@extundo.com>
120958         * lib/xgetdomainname.h: New file.
120959         * lib/xgetdomainname.c: New file.
120961 2003-09-25  Simon Josefsson  <jas@extundo.com>
120962             Bruno Haible  <bruno@clisp.org>
120964         * modules/getdomainname: New file.
120965         * modules/xgetdomainname: New file.
120966         * MODULES.html.sh (func_all_modules): Add getdomainname,
120967         xgetdomainname.
120969 2003-09-25  Simon Josefsson  <jas@extundo.com>
120970             Bruno Haible  <bruno@clisp.org>
120972         * m4/getdomainname.m4: New file.
120974 2003-09-25  Simon Josefsson  <jas@extundo.com>
120975             Bruno Haible  <bruno@clisp.org>
120977         * lib/getdomainname.h: New file.
120978         * lib/getdomainname.c: New file.
120980 2003-09-25  Karl Berry  <karl@gnu.org>
120982         * lib/argp-fmtstream.c, argp-help.c: update from libc.
120984 2003-09-25  Karl Berry  <karl@gnu.org>
120986         * config/install-sh: update from automake.
120988 2003-09-25  Bruno Haible  <bruno@clisp.org>
120990         * modules/version-etc-2: New file, from modules/version-etc with
120991         modifications.
120992         * MODULES.html.sh (func_all_modules): Add version-etc-2.
120994 2003-09-25  Bruno Haible  <bruno@clisp.org>
120996         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
120997         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
120999 2003-09-24  Simon Josefsson  <jas@extundo.com>
121001         * modules/xgethostname: Add xgethostname.h.
121003 2003-09-24  Paul Eggert  <eggert@twinsun.com>
121005         * lib/linebuffer.c (freebuffer): Don't free the argument, just
121006         the buffer associated with the argument.  Bug reported by
121007         Simon Josefsson.
121009 2003-09-24  Paul Eggert  <eggert@twinsun.com>
121011         * README: Document assumptions that 'int' is at least 32 bits
121012         wide, that integer arithmetic is 2's complement without overflow,
121013         that there are no holes in integer values, that adding sizes of
121014         two nonoverlapping objects can't overflow, and that all-bits-zero
121015         yields scalar zero.  Fix spelling and capitalization typos.
121017 2003-09-19  Karl Berry  <karl@gnu.org>
121019         * lib/argp.h: update from libc.
121021 2003-09-17  Paul Eggert  <eggert@twinsun.com>
121023         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
121024         to avoid spurious warnings like "AC_RUN_IFELSE was called before
121025         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
121027 2003-09-17  Paul Eggert  <eggert@twinsun.com>
121029         * gnulib-tool: Use "test -h", not "test -L", for portability
121030         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
121031         (tags_regexp): Remove, since \| doesn't conform to POSIX.
121032         (sed_extract_prog): Issue s commands one-by-one, rather than
121033         using \| in one s command.
121035 2003-09-16  Paul Eggert  <eggert@twinsun.com>
121037         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
121038         input error, instead of returning NULL the next time we are called
121039         (and therefore losing track of errno).
121041 2003-09-16  Bruno Haible  <bruno@clisp.org>
121043         * gnulib-tool (func_create_testdir): Warn about duplicated
121044         dependencies.
121046 2003-09-15  Paul Eggert  <eggert@twinsun.com>
121048         * modules/argmatch, modules/fatal, modules/obstack,
121049         modules/xalloc, modules/xgethostname: Sort dependencies by
121050         importance, not alphabetically.
121052 2003-09-15  Paul Eggert  <eggert@twinsun.com>
121054         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
121055         fails, so that the caller gets the proper errno.
121057         * lib/readutmp.c (read_utmp): Likewise.
121058         Check for fstat error.  Close stream and free storage
121059         when failing.
121061 2003-09-14  Karl Berry  <karl@gnu.org>
121063         * config/srclist.txt (strdup.c): disable for c89 changes.
121065 2003-09-14  Jim Meyering  <jim@meyering.net>
121067         * lib/getloadavg.c: Correct cpp indentation.
121068         * lib/strdup.c: Likewise.
121069         * lib/vasnprintf.c: Likewise.
121071 2003-09-14  Bruno Haible  <bruno@clisp.org>
121073         * modules/fwriteerror: New file.
121074         * MODULES.html.sh (func_all_modules): Add fwriteerror.
121076 2003-09-14  Bruno Haible  <bruno@clisp.org>
121078         * lib/fwriteerror.h: New file.
121079         * lib/fwriteerror.c: New file.
121081 2003-09-12  Paul Eggert  <eggert@twinsun.com>
121083         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
121084         modules/xgethostname, modules/xalloc: Depend on exit.
121086 2003-09-12  Paul Eggert  <eggert@twinsun.com>
121088         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
121090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
121091         and AC_MINIX, too, so that their extensions are available.
121093         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
121094         This macro has been superseded by gl_BACKUPFILE.
121096         More patches to assume C89 or better.
121098         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
121100         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
121101         unconditionally.
121102         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
121103         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
121104         Include <string.h>, <stdlib.h> unconditionally.
121105         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
121106         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
121107         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
121108         headers or for string.h.
121109         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
121110         or strtoul.
121112         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
121113         headers.
121114         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
121115         * m4/userspec.m4 (gl_USERSPEC): Likewise.
121116         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
121117         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
121118         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
121119         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
121120         memcpy, memset.
121121         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
121122         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
121123         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
121124         strtol.
121125         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
121126         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
121127         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
121128         strtoul.
121130 2003-09-12  Paul Eggert  <eggert@twinsun.com>
121132         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
121133         * lib/obstack.c [!defined _LIBC]: Likewise.
121134         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
121135         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
121136         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
121138         More changes to assume C89 or better.
121140         * lib/error.c (error_tail): Assume vprintf.
121142         * lib/argmatch.c (getenv): Remove decl.
121143         * lib/progreloc.c (get_full_program_name): Define via prototype.
121144         * lib/setenv.c (clearenv): Likewise.
121145         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
121146         needed.
121147         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
121148         (malloc, memcpy): Remove decls.
121149         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
121150         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
121151         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
121152         (memcpy): Remove macro.
121153         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
121154         (__P): Remove.  All uses removed.
121155         (PTR): Remove.  All uses changed to void *.
121156         (CHAR_BIT, NULL): Remove.
121157         (spaces, zeros, memset_space, memset_zero)
121158         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
121159         Remove.
121160         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
121161         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
121162         Define with prototype.
121163         Remove now-unnecessary prototype decl.
121164         (extra_args_spec): Assume ANSI C.  All uses changed.
121165         (extra_args_spec_iso): Remove.
121166         (my_strftime, emacs_strftimeu): Define via prototype.
121167         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
121168         unconditionally.
121169         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
121170         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
121171         (strtoul, strtol): Remove decls.
121172         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
121173         LONG_MAX): Remove.
121174         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
121175         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
121176         (LOCALE_PARAM_PROTO): New macro.
121177         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
121178         (INTERNAL (strtol), strtol): Define with a prototype.
121179         (PARAMS): Remove.  All uses removed.
121180         * lib/tempname.c: Include <string.h> unconditionally.
121181         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
121182         * lib/xgethostname.c (main): Define with a prototype.
121183         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
121184         Include <stdlib.h> unconditionally.
121185         (calloc, malloc, realloc, free): Remove decls.
121186         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
121187         Include <stdlib.h> unconditionally.  Sort include file names.
121188         (strtod): Remove.
121189         (xstrtod): Define with a prototype.
121190         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
121191         (strtol, strtoul): Remove decls.
121193 2003-09-11  Paul Eggert  <eggert@twinsun.com>
121195         More patches to assume C89 or better.
121196         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
121197         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
121198         string.h, memchr, STDC_HEADERS.
121200 2003-09-11  Paul Eggert  <eggert@twinsun.com>
121202         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
121203         Include <stdlib.h>, <string.h> unconditionally.
121204         Remove now-unnecessary cast to char *.
121205         * lib/strnlen.c: Include <string.h> unconditionally.
121206         * lib/yesno.c (yesno): Define with a prototype.
121208 2003-09-11  Bruno Haible  <bruno@clisp.org>
121210         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
121212 2003-09-10  Jim Meyering  <jim@meyering.net>
121214         * lib/error.c: Correct indentation of cpp directives.
121216 2003-09-10  Bruno Haible  <bruno@clisp.org>
121218         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
121219         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
121220         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
121221         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
121222         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
121223         <stdlib.h> and <string.h> checks.
121224         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
121225         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
121227 2003-09-10  Bruno Haible  <bruno@clisp.org>
121229         * lib/strcspn.c: Include <string.h> unconditionally.
121230         * lib/strpbrk.c: Include <string.h> unconditionally.
121231         * lib/strstr.c: Include <string.h> unconditionally.
121232         * lib/unicodeio.c: Include <string.h> unconditionally.
121233         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
121234         * lib/unsetenv.c: Likewise.
121235         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
121236         * lib/yesno.c: Include <stdlib.h> unconditionally.
121237         (rpmatch): Add prototype.
121239 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121241         More patches to assume C89 or better.
121242         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
121243         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
121244         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
121245         or for string.h.
121246         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
121247         stdlib.h.
121248         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
121249         C headers.
121250         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
121251         string.h.
121252         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
121253         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
121254         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
121255         or for string.h.
121256         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
121257         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
121258         C headers.
121259         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
121260         memcpy.
121261         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
121262         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
121263         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
121264         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
121265         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
121266         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
121267         string.h, free.
121268         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
121269         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
121270         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
121271         C headers, or for string.h.
121272         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
121273         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
121274         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
121275         headers, memory.h, stdlib.h, string.h, strings.h.
121276         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
121277         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
121278         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
121279         strchr.
121280         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
121281         headers, memory.h, string.h.
121282         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
121283         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
121284         free.
121285         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
121286         headers.
121287         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
121288         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
121289         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
121290         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
121291         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
121293 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121295         More K&R removal.
121297         * lib/acosl.c (main): Use a prototype.
121298         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
121299         tanl.c: Likewise.
121301         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
121303         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
121304         (getopt, etopt_long, getopt_long_only, _getopt_internal)
121305         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
121306         with a prototype.
121307         * lib/getopt.c (const): Remove macro.
121308         Include <string.h> unconditionally.
121309         (my_index): Remove; all uses changed to strchr.
121310         (strlen): Remove decl.
121311         (exchange): Remove forward decl; no longer needed.
121312         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
121313         Define with prototype.
121314         * lib/getopt1.c (const): Remove macro.
121315         (getopt_long, getopt_long_only, main): Define with prototype.
121317         * lib/getugroups.c: Include <string.h> unconditionally.
121319         * lib/getusershell.c: Include <stdlib.h> unconditionally.
121320         (getusershell, setusershell, endusershell, readname, main):
121321         Define with prototypes.
121323         * lib/group-member.c: Include group-member.h first.
121324         Include <stdlib.h> unconditionally.
121326         * lib/hard-locale.c: Include hard-locale.h first.
121327         Include <stdlib.h>, <string.h> unconditionally.
121329         * lib/hash.c (free, malloc): Remove decls.
121330         Include <stdlib.h> unconditionally.
121332         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
121333         (getenv): Do not declare.
121335         * lib/idcache.c: Include <string.h> unconditionally.
121337         * lib/long-options.c: Include long-options.h first, to test interface.
121338         Include <stdlib.h> unconditionally.
121340         * lib/makepath.c: Include makepath.h first, to test interface.
121341         Include <stdlib.h> and <string.h> unconditionally.
121343         * lib/linebuffer.c: Include <stdlib.h>.
121344         (free): Remove decl.
121346         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
121347         stddef.h. rpl_malloc returns void *, not char *.
121348         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
121349         prototype.
121351         * lib/md5.h: Include <limits.h> unconditionally.
121352         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
121353         (__P): Remove; all uses removed.
121354         * lib/md5.c: Include "md5.h" first.
121355         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
121356         md5_buffer, md5_process_bytes, md5_process_block):
121357         Define with prototypes.
121358         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
121359         * lib/sha.c: Include "sha.h" first.
121360         Include <stdlib.h>, <string.h> unconditionally.
121362         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
121363         * lib/memcmp.c (__ptr_t): Likewise.
121364         * lib/memrchr.c (__ptr_t): Likewise.
121365         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
121366         Include <string.h> unconditionally.
121367         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
121368         * lib/memchr.c: Include <stdlib.h> unconditionally.
121369         * lib/memchr.c (LONG_MAX): Remove.
121370         * lib/memrchr.c (LONG_MAX): Likewise.
121371         * lib/memchr.c (__memchr): Define via a prototype.
121372         * lib/memrchr.c (__memrchr): Likewise.
121373         * lib/memcmp.c (__P): Remove, and remove all uses.
121374         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
121375         Remove forward decls; no longer needed.
121376         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
121377         Use types required by C89 in prototype.
121379         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
121380         * lib/savedir.c: Likewise.
121381         * lib/mkdir.c (free): Remove decl.
121382         * lib/rmdir.c (rmdir): Define with a prototype.
121383         * lib/savedir.c: Include savedir.h first, to test interface.
121385         * lib/mktime.c (STDC_HEADERS): Remove.
121386         Include <stdlib.h>, <string.h> unconditionally.
121388         * lib/modechange.c: Include <stdlib.h> unconditionally.
121389         (malloc): Remove decl.
121391         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
121392         (free): Remove decl.
121394         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
121395         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
121396         (This type really should be intptr_t, but that's a C99ism.)
121397         (_obstack_memcpy): Remove: all uses changed to memcpy.
121398         Include <string.h> unconditionally.
121399         (struct obstack): Assume __STDC__ for types of members
121400         chunkfun, freefun, extra_arg.
121401         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
121402         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
121403         obstack_begin, obstack_specify_allocation,
121404         obstack_specify_allocation_with_arg, obstack_chunkfun,
121405         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
121406         Remove unprototyped decls and the macros that use them.
121407         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
121408         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
121409         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
121410         (defined __STDC__ && __STDC__)]:
121411         Remove nonprototyped code.
121412         Include <stdlib.h> unconditionally.
121413         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
121414         _obstack_allocated_p, _obstack_free, obstack_free,
121415         _obstack_memory_used, print_and_abort):
121416         Define using prototypes.
121417         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
121418         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
121419         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
121420         obstack_next_free, obstack_object_size, obstack_room) [0]:
121421         Remove unused, unprototyped code.
121423         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
121425         * lib/physmem.c (physmem_total, physmem_available, main): Define
121426         with prototypes.
121428         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
121429         (main): Define with a prototype.
121431         * lib/posixver.c (getenv): Remove decl.
121433         * lib/putenv.c (malloc): Returns void *, not char *.
121434         Include <string.h> unconditionally.
121435         (strchr, memcpy, NULL): Do not define.
121437         * lib/readtokens.c: Include readtokens.h first, to test interface.
121438         Include <stdlib.h>, <string.h> unconditionally.
121439         (init_tokenbuffer): Define with a prototype.
121441         * lib/regex.c (PARAMS): Remove.  All uses removed.
121442         All uses of _RE_ARGS removed, too.
121443         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
121444         unconditionally.
121445         (bzero): Assume memset exists.
121446         (memcmp, memcpy, NULL): Remove.
121447         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
121448         char, or assignments to local vars of type signed char.
121449         (init_syntax_once, PREFIX(extract_number_and_incr),
121450         PREFIX(print_partial_compiled_pattern),
121451         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
121452         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
121453         PREFIX(regex_grow_registers), PREFIX(regex_compile),
121454         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
121455         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
121456         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
121457         wcs_compile_range, byte_compile_range, truncate_wchar,
121458         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
121459         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
121460         count_mbs_length, wcs_re_match_2_internal,
121461         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
121462         PREFIX(alt_match_null_string_p),
121463         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
121464         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
121465         regfree, PREFIX(extract_number)): Define with prototype.  Remove
121466         now-unnecessary declaration, if any.
121467         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
121468         regcomp, regexec):
121469         Remove now-unnecessary casts among pointer types.
121470         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
121472         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
121473         (free): Remove decl.
121475         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
121477         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
121478         (free): Remove decl.
121480         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
121481         * lib/xgetcwd.c: Likewise.
121483         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
121484         (free): Remove decl.
121486         * lib/strchrnul.c (strchrnul): Define with a prototype.
121487         Fix bug: c_in was not converted to char before searching.
121489         The following changes are not K&R related:
121491         * lib/group-member.h: Include <sys/types.h>, so that this file is
121492         self-contained.
121493         * lib/makepath.h: Likewise.
121495         * lib/getusershell.c (readname, default_index, line_size, readname):
121496         Use size_t, not int, for sizes.
121497         (readname): If the size overflows, report an error instead of
121498         looping forever.
121500 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121502         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
121503         libc.
121505 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121507         * README: New section: portability guidelines.
121509 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
121511         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
121512         C89 spec.
121514 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
121516         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
121518 2003-09-08  Paul Eggert  <eggert@twinsun.com>
121520         Assume C89 or better; remove K&R cruft.
121521         A few of these changes were first proposed by Derek Robert Price
121522         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
121524         * lib/addext.c: Include <string.h> unconditionally.
121525         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
121526         Don't declare getenv or malloc.
121528         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
121529         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
121530         (NULL): Remove.
121531         (find_stack_direction, alloca): Use prototypes.
121533         * lib/atexit.c (atexit): Define using a prototype.
121535         * lib/basename.c, dirname.c, stripslash.c:
121536         Include <string.h> unconditionally.
121538         * lib/bcopy.c: Include <stddef.h>.
121539         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
121541         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
121543         * lib/error.h (error, error_at_line, error_print_progname)
121544         [! (defined (__STDC__) && __STDC__)]: Remove decls.
121545         * lib/error.c: Include error.h first, to check interface.
121546         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
121547         (VA_START): Remove; all uses changeed to va_start.
121548         (exit, strerror): Remove decls.
121549         (error_print_progname): Prototype uncondionally.
121550         Don't include <errno.h>; no longer needed.
121551         (private_strerror): Remove.
121552         (error_tail): Always define.
121553         (error, error_at_line): Assume C89 or better; always use prototypes.
121554         * lib/fatal.c: Include "fatal.h" first, to test interface.
121555         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
121556         (VA_START): Remove; all uses changed to va_start.
121557         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
121558         this case.
121559         (exit): Remove decl.
121560         (fatal): Prototype unconditionally.  Assume va_start works.
121561         Abort at end, to pacify gcc.
121563         * lib/euidaccess.c (main): Define with a prototype.
121565         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
121567         * lib/exitfail.c: Include <stdlib.h> unconditionally.
121569         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
121570         prototypes.
121571         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
121572         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
121573         (getenv): Remove decl.
121574         (fnmatch): Define using a prototype.
121575         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
121576         (FCT): Define using a prototype.
121578         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
121580         * lib/gethostname.c: Include <stddef.h>.
121581         (gethostname): Define with prototype.  Length is size_t, not int.
121583 2003-09-08  Paul Eggert  <eggert@twinsun.com>
121585         Assume C89 or better; remove K&R cruft.
121586         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
121587         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
121588         string.h, getenv, malloc.
121589         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
121590         headers.
121591         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
121592         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
121593         do not check for strerror.
121594         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
121595         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
121596         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
121597         do not check for doprnt or vprintf.
121598         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
121599         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
121601 2003-09-08  Paul Eggert  <eggert@twinsun.com>
121603         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
121604         getversion.c should have been removed then, but was accidentally
121605         preserved.
121607         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
121608         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
121610 2003-09-08  Karl Berry  <karl@gnu.org>
121612         * config/config.sub, config.guess, srclistvars.sh: update from savannah
121613                 config, forget about prep.
121615         * config/depcomp, missing: update from automake.
121617 2003-09-07  Paul Eggert  <eggert@twinsun.com>
121619         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
121620         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
121622 2003-09-07  Paul Eggert  <eggert@twinsun.com>
121624         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
121625         copy_tm_result.  Bug reported by Simon Josefsson in
121626         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
121628 2003-09-06  Paul Eggert  <eggert@twinsun.com>
121630         * m4/time_r.m4: New file.
121631         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
121632         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
121633         is. Check for timegm declaration.
121634         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
121635         Do not check for gmtime_r.
121636         Replace mktime if __mktime_internal does not exist and if mktime
121637         hasn't been replaced already.
121639 2003-09-06  Paul Eggert  <eggert@twinsun.com>
121641         * lib/time_r.c, lib/time_r.h: New files.
121643         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
121644         __localtime_r.
121645         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
121646         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
121648         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
121649         __gmtime_r.
121650         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
121651         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
121652         Include <time_r.h>.
121654         * lib/timegm.c: Switch to glibc implementation, with the following
121655         changes:
121656         [defined HAVE_CONFIG_H]: Include <config.h>.
121657         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
121658         (__mktime_internal) [!defined _LIBC]: New decl.
121659         (__gmtime_r) [!defined _LIBC]: New macro and function.
121660         (timegm): Use a prototype, since gnulib assumes C89.
121661         Do not bother declaring tmp to be const, as it's not really usefu.
121662         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
121663         (timegm): Declare only if HAVE_DECL_TIMEGM.
121665 2003-09-06  Paul Eggert  <eggert@twinsun.com>
121667         * MODULES.html.sh (func_all_modules): Add time_r.
121668         * modules/time_r: New file.
121669         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
121670         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
121672 2003-09-03  Paul Eggert  <eggert@twinsun.com>
121674         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
121675         Bug reported by Lute Kamstra in
121676         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
121678         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
121679         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
121680         course with correspondingly smaller numbers for tomorrow and
121681         yesterday.  From Tadayoshi Funaba.  Originally installed into
121682         sh-utils on 1999-08-07, but the patch got lost (I guess during the
121683         coreutils merge?).
121685 2003-08-31  Simon Josefsson  <jas@extundo.com>
121687         * modules/timegm: New file.
121688         * MODULES.html.sh (func_all_modules): Add timegm.
121690 2003-08-31  Simon Josefsson  <jas@extundo.com>
121692         * m4/timegm.m4: New file.
121694 2003-08-31  Simon Josefsson  <jas@extundo.com>
121696         * lib/timegm.h: New file.
121697         * lib/timegm.c: New file.  Based on
121698         wget-1.8.2/src/http.c:mktime_from_utc.
121700 2003-08-31  Karl Berry  <karl@gnu.org>
121702         * lib/argp.h: update from libc.
121704 2003-08-28  Bruno Haible  <bruno@clisp.org>
121706         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
121707         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
121708         followed by '#define fnmatch fnmatch_posix' gives an error.
121710 2003-08-28  Bruno Haible  <bruno@clisp.org>
121712         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
121713         warning on QNX, which defines O_BINARY to 000000.
121715 2003-08-27  Jim Meyering  <jim@meyering.net>
121717         * m4/mkstemp.m4: Require that the system mkstemp be able to create
121718         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
121719         would fail after 32.  Reported by Danny Levinson.  Details here:
121720         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
121722 2003-08-24  Bruno Haible  <bruno@clisp.org>
121724         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
121725         MSVC7 <stdio.h> is included later.
121727 2003-08-22  Simon Josefsson  <jas@extundo.com>
121729         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
121731 2003-08-20  Karl Berry  <karl@gnu.org>
121733         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
121735 2003-08-20  Bruno Haible  <bruno@clisp.org>
121737         * modules/progname: New file.
121738         * MODULES.html.sh (func_all_modules): Add progname.
121740 2003-08-20  Bruno Haible  <bruno@clisp.org>
121742         * lib/progname.h: New file, from GNU gettext.
121743         * lib/progname.c: New file, from GNU gettext.
121744         * lib/progreloc.c: New file, from GNU gettext.
121746 2003-08-19  Jim Meyering  <jim@meyering.net>
121748         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
121749         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
121751 2003-08-19  Bruno Haible  <bruno@clisp.org>
121753         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
121754         more.
121756 2003-08-19  Bruno Haible  <bruno@clisp.org>
121758         * lib/xstrdup.c: Assume <string.h> exists.
121760 2003-08-18  Paul Eggert  <eggert@twinsun.com>
121762         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
121763         in makefile rules.
121765 2003-08-18  Jim Meyering  <jim@meyering.net>
121767         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
121768         * m4/lib-ld.m4: Likewise.
121770 2003-08-18  Jim Meyering  <jim@meyering.net>
121772         * lib/setenv.h: Indent nested cpp directive.
121773         * lib/vasnprintf.c: Remove trailing blanks.
121775 2003-08-17  Simon Josefsson  <jas@extundo.com>
121777         * modules/xstrndup: New file.
121778         * MODULES.html.sh (func_all_modules): Add xstrndup.
121780 2003-08-17  Simon Josefsson  <jas@extundo.com>
121782         * modules/argp: Fix autoconf macro name. Add more dependencies.
121784 2003-08-17  Simon Josefsson  <jas@extundo.com>
121786         * m4/xstrndup.m4: New file.
121788 2003-08-17  Simon Josefsson  <jas@extundo.com>
121790         * m4/argp.m4: New file.
121792 2003-08-17  Simon Josefsson  <jas@extundo.com>
121793             Bruno Haible  <bruno@clisp.org>
121795         * lib/xstrndup.h: New file.
121796         * lib/xstrndup.c: New file.
121798 2003-08-17  Bruno Haible  <bruno@clisp.org>
121800         * modules/strndup (Files, Include): Add lib/strndup.h.
121802 2003-08-17  Bruno Haible  <bruno@clisp.org>
121804         * modules/euidaccess (Files): Add lib/euidaccess.h.
121806 2003-08-17  Bruno Haible  <bruno@clisp.org>
121808         * lib/strndup.h: New file.
121810 2003-08-17  Bruno Haible  <bruno@clisp.org>
121812         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
121813         like AC_GNU_SOURCE.
121814         * modules/extensions (configure.ac): Comment out the invocation of
121815         gl_USE_SYSTEM_EXTENSIONS.
121817 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121819         Merges from coreutils, etc.
121820         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
121821         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
121822         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
121823         fixing a typo.
121824         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
121825         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
121827 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121829         Document merge from coreutils.
121830         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
121831         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
121832         * modules/utime: Add m4/utimes-null.m4.
121834 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121836         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
121837         space, undoing this 2003-08-12 change:
121838         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
121840 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121842         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
121843         strtoul.c from libc, undoing this 2003-08-12 change:
121844         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
121846 2003-08-16  Jim Meyering  <jim@meyering.net>
121848         Merges from coreutils.
121849         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
121850         prefix.  Adjust cache variables similarly.  Create 500 rather than
121851         just 300 files, to exercise bug on Darwin6.5, too.
121852         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
121853         $missing_dir.
121854         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
121855         AM_SYS_POSIX_TERMIOS.
121856         Reported by mkc@mathdogs.com.
121857         Also change use of $am_cv_sys_posix_termios
121858         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
121859         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
121860         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
121861         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
121862         in /proc/mounts until it finds one with matching device number.  This
121863         is unnecessary when the FILE argument *is* a mount point.  No stat call
121864         is necessary in that case.  So, disable the statvfs-testing code on
121865         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
121866         as RedHat bug# 84846.
121867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
121868         to 1MB, so as not to render systems with no stack size limit (e.g.,
121869         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
121870         Include <unistd.h>.  On some systems,
121871         it is required for the definition of _SC_PAGESIZE.
121873 2003-08-16  Jim Meyering  <jim@meyering.net>
121875         Merge from coreutils.
121876         * lib/xstrtoimax.c: #else #if -> #elif.
121877         * lib/xstrtoumax.c: Likewise.
121879 2003-08-16  Jim Meyering  <jim@meyering.net>
121881         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
121882         * m4/utimes.m4: Removed.
121883         * m4/utimes-null.m4: Renamed from utimes.m4.
121885         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
121886         to 1MB, so as not to render systems with no stack size limit (e.g.,
121887         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
121888         Include <unistd.h>.  On some systems,
121889         it is required for the definition of _SC_PAGESIZE.
121891 2003-08-16  Jim Meyering  <jim@meyering.net>
121892         and Paul Eggert  <eggert@cs.ucla.edu>
121894         Merges from coreutils, etc.
121896         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
121897         using the latest version from cvs.  This avoids problems with #line
121898         directives using a vendor (Sun) compiler.
121899         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
121900         Don't set GETGROUPS_LIB here; now it's
121901         done via getgroups.m4's wrapper function.
121902         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
121903         rather than just in sh-util/configure.in, so that the
121904         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
121905         same.
121906         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
121907         AC_FUNC_GETLOADAVG where to find getloadavg.c.
121908         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
121909         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
121910         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
121911         Remove code that is now done by the newly-required macros.
121912         Append $(EXEEXT) to DF_PROG.
121913         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
121914         Do not invoke or require the following here,
121915         since prereq.m4 or some gnulib .m4 now does this for us:
121916         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
121917         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
121918         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
121919         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
121920         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
121921         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
121922         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
121923         AC_FUNC_OBSTACK.
121924         Do not replace the following functions, as this is now the job
121925         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
121926         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
121927         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
121928         atexit getpass, strdup, getpagesize.
121929         Replace 'raise'.
121930         Do not check for the following functions, as this is now the job
121931         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
121932         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
121933         setregid.
121934         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
121935         Check for sys/sysctl.h.
121936         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
121937         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
121938         of checking for ssize_t ourselves.
121940         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
121941         Require every macro that gnulib/modules/* suggests for us.
121942         (jm_PREREQ_ADDEXT): New macro.
121943         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
121944         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
121946         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
121947         (gl_PHYSMEM): Use it.
121948         Also check for `table' function.
121949         Check for new headers and functions.
121950         Add check for sys/sysmp.h.
121951         With suggestions from Kaveh Ghazi.
121952         Ignore headers that are present but cannot be compiled.  This
121953         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
121954         C 5.4.
121956 2003-08-15  Paul Eggert  <eggert@twinsun.com>
121958         Document merge from coreutils.
121959         * modules/userspec: Depend on posixver.
121960         * modules/strftime: Depend on tzset.
121962 2003-08-15  Paul Eggert  <eggert@twinsun.com>
121964         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
121965         rather than tab, after '#' in shell-script copyright notices.
121966         Suggested by Bruno Haible.
121968 2003-08-15  Paul Eggert  <eggert@twinsun.com>
121970         * config/srclist-update: Use three spaces, rather than tab, after '#'
121971         in shell-script copyright notices.  Suggested by Bruno Haible.
121972         Remove unnecessary parenthesization in regular expression.
121974 2003-08-15  Jim Meyering  <jim@meyering.net>
121976         Merge from coreutils.
121977         * lib/xgethostname.c: Include <stdlib.h>.
121978         (xghostname): Don't exit for anything other than memory-related
121979         failure; just return NULL.
121980         * lib/userspec.c: Include "posixver.h".
121981         (parse_user_spec): Accept `.' as a separator only
121982         in pre-POSIX-200112 mode.
121983         * lib/strtoimax.c: Use #elif rather than #else #if.
121984         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
121985         Remove function, now that we can rely on a working tzset function.
121986         [!_LIBC]: Ensure that the required autoconf test has been run.
121987         [!defined _NL_CURRENT && HAVE_STRFTIME]:
121988         Use underlying_strftime for %r.
121989         * lib/sha.c: Merge in some clean-up and optimization changes from
121990         glibc.
121991         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
121992         Ensure that it is a multiple of 64.
121993         Rearrange loop exit tests so as to avoid performing an
121994         additional fread after encountering an error or EOF.
121995         * lib/realloc.c: Update copyright date.
121997 2003-08-15  Jim Meyering  <jim@meyering.net>
121998         and Paul Eggert  <eggert@twinsun.com>
122000         Merge from coreutils.
122001         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
122002         member but strut utmpx does not.  Needed for AIX 4.3.3.
122003         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
122005 2003-08-15  Jim Meyering  <jim@meyering.net>
122006         and Paul Eggert  <eggert@cs.ucla.edu>
122008         Merges from coreutils, etc.
122009         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
122010         Require gl_FUNC_TZSET_CLOBBER.
122011         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
122012         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
122013         members.
122015 2003-08-14  Paul Eggert  <eggert@twinsun.com>
122017         Help the merge from coreutils.
122018         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
122019         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
122020         * m4/tzset.m4: Use it too.
122022 2003-08-14  Paul Eggert  <eggert@twinsun.com>
122024         * modules/tzset: New file.
122026 2003-08-14  Jim Meyering  <jim@meyering.net>
122028         Merges from coreutils.
122029         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
122030         variable names, rather than @FNMATCH_H@.
122031         * modules/alloca: Likewise for $(ALLOCA_H).
122033         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
122034         the three copies of the literal target, `fnmatch.h'.
122035         * modules/alloca (alloca.h): Likewise.
122037 2003-08-14  Jim Meyering  <jim@meyering.net>
122039         Merge from coreutils.
122040         * m4/tzset.m4: New file.
122041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
122042         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
122043         otherwise, AIX 5.1 systems would end up using the latter.
122044         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
122045         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
122046         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
122047         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
122049 2003-08-14  Jim Meyering  <jim@meyering.net>
122051         Merge from coreutils.
122052         * lib/obstack.h: Whitespace changes.
122053         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
122054         and xcalloc return values.
122055         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
122056         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
122057         hang on OSF/1 5.1 for DIR on both local and remote file systems.
122058         Reported by (and fix confirmed by) Nelson H. F. Beebe.
122059         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
122060         error from mntctl.
122061         Use mntctl's return value to drive the entry-processing loop, since
122062         we can't rely on the value of the vmt_length member in the last
122063         entry.  On some systems doing so could result in exhausting
122064         virtual memory.  Based in part on a patch from Mike Jetzer.
122066 2003-08-14  Jim Meyering  <jim@meyering.net>
122067         and Paul Eggert  <eggert@twinsun.com>
122069         Merges from coreutils, plus other fixes.
122070         * lib/physmem.c: Merge in portability changes from gcc/libiberty
122071         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
122072         for credits and details.  Thanks to Kaveh Ghazi for helping
122073         to keep these files in sync.
122074         (ARRAY_SIZE): Define it.
122075         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
122076         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
122077         (memcasecmp): Don't assume size_t fits in unsigned int.
122078         Remove casts and duplicate code.
122079         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
122080         (memcpy): Remove definition.
122081         Merge in some clean-up and optimization changes from glibc.
122082         [BLOCKSIZE]: Move definition to top of file.
122083         Ensure that it is a multiple of 64.
122084         Rearrange loop exit tests so as to avoid performing an
122085         additional fread after encountering an error or EOF.
122086         * lib/md5.h (md5_uintptr): Define.
122087         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
122088         return to the initial working directory.  Preserve errno
122089         for caller.
122090         * lib/idcache.c: Include "xalloc.h".
122091         (xmalloc, xrealloc): Remove decls.
122092         (getuser): Remove casts no longer required in C89.
122093         * lib/human.c: Include stdio.h, for sprintf.
122094         * lib/group-member.c: Include "xalloc.h".
122095         (xmalloc, xrealloc): Remove decls.
122096         (get_group_info): Remove casts no longer required in C89.
122097         * lib/getusershell.c (readname): Remove casts no longer required in
122098         C89.
122099         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
122100         * lib/getline.c: Whitespace fix, from coreutils.
122102 2003-08-13  Paul Eggert  <eggert@twinsun.com>
122104         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
122105         Check for isascii.
122107         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
122108         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
122109         Undo previous (whitespace-only) change.
122111 2003-08-13  Paul Eggert  <eggert@twinsun.com>
122113         * lib/exclude.c: Include <ctype.h>
122114         (IN_CTYPE_DOMAIN): New macro.
122115         (is_space): New fn.
122116         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
122117         and empty lines.
122119         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
122120         Undo previous (whitespace-only) change.
122122 2003-08-13  Paul Eggert  <eggert@twinsun.com>
122124         * config/srclist-update: Change update back to the old behavior,
122125         leaving whitespace alone.  Use one 'sed' command rather than a
122126         pipeline.
122127         (fixlicense): Now a variable, not a function.
122128         (remove_trailing_blanks): Remove.
122129         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
122130         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
122131         Undo previous (whitespace-only) change.
122133 2003-08-12  Paul Eggert  <eggert@twinsun.com>
122135         Merge from coreutils.
122136         * modules/euidaccess: Add lib_SOURCES, include for new
122137         file euidaccess.h
122139 2003-08-12  Paul Eggert  <eggert@twinsun.com>
122141         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
122142         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
122143         Normalize leading white space and remove trailing white space.
122145         Merge from coreutils
122146         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
122148         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
122149         0.12.1.  These files are now being upgraded automatically by
122150         ../config/srclist-update.
122152 2003-08-12  Paul Eggert  <eggert@twinsun.com>
122154         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
122155         Normalize leading white space and remove trailing white space.
122156         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
122157         notice, as per ../config/srclist-update.
122159         Merge from coreutils.
122160         * lib/euidaccess.h: New file.
122161         * lib/euidaccess.c: Include it.
122162         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
122163         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
122164         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
122166 2003-08-12  Paul Eggert  <eggert@twinsun.com>
122168         * config/srclist-update: Add copyright notice.
122169         (remove_id_lines, remove_trailing_blanks): New constants.
122170         (fixfile): Use them to normalize spacing a bit in copied files.
122171         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
122172         Normalize leading white space and remove trailing white space.
122174         * config/texinfo.tex: Sync with texinfo.
122176         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
122177         strtoul.c from libc, to merge coreutils whitespace changes.
122179         * config/srclist.txt: Get the following m4 files from gettext:
122180         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
122181         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
122182         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
122183         wint_t.m4.
122185 2003-08-12  Karl Berry  <karl@gnu.org>
122187         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
122188         been made.
122190 2003-08-11  Paul Eggert  <eggert@twinsun.com>
122192         * modules/gnu-source, m4/gnu-source.m4:
122193         Remove; we're assuming Autoconf 2.54 or later now.
122194         Suggested by Bruno Haible.
122195         * MODULES.html.sh (func_all_modules): Remove gnu-source.
122197 2003-08-11  Bruno Haible  <bruno@clisp.org>
122199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
122201 2003-08-11  Bruno Haible  <bruno@clisp.org>
122203         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
122204         (vasnprintf): Use it instead of wcslen.
122206 2003-08-11  Bruno Haible  <bruno@clisp.org>
122208         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
122209         value to ensure that _Bool promotes to int. Use #define for _Bool when
122210         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
122212 2003-08-10  Karl Berry  <karl@gnu.org>
122214         * lib/regex.h: update from libc (whitespace fix).
122216 2003-08-09  Paul Eggert  <eggert@twinsun.com>
122218         Merge some files from coreutils.  These changes were
122219         originally made by Jim Meyering.
122220         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
122221         many older Unixes require this.
122222         * lib/alloca.c (alloca): Remove cast to argument of free;
122223         no longer needed in C89.
122224         * lib/alloca_.h, regex.h: Fix white space to match
122225         what GNU indent does.
122227 2003-08-09  Paul Eggert  <eggert@twinsun.com>
122229         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
122230         apparently Emacs's Unicode mode got confused before my 2003-08-05
122231         checkin.
122233 2003-08-08  Paul Eggert  <eggert@twinsun.com>
122235         * m4/extensions.m4: New file.
122236         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
122237         Require gl_USE_SYSTEM_EXTENSIONS.
122238         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
122239         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
122241 2003-08-08  Paul Eggert  <eggert@twinsun.com>
122243         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
122244         * modules/extensions, modules/gnu-source: New files.
122245         * modules/timespec, modules/unlocked-io: Depend on extensions.
122247 2003-08-07  Paul Eggert  <eggert@twinsun.com>
122249         * modules/restrict: New file.
122250         * MODULES.html.sh (func_all_modules): Add restrict.
122251         * modules/regex: Depend on restrict.
122253 2003-08-07  Paul Eggert  <eggert@twinsun.com>
122255         * m4/restrict.m4: New file.
122256         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
122258 2003-08-07  Bruno Haible  <bruno@clisp.org>
122260         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
122261         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
122263 2003-08-07  Bruno Haible  <bruno@clisp.org>
122265         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
122266         makes the module 'getndelim2' compatible with the module 'getline'.
122268 2003-08-05  Paul Eggert  <eggert@twinsun.com>
122270         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
122271         byte with "\201" to avoid glitches when editing that source file
122272         with multi-gnome-terminal.
122274 2003-08-05  Paul Eggert  <eggert@twinsun.com>
122276         * lib/bumpalloc.h: Remove.
122278 2003-08-05  Paul Eggert  <eggert@twinsun.com>
122280         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
122281         * modules/bumpalloc: Remove.
122283 2003-08-04  Paul Eggert  <eggert@twinsun.com>
122285         * lib/getloadavg.c: Change copyright notice and spacing to conform to
122286         GNU coding style.
122288         Merge from coreutils.
122289         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
122290         1. From glibc.
122291         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
122292         from Karl Berry, implemented by Jim Meyering.
122293         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
122294         from Dmitry V. Levin.
122295         Remove anachronistic cast of xrealloc.
122296         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
122297         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
122298         type. Otherwise, it wouldn't compile with at least /bin/cc on
122299         ymp-cray-unicos9.0.2.X.
122300         Combine two mostly-identical uses of alloca into one.
122301         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
122303 2003-08-04  Dave Love  <d.love@dl.ac.uk>
122305         [From Emacs.]
122307         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
122308         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
122309         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
122310         obsolete NLIST_NAME_UNION.
122311         [__GNU__]: Undef BSD and FSCALE.
122312         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
122314 2003-08-03  Paul Eggert  <eggert@twinsun.com>
122316         * lib/stdbool_.h (_Bool): Make it signed char, instead of
122317         an enum type, so that it's guaranteed to promote to int.  See:
122318         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
122320 2003-08-03  Karl Berry  <karl@gnu.org>
122322         * config/depcomp: update from automake.
122324 2003-07-31  Paul Eggert  <eggert@twinsun.com>
122326         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
122327         (strerror): Don't assume that a printable int fits in 14 bytes.
122329 2003-07-31  Bruno Haible  <bruno@clisp.org>
122331         * modules/getpass-gnu: New file.
122332         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
122334 2003-07-31  Bruno Haible  <bruno@clisp.org>
122336         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
122338 2003-07-24  Karl Berry  <karl@gnu.org>
122340         * config/missing: update from automake.
122342 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
122343             Bruno Haible  <bruno@clisp.org>
122345         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
122346         * lib/getline.c (getline, getdelim): Likewise.
122347         Remove _GNU_SOURCE define; now it's defined in config.h through
122348         m4/getline.m4.
122350 2003-07-23  Karl Berry  <karl@gnu.org>
122352         * config/config.sub: update from prep.
122354 2003-07-22  Paul Eggert  <eggert@twinsun.com>
122356         * modules/xalloc (Depends-on): Add exitfail.
122357         * modules/xmemcoll: Likewise.
122359 2003-07-22  Paul Eggert  <eggert@twinsun.com>
122361         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
122362         over-parenthesization in macros.
122364         Sync with coreutils.
122366         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
122367         required by C99.
122369         Use `exit_failure' for xalloc and xmemcoll instead of their own
122370         private exit-failure variables.
122371         * lib/xalloc.h (xalloc_exit_failure): Remove.
122372         * lib/xmalloc.c: Likewise.  Include exitfail.h.
122373         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
122374         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
122375         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
122376         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
122378 2003-07-20  Jim Meyering  <jim@meyering.net>
122380         * modules/closeout (Depends-on): Add exitfail.
122381         Suggestion from Bruno Haible.
122383 2003-07-19  Karl Berry  <karl@gnu.org>
122385         * config/config.sub: update from prep.
122387 2003-07-18  Paul Eggert  <eggert@twinsun.com>
122389         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
122390         Remove.
122391         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
122392         to test that it can stand by itself.  Include "exitfail.h".
122393         Clients should set exit_failure instead.
122394         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
122396 2003-07-18  Bruno Haible  <bruno@clisp.org>
122398         * modules/getndelim2: New file.
122399         * modules/getline: Share files with module getndelim2.
122400         * modules/getnline: Depend on getndelim2 instead of sharing files with
122401         it. Add getnline.c to lib_SOURCES.
122402         * MODULES.html.sh (func_all_modules): Add getndelim2.
122404 2003-07-18  Bruno Haible  <bruno@clisp.org>
122406         * m4/getndelim2.m4: New file.
122407         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
122408         invoke gl_PREREQ_GETNDELIM2.
122409         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
122410         gl_PREREQ_GETNDELIM2.
122411         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
122412         gl_GETNDELIM2.
122414 2003-07-18  Bruno Haible  <bruno@clisp.org>
122416         * lib/getndelim2.h: New file.
122417         * lib/getndelim2.c: Make into a module of its own. Include config.h,
122418         getndelim2.h.
122419         (getndelim2): Make non-static. Change return type to ssize_t.
122420         * lib/getline.h: Change argument names.
122421         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
122422         * lib/getnline.c: Include getndelim2.h.
122424 2003-07-18  Andreas Schwab  <schwab@suse.de>
122426         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
122428 2003-07-17  Karl Berry  <karl@gnu.org>
122430         * config/config.sub: update from prep.
122432 2003-07-17  Bruno Haible  <bruno@clisp.org>
122434         * modules/getnline: New file.
122435         * modules/getline: Add lib/getndelim2.c to source file list.
122436         * MODULES.html.sh (func_all_modules): Add getnline.
122438 2003-07-17  Bruno Haible  <bruno@clisp.org>
122440         * m4/getnline.m4: New file.
122442 2003-07-17  Bruno Haible  <bruno@clisp.org>
122444         * m4/Makefile.am.in: Remove file.
122445         * m4/Makefile.am: Remove file.
122446         * m4/Makefile.in: Remove file.
122448 2003-07-17  Bruno Haible  <bruno@clisp.org>
122450         * lib/getnline.h: New file.
122451         * lib/getnline.c: New file.
122452         * lib/getndelim2.c: New file, extracted from getline.c.
122453         (getndelim2): Renamed from getdelim2, with added nmax argument.
122454         * lib/getline.c: Include getndelim2.c.
122455         (getdelim2): Moved out to getndelim2.c.
122456         (getline, getdelim): Update.
122458 2003-07-17  Bruno Haible  <bruno@clisp.org>
122460         * lib/Makefile.am: Remove file.
122461         * lib/Makefile.in: Remove file.
122463 2003-07-17  Bruno Haible  <bruno@clisp.org>
122465         * configure.in: Remove file.
122466         * Makefile.in: Remove file.
122468 2003-07-17  Bruno Haible  <bruno@clisp.org>
122470         * MODULES.html.sh: Put the </BODY> right before </HTML>.
122472 2003-07-16  Karl Berry  <karl@gnu.org>
122474         * config/srclist-update: was running fixlicense twice, which caused
122475                 texinfo.tex to be nullified for some reason.  Simplify,
122476                 $gplsrc is no longer needed as far as I can see?
122478 2003-07-16  Jim Meyering  <jim@meyering.net>
122480         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
122482 2003-07-15  Paul Eggert  <eggert@twinsun.com>
122484         * config/srclist.txt: Get the following files from gettext-runtime/intl
122485         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
122486         ref-del.sin.  From Bruno Haible.
122487         * config/srclist-update (fixfile): Change grep pattern again, since the
122488         previous fix didn't work (there was another trailing $).  Use
122489         '[$]' to escape the $s.
122491 2003-07-15  Karl Berry  <karl@gnu.org>
122493         * lib/vasnprintf.c: update from gettext.
122495 2003-07-15  Karl Berry  <karl@gnu.org>
122497         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
122498         gets expanded when surrounded by '$'.
122500 2003-07-15  Jim Meyering  <jim@meyering.net>
122502         * modules/save-cwd: Don't depend on error.  From Derek Price.
122504 2003-07-15  Jim Meyering  <jim@meyering.net>
122506         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
122508 2003-07-14  Simon Josefsson  <jas@extundo.com>
122510         * modules/mempcpy: New file.
122511         * MODULES.html.sh (func_all_modules): Add mempcpy.
122513 2003-07-14  Simon Josefsson  <jas@extundo.com>
122515         * m4/mempcpy.m4: New file.
122517 2003-07-14  Simon Josefsson  <jas@extundo.com>
122519         * lib/mempcpy.h: New file.
122520         * lib/mempcpy.c: New file.
122522 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122524         * modules/getdate, modules/posixtm: Depend on mktime.
122526 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122528         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
122529         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
122530         unicodeio.c, unicodeio.h, unlocked-io.h:
122531         Switch from LGPL to GPL.
122533 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122535         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
122536         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
122537         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
122538         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
122539         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
122540         updated automatically by ../config/srclist-update.  This changes
122541         their license from LPGL to GPL.
122543 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122545         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
122546         assumed to refer to the root of the most recent stable gettext version.
122547         * config/srclistvars.sh: Add defaults for eggert.
122548         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
122549         Match "This program" as well as "The program".  This is needed
122550         for gettext.
122552 2003-07-14  Jim Meyering  <jim@meyering.net>
122554         Don't emit diagnostics.  Let callers do that.
122555         * lib/save-cwd.c: Don't include "error.h".
122556         (save_cwd): Don't call error.  Ensure that errno is valid
122557         when returning nonzero.
122559         * lib/save-cwd.h (restore_cwd): Update prototype.
122560         * lib/save-cwd.c (restore_cwd): Remove two parameters.
122561         Simplify.  Don't call error upon failure.  Let callers do that.
122562         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
122563         when auditing is enabled.  But don't bother updating the #if.
122565 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
122567         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
122568         it breaks C++ compilation.
122569         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
122571 2003-07-10  Simon Josefsson  <jas@extundo.com>
122573         * modules/strchrnul (Makefile.am): Add strchrnul.h.
122575 2003-07-10  Jim Meyering  <jim@meyering.net>
122577         * m4/clock_time.m4: Remove trailing blank.
122578         * m4/intmax_t.m4: Likewise.
122580 2003-07-10  Jim Meyering  <jim@meyering.net>
122582         * lib/vasnprintf.c: Remove trailing blanks.
122583         Make cpp indentation consistent.
122585 2003-07-09  Paul Eggert  <eggert@twinsun.com>
122587         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
122588         posixver.c, strftime.c, strnlen.c, strverscmp.c:
122589         Switch from LGPL to GPL.
122591 2003-07-09  Paul Eggert  <eggert@twinsun.com>
122593         * config/srclist.txt: Sort sublists.  Add
122594         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
122595         that differ from gnulib for one reason or another; we'd like this list
122596         to be smaller but for now let's document what we have.
122598 2003-07-08  Paul Eggert  <eggert@twinsun.com>
122600         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
122601         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
122602         and sweeter "eval x=$x".
122603         * config/srclist.txt: Get lib/argp* from glibc.
122605 2003-07-07  Paul Eggert  <eggert@twinsun.com>
122607         * lib/mktime.c: Fix some boundary cases and remove need for floating
122608         point.
122610         Issue a compile-time diagnostic if time_t is floating point, or if
122611         two's complement arithmetic is not in effect, or if arithmetic
122612         right shift does not propagate the sign.  These assumptions were
122613         all in the original code but they weren't checked.
122615         (TIME_T_MIDPOINT, verify): New macros.
122616         (__isleap): Remove; it has integer overflow problems.
122617         (leapyear): New function, without those problems.
122618         (ydhms_tm_diff): Remove; splitting into two parts.
122619         (ydhms_diff): New function, containing the arithmetic part of
122620         the old ydhms_tm_diff function.  Issue a compile-time
122621         diagnostic if we are not using C99 integer division.
122622         Avoid casts when possible.
122623         (guess_time_tm): New function, containing the checking part of
122624         the old ydhms_tm_diff function.  Return the new value, rather than
122625         the difference between it and the old.  Accept a new argument T
122626         so that *T specifies the old value.  Check for overflow in the result.
122628         (__mktime_internal): Use a time_t offset, not a long int offset.
122629         This undoes the 2003-06-04 change, which is no longer needed now
122630         that we have better overflow checking.
122631         (localtime_offset): Likewise.
122633         (__mktime_internal): Avoid harmful overflow on hosts where time_t
122634         and long are 64-bit but int is only 32-bit.
122635         (ydhms_diff): Use long int to store year1 and yday1.
122636         Issue a compile-time diagnostic if long int is not wide enough.
122638         (__mktime_internal): Use long int to store adjusted year and yday.
122639         Use plain C rather than preprocessor commands, if that doesn't
122640         affect efficiency.
122641         Check for overflow (and try to repair) after each probe
122642         rather than checking only at the very end.  This avoids some bugs
122643         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
122644         does not equal GMT offset at maximum time).
122645         Use integer to check for overflow rather than floating point; this
122646         is more portable to non-IEEE hosts, and is a tad faster.
122647         When we detect that we are oscillating between two values,
122648         don't check whether tm_isdst has the requested value, since
122649         we already know the answer.  When tm_isdst has the wrong value,
122650         use a different heuristic to find the right one, based on the
122651         extreme values actually observed in practice in tz2003a,
122652         rather than the (overly optimistic) "previous 3 calendar quarters".
122654         (not_equal_tm, print_tm, check_result): Use "const T" rather than
122655         "T const" to accommodate glibc style.
122656         (check_result): Use less-confusing report format.  "long" -> "long int.
122657         (main): Likewise.
122658         Don't loop if the iteration overflows time_t.
122659         Allow a negative step in the iteration.
122661 2003-07-06  Karl Berry  <karl@gnu.org>
122663         * config/depcomp: update from automake.
122664         * config/config.sub: update from prep.
122666 2003-07-03  Karl Berry  <karl@gnu.org>
122668         * config/config.guess: update from prep.
122670 2003-07-01  Paul Eggert  <eggert@twinsun.com>
122672         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
122673         xreadlink.c now includes it unconditionally.
122675 2003-07-01  Paul Eggert  <eggert@twinsun.com>
122677         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
122678         having it depend on HAVE_SYS_TYPES_H.
122680 2003-07-01  Bruno Haible  <bruno@clisp.org>
122682         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
122683         <sys/types.h> should be sufficient.
122684         Reported by Paul Eggert.
122686 2003-06-26  Karl Berry  <karl@gnu.org>
122688         * config/depcomp: update from automake.
122690 2003-06-26  Bruno Haible  <bruno@clisp.org>
122692         * modules/human: Depend on module stdbool.
122694 2003-06-25  Bruno Haible  <bruno@clisp.org>
122696         * modules/readlink: New file.
122697         * modules/xreadlink: Depend on it.
122698         * MODULES.html.sh (func_all_modules): Add readlink.
122700 2003-06-25  Bruno Haible  <bruno@clisp.org>
122702         * m4/readlink.m4: New file.
122704 2003-06-25  Bruno Haible  <bruno@clisp.org>
122706         * lib/readlink.c: New file.
122708 2003-06-22  Karl Berry  <karl@gnu.org>
122710         * config/srclist.txt: update mkinstalldirs from automake.
122711         * config/mkinstalldirs: update.
122713 2003-06-22  Bruno Haible  <bruno@clisp.org>
122715         Portability to mingw32.
122716         * m4/ssize_t.m4: New file, from GNU gettext.
122717         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
122718         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
122720 2003-06-22  Bruno Haible  <bruno@clisp.org>
122722         * modules/safe-read: Add m4/ssize_t.m4.
122723         * modules/xreadlink: Add m4/ssize_t.m4.
122725 2003-06-20  Bruno Haible  <bruno@clisp.org>
122727         Assume C89, so PARAMS isn't needed.
122728         * lib/unicodeio.h (PARAMS): Remove.
122729         * lib/unicodeio.c: Don't use PARAMS.
122731 2003-06-18  Karl Berry  <karl@gnu.org>
122733         * config/config.{guess,sub}: update from prep.
122735 2003-06-18  Jim Meyering  <jim@meyering.net>
122737         Merge changes from coreutils.
122738         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
122739         Remove explicit declarations of xmalloc and realloc.
122740         Include xalloc.h.
122741         (read_utmp): Remove anachronistic cast of xmalloc.
122743 2003-06-17  Paul Eggert  <eggert@twinsun.com>
122745         Assume C89, so PARAMS isn't needed.
122746         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
122747         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
122748         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
122749         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
122750         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
122751         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
122752         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
122753         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
122754         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
122755         lib/xstrtod.h, lib/xstrtol.h: Likewise.
122756         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
122757         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
122758         no longer needed. Anyway, config.h should always be included before any
122759         other file.
122761 2003-06-11  Simon Josefsson  <jas@extundo.com>
122763         * modules/sysexits: New file.
122764         * MODULES.html.sh (func_all_modules): Add sysexits.
122766 2003-06-11  Simon Josefsson  <jas@extundo.com>
122768         * lib/sysexit_.h: New file.
122770 2003-06-11  Derek Price  <derek@ximbiot.com>
122772         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
122773         necessary.
122775 2003-06-11  Bruno Haible  <bruno@clisp.org>
122777         * m4/sysexits.m4: New file.
122779 2003-06-10  Simon Josefsson  <jas@extundo.com>
122781         * lib/argp.h: New file, from glibc.
122782         * lib/argp-ba.c: New file, from glibc.
122783         * lib/argp-eexst.c: New file, from glibc.
122784         * lib/argp-fmtstream.c: New file, from glibc.
122785         * lib/argp-fmtstream.h: New file, from glibc.
122786         * lib/argp-fs-xinl.c: New file, from glibc.
122787         * lib/argp-help.c: New file, from glibc.
122788         * lib/argp-namefrob.h: New file, from glibc.
122789         * lib/argp-parse.c: New file, from glibc.
122790         * lib/argp-pv.c: New file, from glibc.
122791         * lib/argp-pvh.c: New file, from glibc.
122792         * lib/argp-xinl.c: New file, from glibc.
122794 2003-06-10  Simon Josefsson  <jas@extundo.com>
122796         * modules/strchrnul: New file.
122798 2003-06-10  Simon Josefsson  <jas@extundo.com>
122800         * modules/argp: New file.
122802 2003-06-10  Simon Josefsson  <jas@extundo.com>
122804         * m4/strchrnul.m4: New file.
122806 2003-06-10  Simon Josefsson  <jas@extundo.com>
122808         * lib/strchrnul.h: New file.
122809         * lib/strchrnul.c: New file.
122811 2003-06-10  Bruno Haible  <bruno@clisp.org>
122813         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
122815 2003-06-07  Karl Berry  <karl@gnu.org>
122817         * config/config.{guess,sub}: update from prep.
122819 2003-06-07  Jim Meyering  <jim@meyering.net>
122821         * modules/strtod: Use $(...) notation, not @...@ for
122822         AC_REPLACE'd variables.
122823         * modules/localcharset: Likewise.
122825 2003-06-07  Jim Meyering  <jim@meyering.net>
122827         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
122828         in place of my name in the copyright comment.
122829         Remove definition and uses of __P.
122831         From coreutils.
122832         * lib/stat.c: Don't declare xmalloc explicitly.
122833         Instead, include "xalloc.h".
122834         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
122835         xrealloc, and xcalloc return values.
122836         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
122837         Improve comment.
122838         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
122840 2003-06-07  Bruno Haible  <bruno@clisp.org>
122842         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
122843         avoid AC_CONFIG_LINKS.
122844         * modules/fnmatch (Makefile.am): Use explicit creation rule for
122845         fnmatch.h, to avoid AC_CONFIG_LINKS.
122846         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
122848 2003-06-07  Bruno Haible  <bruno@clisp.org>
122850         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
122851         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
122852         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
122853         directory.
122854         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
122855         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
122856         directory.
122858 2003-06-06  Jim Meyering  <jim@meyering.net>
122860         Merge from coreutils.
122861         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
122862         Consolidate declarations and initializations of *_base* locals.
122864         Merge from coreutils.
122865         This avoids a core dump on systems without GNU putenv,
122866         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
122867         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
122868         (unsetenv): New static function, from GNU libc.
122869         (rpl_putenv): Use it.
122871         * lib/modechange.c: Remove trailing blanks.
122873         Merge from coreutils.
122874         * lib/fsusage.c: Remove declaration of statfs.
122875         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
122877         * lib/posixtm.c: Include <stdbool.h> unconditionally.
122879 2003-06-06  Jim Meyering  <jim@meyering.net>
122881         * lib/stdbool_.h: Renamed from stdbool.h.in.
122883 2003-06-06  Jim Meyering  <jim@meyering.net>
122884             Bruno Haible  <bruno@clisp.org>
122886         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
122887         Adjust Makefile.am snippet not to redirect directly to target.
122888         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
122890 2003-06-05  Paul Eggert  <eggert@twinsun.com>
122892         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
122893         mismatch, look in future quarters as well as past.  This fixes a
122894         bug when processing fall-backwards gaps immediately after a long
122895         period of daylight-saving time.
122897         * lib/mktime.c: Assume freestanding C89 or better.
122898         (HAVE_LIMITS_H): Remove.  Assume it's 1.
122899         (__P): Remove; not used.
122900         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
122901         (mktime, not_equal_tm, print_tm, check_result,
122902         main): Use prototypes.  Use const * where appropriate.
122903         (main): Fix typo in testing code that uncovered by above changes.
122904         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
122906 2003-06-04  Paul Eggert  <eggert@twinsun.com>
122908         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
122909         locale.h, localeconv.  This merges changes from coreutils.
122911         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
122912         It can be removed after the next Autoconf is released.
122913         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
122914         needed.
122916 2003-06-04  Paul Eggert  <eggert@twinsun.com>
122918         * lib/mktime.c: Fix Debian bug 177940
122919         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
122920         (localtime_offset): Now long int, not time_t, because we want it
122921         to be guaranteed to be signed.  All uses changed.
122922         (__mktime_internal): If overflow would occur when adding offset,
122923         don't add it.
122925         Merge 'human' changes from coreutils.  Rewrite to support
122926         locale-specific notations like thousands separators.
122927         * lib/human.c: Simplify authorship notice.
122928         Include human.h immediately after config.h.
122929         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
122930         <limits.h>: Do not include, since human.h does.
122931         (SIZE_MAX, UINTMAX_MAX): New macros.
122932         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
122933         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
122934         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
122935         (power_letter): Renamed from suffixes.
122936         (generate_suffix_backwards): Remove.
122937         (adjust_value): Now takes int style (because of human.h changes)
122938         and long double value (for greater precision on some platforms).
122939         (group_number): New function.
122940         (human_readable): Use it.  Use integer options, not enum.
122941         Put the options before the sizes in the arg list.
122942         Support all the new options.
122943         The old human_readable function has been removed;
122944         use inttostr.h instead.
122945         (human_readable, default_block_size, humblock):
122946         Use uintmax_t, not int, for block sizes.
122947         (human_readable_inexact, block_size_types): Remove.
122948         (block_size_opts): New constant.
122949         (human_options): Renamed from human_block_size, with new signature
122950         that allows block sizes up to UINTMAX_MAX.  All callers changed.
122951         * lib/human.h: Add copyright and authorship notice.
122952         Include <limits.h> and <stdbool.h> unconditionally.
122953         (PARAMS): Remove.  All uses removed.
122954         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
122955         (enum human_inexact_style): Remove tag; now a nameless enum.
122956         (human_floor, human_ceiling, human_round_to_even): Now have
122957         values 2, 0, 1 rather than -1, 1, 0.
122958         (human_group_digits, human_suppress_point_zero, human_autoscale,
122959         human_base_1024, human_SI, human_B): New constants.
122960         (human_readable_inexact, human_block_size): Remove.
122961         (human_readable): Size args are now uintmax_t, not int.
122962         (human_options): New decl.
122964         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
122965         unnecessary now that we assume C89 or better.  This change
122966         imported from coreutils.
122968         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
122969         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
122970         in the 2003-05-30 sync from glibc.
122972         .h files should stand alone, but we shouldn't include <sys/types.h>
122973         if we can get away with just <stddef.h>.
122975         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
122976         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
122977         rather than <sys/types.h>, as we merely need size_t.
122978         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
122979         to get size_t.
122980         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
122981         Include <stdio.h>, to get FILE.
122982         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
122983         memcasecmp.h has included <stddef.h> and all we need is size_t.
122984         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
122985         our interface, instead of including <sys/types.h>
122987 2003-06-04  Paul Eggert  <eggert@twinsun.com>
122989         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
122990         now, as glibc mktime is buggy on non-glibc systems.
122992 2003-06-03  Karl Berry  <karl@gnu.org>
122994         * config/config.sub: update from prep.
122996 2003-06-02  Paul Eggert  <eggert@twinsun.com>
122998         [from coreutils]
122999         Fix some minor time-related bugs with POSIX time arguments.
123000         Some valid time stamps were being rejected (notably -1, and
123001         time stamps before 1900 on 64-bit hosts).  And some invalid
123002         time stamps were being accepted, e.g. September 31.
123004         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
123005         that we can return (time_t) -1 successfully.
123006         * lib/posixtm.c: Likewise.
123007         [HAVE_STDBOOL_H]: Include <stdbool.h>.
123008         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
123009         (t): Remove static var.
123010         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
123011         of static var.  All uses changed.
123012         (year): Do not reject years before 1900; they can occur with
123013         64-bit time_t.
123014         (posix_time_parse): Do not check for out-of-range components;
123015         that is now the caller's responsibility, since our checks were
123016         only approximations.
123017         (posixtime): Use mktime to check for out-of-range components,
123018         since it knows them exactly.
123019         If mktime returns (time_t) -1, check whether an error actually occurred
123020         by invoking localtime on -1.
123021         (main) [TEST_POSIXTIME]: Check for input data errors, and report
123022         posixtime failures better.
123023         Improve the test data (in comments only).
123025 2003-06-02  Karl Berry  <karl@gnu.org>
123027         * config/mkinstalldirs (version): new variable.
123028         (--version): new option.
123029         (usage): improve message.
123031 2003-05-30  Karl Berry  <karl@gnu.org>
123033         * lib/mktime.c: update from libc.
123035 2003-05-30  Bruno Haible  <bruno@clisp.org>
123037         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
123038         * config/config.rpath: Upgrade to gettext-0.12.1.
123040 2003-05-30  Bruno Haible  <bruno@clisp.org>
123042         * m4/gettext.m4: Upgrade to gettext-0.12.1.
123043         * m4/nls.m4: New file, from gettext-0.12.1.
123044         * m4/po.m4: New file, from gettext-0.12.1.
123045         * m4/progtest.m4: Upgrade to gettext-0.12.1.
123047 2003-05-30  Bruno Haible  <bruno@clisp.org>
123049         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
123050         * lib/localcharset.h: Likewise.
123051         * lib/localcharset.c: Likewise.
123053 2003-05-29  Karl Berry  <karl@gnu.org>
123055         * config/config.rpath: update from gettext.
123057 2003-05-28  Paul Eggert  <eggert@twinsun.com>
123059         Assume the headers required for C89 freestanding compilers.
123060         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
123061         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
123062         * m4/human.m4 (gl_HUMAN): Likewise.
123063         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
123064         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
123065         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123066         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
123067         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123068         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
123070 2003-05-28  Paul Eggert  <eggert@twinsun.com>
123072         Assume the headers required for C89 freestanding compilers.
123073         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
123074         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
123075         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
123076         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
123077         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
123078         define, since <limits.h> is guaranteed to do that.
123079         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
123080         * lib/exclude.c: Include <stdbool.h> unconditionally.
123081         * lib/tempname.c: Include <stddef.h> unconditionally.
123082         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
123083         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
123084         <stddef.h> does that.
123085         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
123086         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
123087         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
123088         needed.
123089         * lib/xstrtol.c: Likewise.
123090         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
123091         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
123093         * lib/addext.c (addext): Use assignment rather than cast, to avoid
123094         warnings on some platforms.
123096         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
123097         arbitrarily.
123099 2003-05-26  Jim Meyering  <jim@meyering.net>
123101         Merge in a change from coreutils:
123102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
123103         that is guaranteed to be `no'.  Use `no_such_member' to indicate
123104         that condition, rather than `-1' which is slightly misleading.
123105         Change the name of the cache variable to have the gl_ prefix.
123106         Prompted by a patch from Richard Dawe for DJGPP.
123108 2003-05-24  Karl Berry  <karl@gnu.org>
123110         * config/config.guess: update from prep.
123112 2003-05-22  Karl Berry  <karl@gnu.org>
123114         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
123116 2003-05-20  Karl Berry  <karl@gnu.org>
123118         * config/config.guess: update from prep.
123120 2003-05-18  Karl Berry  <karl@gnu.org>
123122         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
123123         might actually be set by the user.
123125         * config/depcomp, install-sh, mdate-sh: update from automake.
123127 2003-05-17  Bruno Haible  <bruno@clisp.org>
123129         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
123130         invalid expansion for AC_EGREP_CPP.
123131         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
123132         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
123133         Suggested by Akim Demaille <akim@epita.fr> in
123134         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
123136 2003-05-12  Jim Meyering  <jim@meyering.net>
123138         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
123139         the space-padded-by-default conversion specifiers, %e, %k, %l.
123141 2003-05-12  Bruno Haible  <bruno@clisp.org>
123143         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
123144         the string is longer than 4 KB.
123146 2003-05-11  Karl Berry  <karl@gnu.org>
123148         * config/config.{guess,sub}: update from prep.
123150 2003-05-09  Bruno Haible  <bruno@clisp.org>
123152         * modules/error: Add m4/strerror_r.m4 to file list.
123154 2003-05-03  Bruno Haible  <bruno@clisp.org>
123156         Upgrade to Unicode-4.0.
123157         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
123158         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
123159         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
123160         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
123161         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
123162         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
123163         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
123164         Change width of U+E0100..U+E01EF from 1 to 0.
123166 2003-04-25  Jim Meyering  <jim@meyering.net>
123168         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
123169         of type size_t, not int.
123171 2003-04-25  Bruno Haible  <bruno@clisp.org>
123173         * lib/copy-file.c: Include <stddef.h>, for size_t.
123175 2003-04-21  Paul Eggert  <eggert@twinsun.com>
123177         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
123178         code which expansion is under static control.  Patch imported from
123179         Akim Demaille's patch to Bison; see
123180         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
123182 2003-04-14  Bruno Haible  <bruno@clisp.org>
123184         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
123186 2003-04-11  Jim Meyering  <jim@meyering.net>
123188         Merge changes from Coreutils.
123190         2003-03-22  Jim Meyering  <jim@meyering.net>
123192         * lib/strftime.c (widen): Cast alloca return value to proper type.
123194         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
123196         From GNU libc.
123197         * lib/strftime.c (my_strftime): Handle very large width
123198         specifications for numeric values correctly.  Improve checks for
123199         overflow.
123201         2003-01-19  Jim Meyering  <jim@meyering.net>
123203         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
123204         definitions.
123205         (nl_get_alt_digit) [! defined my_strftime]: Define.
123206         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
123207         _nl_get_alt_digit and _nl_get_walt_digit.
123209         * lib/strftime.c (my_strftime): Merge in locale-related changes from
123210         libc. These changes have no effect outside of _LIBC.
123212 2003-04-10  Bruno Haible  <bruno@clisp.org>
123214         * modules/findprog: New file.
123215         * MODULES.html.sh (func_all_modules): Add it.
123217 2003-04-10  Bruno Haible  <bruno@clisp.org>
123219         * m4/findprog.m4: New file.
123220         * m4/eaccess.m4: New file.
123222 2003-04-10  Bruno Haible  <bruno@clisp.org>
123224         * lib/findprog.h: New file, from GNU gettext.
123225         * lib/findprog.c: New file, from GNU gettext.
123227 2003-04-05  Jim Meyering  <jim@meyering.net>
123229         Merge changes from Coreutils.
123231         * lib/exclude.h (PARAMS): Remove definition and uses.
123232         * lib/exclude.c: Remove uses of `PARAMS'.
123234         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
123235         Add test-cases for DOS filenames. Declare program_name.
123236         (main): Set up program_name.  Patch by Rich Dawe.
123238         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123239         error from mntctl.
123240         Use mntctl's return value to drive the entry-processing loop, since
123241         we can't rely on the value of the vmt_length member in the last
123242         entry.  On some systems doing so could result in exhausting
123243         virtual memory.  Based in part on a patch from Mike Jetzer.
123245 2003-04-04  Bruno Haible  <bruno@clisp.org>
123247         * modules/linebreak: New file.
123248         * MODULES.html.sh (func_all_modules): Add it.
123250 2003-04-04  Bruno Haible  <bruno@clisp.org>
123252         * m4/linebreak.m4: New file.
123254 2003-04-04  Bruno Haible  <bruno@clisp.org>
123256         * lib/linebreak.h: New file, from GNU gettext.
123257         * lib/linebreak.c: New file, from GNU gettext with slight
123258         modifications.
123259         * lib/lbrkprop.h: New file, from GNU gettext.
123261 2003-04-03  Bruno Haible  <bruno@clisp.org>
123263         * modules/utf8-ucs4: New file.
123264         * modules/utf16-ucs4: New file.
123265         * modules/ucs4-utf8: New file.
123266         * modules/ucs4-utf16: New file.
123267         * MODULES.html.sh (func_all_modules): Add them.
123269 2003-04-03  Bruno Haible  <bruno@clisp.org>
123271         * m4/utf-ucs4.m4: New file.
123272         * m4/ucs4-utf.m4: New file.
123274 2003-04-03  Bruno Haible  <bruno@clisp.org>
123276         * lib/utf8-ucs4.h: New file, from GNU gettext.
123277         * lib/utf16-ucs4.h: New file, from GNU gettext.
123278         * lib/ucs4-utf8.h: New file, from GNU gettext.
123279         * lib/ucs4-utf16.h: New file, from GNU gettext.
123281 2003-04-02  Bruno Haible  <bruno@clisp.org>
123283         * modules/binary-io: New file.
123284         * MODULES.html.sh (func_all_modules): Add it.
123286 2003-04-02  Bruno Haible  <bruno@clisp.org>
123288         * lib/binary-io.h: New file, from GNU gettext.
123290 2003-04-01  Bruno Haible  <bruno@clisp.org>
123292         * modules/pathname: New file.
123293         * MODULES.html.sh (func_all_modules): Add it.
123295 2003-04-01  Bruno Haible  <bruno@clisp.org>
123297         * lib/pathname.h: New file, from GNU gettext.
123298         * lib/concatpath.c: New file, from GNU gettext.
123300 2003-03-30  Bruno Haible  <bruno@clisp.org>
123302         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
123304 2003-03-30  Bruno Haible  <bruno@clisp.org>
123306         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
123307         function chown() doesn't exist.
123309 2003-03-28  Bruno Haible  <bruno@clisp.org>
123311         * modules/copy-file: New file.
123312         * MODULES.html.sh (func_all_modules): Add it.
123314 2003-03-28  Bruno Haible  <bruno@clisp.org>
123316         * m4/copy-file.m4: New file.
123318 2003-03-28  Bruno Haible  <bruno@clisp.org>
123320         * lib/copy-file.h: New file, from GNU gettext.
123321         * lib/copy-file.c: New file, from GNU gettext.
123323 2003-03-18  Jim Meyering  <jim@meyering.net>
123325         * lib/quote.c (quote_n): Fix typo in comment.
123327 2003-03-18  Bruno Haible  <bruno@clisp.org>
123329         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
123330         checking.
123331         * m4/onceonly_2_57.m4: Likewise.
123333 2003-03-17  Bruno Haible  <bruno@clisp.org>
123335         * m4/onceonly.m4: Require autoconf 2.54 or newer.
123336         (m4_quote): Remove macro.
123337         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
123339 2003-03-14  Jim Meyering  <jim@meyering.net>
123341         Merge changes from Coreutils.
123342         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
123343         to be const, in order to avoid warnings.
123344         (obstack_room): Likewise.
123345         (obstack_empty_p): Likewise.
123347 2003-03-14  Bruno Haible  <bruno@clisp.org>
123349         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
123350         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
123352 2003-03-13  Paul Eggert  <eggert@twinsun.com>
123354         Merge changes from Bison.
123355         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
123356         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
123357         when compiling Bison 1.875's `bitset bset = obstack_alloc
123358         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
123359         * lib/hash.c: Include <stdbool.h> unconditionally.
123361 2003-03-13  Paul Eggert  <eggert@twinsun.com>
123363         * m4/onceonly.m4 (m4_quote): New macro.
123364         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
123365         Quote AC_FOREACH variable-expansions properly.
123367 2003-03-13  Paul Eggert  <eggert@twinsun.com>
123369         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
123371 2003-03-09  Paul Eggert  <eggert@twinsun.com>
123373         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
123374         Reported by Bruce Becker; see:
123375         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
123377 2003-03-03  Paul Eggert  <eggert@twinsun.com>
123378             Bruno Haible  <bruno@clisp.org>
123380         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
123381         Reported by John Hughes, see
123382         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
123384 2003-02-20  Bruno Haible  <bruno@clisp.org>
123386         * MODULES.html.sh (func_all_modules): Add poll.
123388 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
123390         * modules/poll: New file.
123392 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
123394         * lib/poll_.h: New file.
123395         * lib/poll.c: New file.
123397 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
123399         * m4/poll.m4: New file.
123401 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
123403         * modules/mathl: New file.
123405 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
123407         * lib/mathl.h: New file.
123408         * lib/acosl.c: New file.
123409         * lib/asinl.c: New file.
123410         * lib/atanl.c: New file.
123411         * lib/ceill.c: New file.
123412         * lib/cosl.c: New file.
123413         * lib/expl.c: New file.
123414         * lib/floorl.c: New file.
123415         * lib/frexpl.c: New file.
123416         * lib/ldexpl.c: New file.
123417         * lib/logl.c: New file.
123418         * lib/sincosl.c: New file.
123419         * lib/sinl.c: New file.
123420         * lib/sqrtl.c: New file.
123421         * lib/tanl.c: New file.
123422         * lib/trigl.c: New file.
123423         * lib/trigl.h: New file.
123425 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
123427         * m4/mathl.m4: New file.
123429 2003-02-18  Bruno Haible  <bruno@clisp.org>
123431         * MODULES.html.sh (func_all_modules): Add mathl.
123433 2003-02-17  Bruno Haible  <bruno@clisp.org>
123435         * modules/mkdtemp: New module.
123436         * MODULES.html.sh (func_all_modules): Add it.
123438 2003-02-17  Bruno Haible  <bruno@clisp.org>
123440         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
123442 2003-02-17  Bruno Haible  <bruno@clisp.org>
123444         * lib/mkdtemp.h: New file, from GNU gettext.
123445         * lib/mkdtemp.c: New file, from GNU gettext.
123447 2003-02-02  Jim Meyering  <jim@meyering.net>
123449         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
123450         e.g. glibc-2.2.93.
123452 2003-01-31  Bruno Haible  <bruno@clisp.org>
123454         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
123455         'rpl_rename'.
123456         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
123457         'rpl_strnlen'.
123458         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
123459         'rpl_strtod'.
123460         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
123461         'rpl_utime'.
123463 2003-01-31  Bruno Haible  <bruno@clisp.org>
123465         * lib/rename.c: #undef rename before defining rpl_rename.
123466         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
123468 2003-01-30  Bruno Haible  <bruno@clisp.org>
123470         * modules/vasnprintf, modules/vasprintf: New modules.
123471         * MODULES.html.sh (func_all_modules): Add them.
123473 2003-01-30  Bruno Haible  <bruno@clisp.org>
123475         * m4/signed.m4: New file, from GNU gettext.
123476         * m4/longdouble.m4: New file, from GNU gettext.
123477         * m4/wchar_t.m4: New file, from GNU gettext.
123478         * m4/wint_t.m4: New file, from GNU gettext.
123479         * m4/vasnprintf.m4: New file.
123480         * m4/vasprintf.m4: New file.
123482 2003-01-30  Bruno Haible  <bruno@clisp.org>
123484         * lib/printf-args.h: New file, from GNU gettext.
123485         * lib/printf-args.c: New file, from GNU gettext.
123486         * lib/printf-parse.h: New file, from GNU gettext.
123487         * lib/printf-parse.c: New file, from GNU gettext.
123488         * lib/vasnprintf.h: New file, from GNU gettext.
123489         * lib/vasnprintf.c: New file, from GNU gettext.
123490         * lib/asnprintf.c: New file, from GNU gettext.
123491         * lib/vasprintf.h: New file, from GNU gettext with modifications.
123492         * lib/vasprintf.c: New file, from GNU gettext.
123493         * lib/asprintf.c: New file, from GNU gettext.
123495 2003-01-29  Bruno Haible  <bruno@clisp.org>
123497         * modules/stpncpy: New module.
123498         * MODULES.html.sh (func_all_modules): Add it.
123500 2003-01-29  Bruno Haible  <bruno@clisp.org>
123502         * m4/stpncpy.m4: New file.
123504 2003-01-29  Bruno Haible  <bruno@clisp.org>
123506         * lib/stpncpy.h: New file, from GNU gettext with modifications.
123507         * lib/stpncpy.c: New file, from GNU gettext with modifications.
123509 2003-01-28  Bruno Haible  <bruno@clisp.org>
123511         * modules/c-ctype: New module.
123512         * MODULES.html.sh (func_all_modules): Add it.
123514 2003-01-28  Bruno Haible  <bruno@clisp.org>
123516         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
123517         Paul Eggert.
123518         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
123519         Paul Eggert.
123521 2003-01-27  Bruno Haible  <bruno@clisp.org>
123523         * modules/xsetenv: New module.
123524         * MODULES.html.sh (func_all_modules): Add it.
123526 2003-01-27  Bruno Haible  <bruno@clisp.org>
123528         * lib/xsetenv.h: New file, from GNU gettext.
123529         * lib/xsetenv.c: New file, from GNU gettext.
123531 2003-01-23  Jim Meyering  <jim@meyering.net>
123533         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
123534         from working on systems without dirfd (at least Irix and OSF1/Tru64).
123536 2003-01-23  Bruno Haible  <bruno@clisp.org>
123538         * modules/minmax: New module.
123539         * MODULES.html.sh (func_all_modules): Add it.
123541 2003-01-23  Bruno Haible  <bruno@clisp.org>
123543         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
123544         Eggert.
123546 2003-01-22  Bruno Haible  <bruno@clisp.org>
123548         * modules/exit: New module.
123549         * MODULES.html.sh (func_all_modules): Add it.
123551 2003-01-22  Bruno Haible  <bruno@clisp.org>
123553         * lib/exit.h: New file, from GNU gettext.
123555 2003-01-19  Bruno Haible  <bruno@clisp.org>
123557         * gnulib-tool: Recognize option --extract-maintainer.
123558         (func_get_maintainer): New function.
123559         * modules/*: Add Maintainer entry.
123561 2003-01-16  Jim Meyering  <jim@meyering.net>
123563         * m4/regex.m4: The `regex' struct is both input and output.
123564         Initialize it before each use.  Patch by Tim Waugh.
123566 2003-01-16  Bruno Haible  <bruno@clisp.org>
123568         * MODULES.html.sh: Add a table of contents. Add the module name as
123569         leftmost column. Add hyperlinks.
123571 2003-01-15  Bruno Haible  <bruno@clisp.org>
123573         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
123575 2003-01-15  Bruno Haible  <bruno@clisp.org>
123577         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
123578         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
123579         suffix.
123581 2003-01-15  Bruno Haible  <bruno@clisp.org>
123583         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
123585 2003-01-15  Bruno Haible  <bruno@clisp.org>
123587         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
123588         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
123590 2003-01-14  Jim Meyering  <jim@meyering.net>
123592         * lib/same.c (same_name): Tweak a comment.
123594 2003-01-14  Bruno Haible  <bruno@clisp.org>
123596         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
123597         when a string comparison is sufficient.
123599 2003-01-14  Bruno Haible  <bruno@clisp.org>
123601         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
123602         'unsigned int'.
123604 2003-01-14  Bruno Haible  <bruno@clisp.org>
123606         * lib/hash-pjw.c: Add comment about low quality of this function.
123608 2003-01-13  Bruno Haible  <bruno@clisp.org>
123610         * modules/stpcpy: Distribute lib/stpcpy.h.
123611         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
123613 2003-01-13  Bruno Haible  <bruno@clisp.org>
123615         * modules/*: Add a description.
123616         * modules/strpbrk: Fix Makefile.am snippet.
123617         * modules/strtoimax: Fix dependencies.
123618         * modules/strtoumax: Likewise.
123620 2003-01-13  Bruno Haible  <bruno@clisp.org>
123622         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
123623         * modules/alloca (Makefile.am): All object files depend on alloca.h.
123624         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
123626 2003-01-13  Bruno Haible  <bruno@clisp.org>
123628         * gnulib-tool (func_create_testdir): Store config/* files in the main
123629         directory.
123630         * config.rpath: Move to ...
123631         * config/config.rpath: ... here.
123632         * modules/gettext: Contains config/config.rpath, not config.rpath.
123633         * modules/iconv: Likewise.
123635 2003-01-12  Paul Eggert  <eggert@twinsun.com>
123637         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
123638         to avoid collisions with libcurses and libreadline.
123640         * m4/getstr.m4: Remove.
123641         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
123643 2003-01-12  Paul Eggert  <eggert@twinsun.com>
123645         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
123646         to avoid collisions with libcurses and libreadline.
123648         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
123649         * lib/getstr.h, getstr.c: Remove.
123650         * lib/getline.c: Include "getline.h", to check interface.
123651         Move body of old getstr.c here: this defines MIN_CHUNK and
123652         declares getdelim2, which is renamed from getstr.
123653         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
123655         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
123656         All uses changed.
123657         * lib/linebuffer.h: Likewise.
123658         (readline): Remove backward-compatibility macro.
123660 2003-01-12  Paul Eggert  <eggert@twinsun.com>
123662         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
123663         to avoid collisions with libcurses and libreadline.
123664         * getstr: Remove.
123665         * MODULES.html.sh: Remove getstr.
123666         * modules/getline: Depend on unlocked-io, not getstr.
123668 2003-01-12  Jim Meyering  <jim@meyering.net>
123670         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
123672 2003-01-10  Bruno Haible  <bruno@clisp.org>
123674         * modules/alloca: Change Makefile.am requirements. Simplify Include
123675         requirements. Add lib/alloca_.h to file list.
123677 2003-01-10  Bruno Haible  <bruno@clisp.org>
123679         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
123681 2003-01-10  Bruno Haible  <bruno@clisp.org>
123683         * lib/alloca_.h: New file.
123684         * lib/getdate.y: Unconditionally include alloca.h.
123685         * lib/makepath.c: Likewise.
123686         * lib/setenv.c: Likewise.
123687         * lib/userspec.c: Likewise.
123689 2003-01-09  Karl Berry  <karl@gnu.org>
123691         * MODULES.html.sh: include `dirname $0` in PATH, to find
123692         gnulib-tool.
123694 2003-01-09  Bruno Haible  <bruno@clisp.org>
123696         * modules/stdbool: Change configure.ac, Makefile.am requirements.
123697         Simplify Include requirements. Add lib/stdbool.h.in to file list.
123699 2003-01-09  Bruno Haible  <bruno@clisp.org>
123701         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
123703 2003-01-09  Bruno Haible  <bruno@clisp.org>
123705         * lib/stdbool.h.in: New file.
123707 2003-01-09  Bruno Haible  <bruno@clisp.org>
123709         * gnulib-tool (func_all_modules): Ignore files ending in ~.
123710         * MODULES.html.sh: Likewise.
123712 2003-01-08  Jim Meyering  <jim@meyering.net>
123714         * lib/full-write.c: Undefine and define-away `const' after inclusion
123715         of errno.h, not before.  Suggestion from Bruno Haible.
123717 2003-01-08  Bruno Haible  <bruno@clisp.org>
123719         * modules/full-read: Depend on full-write.
123721 2003-01-08  Bruno Haible  <bruno@clisp.org>
123723         * lib/safe-read.c: Include specification header first, to ensure its
123724         selfcontainedness.
123725         * lib/full-write.c: Likewise.
123727 2003-01-07  Jim Meyering  <jim@meyering.net>
123729         * lib/full-write.c: Rework so that it may serve to define full_read,
123730         too.
123731         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
123733 2003-01-07  Bruno Haible  <bruno@clisp.org>
123735         * lib/strtoimax.c: Include <stdint.h> as an alternative to
123736         <inttypes.h>.
123737         * lib/xstrtol.h: Likewise.
123738         * lib/xstrtoimax.c: Likewise.
123739         * lib/xstrtoumax.c: Likewise.
123740         * lib/human.h: Likewise.
123742         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
123743         on systems that have <inttypes.h> but not <stdint.h>.
123745 2003-01-07  Bruno Haible  <bruno@clisp.org>
123747         * MODULES.html.sh: Add copyright notice.
123748         (missed_files): Omit CVS directory entries.
123749         (func_module): Make it work with sed-3.02.
123750         * MODULES.txt: Remove file.
123752 2003-01-06  Jim Meyering  <jim@meyering.net>
123754         * lib/version-etc.c: Update year in translatable copyright string.
123756 2003-01-03  Karl Berry  <karl@gnu.org>
123758         * config/config.{guess,sub}: update from prep.
123760 2003-01-02  Karl Berry  <karl@gnu.org>
123762         * doc/COPYING.DOC: belatedly updated to 1.2.
123764 2003-01-01  Karl Berry  <karl@gnu.org>
123766         * gnulib-tool (func_verify_module): report module name $module in
123767         error message, not $1.
123768         * gnulib-tool (create-testdir): don't complain if destdir couldn't
123769         be created, only if it doesn't exist.
123770         * gnulib-tool (last_checkin_date): don't expand the $Date here.
123772 2002-12-31  Paul Eggert  <eggert@twinsun.com>
123774         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
123776 2002-12-31  Paul Eggert  <eggert@twinsun.com>
123778         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
123779         memcmp if strcoll doesn't work.
123781 2002-12-31  Bruno Haible  <bruno@clisp.org>
123783         * lib/utime.c (utime_null): No need to call ftruncate if the file was
123784         nonempty.
123786 2002-12-31  Bruno Haible  <bruno@clisp.org>
123788         * lib/memcoll.c (STRCOLL): New macro.
123789         (memcoll): Use it.
123791 2002-12-31  Bruno Haible  <bruno@clisp.org>
123793         * lib/localcharset.h: New file.
123794         * lib/localcharset.c: Include it.
123795         * lib/unicodeio.c: Likewise.
123797 2002-12-31  Bruno Haible  <bruno@clisp.org>
123799         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
123800         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
123802 2002-12-31  Bruno Haible  <bruno@clisp.org>
123804         * lib/getline.h: Include <stddef.h>, for size_t.
123806         * lib/unicodeio.h: Include <stddef.h>, for size_t.
123807         * lib/unicodeio.c: Don't include <stddef.h>.
123809 2002-12-31  Bruno Haible  <bruno@clisp.org>
123811         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
123812         HAVE_TM_ZONE.
123814 2002-12-24  Karl Berry  <karl@gnu.org>
123816         * config/config.guess: update from prep.
123818 2002-12-24  Bruno Haible  <bruno@clisp.org>
123820         General infrasructure.
123821         * m4/README: Rewritten.
123822         * m4/onceonly.m4: New file.
123823         * m4/onceonly_2_57.m4: New file.
123825         Module atexit.
123826         * m4/atexit.m4: New file.
123828         Module strtod.
123829         * m4/strtod.m4: New file.
123831         Module strtol.
123832         * m4/strtol.m4: New file.
123834         Module strtoul.
123835         * m4/strtoul.m4: New file.
123837         Module memchr.
123838         * m4/memchr.m4: New file.
123840         Module memcmp.
123841         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
123842         (jm_FUNC_MEMCMP): Invoke it.
123844         Module memcpy.
123845         * m4/memcpy.m4: New file.
123847         Module memmove.
123848         * m4/memmove.m4: New file.
123850         Module memset.
123851         * m4/memset.m4: New file.
123853         Module strcspn.
123854         * m4/strcspn.m4: New file.
123856         Module strpbrk.
123857         * m4/strpbrk.m4: New file.
123859         Module strstr.
123860         * m4/strstr.m4: New file.
123862         Module strerror.
123863         * m4/strerror.m4: New file.
123865         Module mktime.
123866         * m4/mktime.m4: Renamed from jm-mktime.m4.
123867         (gl_PREREQ_MKTIME): New macro.
123868         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
123870         Module malloc.
123871         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
123872         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
123873         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
123875         Module realloc.
123876         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
123877         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
123878         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
123880         Module strftime.
123881         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
123882         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
123883         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
123884         gl_TM_GMTOFF.
123885         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
123887         Module xalloc.
123888         * m4/xalloc.m4: New file.
123890         Module alloca.
123891         * m4/alloca.m4: New file.
123893         Module putenv.
123894         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
123895         (jm_FUNC_PUTENV): Invoke it.
123897         Module setenv.
123898         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
123899         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
123900         when invoked twice.
123901         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
123902         gt_FUNC_SETENV.
123904         Module memrchr.
123905         * m4/memrchr.m4: New file.
123907         Module stpcpy.
123908         * m4/stpcpy.m4: New file.
123910         Module strcase.
123911         * m4/strcase.m4: New file.
123913         Module strdup.
123914         * m4/strdup.m4: New file.
123916         Module strnlen.
123917         * m4/strnlen.m4: New file.
123919         Module strndup.
123920         * m4/strndup.m4: New file.
123922         Module xstrtod.
123923         * m4/xstrtod.m4: New file.
123925         Module xstrtol.
123926         * m4/xstrtol.m4: New file.
123928         Module getdate.
123929         * m4/getdate.m4: New file.
123931         Module unlocked-io.
123932         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
123933         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
123934         * m4/jm-glibc-io.m4n: Remove file.
123936         Module long-options.
123937         * m4/long-options.m4: New file.
123939         Module md5.
123940         * m4/md5.m4: New file.
123942         Module sha.
123943         * m4/sha.m4: New file.
123945         Module getstr.
123946         * m4/getstr.m4: New file.
123948         Module getline.
123949         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
123950         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
123951         <sys/types.h>, for size_t. Use the function name gnu_getline, not
123952         simply getline. Infoke gl_PREREQ_GETLINE.
123954         Module obstack.
123955         * m4/obstack.m4: New file.
123957         Module hash.
123958         * m4/hash.m4: New file.
123960         Module readtokens.
123961         * m4/readtokens.m4: New file.
123963         Module strverscmp.
123964         * m4/strverscmp.m4: New file.
123966         Module stdbool.
123967         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
123968         OSF/1.
123970         Module strtoll.
123971         * m4/strtoll.m4: New file.
123973         Module strtoull.
123974         * m4/strtoull.m4: New file.
123976         Module strtoimax.
123977         * m4/strtoimax.m4: New file.
123979         Module strtoumax.
123980         * m4/strtoumax.m4: New file.
123982         Module xstrtoimax.
123983         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
123984         jm_AC_PREREQ_XSTRTOIMAX.
123985         Moved the strtol prerequisites to strtol.m4.
123986         Moved the strtoll prerequisites to strtoll.m4.
123987         Moved the strtoimax prerequisites to strtoimax.m4.
123989         Module xstrtoumax.
123990         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
123991         jm_AC_PREREQ_XSTRTOUMAX.
123992         Moved the strtoul prerequisites to strtoul.m4.
123993         Moved the strtoull prerequisites to strtoull.m4.
123994         Moved the strtoumax prerequisites to strtoumax.m4.
123996         Module chown.
123997         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
123998         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
124000         Module dup2.
124001         * m4/dup2.m4: New file.
124003         Module ftruncate.
124004         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
124005         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
124007         Module getgroups.
124008         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
124009         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
124011         Module gettimeofday.
124012         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
124013         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
124014         gl_PREREQ_GETTIMEOFDAY.
124016         Module mkdir.
124017         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
124018         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
124020         Module mkstemp.
124021         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
124022         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
124023         jm_AC_TYPE_UINTMAX_T.
124024         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
124026         Module stat.
124027         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
124028         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
124030         Module lstat.
124031         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
124032         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
124034         Module timespec.
124035         * m4/timespec.m4 (gl_TIMESPEC): New macro.
124036         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
124037         * m4/st_mtim.m4: Indentation.
124039         Module nanosleep.
124040         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
124041         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
124042         gl_PREREQ_NANOSLEEP.
124044         Module regex.
124045         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
124046         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
124047         (gl_REGEX): New macro.
124049         Module rename.
124050         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
124051         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
124053         Module rmdir.
124054         * m4/rmdir.m4: New file.
124056         Module utime.
124057         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
124058         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
124059         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
124061         Module dirname.
124062         * m4/dirname.m4: New file.
124064         Module getopt.
124065         * m4/getopt.m4: New file.
124067         Module unistd-safer.
124068         * m4/unistd-safer.m4: New file.
124070         Module fnmatch.
124071         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
124072         declaration.
124073         (gl_PREREQ_FNMATCH_EXTRA): New macro.
124074         (gl_FUNC_FNMATCH_POSIX): New macro.
124075         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
124076         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
124077         simply fnmatch.
124079         Module exclude.
124080         * m4/exclude.m4: New file.
124082         Module human.
124083         * m4/human.m4: New file.
124085         Module acl.
124086         * m4/acl.m4: Nop.
124088         Module backupfile.
124089         * m4/backupfile.m4: New file.
124090         * m4/d-ino.m4: Indentation.
124092         Module fsusage.
124093         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
124094         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
124095         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
124097         Module dirfd.
124098         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
124099         requirements.
124101         Module euidaccess.
124102         * m4/euidaccess.m4: New file.
124104         Module file-type.
124105         * m4/file-type.m4: New file.
124107         Module fileblocks.
124108         * m4/fileblocks.m4: New file.
124110         Module filemode.
124111         * m4/filemode.m4: New file.
124113         Module isdir.
124114         * m4/isdir.m4: New file.
124116         Module lchown.
124117         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
124118         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
124120         Module makepath.
124121         * m4/makepath.m4: New file.
124123         Module modechange.
124124         * m4/modechange.m4: New file.
124126         Module mountlist.
124127         * m4/mountlist.m4: New file.
124128         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
124129         Indentation.
124131         Module path-concat.
124132         * m4/path-concat.m4: New file.
124134         Module pathmax.
124135         * m4/pathmax.m4: New file.
124137         Module same.
124138         * m4/same.m4: New file.
124140         Module save-cwd.
124141         * m4/save-cwd.m4: New file.
124143         Module savedir.
124144         * m4/savedir.m4: New file.
124146         Module xgetcwd.
124147         * m4/xgetcwd.m4: New file.
124148         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
124150         Module xreadlink.
124151         * m4/xreadlink.m4: New file.
124153         Module safe-read.
124154         * m4/safe-read.m4: New file.
124156         Module safe-write.
124157         * m4/safe-write.m4: New file.
124159         Module closeout.
124160         * m4/closeout.m4: New file.
124162         Module stdio-safer.
124163         * m4/stdio-safer.m4: New file.
124165         Module getpass.
124166         * m4/getpass.m4: New file.
124168         Module getugroups.
124169         * m4/getugroups.m4: New file.
124171         Module group-member.
124172         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
124173         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
124175         Module idcache.
124176         * m4/idcache.m4: New file.
124178         Module userspec.
124179         * m4/userspec.m4: New file.
124181         Module gettime.
124182         * m4/clock_time.m4: New file.
124183         * m4/gettime.m4: New file.
124185         Module settime.
124186         * m4/settime.m4: New file.
124188         Module posixtm.
124189         * m4/posixtm.m4: New file.
124191         Module gethostname.
124192         * m4/gethostname.m4: New file.
124194         Module canon-host.
124195         * m4/canon-host.m4: New file.
124197         Module gettext.
124198         * m4/codeset.m4: New file, from gettext-0.11.5.
124199         * m4/gettext.m4: New file, from gettext-0.11.5.
124200         * m4/glibc21.m4: New file, from gettext-0.11.5.
124201         * m4/iconv.m4: New file, from gettext-0.11.5.
124202         * m4/intdiv0.m4: New file, from gettext-0.11.5.
124203         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
124204         * m4/inttypes.m4: New file, from gettext-0.11.5.
124205         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
124206         * m4/isc-posix.m4: New file, from gettext-0.11.5.
124207         * m4/lcmessage.m4: New file, from gettext-0.11.5.
124208         * m4/lib-ld.m4: New file, from gettext-0.11.5.
124209         * m4/lib-link.m4: New file, from gettext-0.11.5.
124210         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
124211         * m4/progtest.m4: New file, from gettext-0.11.5.
124212         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
124213         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
124214         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
124216         Module localcharset.
124217         * m4/localcharset.m4: New file.
124219         Module hard-locale.
124220         * m4/hard-locale.m4: New file.
124222         Module mbswidth.
124223         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
124224         onceonly macros.
124225         * m4/mbrtowc.m4: Add comment.
124227         Module memcasecmp.
124228         * m4/memcasecmp.m4: New file.
124230         Module memcoll.
124231         * m4/memcoll.m4: New file.
124233         Module unicodeio.
124234         * m4/unicodeio.m4: New file.
124236         Module rpmatch.
124237         * m4/rpmatch.m4: New file.
124239         Module yesno.
124240         * m4/yesno.m4: New file.
124242         Module exitfail.
124243         * m4/exitfail.m4: New file.
124245         Module c-stack.
124246         * m4/c-stack.m4 (gl_C_STACK): New macro.
124247         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
124249         Module error.
124250         * m4/error.m4 (gl_ERROR): New macro.
124251         (jm_PREREQ_ERROR): Use onceonly macros.
124253         Module fatal.
124254         * m4/fatal.m4: New file.
124256         Module getloadavg.
124257         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
124258         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
124260         Module getpagesize.
124261         * m4/getpagesize.m4: New file.
124263         Module getusershell.
124264         * m4/getusershell.m4: New file.
124266         Module physmem.
124267         * m4/physmem.m4: New file.
124269         Module posixver.
124270         * m4/posixver.m4: New file.
124272         Module quotearg.
124273         * m4/quotearg.m4: New file.
124275         Module quote.
124276         * m4/quote.m4: New file.
124278         Module readutmp.
124279         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
124281         Module sig2str.
124282         * m4/sig2str.m4: New file.
124284         Other.
124285         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
124286         ulonglong.m4.
124287         * m4/intmax_t.m4: New file.
124288         * m4/d-type.m4: Indentation.
124289         * m4/jm-macros.m4: Update.
124290         * m4/prereq.m4 (jm_PREREQ): Update.
124291         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
124292         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
124293         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
124294         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
124295         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
124296         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
124297         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
124298         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
124299         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
124300         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
124301         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
124302         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
124303         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
124304         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
124305         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
124306         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
124307         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
124308         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
124309         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
124311 2002-12-24  Bruno Haible  <bruno@clisp.org>
124313         * MODULES.txt: Update according to m4/ changes.
124315         Module gettext.
124316         * config.rpath: New file, from gettext-0.11.5.
124318         * modules/*: New module descriptions.
124319         * gnulib-tool: New file.
124320         * MODULES.html.sh: New file.
124322 2002-12-21  Karl Berry  <karl@gnu.org>
124324         * doc/fdl.texi: update to version 1.2.
124326 2002-12-19  Karl Berry  <karl@gnu.org>
124328         * config/config.guess: update from prep.
124330 2002-12-18  Bruno Haible  <bruno@clisp.org>
124332         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
124333         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
124335 2002-12-17  Bruno Haible  <bruno@clisp.org>
124337         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
124338         stdlib.h, string.h.
124340 2002-12-17  Bruno Haible  <bruno@clisp.org>
124342         * lib/canon-host.c (strdup): Remove unused declaration.
124344         * lib/fsusage.c: Include full_read.h.
124345         (get_fs_usage): Use full_read instead of safe_read.
124347         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
124349 2002-12-12  Karl Berry  <karl@gnu.org>
124351         * config/config.guess: update from prep.
124353 2002-12-11  Bruno Haible  <bruno@clisp.org>
124355         * m4/setenv.m4: New file, from gettext-0.11.5.
124357 2002-12-11  Bruno Haible  <bruno@clisp.org>
124359         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
124360         not unsetenv().
124361         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
124362         modifications:
124364         2002-12-11  Bruno Haible  <bruno@clisp.org>
124366                 * setenv.c (alloca): Fall back to malloc.
124367                 (freea): New macro.
124368                 (setenv): Use freea() to free memory allocated with alloca().
124370         2002-11-13  Bruno Haible  <bruno@clisp.org>
124372                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
124373                 function declarations.
124374                 * unsetenv.c (unsetenv): Likewise.
124376         2002-03-04  Bruno Haible  <bruno@clisp.org>
124378                 Portability to AIX 4.3.3.
124379                 * unsetenv.c: New file, extracted from setenv.c.
124380                 * setenv.c: Move the unsetenv() function to unsetenv.c.
124382         2001-12-20  Bruno Haible  <bruno@clisp.org>
124384                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
124385                 use malloc instead. For SunOS 4.
124387         2001-12-11  Bruno Haible  <bruno@clisp.org>
124389                 * setenv.c: Declare alloca.
124390                 (compar_fn_t): New typedef.
124391                 (KNOWN_VALUE, STORE_VALUE): Use it.
124393         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
124394         setenv.h.
124396 2002-12-10  Paul Eggert  <eggert@twinsun.com>
124398         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
124399         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
124400         Choose values that are less likely to collide with system fnmatch
124401         options.
124402         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
124403         defined (e.g., a pure POSIX system).
124404         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
124405         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
124407 2002-12-06  Paul Eggert  <eggert@twinsun.com>
124409         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
124410         a pain in practice to deal with generated m4 files.  This change
124411         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
124413         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
124414         and jm-glibc-io.m4, as they are no longer a special case.
124415         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
124416         kludge and the auto-generation stuff.  Check only whether the
124417         functions are declared, not whether they exist, since older hosts
124418         that don't declare the functions can't use the optimization anyway.
124420 2002-12-06  Jim Meyering  <jim@meyering.net>
124422         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
124424         Merge in changes from libc's misc/error.c, in preparation
124425         for the merge of gnulib's changes back into libc.
124427         * lib/error.c (_): Define only if not already defined.
124428         Move definition to follow all #include directives.
124429         Include unlocked-io.h only if !_LIBC.
124430         [_LIBC]: Include <libio/libioP.h>.
124431         [USE_IN_LIBIO]: Include <libio/iolibio.h>
124432         (fflush): Tweak definition to use INTUSE.
124433         (putc): Define.
124435 2002-12-05  Paul Eggert  <eggert@twinsun.com>
124437         * lib/alloca.c [defined emacs]: Include "lisp.h".
124438         (xalloc_die) [defined emacs]: New macro.
124439         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
124440         [! defined emacs]: Include <xalloc.h>.
124441         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
124442         (pointer): Typedef to POINTER_TYPE *.
124443         (malloc): Remove decl; we now always use xmalloc.
124444         (alloca): Use old-style definition, since Emacs needs this.
124445         Check for arithmetic overflow when computing combined size.
124447 2002-12-04  Paul Eggert  <eggert@twinsun.com>
124449         Do not generate unlocked-io.h automatically, since it's easier to
124450         maintain it by hand.
124452         * lib/unlocked-io.h: New file, from GNU diffutils,
124453         but with proper copyright notice and attribution.
124454         * lib/gen-uio: Remove.
124455         * lib/Makefile.am: Add copyright notice.
124456         (libfetish_a_SOURCES): Add unlocked-io.h.
124457         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
124458         (DISTCLEANFILES, io_functions): Remove macros.
124459         (EXTRA_DIST): Remove gen_uio.
124460         (unlocked-io.h): Remove rule.
124462 2002-12-04  Jim Meyering  <jim@meyering.net>
124464         Reflect the fact that stat.c and lstat.c are no longer generated.
124465         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
124466         (DISTCLEANFILES): Likewise.
124467         (EXTRA_DIST): Likewise.
124468         (all_local): Don't depend on stat.c or lstat.c.
124469         (stat.c, lstat.c): Remove rules.
124470         (EXTRA_DIST): Remove xstat.in.
124472         * lib/xstat.in: Remove file.  Contents moved into stat.c.
124473         * lib/stat.c: New file.  Contents mostly from xstat.in.
124474         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
124475         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
124477         * lib/safe-read.c: Rework so that it may serve to define safe_write,
124478         too.
124479         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
124481 2002-12-03  Jim Meyering  <jim@meyering.net>
124483         * lib/safe-read.c, safe-write.c: Change variable names and comments,
124484         but not semantics, to minimize the differences between these two files.
124485         (safe_read): Change comment to mention SAFE_READ_ERROR.
124487         * lib/safe-read.c (IS_EINTR): Define.
124488         (safe_read): Use IS_EINTR in place of in-function cpp directives.
124490 2002-12-02  Jim Meyering  <jim@meyering.net>
124492         * lib/safe-read.c (EINTR): Define.
124493         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
124494         (INT_MAX): Provide fallback.
124495         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
124497         * lib/safe-read.h (SAFE_READ_ERROR): Define.
124499 2002-12-02  Bruno Haible  <bruno@clisp.org>
124501         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
124502         Define, taken from safe-read.c.
124503         (INT_MAX): Provide fallback.
124504         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
124505         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
124507         * lib/safe-read.c (EINTR): Remove definition.
124508         (safe_read): Don't use EINTR if it is absent.
124510 2002-12-01  Jim Meyering  <jim@meyering.net>
124512         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
124513         zero.
124514         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
124516 2002-11-27  Paul Eggert  <eggert@twinsun.com>
124518         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
124519         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
124520         with `if (! (value < limit)) abort ();', for readability.
124522 2002-11-26  Karl Berry  <karl@gnu.org>
124524         * lib/strdup.c: copy from libc again, with jim's ok.
124525         * lib/.cppi-disable: re-add strdup.c
124527 2002-11-25  Karl Berry  <karl@gnu.org>
124529         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
124530         instead of "strtol.c".
124532 2002-11-25  Karl Berry  <karl@gnu.org>
124534         * config/install-sh: update from automake for variable quoting, $0 in
124535         error msgs, etc.
124537         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
124538         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
124539         entry.
124541 2002-11-25  Jim Meyering  <jim@meyering.net>
124543         * lib/mktime.c: Sync from libc, now that it has the latest fix.
124545 2002-11-24  Karl Berry  <karl@gnu.org>
124547         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
124548         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
124550 2002-11-24  Jim Meyering  <jim@meyering.net>
124552         Update from coreutils:
124554         * lib/mktime.c: Merge in changes from libc.
124556         Avoid a link-time failure on some Linux systems.
124557         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
124558         (otherwise).
124559         (__mon_yday): Declare with the STATIC attribute.
124560         (__mktime_internal): Likewise.
124561         Based on a report from Greg Schafer.
124563 2002-11-23  Jim Meyering  <jim@meyering.net>
124565         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
124566         Use `unsigned', not `int', as type of index.
124568         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
124570         * lib/fsusage.c: Remove unneeded parentheses around operands of
124571         `defined'.
124573 2002-11-22  Paul Eggert  <eggert@twinsun.com>
124575         * lib/quotearg.h: Allow multiple inclusion by surrounding with
124576         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
124577         so that we can be included first.
124578         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
124579         * lib/quotearg.c: Include quotearg.h immediately after config.h.
124580         No need to include stddef.h or sys/types.h any more.
124581         Surround local include files with "", not "<>".
124582         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
124583         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
124584         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
124585         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
124586         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
124587         (ISPRINT): Remove; no longer needed now that we assume C89.
124589         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
124590         Preserve errno.
124592         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
124593         quotearg_char): Use SIZE_MAX rather than
124594         (size_t) -1 when we are talking about "infinity".
124596         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
124598 2002-11-22  Paul Eggert  <eggert@twinsun.com>
124600         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
124601         hint that one should use `if (! x) abort ();' rather than `assert
124602         (x);', and anyway it's one less thing to worry about configuring.
124603         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
124604         hash_rehash, hash_insert): Use abort rather than assert.
124606 2002-11-22  Bruno Haible  <bruno@clisp.org>
124608         * lib/safe-read.h: Assume C89. Add comments.
124609         (safe_read): Change return type to size_t.
124610         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
124611         byte counts > SSIZE_MAX correctly.
124612         * lib/safe-write.h: New file.
124613         * lib/safe-write.c: New file.
124614         * lib/full-read.h: New file.
124615         * lib/full-read.c: New file.
124616         * lib/full-write.h: Assume C89. Add comments.
124617         * lib/full-write.c: Include safe-write.h.
124618         (full_write): Rewritten to use safe_write.
124619         Suggested by Jim Meyering and Paul Eggert.
124621 2002-11-21  Jim Meyering  <jim@meyering.net>
124623         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
124625         Merge in changes from the coreutils.
124627         2002-09-25  Paul Eggert  <eggert@twinsun.com>
124628         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
124629         <stdint.h>.
124630         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
124631         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
124632         int.  Work more efficiently if X is the same width as uintmax_t.
124633         Do not compare X to -1, to avoid bogus compiler warning.
124634         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
124635         Don't assume that f_frsize and f_bsize are the same type.
124637         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
124638         warning on FreeBSD.
124640         * lib/makepath.c (make_path): Restore umask *before* creating the final
124641         component.
124642         (make_path): Minor reformatting.
124644         * lib/xmalloc.c: Adjust to work with new autoconf macros,
124645         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
124646         HAVE_MALLOC/HAVE_REALLOC.
124648         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
124649         dummy ones.  At least on GNU/Linux systems, `auto' means something
124650         else.
124651         From Michael Stone.
124653 2002-11-21  Bruno Haible  <bruno@clisp.org>
124655         Remove case insensitive option matching.
124656         * lib/argmatch.h (argcasematch): Remove declaration.
124657         (ARGCASEMATCH): Remove macro.
124658         (__xargmatch_internal): Remove case_sensitive argument.
124659         (XARGMATCH): Update.
124660         (XARGCASEMATCH): Remove macro.
124661         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
124662         case_sensitive argument.
124663         (argcasematch): Remove function.
124664         (__xargmatch_internal): Remove case_sensitive argument.
124665         (main): Use XARGMATCH instead of XARGCASEMATCH.
124667         * lib/xmalloc.c: Change compile-time error message. Add comment about
124668         required autoconf version.
124670 2002-11-20  Paul Eggert  <eggert@twinsun.com>
124672         Merge argmatch cleanups from Bison.  Assume C89.
124674         * lib/argmatch.c: Include config.h here, not in argmatch.h.
124675         Include stdlib.h, for EXIT_FAILURE.
124676         Always include <string.h>, since we assume C89.
124677         (EXIT_FAILURE): Remove pre-C89 bug workaround.
124678         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
124679         Include <stddef.h> instead, since it's all we need for size_t.
124680         (PARAMS): Remove.  All uses removed.
124681         (ARRAY_CARDINALITY): Do not bother to #undef.
124682         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
124683         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
124684         Remove unnecessary parentheses.
124685         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
124686         Insert necessary parentheses.
124687         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
124688         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
124690 2002-11-19  Bruno Haible  <bruno@clisp.org>
124692         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
124693         * lib/mbswidth.h: Include <stddef.h>, for size_t.
124695         * lib/mbswidth.h (PARAMS): Remove macro.
124696         (mbswidth, mbsnwidth): Use ANSI C function declarations.
124697         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
124699         * lib/gcd.h (PARAMS): Remove macro.
124700         (gcd): Use ANSI C function declarations.
124701         * lib/gcd.c (gcd): Likewise.
124703 2002-11-15  Bruno Haible  <bruno@clisp.org>
124705         * lib/strcspn.c: Include <stddef.h>.
124706         (strcspn): Use ANSI C function declaration. Change return type to
124707         size_t. Use NULL.
124708         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
124709         (strpbrk): Use NULL.
124710         * lib/strpbrk.h (PARAMS): Remove macro.
124711         (strpbrk): Use ANSI C function declaration.
124712         * lib/strstr.c: Don't include <sys/types.h>.
124713         * lib/strstr.h (PARAMS): Remove macro.
124714         (strstr): Use ANSI C function declarations.
124716 2002-11-14  Karl Berry  <karl@gnu.org>
124718         * config/mkinstalldirs: `do' on separate line, instead of
124719         `for var; do'.
124721 2002-11-06  Bruno Haible  <bruno@clisp.org>
124723         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
124724         * lib/gcd.c (gcd): Likewise.
124726 2002-11-05  Bruno Haible  <bruno@clisp.org>
124728         * lib/gcd.h: New file, from gettext-0.11.5.
124729         * lib/gcd.c: New file, from gettext-0.11.5.
124731 2002-11-05  Bruno Haible  <bruno@clisp.org>
124733         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124734         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124735         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124736         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124738         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
124739         <libintl.h>.
124740         * lib/makepath.c: Include gettext.h instead of <locale.h> and
124741         <libintl.h>.
124743         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
124744         * lib/human.c: Include gettext.h instead of <libintl.h>.
124745         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
124746         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
124747         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
124748         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
124749         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
124750         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
124751         (textdomain): Remove definition.
124752         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
124754         * lib/long-options.c: Remove include of <libintl.h> and definition of
124755         _.
124756         * lib/same.c: Remove include of <libintl.h> and definition of _.
124758 2002-11-04  Owen Taylor  <otaylor@redhat.com>
124760         * lib/config.charset: A few additions for Solaris.
124762 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
124764         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
124765         * lib/localcharset.c (locale_charset): Declare as extern "C".
124767 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
124769         * lib/config.charset: msdos in uk_UA uses CP1125.
124771 2002-11-04  Bruno Haible  <bruno@clisp.org>
124773         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
124774         * lib/strcase.h: New file, from GNU gettext-0.11.5.
124775         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
124776         * lib/strstr.h: New file, from GNU gettext-0.11.5.
124777         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
124779 2002-11-04  Bruno Haible  <bruno@clisp.org>
124781         * lib/localcharset.c (locale_charset): Don't return an empty string.
124783 2002-11-04  Bruno Haible  <bruno@clisp.org>
124785         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
124786         aliases.
124788 2002-11-04  Bruno Haible  <bruno@clisp.org>
124790         * lib/config.charset: Update for newest glibc. Add canonical names
124791         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
124793 2002-11-04  Bruno Haible  <bruno@clisp.org>
124795         * lib/config.charset: Add support for NetBSD.
124797 2002-11-04  Bruno Haible  <bruno@clisp.org>
124799         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
124801 2002-11-01  Bruno Haible  <bruno@clisp.org>
124803         * configure.in: Add AC_CONFIG_AUX_DIR call.
124804         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
124805         test/Makefile.
124806         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
124808 2002-09-28  Karl Berry  <karl@gnu.org>
124810         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
124811         installed automake until the next release, since changes have been
124812         made.
124814 2002-09-25  Karl Berry  <karl@gnu.org>
124816         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
124817         * lib/getopt*: copy from libc/posix.
124818         * lib/gettext.h: copy from gettext.
124819         * lib/.cppi-disable: add strdup.c, gettext.h.
124821 2002-09-25  Karl Berry  <karl@gnu.org>
124823         * config/srclist.txt: enable gettext.h check.
124824         * config/config.{guess,sub}: update from prep.
124825         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
124826                 from automake 1.6.3.
124827         See srclist*.
124829 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
124831         * regex.c (PATFETCH): Remove the translating fetch.
124832         (PATFETCH_RAW): Rename to PATFETCH.
124833         (set_image_of_range): New fun.
124834         (SET_RANGE_TABLE_WORK_AREA): Use it.
124835         (regex_compile): Don't translate the pattern chars so eagerly.
124836         Only do it when inserting an `exactn' bytecode or when handling
124837         a char-range.
124838         (mutually_exclusive_p): Avoid empty statement.
124840 2002-07-06  Jim Meyering  <meyering@lucent.com>
124842         * m4/README: Don't mention Makefile.am.in.
124843         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
124845 2002-07-01  Jim Meyering  <meyering@lucent.com>
124847         * lib/c-stack.c: Include sys/time.h.
124848         From Volker Borchert.
124850 2002-06-26  Paul Eggert  <eggert@twinsun.com>
124852         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
124854 2002-06-26  Paul Eggert  <eggert@twinsun.com>
124856         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
124857         New macro.  Use it uniformly instead of
124858         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
124859         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
124860         reported by Vin Shelton.
124862 2002-06-22  Paul Eggert  <eggert@twinsun.com>
124864         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
124865         Do not assume SA_SIGINFO behavior.
124866         Bug reported by Jim Meyering on NetBSD 1.5.2.
124868 2002-06-22  Jim Meyering  <meyering@lucent.com>
124870         * m4/c-stack.m4: New file, from diffutils-2.8.2.
124871         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
124873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
124874         now that configure.ac uses AC_GNU_SOURCE.
124875         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
124876         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
124878         Update to latest tools.  Suggestions from Paul Eggert.
124879         * m4/stdbool.m4: New file, from diffutils-2.8.2.
124880         * m4/gnu-source.m4: Update from diffutils-2.8.2.
124881         * m4/fnmatch.m4: Likewise.
124882         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
124883         to AC_HEADER_STDBOOL
124885 2002-06-22  Jim Meyering  <meyering@lucent.com>
124887         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
124888         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
124890 2002-06-22  Jim Meyering  <meyering@lucent.com>
124892         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
124894         * lib/exitfail.c, exitfail.h: Likewise.
124895         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
124897         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
124898         of fnmatch.h.
124899         (EXTRA_DIST): Add fnmatch_loop.c.
124900         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
124902         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
124903         * lib/fnmatch.c: Update from diffutils-2.8.2.
124904         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
124905         * lib/fnmatch.h: Remove file.
124907 2002-06-21  Jim Meyering  <meyering@lucent.com>
124909         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
124910         * m4/mbrtowc.m4: Likewise.
124912         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
124913         * m4/mbswidth.m4: Reflect name change:
124914         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
124915         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
124917         * m4/lib-link.m4: Update from gettext-0.11.2.
124918         * m4/gettext.m4: Likewise.
124920         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
124921         From Alfred M. Szmidt.
124923 2002-06-18  Paul Eggert  <eggert@twinsun.com>
124925         * lib/file-type.h: Report an error if neither S_ISREG nor
124926         S_IFREG is defined, instead of using a test specific to glibc
124927         2.2.  This should be safe, since POSIX requires S_ISREG and
124928         Unix Version 7 had S_IFREG.  We don't need to check for
124929         <sys/types.h> since we don't use any symbols that it defines.
124931 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
124933         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
124934         $@-t, so that each temporary file name is unique and valid in the first
124935         8 characters, for operation under DOS.
124937 2002-06-15  Paul Eggert  <eggert@twinsun.com>
124939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
124941 2002-06-15  Jim Meyering  <meyering@lucent.com>
124943         Work even with DJGPP 2.03, which lacks support for symlinks.
124944         From Richard Dawe.
124945         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
124946         is defined.
124947         * lib/lchown.c (S_ISLNK): Likewise.
124949 2002-06-15  Jim Meyering  <meyering@lucent.com>
124951         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
124952         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
124953         have been included before this file.
124955 2002-06-14  Jim Meyering  <meyering@lucent.com>
124957         * lib/file-type.h: Use the version from diffutils-2.8.2.
124958         * lib/file-type.c: Likewise.
124960 2002-06-07  Jim Meyering  <meyering@lucent.com>
124962         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
124963         They're needed at least for NetBSD 1.5.2.
124964         ($statxfs_includes): Include those same headers.
124965         ($statxfs_includes): Include sys/vfs.h if available.
124966         ($statxfs_includes): Likewise for sys/statvfs.h.
124967         Check for the following members in both structs statfs and statvfs:
124968         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
124970 2002-06-01  Jim Meyering  <meyering@lucent.com>
124972         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
124973         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
124975 2002-05-28  Jim Meyering  <meyering@lucent.com>
124977         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
124978         Reported by Volker Borchert.
124980 2002-05-27  Jim Meyering  <meyering@lucent.com>
124982         Fix a problem seen only on nonconforming systems whereby ls.c's
124983         use of localtime, and then of gettimeofday would cause trouble:
124984         the localtime call used to initialize rpl_gettimeofday's save
124985         mechanism would clobber ls's current local time information so
124986         that in any long listing the first file would always be listed
124987         with date 1970-01-01.  Analysis by Volker Borchert.
124989         * lib/gettimeofday.c (localtime): Undefine.
124990         (rpl_localtime): New function.
124992 2002-05-27  Jim Meyering  <meyering@lucent.com>
124994         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
124995         localtime.
124997         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
124998         use the replacement function; it wouldn't resolve at link time.
124999         Reported by Volker Borchert.
125001 2002-05-22  Jim Meyering  <meyering@lucent.com>
125003         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
125004         file-type.h.
125005         * lib/file-type.h: New file.
125006         * lib/file-type.c (file_type): New file/function.  Extracted from
125007         diffutils.
125009 2002-04-30  Jim Meyering  <meyering@lucent.com>
125011         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
125013 2002-04-29  Paul Eggert  <eggert@twinsun.com>
125015         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
125017 2002-04-29  Paul Eggert  <eggert@twinsun.com>
125019         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
125020         Do not check for alloca.h (no longer used) or stdbool.h (was never
125021         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
125023 2002-04-29  Paul Eggert  <eggert@twinsun.com>
125025         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
125027 2002-04-29  Jim Meyering  <meyering@lucent.com>
125029         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
125030         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
125031         Use AC_FUNC_STRNLEN here instead.
125033         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
125034         With autoconf-2.53a, it's part of AC_PROG_CC.
125036 2002-04-28  Paul Eggert  <eggert@twinsun.com>
125038         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
125039         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
125041 2002-04-28  Paul Eggert  <eggert@twinsun.com>
125043         * lib/sig2str.h, lib/sig2str.c: New files.
125044         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
125046 2002-04-28  Paul Eggert  <eggert@twinsun.com>
125048         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
125049         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
125050         of 127, since 64 is the largest conceivable number for ancient
125051         nonstandard hosts.
125052         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
125054 2002-04-28  Jim Meyering  <meyering@lucent.com>
125056         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
125058 2002-04-24  Jim Meyering  <meyering@lucent.com>
125060         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
125061         (jm_PREREQ): Use it.
125063         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
125064         mach/mach.h fcntl.h.
125065         Check for this function: setlocale.
125067 2002-04-24  Jim Meyering  <meyering@lucent.com>
125069         * lib/gettext.h: New file, from Gettext.
125070         * lib/Makefile.am (INCLUDES): Remove -I../intl.
125071         (libfetish_a_SOURCES): Add gettext.h.
125073 2002-04-16  Jim Meyering  <meyering@lucent.com>
125075         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
125076         ut_pid, ut_id, ut_exit.
125078 2002-04-16  Jim Meyering  <meyering@lucent.com>
125080         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
125081         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
125082         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
125084 2002-04-12  Jim Meyering  <meyering@lucent.com>
125086         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
125087         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
125088         existence of the getmntinfo function.  Needed for Darwin 5.3.
125090         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
125091         This is necessary at least on Darwin 5.3.
125093         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
125094         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
125095         strnlen.o in the library, and that makes some versions of ranlib
125096         object.
125098 2002-04-12  Jim Meyering  <meyering@lucent.com>
125100         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
125102 2002-04-09  Jim Meyering  <meyering@lucent.com>
125104         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
125105         to be more precise.  Rather than saying we're checking whether the
125106         function `works', say what we're testing.
125107         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
125108         Reported by Bruno Haible.
125110 2002-03-10  Jim Meyering  <meyering@lucent.com>
125112         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
125113         Suggestion from Santiago Vila.
125115 2002-03-08  Jim Meyering  <meyering@lucent.com>
125117         * lib/rename.c: Mention that this wrapper is needed also on
125118         mips-dec-ultrix4.4 systems.
125120 2002-03-02  Jim Meyering  <meyering@lucent.com>
125122         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
125123         not HAVE_CLOCK_SETTIME.
125125 2002-02-27  Paul Eggert  <eggert@twinsun.com>
125127         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
125128         Check for clock_settime.
125130 2002-02-27  Paul Eggert  <eggert@twinsun.com>
125132         * lib/nanosleep.h: Rename to....
125133         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
125135         * lib/gettime.c: New file.
125136         * lib/settime.c: New file.
125137         * lib/stime.c: Remove.
125139         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
125140         timespec.h.  Remove nanosleep.h.
125142 2002-02-25  Paul Eggert  <eggert@twinsun.com>
125144         * m4/acl.m4: New file.
125145         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
125146         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
125148 2002-02-25  Paul Eggert  <eggert@twinsun.com>
125150         * lib/acl.c, lib/acl.h: New files.
125151         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
125153 2002-02-24  Jim Meyering  <meyering@lucent.com>
125155         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
125156         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
125157         cause trouble.  Reported by Nelson Beebe.
125159 2002-02-23  Paul Eggert  <eggert@twinsun.com>
125161         * lib/path-concat.c (xpath_concat): Reorder code to pacify
125162         compilers that don't know that xalloc_die never returns.
125164 2002-02-20  Jim Meyering  <meyering@lucent.com>
125166         * lib/getdate.c: Regenerate using bison-1.33.
125168 2002-02-17  Jim Meyering  <meyering@lucent.com>
125170         * config/config.guess (main): Don't use `head -1'; it's no longer
125171         portable. Use `sed 1q' instead.
125173 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
125175         * m4/codeset.m4: Upgrade to gettext-0.11.
125176         * m4/gettext.m4: Upgrade to gettext-0.11.
125177         * m4/glibc21.m4: Upgrade to gettext-0.11.
125178         * m4/iconv.m4: Upgrade to gettext-0.11.
125179         * m4/isc-posix.m4: Upgrade to gettext-0.11.
125180         * m4/lcmessage.m4: Upgrade to gettext-0.11.
125181         * m4/lib-ld.m4: New file, from gettext-0.11.
125182         * m4/lib-link.m4: New file, from gettext-0.11.
125183         * m4/lib-prefix.m4: New file, from gettext-0.11.
125184         * m4/progtest.m4: Upgrade to gettext-0.11.
125186 2002-02-15  Paul Eggert  <eggert@twinsun.com>
125188         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
125189         (jm_PREREQ): Use it.
125191 2002-02-15  Paul Eggert  <eggert@twinsun.com>
125193         * lib/posixver.c, lib/posixver.h: New files.
125194         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
125196 2002-02-02  Paul Eggert  <eggert@twinsun.com>
125197             Bruno Haible  <bruno@clisp.org>
125199         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
125200         (fwrite_success_callback): New declaration.
125201         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
125202         print_unicode_char. Call failure callback instead of error.
125203         (fwrite_success_callback): New function.
125204         (exit_failure_callback): New function.
125205         (fallback_failure_callback): New function.
125206         (print_unicode_char): Call unicode_to_mb.
125208 2002-01-26  Jim Meyering  <meyering@lucent.com>
125210         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
125211         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
125213 2002-01-26  Jim Meyering  <meyering@lucent.com>
125215         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
125217 2002-01-22  Paul Eggert  <eggert@twinsun.com>
125219         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
125221 2002-01-22  Jim Meyering  <meyering@lucent.com>
125223         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
125224         Otherwise, some versions of automake would omit the rule that makes
125225         Makefile from Makefile.in.
125227 2002-01-21  Paul Eggert  <eggert@twinsun.com>
125229         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
125230         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
125231         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
125232         (memcoll): Set errno to zero if there is no error.
125234         * lib/quotearg.c (quotearg_buffer_restyled):
125235         Fix bug with quoting buffers containing NUL when backslashing escapes.
125236         This bug was exposed by the other changes in this patch.
125237         (quotearg_n_options): New arg ARGSIZE.
125238         All callers changed.
125239         (quoting_options_from_style): New function.
125240         (quotearg_n_style): Use it.
125241         (quotearg_n_style_mem): New function.
125243         * lib/quotearg.h (quotearg_n_style_mem): New function.
125245 2002-01-19  Jim Meyering  <meyering@lucent.com>
125247         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
125248         Remove useless quotes: DF_PROG="df".
125249         * m4/strnlen.m4: New file.
125251 2002-01-16  Paul Eggert  <eggert@twinsun.com>
125253         * lib/backupfile.c (ISDIGIT): Comment fix.
125254         * lib/getdate.y (ISDIGIT): Likewise.
125255         * lib/posixtm.c (ISDIGIT, year): Likewise.
125256         * lib/strverscmp.c (ISDIGIT): Likewise.
125257         * lib/userspec.c (ISDIGIT): Likewise.
125259 2002-01-16  Jim Meyering  <meyering@lucent.com>
125261         * lib/getdate.y: Add three semicolons, each just before a closing
125262         brace. Bison (as of version 1.31) no longer papers over that mistake.
125264 2002-01-05  Jim Meyering  <meyering@lucent.com>
125266         * lib/version-etc.c (version_etc_copyright): Update copyright year.
125268 2001-12-19  Paul Eggert  <eggert@twinsun.com>
125270         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
125271         not silently exit merely because the output buffer happens to
125272         have nothing pending.
125274 2001-12-18  Paul Eggert  <eggert@twinsun.com>
125276         See the big note in ../ChangeLog.
125277         * lib/human.c (suffixes): Prefer K to k for 1024.
125278         (generate_suffix_backwards): New function.
125279         (human_readable_inexact): Use it.
125280         * lib/xstrtol.c (__xstrtol): If there is no number but there
125281         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
125282         Accept 'K' as well as 'k'.
125284 2001-12-15  Jim Meyering  <meyering@lucent.com>
125286         * lib/regex.h (__restrict_arr): Update from libc.
125288         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
125289         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
125290         (STREQ): Define.
125292 2001-12-14  Jim Meyering  <meyering@lucent.com>
125294         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
125295         Suggestion from Bruno Haible.
125297 2001-12-10  Jim Meyering  <meyering@lucent.com>
125299         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
125300         xrealloc, Instead, include "xalloc.h".
125301         (initbuffer): Don't cast xmalloc return value to char*.
125302         (readline): Reword comment.
125303         Don't cast xrealloc return value to char*
125304         Return NULL, not 0.
125306 2001-12-09  Jim Meyering  <meyering@lucent.com>
125308         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
125309         about `signed and unsigned type in conditional expression'.
125310         * lib/posixtm.c (posix_time_parse): Likewise.
125312         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
125314         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
125315         to avoid a pedantic warning.
125317         * lib/getstr.c: Don't include assert.h.
125318         (getstr): Remove warning-evoking assertions.
125319         Return -1 if offset parameter is out of bounds.
125320         Change the type of a local from int to size_t.
125322         * lib/strftime.c (my_strftime_localtime_r): Include this function
125323         definition in the `#if ! HAVE_TM_GMTOFF' block.
125325         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
125326         Include xalloc.h instead.
125328 2001-12-02  Jim Meyering  <meyering@lucent.com>
125330         * lib/tempname.c: Don't declare getenv, thus reverting the change of
125331         2001-11-18.  It's no longer necessary, now that stdlib.h is always
125332         included.
125334         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
125335         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
125337 2001-11-30  Akim Demaille  <akim@epita.fr>
125339         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
125340         before being defined.
125342 2001-11-27  Paul Eggert  <eggert@twinsun.com>
125344         * lib/quotearg.h (quotearg_n, quotearg_n_style):
125345         First arg is int, not unsigned.
125346         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
125347         (SIZE_MAX, UINT_MAX): New macros.
125348         (quotearg_n_options): Abort if N is negative.
125349         Avoid overflow check on hosts where size_t is 64 bits and int
125350         is 32 bits, as overflow is impossible there.
125351         Fix off-by-one typo that caused unnecessary reallocation.
125353 2001-11-27  Jim Meyering  <meyering@lucent.com>
125355         * lib/tempname.c: Merge with version from libc.
125356         * lib/regex.c: Likewise.
125358         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
125359         systems for which STDC_HEADERS is 0, it was not included, resulting in
125360         a warning about an integer-to-pointer conversion problem with getenv.
125361         Reported by Volker Borchert.
125363 2001-11-26  Jim Meyering  <meyering@lucent.com>
125365         * lib/gtod.h: Remove file.
125366         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
125367         * lib/gettimeofday.c: Don't include gtod.h.
125368         (GTOD_init): Remove function.
125369         (rpl_gettimeofday): Do its job here instead, rather than aborting.
125370         Suggestion from Volker Borchert.
125372 2001-11-23  Jim Meyering  <meyering@lucent.com>
125374         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
125375         it.
125376         * lib/hash.c (struct hash_table): Define it here instead.
125378 2001-11-22  Jim Meyering  <meyering@lucent.com>
125380         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
125382 2001-11-20  Jim Meyering  <meyering@lucent.com>
125384         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
125385         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
125387 2001-11-19  Jim Meyering  <meyering@lucent.com>
125389         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
125390         directory.  Use "conftestXXXXXX" as the template.
125391         Suggestion from Paul Eggert.
125393         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
125394         immediately, so the test doesn't mistakenly hit the max-open-files
125395         limit.
125397 2001-11-18  Paul Eggert  <eggert@twinsun.com>
125399         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
125400         (TEMPORARIES): New macro.
125401         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
125402         removes an artificial limitation (e.g. HP-UX 10.20, where
125403         TMP_MAX is 17576).
125405 2001-11-18  Jim Meyering  <meyering@lucent.com>
125407         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
125409 2001-11-18  Jim Meyering  <meyering@lucent.com>
125411         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
125412         on SunOS 4.
125414         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
125415         files will be created before anything else.
125417 2001-11-17  Paul Eggert  <eggert@twinsun.com>
125419         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
125420         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
125422 2001-11-17  Jim Meyering  <meyering@lucent.com>
125424         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
125425         Prompted by a report from Bob Proulx.
125427         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
125428         Instead, require UTILS_FUNC_MKSTEMP.
125430 2001-11-17  Jim Meyering  <meyering@lucent.com>
125432         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
125433         Now, that's done as part of AC_FUNC_STRTOD.
125435 2001-11-17  Jim Meyering  <meyering@lucent.com>
125437         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
125438         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
125439         rather than group writable.  Patch by Juan F. Codagnone.
125441         * lib/readtokens.c: Remove explicit declarations of xmalloc and
125442         xrealloc, Instead, include "xalloc.h".
125444         * lib/mountlist.c: Include unlocked-io.h after all system headers.
125445         Remove explicit declarations of xmalloc, xrealloc,
125446         and xstrdup.  Instead, include "xalloc.h".
125448         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
125449         unlocked-io.h.
125450         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
125451         Likewise.
125452         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
125454         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
125455         Reported by Padraig Brady.
125457         * lib/mkstemp.c: #undef mkstemp.
125458         Include config.h.
125459         (rpl_mkstemp): Rename from mkstemp.
125460         Protoize.
125462 2001-11-16  Jim Meyering  <meyering@lucent.com>
125464         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
125465         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
125466         determine the amount of total physical memory, use pstat_getstatic.
125467         HPUX-11 doesn't define _SC_PHYS_PAGES.
125468         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
125469         If sysconf couldn't be used to determine the amount of available
125470         physical memory, use both pstat_getstatic and pstat_getdynamic.
125471         Based on a patch from Bob Proulx.
125473 2001-11-10  Jim Meyering  <meyering@lucent.com>
125475         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
125476         (jm_PREREQ): Use it.
125478 2001-11-09  Jim Meyering  <meyering@lucent.com>
125480         * m4/jm-macros.m4: Require autoconf-2.52f.
125481         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
125482         Use these AC_-prefixed names, not the AM_-prefixed ones.
125484         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
125486 2001-11-05  Jim Meyering  <meyering@lucent.com>
125488         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
125490 2001-11-04  Jim Meyering  <meyering@lucent.com>
125492         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
125493         $DEFS.
125495 2001-11-03  Jim Meyering  <meyering@lucent.com>
125497         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
125498         of AC_DEFUN.
125500         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
125501         know the name of the variable in the macro definition.
125503 2001-11-03  Jim Meyering  <meyering@lucent.com>
125505         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
125506         in argmatch_to_argument call.
125508         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
125509         argument.
125511         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
125512         e.g., a fault due to an attempt to free a NULL pointer.
125514 2001-11-01  Jim Meyering  <meyering@lucent.com>
125516         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
125517         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
125519 2001-11-01  Jim Meyering  <meyering@lucent.com>
125521         * lib/dirfd.c, lib/dirfd.h: New files.
125522         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
125524         * lib/hash.c (hash_print) [TESTING]: Clean up.
125526 2001-10-22  Paul Eggert  <eggert@twinsun.com>
125528         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
125529         to avoid a warning if -Wall.
125531 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
125533         * README: New file
125534         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
125535         (per RMS's instructions, this is now the canonical source)
125536         * lgpl/, gpl/: New directories.
125538 2001-10-21  Paul Eggert  <eggert@twinsun.com>
125540         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
125542 2001-10-21  Jim Meyering  <meyering@lucent.com>
125544         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
125545         this code would end up calling gettext even in packages built
125546         with --disable-nls.
125547         * lib/getopt.c (_): Likewise.
125548         * lib/regex.c (_): Likewise.
125550 2001-10-20  Paul Eggert  <eggert@twinsun.com>
125552         * m4/error.m4 (jm_PREREQ_ERROR):
125553         Do not invoke AC_CHECK_FUNCS with strerror_r, as
125554         AC_FUNC_STRERROR_R does that.
125555         Check for strerror declaration.
125557         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
125558         are supposed to have them these days.
125559         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
125560         Merge changes from latest Autoconf CVS.
125561         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
125562         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
125563         POSIX decided to standardize on the int flavor of strerror_r.
125565 2001-10-20  Paul Eggert  <eggert@twinsun.com>
125567         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
125568         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
125569         Use strerror_r that is only a macro, even if it is not a function.
125570         (strerror): Check for HAVE_DECL_STRERROR before declaring.
125571         (private_strerror): Use prototypes, not old-style function definition.
125572         (print_errno_message): New function.
125573         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
125574         char*-flavored one.
125575         (error_tail, error, error_at_line): Use it.
125577 2001-10-11  Jim Meyering  <meyering@lucent.com>
125579         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
125580         and quote_n (1, ... to avoid clobbering a buffer.
125582 2001-10-05  Jim Meyering  <meyering@lucent.com>
125584         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
125585         hash-pjw.h.
125586         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
125587         * lib/hash-pjw.h: New file.
125589 2001-09-30  Jim Meyering  <meyering@lucent.com>
125591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
125592         `struct fsstat' has the `f_fstypename' member.
125593         Use that to define FS_TYPE, which is now used to make
125594         the getfsstat link test tighter.
125596 2001-09-30  Jim Meyering  <meyering@lucent.com>
125598         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
125599         Include <sys/ucred.h>, for Apple Darwin.
125600         Include sys/mount.h and sys/fs_types.h only if available.
125601         (FS_TYPE): Define.
125602         (read_filesystem_list): Use FS_TYPE.
125604 2001-09-29  Paul Eggert  <eggert@twinsun.com>
125606         * lib/exclude.c (excluded_filename): 0 -> false, since it's
125607         a boolean context.
125609 2001-09-29  Jim Meyering  <meyering@lucent.com>
125611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
125612         [one-argument getmntent function]): Include stdio.h before mntent.h.
125613         SunOS 4.1.x needs it for the declaration of `FILE'.
125614         Patch by Volker Borchert.
125616         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
125617         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
125618         sys/fs_types.h, and make the link-test for getfsstat guard #include
125619         directives with appropriate #if HAVE_*_H tests so that we can
125620         detect getfsstat on Apple Darwin1.3.7 systems.
125621         Reported by Nelson Beebe.
125622         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
125624 2001-09-28  Paul Eggert  <eggert@twinsun.com>
125626         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
125627         #defines strtoimax.  Also treat the other strto* functions
125628         like strtoimax.
125630         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
125631         Check for strtoul and strtoumax,
125632         as those declarations are made even in the signed case.
125633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
125634         Likewise, for strtol and strtoimax.
125636 2001-09-28  Paul Eggert  <eggert@twinsun.com>
125638         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
125639         #defines strtoimax.  Also treat the other strto* functions
125640         like strtoimax.
125642         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
125643         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
125644         (strtoimax, strtoumax): Do not declare if already defined as a macro.
125646 2001-09-26  Jim Meyering  <meyering@lucent.com>
125648         Most macros in unlocked-io.h had the wrong number of arguments.
125649         * lib/gen-uio: New script.
125650         (USE_UNLOCKED_IO): Define to 1 if not already defined.
125651         * lib/unlocked-io.hin: Remove file.
125652         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
125653         rather than trying to embed it here.
125654         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
125655         Reported by Padraig Brady.
125657 2001-09-25  Volker Borchert  <bt@teknon.de>
125659         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
125660         `result'.
125662 2001-09-24  Jim Meyering  <meyering@lucent.com>
125664         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
125666 2001-09-23  Jim Meyering  <meyering@lucent.com>
125668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
125669         instead of the mere test for existence of mntent.h.  The latter
125670         would get a false-positive on AIX 3.4 systems.
125671         In the outer getmntent if-block, don't die if neither of the getmntent
125672         tests succeeds.  Instead, just fall through and continue with the
125673         remaining tests.
125675 2001-09-23  Jim Meyering  <meyering@lucent.com>
125677         * lib/mountlist.c: Remove useless parentheses in #if directives.
125678         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
125679         the deprecated MOUNTED symbol is no longer defined in mntent.h.
125681 2001-09-22  Jim Meyering  <meyering@lucent.com>
125683         * m4/gettext.m4: New file.  From gettext.
125684         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
125685         * m4/progtest.m4: Likewise
125686         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
125687         * m4/glibc21.m4: Likewise.
125689         * m4/libintl.m4: Remove.  No longer used.
125691 2001-09-22  Jim Meyering  <meyering@lucent.com>
125693         * lib/localcharset.c: Update from latest gettext.
125694         * lib/config.charset: Likewise.
125696 2001-09-20  Jim Meyering  <meyering@lucent.com>
125698         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
125699         strtoimax.
125700         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
125701         strtoumax.
125703 2001-09-20  Jim Meyering  <meyering@lucent.com>
125705         * lib/xstrtol.c (strtoimax): Guard declaration with
125706         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
125707         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
125708         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
125709         (strtoumax): Likewise, for completeness (it wasn't necessary).
125711 2001-09-17  Paul Eggert  <eggert@twinsun.com>
125713         * lib/strtoimax.c (HAVE_LONG_LONG):
125714         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
125715         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
125716         to work around bug in IBM C compiler.
125718 2001-09-17  Jim Meyering  <meyering@lucent.com>
125720         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
125721         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
125722         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
125723         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
125724         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
125725         whenever the right hand side need not be expanded by the shell.
125727 2001-09-16  Paul Eggert  <eggert@twinsun.com>
125729         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
125730         library.  It's not correct, as some older glibcs are buggy.
125731         fnmatch wasn't fixed until glibc 2.2.
125733         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
125734         special shell magic here.
125736 2001-09-16  Jim Meyering  <meyering@lucent.com>
125738         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
125739         * m4/jm-macros.m4: Require it.
125741 2001-09-16  Jim Meyering  <meyering@lucent.com>
125743         * lib/mkdir.c: New file.
125745 2001-09-15  Jim Meyering  <meyering@lucent.com>
125747         * m4/jm-macros.m4: Check for help2man.
125749 2001-09-11  Jim Meyering  <meyering@lucent.com>
125751         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
125752         The body, by Paul Eggert, was moved here from configure.in.
125753         * m4/jm-macros.m4: Require UTILS_HOST_OS.
125755 2001-09-04  Paul Eggert  <eggert@twinsun.com>
125757         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
125758         (jm_PREREQ): Use it.
125760 2001-09-04  Paul Eggert  <eggert@twinsun.com>
125762         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
125763         Use ssize_t, not int, to store result of readlink.
125764         Check for ssize_t overflow as well as size_t overflow,
125765         as POSIX says the result of readlink is implementation-defined
125766         when ssize_t overflows.
125767         Remove unnecessary cast to char*.
125768         Use free+malloc instead of realloc, as the storage doesn't need
125769         to be preserved and it's clearer and can be more efficient that way.
125770         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
125771         * lib/xreadlink.h (xreadlink): Update prototype.
125773 2001-09-04  Paul Eggert  <eggert@twinsun.com>
125775         * lib/xgetcwd.c: Revert some of the previous change; intead,
125776         fix the HAVE_GETCWD_NULL code to behave more like the
125777         !HAVE_GETCWD_NULL code used to.
125779         Include "xalloc.h".
125780         (xgetcwd): Do not return NULL when memory is exhausted; instead,
125781         invoke xalloc_die.
125783 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125785         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
125786         sys/param.h, as pathmax.h includes them.
125788 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125790         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
125791         (jm_PREREQ_XGETCWD): New macro.
125793         * m4/getcwd.m4: New file.
125795 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125797         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
125798         like the HAVE_GETCWD_NULL code.
125799         Include pathmax.h if not HAVE_GETCWD.
125800         Do not include xalloc.h.
125801         (INITIAL_BUFFER_SIZE): New symbol.
125802         Do not use xmalloc / xrealloc, since the caller is responsible for
125803         handling errors.  Preserve errno around `free' during failure.
125804         Do not overrun buffer when using getwd.
125806 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125808         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
125809         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
125810         getcwd (NULL, 0).
125812 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125814         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
125815         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
125816         spotted by Jim Meyering.
125818 2001-09-03  Jim Meyering  <meyering@lucent.com>
125820         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
125821         failure.
125823 2001-09-02  Jim Meyering  <meyering@lucent.com>
125825         * lib/error.c: Update from GNU libc.
125827 2001-09-01  Jim Meyering  <meyering@lucent.com>
125829         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
125830         Used by df.
125832 2001-09-01  Jim Meyering  <meyering@lucent.com>
125834         * lib/xreadlink.c: New file.
125835         * lib/xreadlink.h: New file.
125836         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
125837         xreadlink.h.
125839         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
125840         doesn't conflict with sparc Solaris 7's definition in
125841         /usr/include/sys/int_types.h.
125843         * lib/exclude.c: Use `""', not `<>' to #include non-system header
125844         files.
125845         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
125846         and strncasecmp as r-values.  Unixware didn't have declarations.
125848 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125850         * lib/xstrtol.h: Add copyright notice.
125851         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
125852         LONGINT_INVALID_SUFFIX_CHAR.
125854 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125856         * lib/xstrtol.c (strtoimax): New decl.
125858 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125860         * lib/xgetcwd.c: Don't include pathmax.h.
125861         Include stdlib.h and unistd.h if available.
125862         Include xalloc.h.
125863         (xmalloc, xstrdup, free): Remove decls.
125864         (xgetcwd): Don't assume sizes fit in unsigned.
125865         Check for overflow when computing sizes.
125866         Simplify reallocation code.
125868 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125870         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
125871         a directory's st_size can have an arbitrary value, so the old
125872         usage could waste an arbitrary amount of memory.  All uses
125873         changed.
125874         * lib/savedir.h: Update prototype.
125876 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125878         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
125880         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
125881         old strtoimax.c.
125883         Also, make the following further changes to make this file's
125884         configuration more similar to that of strtol.c:
125885         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
125886         (strtoumax, uintmax_t, strtoull, strtol): Remove.
125887         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
125888         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
125889         changed to signed values.
125891         And make the following changes as well:
125892         Fix copyright notice, as 1999 was missing.
125893         (verify): New macro.
125894         (strtoimax): Check sizes at compile-time, not run-time.
125895         Prefer strtol to strtoll if both work.
125896         (main): Remove; it was not that useful and was a pain to maintain.
125898         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
125900 2001-08-31  Jim Meyering  <meyering@lucent.com>
125902         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
125903         Use an initial, malloc'd, buffer of length 128 rather than
125904         a statically allocated one of length 1024.
125906 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125908         Simplify code, partly by assuming autoconf 2.52 semantics.
125910         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
125912         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
125913         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
125914         All uses removed.
125915         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
125916         Move AC_REQUIRE to next-to-top level, to avoid confusion.
125917         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
125918         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
125919         jm_AC_HEADER_INTTYPES_H.
125920         * m4/jm-macros.m4 (jm_MACROS): Likewise.
125922         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
125924         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
125925         Quote first arg of AC_DEFUN.
125926         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
125927         since they are needed to parse the include file even if we need
125928         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
125929         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
125930         but with opposite signedness.
125932 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125934         Merge 'exclude' changes from tar 1.13.22.
125935         This fixes one or two unlikely storage allocation overflow bugs,
125936         but doesn't change user-visible behavior otherwise.
125938 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125940         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
125941         (jm_PREREQ_EXCLUDE): New macro.
125943 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125945         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
125946         tm to be declared.
125948 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125950         * lib/hash.c: Remove '2001' from copyright notice.
125952 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125954         * lib/full-write.h: New file.
125955         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
125956         * lib/full-write.c: Correct credits, as cccp.c no longer
125957         exists and anyway it was so heavily changed from the old cccp
125958         code as to be unrecognizable.  Include full-write.h.
125959         (full_write): Return size_t, with short writes meaning failure.
125960         All callers changed.  This fixes a bug with large buffers
125961         on 64-bit hosts.
125962         * lib/utime.c: Include full-write.h.
125964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125966         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
125967         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
125968         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
125969         Include if available.
125970         (<xalloc.h>): Include
125971         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
125972         (verify): New macro.  Use it to verify that EXCLUDE macros do not
125973         collide with FNM macros.
125974         (struct patopts): New struct.
125975         (struct exclude): Use it, as exclude patterns now come with options.
125976         (new_exclude): Support above changes.
125977         (new_exclude, add_exclude_file):
125978         Initial size must now be a power of two to simplify overflow checking.
125979         (free_exclude, fnmatch_no_wildcards): New function.
125980         (excluded_filename): No longer requires options arg, as the options
125981         are determined by add_exclude.  Now returns bool, not int.
125982         (excluded_filename, add_exclude):
125983         Add support for the fancy new exclusion options.
125984         (add_exclude, add_exclude_file): Now takes int options arg.
125985         Check for arithmetic overflow when computing sizes.
125986         (add_exclude_file): xrealloc might modify errno, so don't
125987         realloc until after errno might be used.
125989         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
125990         New macros.
125991         (free_exclude): New decl.
125992         (add_exclude, add_exclude_file): Now takes int options arg.
125993         (excluded_filename): No longer requires options arg, as the options
125994         are determined by add_exclude.  Now returns bool, not int.
125996 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125998         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
126000 2001-08-27  Jim Meyering  <meyering@lucent.com>
126002         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
126004         * lib/version-etc.c (N_): Remove definition.
126005         Revert most of last change.
126006         Instead, simply don't mark the `Copyright...' string for translation.
126007         Based on advice from Paul Eggert.
126009         * lib/strtoxmax.c: Tweak comment.
126011 2001-08-26  Jim Meyering  <meyering@lucent.com>
126013         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
126015         * m4/xstrtoimax.m4: New file.
126016         * m4/xstrtoumax.m4: Add comments explaining why we
126017         AC_REPLACE_FUNCS(strtol).
126019 2001-08-26  Jim Meyering  <meyering@lucent.com>
126021         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
126022         of copyright with `%s' so translators don't get an untranslated
126023         message in 2002.
126024         (COPYRIGHT_YEAR): Define.
126025         (version_etc): Use fprintf rather than fputs.
126026         Suggestion from Ulrich Drepper.
126028         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
126030         * lib/strtoll.c: New file, from GNU libc.
126031         * lib/xstrtoimax.c: New file.
126033         * lib/xstrtol.h: Add xstrtoimax.
126034         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
126035         * lib/strtoimax.c: New file.  Likewise, but first define
126036         STRTOUXMAX_SIGNED.
126038         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
126039         ...
126040         * lib/strtoxmax.c: ... then renamed to this.
126042 2001-08-18  Paul Eggert  <eggert@twinsun.com>
126044         * m4/inttypes.m4: Add AC_PREREQ(2.13).
126045         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
126046         (jm_AC_TYPE_INTMAX_T): New macro.
126047         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
126049         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
126051         * m4/longlong.m4: Renamed from ulonglong.m4.
126052         * m4/inttypes.m4: Renamed from inttypes_h.m4.
126053         * m4/uintmax_t.m4: Removed.
126055 2001-08-13  Paul Eggert  <eggert@twinsun.com>
126057         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
126058         Port to Solaris 8, where 'sed' requires a space after the 'r'
126059         command, and where sh dislikes "$/".  Clean up the spacing a bit.
126060         Redirect output to $tmp just once.
126062 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
126064         * lib/addext.c (<errno.h>): Include.
126065         (errno): Declare if not defined.
126066         (addext): Work correctly when pathconf returns -1 and leaves
126067         errno alone because there is no limit.  Also, work even if
126068         pathconf returns a value greater than SIZE_MAX.
126070 2001-08-12  Jim Meyering  <meyering@lucent.com>
126072         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
126073         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
126074         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
126075         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
126076         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
126077         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
126078         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
126079         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
126080         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
126081         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
126082         utime.m4, utimes.m4, xstrtoumax.m4:
126083         Quote the first argument in each use of AC_DEFUN.
126085 2001-08-12  Jim Meyering  <meyering@lucent.com>
126087         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
126088         Simply `return getcwd (NULL, 0);'.
126089         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
126090         Use 1300 as initial value for length, not PATH_MAX.
126092         * lib/pathmax.h: Clean up cpp syntax.
126094 2001-08-12  Jim Meyering  <meyering@lucent.com>
126096         * lib/gettimeofday.c: New file.
126097         * lib/gtod.h: New file.
126098         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
126100 2001-08-05  Jim Meyering  <meyering@lucent.com>
126102         * m4/jm-macros.m4: Require autoconf-2.52.
126104 2001-08-04  Jim Meyering  <meyering@lucent.com>
126106         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
126107         stmt, to get in sync with glibc.
126109 2001-08-03  Paul Eggert  <eggert@twinsun.com>
126111         The following changes are from gettext 0.10.39 as maintained by
126112         Bruno Haible.
126114         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
126115         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
126116         with inverted sense.  All uses changed.
126118         * lib/mbswidth.c: Don't include <limits.h>.
126119         Include <stdlib.h> and <string.h> unconditionally.
126120         (iswcntrl, mbsinit, ISCNTRL): New macros.
126121         (mbsnwidth): Use K&R style function declarations.
126122         Don't bother checking for MB_LEN_MAX == 1, since the compiler
126123         can optimize it when MB_CUR_MAX == 1.
126124         The width of control characters is zero, not 1.
126126 2001-08-03  Paul Eggert  <eggert@twinsun.com>
126128         The following changes are from gettext 0.10.39 as maintained by
126129         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
126131         * m4/codeset.m4: Upgrade to serial AM1.
126132         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
126133         all uses changed.  Quote first arg of AC_DEFUN.
126134         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
126136         * m4/iconv.m4: Upgrade to serial AM2.
126137         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
126138         Add --with-libconv-prefix.
126139         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
126140         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
126141         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
126142         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
126143         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
126145         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
126146         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
126147         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
126148         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
126149         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
126150         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
126151         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
126152         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
126153         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
126155         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
126156         string.h any more.
126158         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
126159         not the default value.
126161         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
126162         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
126163         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
126164         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
126165         Also check for iswcntrl, used for wcwidth fallback.
126166         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
126167         to Autoconf 2.13.
126169 2001-08-03  Jim Meyering  <meyering@lucent.com>
126171         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
126172         as it was in the original.  Reported by Paul Eggert.
126174 2001-07-16  Jim Meyering  <meyering@lucent.com>
126176         * m4/gettimeofday.m4: New file.
126177         Prompted by a report from Bernhard Baehr.
126179 2001-07-15  Jim Meyering  <meyering@lucent.com>
126181         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
126182         stuff. Now it's in ../Makefile.cfg.
126184 2001-07-15  Jim Meyering  <meyering@lucent.com>
126186         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
126187         (BUILT_SOURCES): Add unlocked-io.h.
126188         (io_functions): Define.
126189         (unlocked-io.h): New rule.
126190         (DISTCLEANFILES): Add unlocked-io.h.
126191         (all-local): Depend on unlocked-io.h, to ensure it is created.
126193         * lib/unlocked-io.hin: New file
126195         * lib/regex.c: Update from glibc.
126197 2001-07-05  Jim Meyering  <meyering@lucent.com>
126199         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
126200         recommendation.
126201         (libfetish_a_SOURCES): Put all .h files here instead.
126202         Remove a thus-exposed (better checks in automake) duplicate and
126203         two unnecessary .h files.
126205 2001-07-04  Jim Meyering  <meyering@lucent.com>
126207         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
126208         that generates jm-glibc-io.m4 so that it doesn't trigger any make
126209         distcheck failure.
126211 2001-07-02  Jim Meyering  <meyering@lucent.com>
126213         The following changes were prompted by suggestions from Bruno Haible.
126215         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
126216         is now generated.
126217         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
126218         definition of EXTRA_DIST.
126219         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
126220         ensure that the generated file is created/updated whenever the list
126221         of $(unlocked_functions) is changed.
126222         (jm-glibc-io.m4): New rule.
126223         (unlocked-io.h): New rule -- currently unused.
126225 2001-06-24  Jim Meyering  <meyering@lucent.com>
126227         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
126228         unmatched right bracket, rather than kludging it with an extra,
126229         falsely-matching quote in a comment.  Patch by Akim Demaille.
126231 2001-06-11  Jim Meyering  <meyering@lucent.com>
126233         * lib/regex.c: Update from GNU libc.
126235 2001-05-27  Jim Meyering  <meyering@lucent.com>
126237         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
126238         Check for ut_type in struct utmp.
126240 2001-05-27  Jim Meyering  <meyering@lucent.com>
126242         * lib/readutmp.h (UT_TYPE): Define.
126244 2001-05-24  Jim Meyering  <meyering@lucent.com>
126246         * lib/argmatch.c: Include "quote.h".
126247         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
126248         quote function.  Reported by Göran Uddeborg.
126250 2001-05-22  Jim Meyering  <meyering@lucent.com>
126252         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
126253         now that we use the package-supplied version unconditionally.
126254         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
126256 2001-05-21  Jim Meyering  <meyering@lucent.com>
126258         * m4/regex.m4: Change a couple backticks to single quotes to avoid
126259         shell syntax errors.
126261 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
126263         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
126265 2001-05-20  Paul Eggert  <eggert@twinsun.com>
126267         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
126268         Don't bother to check library strftime, since
126269         we'll be using our own my_strftime function anyway.
126270         Define my_strftime instead of strftime.
126272 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
126274         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
126275         which is not yet declared.
126277 2001-05-15  Jim Meyering  <meyering@lucent.com>
126279         * m4/regex.m4: Use proper quoting so brackets appear in the test
126280         program.
126281         Reported by, and with help from, Bruno Haible.
126283 2001-05-13  Jim Meyering  <meyering@lucent.com>
126285         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
126286         undefined.
126288 2001-05-11  Paul Eggert  <eggert@twinsun.com>
126290         dirname code cleanup.  base_name now behaves more compatibly
126291         with POSIX basename when given file names that have trailing
126292         slashes, and similarly for dir_name.  Add new primitives
126293         base_len and dir_len.  Put the directory-name-related decls
126294         into dirname.h.
126296         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
126297         * lib/backupfile.c (base_name): Likewise.
126298         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
126299         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
126300         * lib/makepath.c (strip_trailing_slashes): Likewise.
126301         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
126302         ISSLASH): Likewise.
126303         * lib/rename.c (strip_trailing_slashes): Likewise.
126304         * lib/same.c (base_name): Likewise.
126305         * lib/stripslash.c (ISSLASH): Likewise.
126307         * lib/addext.c: Include <dirname.h> after size_t is defined.
126308         * lib/backupfile.c: Likewise.
126310         * lib/addext.c (addext): Use base_len to trim redundant
126311         trailing slashes instead of doing it ourselves.
126312         But do not trim the last slash if it is not redundant.
126314         * lib/backupfile.c (find_backup_file_name,
126315         max_backup_version): Use base_len instead of rolling it ourselves.
126316         Handle the case of "" and (on DOS) "C:" correctly.
126318         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
126319         needed. Include <string.h>, <dirname.h>.
126320         (base_name): Allow file names ending in slashes, other than names
126321         that are all slashes.  In this case, return the basename followed
126322         by the slashes.  This is more general, and can be used in places
126323         where the original base_name purposely had an assertion failure.
126324         (base_len): New function.
126326         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
126327         Do not include <assert.h>; no longer needed.
126328         Include xalloc.h.
126329         (memrchr): Remove decl.
126330         (dir_name_r): Remove.
126331         (dir_len): Renamed from dirlen.  All callers changed.
126332         Rewrite in terms of base_name, for simplicity and consistency.
126333         (dir_name): Never return NULL.  All callers changed.
126334         Do not include <stdlib.h> in test program; no longer needed.
126335         return 0; is fine for test program.
126337         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
126338         New macros.
126339         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
126341         * lib/path-concat.c (path_concat): Use base_len to compute
126342         base length, not strlen; this means we cannot rely on memcpy
126343         to null-terminate.
126345         * lib/same.c (STREQ): Remove.
126346         (same_name): Handle the case where the basename ends in trailing '/'.
126348         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
126349         a slash was stripped.  Do not strip the last slash after a
126350         file system prefix.
126352 2001-05-11  Paul Eggert  <eggert@twinsun.com>
126354         * lib/Makefile.am (libfetish_a_SOURCES):
126355         Add strftime.c, since we now compile it on all hosts.
126357         * lib/strftime.c (my_strftime):
126358         Define to nstrftime if emacs, but only if my_strftime is not defined.
126359         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
126360         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
126361         Add one more extra argument: a nanoseconds value.
126362         All uses changed.
126363         (ns): New macro.
126364         (my_strftime function): Add %N format.
126365         (emacs_strftimeu): Renamed from emacs_strftime,
126366         with extra ut argument.
126368 2001-05-09  Paul Eggert  <eggert@twinsun.com>
126370         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
126372 2001-04-21  Jim Meyering  <meyering@lucent.com>
126374         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
126375         doesn't interfere.
126377 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
126379         * m4/ftruncate.m4: Check for chsize.
126380         Link with ftruncate.o unconditionally if ftruncate is missing.
126381         This was required when cross-compiling to i586-mingw32msvc.
126383 2001-04-08  Jim Meyering  <meyering@lucent.com>
126385         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
126386         recomputed; that's necessary when the offset spans a DST transition.
126387         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
126389 2001-04-02  Jim Meyering  <meyering@lucent.com>
126391         * lib/regex.h, regex.c: Update from GNU libc.
126393 2001-03-24  Jim Meyering  <meyering@lucent.com>
126395         * m4/jm-macros.m4: Require autoconf-2.49d.
126397 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
126399         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
126401 2001-03-19  Paul Eggert  <eggert@twinsun.com>
126403         * lib/version-etc.c (version_etc_copyright): Update to 2001.
126405 2001-03-17  Jim Meyering  <meyering@lucent.com>
126407         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
126408         now that the version in autoconf is equivalent.
126409         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
126411         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
126412         Suggestion from Akim Demaille.
126414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
126415         (jm_PREREQ_TEMPNAME): New function.
126417 2001-03-16  Paul Eggert  <eggert@twinsun.com>
126419         * lib/tempname.c (uint64_t): Define to uintmax_t if
126420         not defined, and if UINT64_MAX is not defined.
126421         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
126422         Reported by John David Anglin.
126424 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
126426         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
126427         resolve alias if codeset is empty.
126428         * lib/config.charset (BeOS): Use wildcard syntax.
126430 2001-03-13  Jim Meyering  <meyering@lucent.com>
126432         * lib/path-concat.c (path_concat)
126433         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
126434         concatenating e.g., `C:' and `foo'.
126435         From Bruno Haible.
126437 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
126439         * lib/localcharset.c (locale_charset): Don't use
126440         setlocale(LC_CTYPE,NULL). Don't return NULL.
126441         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
126443 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
126445         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
126446         support for DOS/DJGPP.
126448 2001-03-01  Paul Eggert  <eggert@twinsun.com>
126450         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
126451         lacks mkstemp.  Compile our own tempname.c if we compile our own
126452         mkstemp.c, as mkstemp relies on tempname.
126454 2001-03-01  Jim Meyering  <meyering@lucent.com>
126456         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
126457         AH_VERBATIM really does output its argument verbatim.
126459 2001-02-28  Paul Eggert  <eggert@twinsun.com>
126461         * lib/Makefile.am (libfetish_a_SOURCES):
126462         Add dup-safer.c, fopen-safer.c.
126463         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
126465         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
126466         * lib/unistd-safer.h: New files.
126468 2001-02-25  Paul Eggert  <eggert@twinsun.com>
126470         The mkstemp replacement is taken from glibc 2.2.2, with some
126471         portability fixes for use outside glibc, as follows:
126473         * lib/tempname.c (struct_stat64): New macro.
126474         (direxists, __gen_tempname): Use it.
126475         This avoids a portability problem with Solaris 8.
126477         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
126478         (<stddef.h>, <stdint.h>, <string.h>):
126479         Include only if STDC_HEADERS || _LIBC.
126480         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
126481         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
126482         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
126483         (__set_errno): Define this macro if <errno.h> doesn't.
126484         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
126485         Define these macros if <stdio.h> doesn't.
126486         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
126487         Define these macros if <sys/stat.h>
126488         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
126489         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
126490         __xstat64): Define if not _LIBC.
126491         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
126492         (__gen_tempname): Invoke gettimeofday only if
126493         HAVE_GETTIMEOFDAY || _LIBC;
126494         otherwise, fall back on plain "time".
126495         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
126497         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
126499         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
126501 2001-02-18  Paul Eggert  <eggert@twinsun.com>
126503         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
126505 2001-02-17  Paul Eggert  <eggert@twinsun.com>
126507         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
126508         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
126509         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
126510         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126512 2001-02-17  Paul Eggert  <eggert@twinsun.com>
126514         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
126515         Remove workaround macros for hosts that have mbrtowc but not
126516         mbstate_t, as we now insist on proper declarations for both
126517         before using mbrtowc.
126519 2001-02-17  Jim Meyering  <meyering@lucent.com>
126521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
126522         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
126523         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
126524         UnixWare 7.1.1.
126526         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
126527         rather than AC_CACHE_VAL.
126529 2001-02-17  Jim Meyering  <meyering@lucent.com>
126531         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
126532         around included file name.
126534         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
126536         * lib/strftime.c: Update from GNU libc (the only changes were to
126537         comments).
126539 2001-02-17  Jim Meyering  <meyering@lucent.com>
126541         * lib/regex.c: Update from libc.
126543 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
126545         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
126546         clash.
126548 2001-02-16  Paul Eggert  <eggert@twinsun.com>
126550         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
126551         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
126552         Reported by Mark Hounschell via Paul Eggert.
126554 2001-02-07  Jim Meyering  <meyering@lucent.com>
126556         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
126558 2001-02-05  Jim Meyering  <meyering@lucent.com>
126560         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
126561         it includes the patch required for `large file' support with at least
126562         HP-UX's 10.20 /bin/cc.
126564 2001-02-03  Jim Meyering  <meyering@lucent.com>
126566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
126567         AS_IF, now that it works once again (mysteriously).
126568         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
126570 2001-01-30  Jim Meyering  <meyering@lucent.com>
126572         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
126573         * m4/chown.m4: Rename conftestchown to conftest.chown.
126574         * m4/rename.m4: s/conftestdir/conftest.d1/ and
126575         s/conftestdir2/conftest.d2/.
126576         * m4/utimes.m4: s/conftestdata/conftest.data/
126577         Inspired by Pavel Roskin's change in autoconf.
126579 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
126581         * lib/config.charset: Update for FreeBSD 4.2.
126583 2001-01-27  Jim Meyering  <meyering@lucent.com>
126585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
126586         a use of AS_IF.
126587         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
126589 2001-01-26  Jim Meyering  <meyering@lucent.com>
126591         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
126592         quotearg.c includes it.
126594 2001-01-26  Jim Meyering  <meyering@lucent.com>
126596         * lib/quotearg.c: Include stddef.h.
126597         * lib/quote.c: Include stddef.h.
126598         Reported by Axel Kittenberger.
126600         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
126601         line in double quotes so that it evokes a better diagnostic.
126602         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
126603         Reported by Axel Kittenberger.
126605 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
126607         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
126608         as if it was a `charset'.
126610 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
126612         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
126613         has const.
126615 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
126617         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
126618         to avoid a warning.  Add back 'const' to inptr.
126620 2001-01-20  Jim Meyering  <meyering@lucent.com>
126622         Be sure that headers are checked before used in code compiled
126623         for the type checks.
126624         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
126625         In place of that, invoke jm_CHECK_ALL_TYPES.
126626         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
126627         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
126628         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
126629         The check for ssize_t was mistakenly run before the test for unistd.h.
126631         The configure-time check for stdbool.h was missing.
126632         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
126633         (jm_PREREQ_HASH): New function.
126635 2001-01-17  Jim Meyering  <meyering@lucent.com>
126637         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
126638         for autoconf-2.49c.
126639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
126641 2001-01-16  Jim Meyering  <meyering@lucent.com>
126643         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
126644         From Bruno Haible.
126646 2001-01-14  Jim Meyering  <meyering@lucent.com>
126648         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
126649         foo and bar.  Create conftestdir/ in the script, not in the C code.
126650         Remove directories in the script, not in the C code.
126651         Remove conftestdir{,2} before trying to create the directory.
126652         Make the entire configure script fail if the mkdir fails.
126654 2001-01-14  Jim Meyering  <meyering@lucent.com>
126656         * lib/rename.c: New file.  From Volker Borchert.
126657         Include stdlib.h, string.h or strings.h, and xalloc.h.
126658         Use strip_trailing_slashes rather than open-coding it.
126660 2001-01-03  Paul Eggert  <eggert@twinsun.com>
126662         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
126664 2001-01-03  Jim Meyering  <meyering@lucent.com>
126666         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
126667         of local `inptr' to avoid warning with some system declarations of
126668         iconv.
126670 2001-01-02  Volker Borchert  <bt@teknon.de>
126672         * m4/rename.m4: New file.
126673         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
126675 2001-01-01  Jim Meyering  <meyering@lucent.com>
126677         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
126678         even on systems with utmpx.h.  It's necessary for the declaration of
126679         utmp's ut_user member.  Reported by Andreas Jaeger.
126681         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
126682         available. They are required for the declarations of getgrgid and
126683         getpwuid resp.
126684         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
126685         Reported by Andreas Jaeger.
126687 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
126689         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
126690         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
126691         so `make install' also works in VPATH builds.
126693 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
126695         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
126696         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
126697         can be used in subdirectories.
126699 2000-12-29  Paul Eggert  <eggert@twinsun.com>
126701         * lib/modechange.c: Do not assume that mode_t uses the
126702         traditional octal encoding.  E.g. "chmod 1 FOO" should set
126703         the other-execute bit of FOO even if S_IXOTH != 1.
126705         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
126706         WOTH, XOTH, ALLM): New macros.
126707         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
126708          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
126709         Use them.
126710         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
126711         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
126712         (mode_compile):
126713         No need to use uintmax_t; unsigned long is long enough.
126714         Don't bother to get suffix since we don't use it.
126716 2000-12-26  Jim Meyering  <meyering@lucent.com>
126718         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
126719         better with autoheader.
126721 2000-12-24  Jim Meyering  <meyering@lucent.com>
126723         * lib/hash.c (is_prime): Return explicit boolean values.
126724         (hash_get_first): Return NULL to appease Irix5.6's 89.
126725         Reported by Nelson Beebe.
126727 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
126729         * lib/localcharset.c (locale_charset): Add support for Win32.
126731 2000-12-18  Paul Eggert  <eggert@twinsun.com>
126733         * lib/physmem.h, lib/physmem.c: New files.
126735         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
126736         (noinst_HEADERS): Add physmem.h.
126738         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
126739         't' for compatibility with Solaris 8 sort.
126741 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
126743         * lib/config.charset: Add support for BeOS.
126745 2000-12-17  Jim Meyering  <meyering@lucent.com>
126747         * m4/dos.m4 (jm_AC_DOS): New file and macro.
126748         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
126750 2000-12-16  Jim Meyering  <meyering@lucent.com>
126752         This bug had a serious impact on chown: `chown N:M FILE' (for integer
126753         N and M) would have treated it like `chown N:N FILE'.
126755         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
126757 2000-12-16  Jim Meyering  <meyering@lucent.com>
126759         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
126760         SHELLS_FILE to a file name that's useful on djgpp systems.
126761         Include stdlib.h.
126762         (ADDITIONAL_DEFAULT_SHELLS): Define.
126763         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
126764         Based mostly on a patch from Prashant TR.
126766 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
126768         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
126769         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
126770         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
126772 2000-12-08  Andreas Schwab  <schwab@suse.de>
126774         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
126775         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
126777 2000-12-07  Jim Meyering  <meyering@lucent.com>
126779         * lib/stripslash.c (ISSLASH): Define.
126780         (strip_trailing_slashes): Use ISSLASH rather than comparing against
126781         `/'.
126782         From Prashant TR.
126784         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
126785         (dir_name_r): Declare this function as static.
126786         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
126787         manifest itself on a name containing a mix of slashes and
126788         backslashes.
126789         Make this function work with names starting with a DOS-style
126790         drive letter and colon prefix.
126791         (dir_name): Append `.' if necessary.
126792         Based mostly on patches from Prashant TR and Eli Zaretskii.
126794         * lib/dirname.h (dir_name_r): Remove prototype.
126796 2000-12-06  Paul Eggert  <eggert@twinsun.com>
126798         * m4/off_t-format.m4: Remove this file.
126799         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
126801 2000-12-06  Jim Meyering  <meyering@lucent.com>
126803         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
126804         replacement strtoull, we may well need the replacement strtoul, too.
126805         Check for declarations of strtoul and strtoull.
126806         Check for strtol.  Mainly as a cue to cause automake to include
126807         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
126808         Check for limits.h -- strtol.c needs it.
126810 2000-12-05  Jim Meyering  <meyering@lucent.com>
126812         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
126814 2000-12-04  Jim Meyering  <meyering@lucent.com>
126816         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
126817         Also include memory.h, stdlib.h, unistd.h if appropriate.
126818         Reported by Andreas Jaeger (conflicting declaration of malloc).
126820 2000-12-02  Jim Meyering  <meyering@lucent.com>
126822         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
126823         * m4/jm-macros.m4 (jm_MACROS): require it.
126825 2000-12-02  Jim Meyering  <meyering@lucent.com>
126827         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
126829 2000-12-01  Paul Eggert  <eggert@twinsun.com>
126831         * lib/memrchr.c: Include <config.h> before any system include file.
126833 2000-11-30  Jim Meyering  <meyering@lucent.com>
126835         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
126837 2000-11-30  Jim Meyering  <meyering@lucent.com>
126839         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
126841 2000-11-29  Paul Eggert  <eggert@twinsun.com>
126843         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
126845 2000-11-26  Jim Meyering  <meyering@lucent.com>
126847         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
126849 2000-11-22  Paul Eggert  <eggert@twinsun.com>
126851         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
126852         size of (size_t) -1; it's not portable.
126854 2000-11-17  Jim Meyering  <meyering@lucent.com>
126856         * lib/strstr.c: Update from GNU libc.
126858 2000-11-17  Akim Demaille  <akim@epita.fr>
126860         * lib/obstack.h: Formatting changes.
126861         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
126862         prevent type checking.
126863         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
126864         cast the value to (void *): assigning a `foo *' to a `void *'
126865         variable is valid.
126866         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
126868 2000-11-16  Jim Meyering  <meyering@lucent.com>
126870         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
126872 2000-11-11  Jim Meyering  <meyering@lucent.com>
126874         * lib/error.c: Add a couple #includes, merging from GNU libc version.
126876 2000-11-10  Jim Meyering  <meyering@lucent.com>
126878         * lib/obstack.h: Update from GNU libc.
126879         * lib/obstack.c: Likewise.
126881 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
126883         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
126885 2000-11-06  Paul Eggert  <eggert@twinsun.com>
126887         * lib/getusershell.c (setusershell): Use rewind rather than
126888         fseek/fseeko, to avoid configuration hassles with fseeko.
126889         Don't bother opening SHELLS_FILE if shellstream is NULL;
126890         it's not necessary.
126892 2000-11-05  Jim Meyering  <meyering@lucent.com>
126894         * lib/makepath.h (make_dir): Declare.
126895         * lib/makepath.c (make_dir): Remove `static' attribute.
126896         Tweak a comment.
126898 2000-11-04  Jim Meyering  <meyering@lucent.com>
126900         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
126902 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
126904         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
126905         last one in a bucket, advance to the next bucket.
126907 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
126909         * lib/fnmatch.c: Do not comment out all the code if we are using
126910         the GNU C library, because in some cases we are replacing buggy
126911         code in the GNU C library itself.
126913 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
126915         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
126916         (regex_compile): Catch bogus \(\1\).
126918 2000-10-30  Paul Eggert  <eggert@twinsun.com>
126920         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
126921         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
126922         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
126924 2000-10-30  Paul Eggert  <eggert@twinsun.com>
126926         * lib/error.h, getline.h, modechange.h:
126927         Remove "2000" from Copyright line, as the file hasn't been
126928         changed this year other than in the copyright notice.
126930         * lib/xalloc.h: Add "2000" to Copyright line, as this file
126931         was changed this year.
126933 2000-10-29  Jim Meyering  <meyering@lucent.com>
126935         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
126936         renaming.
126937         * m4/ls-mntd-fs.m4: Likewise
126939 2000-10-29  Jim Meyering  <meyering@lucent.com>
126941         * lib/xstat.in: Fix grammar in comment.
126943 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
126945         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
126946         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
126947         doesn't define __restrict_arr.
126949 2000-10-28  Jim Meyering  <meyering@lucent.com>
126951         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
126952         (jm_PREREQ_MEMCHR): New function.
126954 2000-10-28  Jim Meyering  <meyering@lucent.com>
126956         * lib/memchr.c: Update from libc.
126957         Adjust for portability:
126958         [HAVE_STDLIB_H]: Include stdlib.h.
126959         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
126960         Undef __memchr, too.
126961         [!weak_alias]: Define __memchr to memchr.
126963         * lib/regex.c: Update from libc.
126964         * lib/regex.h: Likewise.
126965         * lib/getopt1.c: Likewise.
126966         * lib/memcmp.c: Likewise.
126968         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
126969         Avoid using fseek, when possible -- it's broken by design.
126970         Patch by Ulrich Drepper.
126972 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
126974         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
126975         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
126976         Giving in to popular pressure to shut up the compiler with casts.
126978 2000-10-26  Jim Meyering  <meyering@lucent.com>
126980         * lib/strftime.c: Update from libc.
126982 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
126984         * regex.c: More `unsigned char' -> `re_char' changes.
126985         Also change several `int' into `re_wchar_t'.
126986         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
126987         (PUSH_FAILURE_POINTER): Don't cast any more.
126988         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
126989         We want GCC to complain, since this piece of code makes
126990         re_match non-reentrant, which *should* be fixed.
126991         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
126992         (EXTEND_BUFFER): Use RETALLOC.
126993         (SET_LIST_BIT): Don't cast.
126994         (re_wchar_t): New type.
126995         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
126996         that those two functions will always properly return.
126997         (IMMEDIATE_QUIT_CHECK): Cast to void.
126998         (analyse_first): Use recursion rather than an explicit stack.
126999         (re_compile_fastmap): Can't fail anymore.
127000         (re_search_2): Don't check re_compile_fastmap for failure.
127001         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
127002         Now also sets the new value (passed in a new argument).
127003         (re_match_2_internal): Use it.
127004         Also, use a new var `reg' of type size_t when looping through regs
127005         rather than reuse the inappropriate `mcnt'.
127007 2000-10-25  Jim Meyering  <meyering@lucent.com>
127009         * lib/obstack.c: Update from libc.
127011 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
127013         * regex.c (regex_compile): Change the way of handling a range from
127014         a char less than 256 to a char not less than 256.
127016 2000-10-24  Andrew Innes  <andrewi@gnu.org>
127018         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
127019         NT-Emacs only.
127020         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
127021         so that re_search functions only quit when callers expect them to.
127023 2000-10-23  Jim Meyering  <meyering@lucent.com>
127025         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
127026         wrong.  That set_locale call must not have any side effects.
127027         From Paul Eggert.
127029 2000-10-22  Jim Meyering  <meyering@lucent.com>
127031         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
127032         [CYCLIC]: Remove now-unused definition.
127034         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
127035         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
127036         Suggestion from Ulrich Drepper.
127038 2000-10-21  Jim Meyering  <meyering@lucent.com>
127040         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
127041         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
127042         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
127044 2000-10-21  Jim Meyering  <meyering@lucent.com>
127046         * lib/dirname.c (memrchr): Declare if necessary.
127047         (dir_name): Remove the restriction that there be no
127048         trailing slashes.  Now, this code skips past them, effectively
127049         ignoring them.
127050         [TEST_DIRNAME] (main): New unit tests.
127052         * lib/memrchr.c: New file from GNU libc.
127053         Undef __memrchr, too.
127054         [!weak_alias]: Define __memrchr to memrchr.
127055         Guard weak_alias use with `#ifdef weak_alias'.
127057 2000-10-21  Jim Meyering  <meyering@lucent.com>
127059         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
127060         (dir_name): Use dir_name_r.
127061         * lib/dirname.h (dir_name_r): Declare it.
127063 2000-10-17  Jim Meyering  <meyering@lucent.com>
127065         * lib/quote.h (PARAMS): Define and use.
127066         Reported by Akim Demaille.
127068         * lib/getopt.c: Update from libc.
127070 2000-10-16  Jim Meyering  <meyering@lucent.com>
127072         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
127073         setlocale.
127074         From Jan Fedak.
127076 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
127078         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
127080 2000-09-25  Jim Meyering  <meyering@lucent.com>
127082         * lib/md5.h (rol): Define (from GnuPG).
127084         * lib/sha.c: Give credit (GnuPG) where due.
127085         (M): Use rol rather than open-coding it.
127086         Add a FIXME comment.
127088 2000-09-21  Jim Meyering  <meyering@lucent.com>
127090         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
127091         Reported by Michael Stone.
127093 2000-09-20  Jim Meyering  <meyering@lucent.com>
127095         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
127096         (noinst_HEADERS): Add sha.h.
127097         Based on code from Scott G. Miller and from GnuPG.
127099 2000-09-18  Jim Meyering  <meyering@lucent.com>
127101         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
127102         LIBS. Otherwise, everyone ends up linking with -lelf for some
127103         configurations.
127104         Reported by Mike Stone.
127106 2000-09-15  Jim Meyering  <meyering@lucent.com>
127108         * lib/regex.c: Update from libc.
127110 2000-09-10  Jim Meyering  <meyering@lucent.com>
127112         * lib/getopt.c (_getopt_internal): Update from glibc.
127114 2000-09-09  Jim Meyering  <meyering@lucent.com>
127116         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
127117         think it should be used as a general replacement for isascii.
127118         * lib/fnmatch.c: Likewise.
127119         * lib/mbswidth.c: Likewise
127120         * lib/regex.c: Likewise.
127122         Don't use atoi.
127123         * lib/userspec.c: Include sys/param.h and limits.h.
127124         Include xstrtol.h.
127125         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
127126         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
127127         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
127128         UID, GID.  Check range.
127130 2000-09-06  Jim Meyering  <meyering@lucent.com>
127132         * lib/getopt.c (_getopt_internal): Update from glibc.
127134 2000-08-30  Jim Meyering  <meyering@lucent.com>
127136         * lib/strftime.c: Merge in changes from GNU libc.
127138 2000-08-26  Jim Meyering  <meyering@lucent.com>
127140         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
127141         * m4/fpending.m4: New file.
127143 2000-08-26  Jim Meyering  <meyering@lucent.com>
127145         * lib/closeout.c: Include "__fpending.h".
127146         (close_stdout_status): Return right away if there's nothing to flush.
127148         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
127149         * lib/__fpending.c: New file.
127150         * lib/__fpending.h: New file.
127152 2000-08-20  Jim Meyering  <meyering@lucent.com>
127154         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
127155         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
127156         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
127158 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
127160         Improve fileutils installation on systems where running
127161         programs (like install) can't be unlinked.
127162         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
127163         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
127165 2000-08-07  Paul Eggert  <eggert@twinsun.com>
127167         Standardize on "memory exhausted" instead of "Memory exhausted"
127168         or "virtual memory exhausted".
127169         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
127170         "virtual memory exhausted".
127171         * lib/same.c (same_name): Invoke xalloc_die instead of printing
127172         our own message.
127173         * lib/userspec.c (parse_user_spec): Likewise.
127174         * lib/bumpalloc.h: comment fix
127175         * lib/same.c, userspec.c: Include xalloc.h.
127177         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
127178         not char *const and pointing to a constant array.
127179         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
127180         (xrealloc): Comment fix.
127182         * lib/userspec.c (parse_user_spec):
127183         Don't translate a message until just before returning,
127184         to avoid unnecessary translation.
127186 2000-08-07  Jim Meyering  <meyering@lucent.com>
127188         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
127189         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
127190         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
127191         getgroups.c, gethostname.c, getopt.h, group-member.c,
127192         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
127193         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
127194         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
127195         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
127196         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
127197         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
127198         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
127199         yesno.c: Back out Copyright date changes for each file with no change
127200         this year.  This eases coordination with other programs using the same
127201         source code modules.  From Paul Eggert.
127203 2000-08-06  Paul Eggert  <eggert@twinsun.com>
127205         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
127206         not char, for compatibility with glibc 2.1.3 strftime.c.
127208 2000-08-03  Greg McGary  <greg@mcgary.org>
127210         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
127211         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
127212         (EXTEND_BUFFER): Use them.
127214 2000-08-01  Jim Meyering  <meyering@lucent.com>
127216         * lib/dirname.c (ISSLASH): Define.
127217         (BACKSLASH_IS_PATH_SEPARATOR): Define.
127218         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
127219         both `\' and `/' may be use as path separators.
127220         Based on a patch from Prashant TR.
127222 2000-07-31  Paul Eggert  <eggert@twinsun.com>
127224         * lib/quotearg.c (quotearg_n_options): Don't make the initial
127225         slot vector a constant, since it might get modified.
127227 2000-07-31  Jim Meyering  <meyering@lucent.com>
127229         * lib/xmalloc.c: Use `virtual memory exhausted', not
127230         `Memory exhausted'.
127231         * lib/obstack.c (print_and_abort): Likewise.
127233 2000-07-30  Paul Eggert  <eggert@twinsun.com>
127235         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
127236         buffer, so that the caller can always quote one small
127237         component of a "memory exhausted" message in slot 0.
127238         From a suggestion by Jim Meyering.
127240 2000-07-30  Jim Meyering  <meyering@lucent.com>
127242         * lib/makepath.c (make_path): Quote the other instance, too.
127244         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
127245         (STATIC_BUF_SIZE): Define.
127246         (quotearg_n_options): Use only statically allocated storage when
127247         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
127248         than STATIC_BUF_SIZE.
127250 2000-07-29  Jim Meyering  <meyering@lucent.com>
127252         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
127253         * lib/dirname.c (dir_name): Likewise.
127255         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
127256         `/'.
127258         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
127259         (dir_name): Assert that there are no trailing slashes.
127261 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
127263         * lib/mbswidth.h (mbswidth): Add a flags argument.
127264         (mbswidth): New declaration.
127265         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
127266         * lib/mbswidth.c (mbswidth): Add a flags argument.
127267         (mbsnwidth): New function.
127269 2000-07-24  Jim Meyering  <meyering@lucent.com>
127271         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
127273 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127275         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
127277 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127279         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
127280         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
127281         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
127282         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
127283         invoke multibyte primitives.
127285 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127287         * lib/quotearg.c:
127288         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
127289         so that mbstate_t is always defined.
127291         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
127292         be 1 in at least one GCC installation, and this configuration
127293         error is likely to be common.  Ignoring MB_LEN_MAX hurts
127294         performance on hosts that have mbrtowc but have only unibyte
127295         locales, but I assume these hosts are rare.
127297 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127299         * lib/mbswidth.c (_XOPEN_SOURCE):
127300         Don't define; this causes problems on Solaris 7.
127301         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
127303 2000-07-23  Jim Meyering  <meyering@lucent.com>
127305         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
127306         too: getgrgid, getpwuid, getuid.
127308 2000-07-23  Jim Meyering  <meyering@lucent.com>
127310         * lib/basename.c (base_name): Add an assertion.
127312 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
127314         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
127315         shadow its mbsinit function.
127317 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
127319         * lib/mbswidth.h: New file.
127320         * lib/mbswidth.c: New file.
127321         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
127322         (noinst_HEADERS): Add mbswidth.h.
127324 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
127326         * lib/config.charset: Add support for FreeBSD. Improve support for
127327         HP-UX and IRIX 6.
127329 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
127331         * m4/mbswidth.m4: New file.
127332         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
127334 2000-07-15  Jim Meyering  <meyering@lucent.com>
127336         * lib/makepath.c: Include quote.h.
127337         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
127338         corresponding argument in a `quote (...)' call.
127339         Give better diagnostics.
127341         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
127342         (noinst_HEADERS): Add quote.h.
127344         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
127345         from tar's src/misc.c.
127346         * lib/quote.h: New file.  Prototypes for same.
127348 2000-07-14  Paul Eggert  <eggert@twinsun.com>
127350         From a suggestion by Bruno Haible.
127351         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
127352         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
127353         to decide whether to define the BeOS workaround macro;
127354         this adjusts to the change to AC_MBSTATE_T.
127356 2000-07-14  Jim Meyering  <meyering@lucent.com>
127358         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
127359         jm_AC_TYPE_UINTMAX_T.
127361 2000-07-13  Paul Eggert  <eggert@twinsun.com>
127363         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
127365         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
127366         quotearg_buffer_restyled): Add support for
127367         clocale_quoting_style.  Undo previous change to
127368         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
127369         and "{RIGHT QUOTATION MARK}" msgids.
127371 2000-07-10  Paul Eggert  <eggert@twinsun.com>
127373         From a suggestion by Bruno Haible.
127374         * m4/mbstate_t.m4 (AC_MBSTATE_T):
127375         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
127376         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
127377         and mbstate_t, to a single-part test that simply defines mbstate_t.
127378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
127379         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
127381 2000-07-10  Jim Meyering  <meyering@lucent.com>
127383         * m4/strerror_r.m4: Mirror the correction made in autoconf.
127385         * m4/gnu-source.m4: Output to confdefs.h directly.
127386         Suggestion from Akim Demaille.
127388 2000-07-09  Paul Eggert  <eggert@twinsun.com>
127390         The old behavior of quoting `like this' doesn't look good with
127391         newer, ISO-style fonts.  See:
127392         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
127394         Instead, quote "like this" by default.  Let the translator
127395         tailor the locale-specific quoting behavior by providing
127396         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
127398         * lib/quotearg.c (N_): New macro.
127399         (gettext_default): New function.
127400         (quotearg_buffer_restyled): Use
127401         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
127402         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
127404 2000-07-09  Jim Meyering  <meyering@lucent.com>
127406         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
127407         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
127409         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
127410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
127412 2000-07-09  Jim Meyering  <meyering@lucent.com>
127414         * lib/Most files: Update copyright dates to include 2000.
127416 2000-07-08  Jim Meyering  <meyering@lucent.com>
127418         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
127419         if not defined.
127420         (xgethostname): Remove now-unnecessary #ifdef.
127421         Move declaration of `err' into loop where it's used.
127423 2000-07-05  Paul Eggert  <eggert@twinsun.com>
127424         and Bruno Haible  <haible@clisp.cons.org>
127426         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
127427         only if the test for an object-type mbstate_t fails.  This
127428         prevents us from mistakenly reporting that mbstate_t is a
127429         system object type after we "#define mbstate_t int" to work
127430         around its lack.
127432 2000-07-05  Paul Eggert  <eggert@twinsun.com>
127433         and Bruno Haible  <haible@clisp.cons.org>
127435         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
127437 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
127439         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
127440         to strerror_r.
127441         Include <ctype.h> for use of isalpha.
127443 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
127445         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
127446         by allocating a larger buffer. Test the gethostname return value for
127447         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
127448         returns an error and ENAMETOOLONG isn't defined.
127450 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
127452         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
127453         dimension.
127455 2000-07-04  Jim Meyering  <meyering@lucent.com>
127457         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
127458         of the deprecated AC_CHECKING.
127460 2000-07-04  Jim Meyering  <meyering@lucent.com>
127462         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
127463         Reported by Bruno Haible.
127465 2000-07-04  Jim Meyering  <meyering@lucent.com>
127467         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
127468         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
127469         lacks mbrtowc.
127471 2000-07-03  Paul Eggert  <eggert@twinsun.com>
127473         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
127474         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
127476 2000-07-03  Paul Eggert  <eggert@twinsun.com>
127477         and Bruno Haible  <haible@clisp.cons.org>
127479         * lib/quotearg.c (mbrtowc):
127480         Assign to *pwc, and return 1 only if result is nonzero.
127481         (iswprint): Use ISPRINT when substituting our own mbrtowc.
127483 2000-07-03  Jim Meyering  <meyering@lucent.com>
127485         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
127487 2000-07-03  Jim Meyering  <meyering@lucent.com>
127489         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
127490         This is necessary to get a definition of e.g., UTMP_FILE on
127491         HP-UX 10.20.
127492         From Bob Proulx.
127494 2000-07-02  Jim Meyering  <meyering@lucent.com>
127496         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
127498         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
127499         AC_LIBOBJ(function_name).
127500         * m4/chown.m4: Likewise.
127501         * m4/fnmatch.m4: Likewise.
127502         * m4/ftruncate.m4: Likewise.
127503         * m4/getgroups.m4: Likewise.
127504         * m4/getline.m4: Likewise.
127505         * m4/group-member.m4: Likewise.
127506         * m4/jm-macros.m4: Likewise.
127507         * m4/lstat.m4: Likewise.
127508         * m4/malloc.m4: Likewise.
127509         * m4/memcmp.m4: Likewise.
127510         * m4/nanosleep.m4: Likewise.
127511         * m4/putenv.m4: Likewise.
127512         * m4/realloc.m4: Likewise.
127513         * m4/regex.m4: Likewise.
127514         * m4/stat.m4: Likewise.
127515         * m4/strftime.m4: Likewise.
127517 2000-07-02  Jim Meyering  <meyering@lucent.com>
127519         * lib/quotearg.c (mbstate_t): Don't define here.
127521 2000-07-02  Jim Meyering  <meyering@lucent.com>
127523         * lib/nanosleep.c (SIGCONT): Define if not already defined.
127525 2000-07-01  Jim Meyering  <meyering@lucent.com>
127527         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
127529 2000-07-01  Jim Meyering  <meyering@lucent.com>
127531         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
127532         problem.
127534 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
127536         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
127537         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
127539 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
127541         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
127542         per change in ../m4/ls-mntd-fs.m4.
127543         (read_filesystem_list): Ignore symbolic links.
127545 2000-06-29  Jim Meyering  <meyering@lucent.com>
127547         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
127548         for declaration of strcmp.
127550         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
127552         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
127553         Avoid warning by casting result to `char *' to remove `const'.
127555 2000-06-28  Jim Meyering  <meyering@lucent.com>
127557         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
127558         included by quotearg.c, for which we perform this test.  From
127559         Bruno Haible.
127561 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
127563         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
127564         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
127565         <utmpx.h> exists, put readutmp.o into LIBOBJS.
127567 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
127569         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
127571 2000-06-26  Paul Eggert  <eggert@twinsun.com>
127573         savedir now sets errno on failure and invokes xmalloc to get memory.
127574         Fix a couple of other minor bugs while we're at it.
127576         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
127577         (NAMLEN): Remove macro.
127578         (malloc, realloc): Remove decls.
127579         (stpcpy): Likewise.
127580         ("xalloc.h"): Include.
127581         (NAME_SIZE_DEFAULT): New macro.
127582         (savedir): Use xmalloc / xrealloc to allocate memory.
127583         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
127584         Skip "" directory entries.
127585         Use strlen to calculate directory entry length, since the old method
127586         is rarely used these days and isn't worth supporting.
127587         Don't use a pointer after freeing it.
127588         Check for integer overflow when calculating allocation size.
127589         Use memcpy to copy entries, instead of stpcpy.
127590         Set errno properly when returning NULL.
127591         Check for readdir error.
127593 2000-06-26  Jim Meyering  <meyering@lucent.com>
127595         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
127597 2000-06-25  Jim Meyering  <meyering@lucent.com>
127599         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
127600         Linux header bug when _XOPEN_SOURCE is defined to 500.
127602 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
127604         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
127605         deficiency.
127607 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
127609         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
127610         Include xalloc.h.
127611         Don't include <stdlib.h>.  Don't declare malloc, realloc.
127613 2000-06-24  Jim Meyering  <meyering@lucent.com>
127615         * m4/strerror_r.m4: Revive this file -- to try out an experimental
127616         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
127617         for which strerror does return char*, but which lacks a conveniently
127618         accessible declaration of the function.  If the compile-test says
127619         strerror_r doesn't work, then resort to a `run'-test that works on
127620         BeOS and segfaults on DEC Unix.
127622 2000-06-24  Jim Meyering  <meyering@lucent.com>
127624         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
127626 2000-06-23  Paul Eggert  <eggert@twinsun.com>
127628         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
127629         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
127631 2000-06-23  Paul Eggert  <eggert@twinsun.com>
127633         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
127634         (mbrtowc, mbstate_t): Define substitutes if
127635         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
127636         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
127637         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
127639 2000-06-23  Jim Meyering  <meyering@lucent.com>
127641         * m4/afs.m4: Add missing AC_MSG_RESULT.
127642         Reported by Bruno Haible.
127644         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
127645         Suggestion from Bruno Haible.
127647 2000-06-23  Jim Meyering  <meyering@lucent.com>
127649         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
127651 2000-06-21  Jim Meyering  <meyering@lucent.com>
127653         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
127655 2000-06-21  Jim Meyering  <meyering@lucent.com>
127657         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
127658         (noinst_HEADERS): Add getstr.h.
127660         * lib/getline.c (getstr): Move into a separate file.
127661         * lib/getstr.c (getstr): New file, extracted from getline.c, with
127662         the following changes: new parameter, delim2; both delim[12]
127663         parameters have type `int', not `char'.  The latter would lose
127664         with 8-bit delimiters.
127665         * lib/getstr.h: New file.
127667 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
127669         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
127670         than 1024, return a memory chunk of least possible size, instead
127671         of size PATH_MAX + 2. In the loop, increment the size proportionally.
127672         Use free/xmalloc instead of xrealloc to avoid copying for very long
127673         paths.
127675 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
127677         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
127678         the empty string.
127680 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
127682         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
127683         address, not strdup.  Include <stdlib.h> and don't declare free().
127685 2000-06-19  Jim Meyering  <meyering@lucent.com>
127687         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
127689 2000-06-18  Jim Meyering  <meyering@lucent.com>
127691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
127693         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
127694         `checking whether...' message to be consistent with that of the
127695         lstat test.
127697 2000-06-18  Jim Meyering  <meyering@lucent.com>
127699         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
127700         Besides, these days every porting target provides a mkdir function.
127702         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
127703         needed. (this snippet comes from src/system.h).
127705 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
127707         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
127709 2000-06-15  Paul Eggert  <eggert@twinsun.com>
127711         * lib/human.c (adjust_value): New function.
127712         (human_readable_inexact): Apply rounding style even when
127713         printing approximate values.
127715 2000-06-14  Paul Eggert  <eggert@twinsun.com>
127717         * lib/human.c (human_readable_inexact): Allow an input block
127718         size that is not a multiple of the output block size, and vice versa.
127719         Reported by Piergiorgio Sartor.
127721 2000-06-14  Paul Eggert  <eggert@twinsun.com>
127723         * lib/getdate.y (get_date): Apply relative times after time
127724         zone indicator, not before.  Reported by Todd A. Jacobs.
127726 2000-06-13  Jim Meyering  <meyering@lucent.com>
127728         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
127730         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
127732 2000-06-12  Paul Eggert  <eggert@twinsun.com>
127734         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
127736 2000-06-12  Jim Meyering  <meyering@lucent.com>
127738         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
127739         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
127740         optional argument.
127741         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
127742         the optional argument, `lib'.
127744 2000-06-08  Jim Meyering  <meyering@lucent.com>
127746         * m4/largefile.m4: Remove file (now that it's part of autoconf).
127748 2000-06-04  Paul Eggert  <eggert@twinsun.com>
127750         Rewrite largefile configuration so that we don't need to run
127751         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
127752         AC_CANONICAL_HOST in configure.in -- jmm]
127754         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
127755         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
127756         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
127757         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
127758         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
127759         All uses changed.
127760         Instead of inspecting the output of getconf, try to compile the
127761         test program without and with the macro definition.
127762         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
127763         for getconf.  Instead, check for the needed flags by compiling
127764         test programs.
127766 2000-06-04  Paul Eggert  <eggert@twinsun.com>
127768         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
127770 2000-06-04  Jim Meyering  <meyering@lucent.com>
127772         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
127773         SunOS 4.1.4 for which gid_t is an unsigned type.
127775 2000-06-03  Jim Meyering  <meyering@lucent.com>
127777         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
127778         now that autoconf requires that.
127780         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
127781         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
127782         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
127784 2000-06-03  Jim Meyering  <meyering@lucent.com>
127786         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
127788 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
127790         * m4/glibc21.m4: New file.
127791         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
127793 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
127795         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
127796         newer, don't install charset.alias.
127797         * lib/config.charset: Change the Linux/glibc rules so they become empty
127798         on glibc-2.1 or newer.
127800 2000-06-02  Jim Meyering  <meyering@lucent.com>
127802         * lib/mountlist.c: Back out last change.  Instead, do this...
127803         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
127804         me_dummy member using the same `ignore'-testing code.
127805         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
127806         fs_type strings.
127807         From Mark D. Roth.
127809 2000-05-29  Jim Meyering  <meyering@lucent.com>
127811         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
127812         mounts with the `ignore' attribute.  Based on a patch from
127813         Mark D. Roth.
127815 2000-05-28  Jim Meyering  <meyering@lucent.com>
127817         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
127818         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
127819         * m4/stat.m4: Likewise.
127820         * m4/lstat.m4: Likewise.
127821         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
127823         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
127824         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
127826 2000-05-26  Jim Meyering  <meyering@lucent.com>
127828         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
127830 2000-05-24  Jim Meyering  <meyering@lucent.com>
127832         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
127833         autoconf requires that.
127834         * m4/lib-check.m4: Likewise.
127835         * m4/jm-macros.m4: Likewise.
127836         * m4/strftime.m4: Likewise.
127838         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
127839         AC_CHECK_DECLS, now that autoconf requires that.
127841 2000-05-22  Jim Meyering  <meyering@lucent.com>
127843         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
127844         * m4/lstat.m4: Likewise.
127846 2000-05-22  Jim Meyering  <meyering@lucent.com>
127848         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
127850 2000-05-20  Jim Meyering  <meyering@lucent.com>
127852         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
127853         (jm_PREREQ): Use it.
127855 2000-05-18  Jim Meyering  <meyering@lucent.com>
127857         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
127858         back, too, since it may have been modified by allocate_entry.
127859         (hash_delete): Rewrite to use neither the assignment operator
127860         nor the comma operator in an if-expression.
127862 2000-05-15  Paul Eggert  <eggert@twinsun.com>
127864         * lib/closeout.c:
127865         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
127866         Remove; no longer needed.
127867         "quotearg.h": Add include.
127868         (file_name): Do not bother to explicitly initialize to NULL; it's less
127869         efficient on some hosts.
127870         (close_stdout_status): Remove test as to whether stdout was already
127871         closed; it breaks for the case "echo x | sort >&-".
127872         Quote file name colons.
127873         Do not assume that _("write error") lacks format strings.
127875 2000-05-15  Jim Meyering  <meyering@lucent.com>
127877         * lib/version-etc.c (version_etc_copyright): Update the copyright
127878         string used in all --version output.
127880 2000-05-14  Jim Meyering  <meyering@lucent.com>
127882         * lib/closeout.c (close_stdout_set_file_name): New function.
127883         (close_stdout_status): Use new file-scoped global.
127884         Return right away if fstat says the stdout file descriptor is invalid.
127885         * lib/closeout.h (close_stdout_set_file_name): Declare.
127887 2000-05-10  Jim Meyering  <meyering@lucent.com>
127889         * lib/closeout.c [default_exit_status]: New file-scoped variable.
127890         (close_stdout_set_status): New function.
127891         * lib/closeout.h (close_stdout_set_status): Declare.
127893 2000-05-09  Jim Meyering  <meyering@lucent.com>
127895         * m4/gettext.m4: Rename this...
127896         * m4/libintl.m4: ...to this.
127898 2000-05-08  Jim Meyering  <meyering@lucent.com>
127900         * lib/long-options.c: Don't include closeout.h.
127901         (parse_long_options): Don't call close_stdout for --version.
127903 2000-05-06  Paul Eggert  <eggert@twinsun.com>
127905         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
127906         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
127907         2.1.3 bug.  This avoids a clash when files like regex.c define
127908         _GNU_SOURCE.
127910 2000-05-06  Jim Meyering  <meyering@lucent.com>
127912         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
127913         (AC_REPLACE_FUNCS): Add strnlen.
127915         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
127916         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
127918         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
127919         AC_SEARCH_LIBS call for nanosleep.
127920         (LIB_NANOSLEEP): Set and AC_SUBST.
127922 2000-05-06  Jim Meyering  <meyering@lucent.com>
127924         * lib/strnlen.c: Undefine __strnlen and strnlen.
127925         [!weak_alias]: Define __strnlen to strnlen.
127927         * lib/atexit.c: New file, from libiberty.
127929 2000-05-06  Jim Meyering  <meyering@lucent.com>
127931         * lib/closeout.c (close_stdout_status): Also check for errors on the
127932         stderr stream.
127934 2000-05-05  Jim Meyering  <meyering@lucent.com>
127936         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
127937         AC_SEARCH_LIBS call for clock_gettime.
127938         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
127940         * m4/search-libs.m4: Update from autoconf.
127942         su doesn't work on Solaris 2.6.
127943         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
127944         <shadow.h>.  Reported by Dragos Harabor.
127946 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
127948         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
127949         memcpy instead of xmalloc, xrealloc, path_concat.
127950         (locale_charset): Treat empty environment variables as absent.
127951         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
127953 2000-05-04  Jim Meyering  <meyering@lucent.com>
127955         * lib/getopt.c: Update from glibc.
127956         * lib/obstack.c: Likewise.
127957         * lib/obstack.h: Likewise.
127958         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
127959         file
127961         * lib/regex.h: Likewise.
127962         * lib/strndup.c: Likewise.
127963         * lib/strnlen.c: New file, from glibc.
127965 2000-05-03  Jim Meyering  <meyering@lucent.com>
127967         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
127969 2000-05-02  Paul Eggert  <eggert@twinsun.com>
127971         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
127972         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
127973         compile-time test, rather than inspecting host and OS, to
127974         decide whether to define _LARGEFILE_SOURCE.
127976 2000-05-01  Jim Meyering  <meyering@lucent.com>
127978         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
127980         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
127981         Based on a patch from Bruno Haible.
127983 2000-05-01  Jim Meyering  <meyering@lucent.com>
127985         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
127987 2000-04-29  Jim Meyering  <meyering@lucent.com>
127989         * lib/path-concat.c: Declare strdup only if it's not defined.
127990         * lib/canon-host.c: Likewise.
127992 2000-04-28  Jim Meyering  <meyering@lucent.com>
127994         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
127995         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
127996         is included first, then limits.h is included by locale.h by libintl.h.
127997         From John David Anglin.
127999 2000-04-25  Jim Meyering  <meyering@lucent.com>
128001         * lib/makepath.c (S_IRWXUGO): Define.
128002         (make_path): Always perform explicit chmod if MODE specifies any
128003         of the `special' permission bits.  Prompted by a bug report against
128004         install from Mate Wierdl and Joost van Baal.
128006 2000-04-18  Jim Meyering  <meyering@lucent.com>
128008         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
128009         (jm_PREREQ): Use it.
128011 2000-04-18  Jim Meyering  <meyering@lucent.com>
128013         * lib/README: New file.
128015         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
128016         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
128018 2000-04-17  Jim Meyering  <meyering@lucent.com>
128020         Get it right :-)
128021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
128022         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
128023         Suggestion from Akim Demaille.
128025 2000-04-17  Jim Meyering  <meyering@lucent.com>
128027         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
128028         the definition of it to rpl_strftime also defined-away the system's
128029         declaration.
128031 2000-04-15  Jim Meyering  <meyering@lucent.com>
128033         Use `C' to denote so-called `contiguous' files, the same way
128034         that tar does.
128035         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
128036         (ftypelet): Use S_ISCTG.
128037         From Michael Deutschmann.
128039 2000-04-14  Jim Meyering  <meyering@lucent.com>
128041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
128042         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
128043         clobbered.
128045 2000-04-14  Jim Meyering  <meyering@lucent.com>
128047         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
128049 2000-04-13  Jim Meyering  <meyering@lucent.com>
128051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
128052         AH_VERBATIM to insert required #ifndef into config.h.in.
128053         Suggestion from Akim Demaille.
128055 2000-04-12  Jim Meyering  <meyering@lucent.com>
128057         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
128058         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
128059         Christian Krackowizer.
128061         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
128062         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
128063         (AC_SYS_LARGEFILE): Require.
128064         (AM_C_PROTOTYPES): Require.
128066 2000-04-08  Jim Meyering  <meyering@lucent.com>
128068         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
128069         names don't conflict.  Reported by Eli Zaretskii.
128071 2000-04-07  Jim Meyering  <meyering@lucent.com>
128073         * lib/putenv.c: Move inclusion of errno.h so it follows that of
128074         sys/types.h, to work around system header problems on AIX 3.2.5.
128075         From Bruno Haible.
128077 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
128079         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
128080         bug.  Deal with the different error behavior of Irix iconv.
128082 2000-04-05  Paul Eggert  <eggert@twinsun.com>
128084         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
128085         IRIX if the installer said otherwise.
128087 2000-04-05  Jim Meyering  <meyering@lucent.com>
128089         Portability tweaks required for ultrix4.3.
128090         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
128091         (jm_CHECK_DECLS): Add getutent to the list of functions.
128092         (_jm_DECL_HEADERS): Add utmpx.h.
128093         From John David Anglin.
128095         * m4/strftime.m4: Back out the 2000-04-02 change.
128096         Instead of that change, simply undefine putenv in the test program.
128098 2000-04-05  Jim Meyering  <meyering@lucent.com>
128100         Portability tweaks required for ultrix4.3.
128101         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
128102         getutent.
128103         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
128104         * lib/canon-host.c: Declare strdup.
128105         * lib/path-concat.c: Likewise.
128106         From John David Anglin.
128108 2000-04-04  Jim Meyering  <meyering@lucent.com>
128110         Be more DOS 8.3-friendly.
128111         * lib/ref-add.sin: Renamed from ref-add.sed.in.
128112         * lib/ref-del.sin: Renamed from ref-del.sed.in.
128113         * lib/Makefile.am: Reflect renaming.
128114         Reported by Eli Zaretskii.
128116         Use a temporary file name that won't clash with `charset.alias'
128117         in the DOS 8.3 name space.
128118         * lib/Makefile.am (charset_tmp): Define.
128119         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
128120         (uninstall-local): Likewise.
128121         Reported by Eli Zaretskii.
128123 2000-04-03  Jim Meyering  <meyering@lucent.com>
128125         * m4/gettext.m4: Fix typo in comment.
128127         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
128128         textutils/configure.in).  Suggestion from Paul Eggert.
128129         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
128131 2000-04-02  Paul Eggert  <eggert@twinsun.com>
128133         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
128134         variable in the shell rather than using putenv, which isn't
128135         portable.  This avoids the configure-time inter-test dependency
128136         on the potentially-renamed putenv function.
128138 2000-03-30  Paul Eggert  <eggert@twinsun.com>
128140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
128141         before checking struct stat.st_blksize, so that
128142         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
128144 2000-03-29  Paul Eggert  <eggert@twinsun.com>
128146         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
128147         since strftime.c uses HAVE_STRFTIME to decide whether to use
128148         the underlying strftime.
128150 2000-03-29  Paul Eggert  <eggert@twinsun.com>
128152         * lib/time/strftime.c (my_strftime): Make sure we call the system
128153         strftime, not ourselves, when invoking the underlying strftime.
128155 2000-03-24  Jim Meyering  <meyering@lucent.com>
128157         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
128158         (charset_alias): Define.
128159         (install-exec-local): Factor out common code.
128160         (uninstall-local): Split lines longer than 80.
128161         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
128162         (SUFFIXES): Define.
128163         (.sed.in.sed): New rule.  Don't redirect directly to $@.
128164         (CLEANFILES): Add ref-add.sed and ref-del.sed.
128166 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
128168         * lib/config.charset: Output a line containing "Packages using this
128169         file".
128170         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
128171         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
128172         ref-del.sed): New rules.
128174 2000-03-17  Jim Meyering  <meyering@lucent.com>
128176         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
128177         Otherwise, include <strings.h>
128179 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
128181         * lib/unicodeio.c (utf8_wctomb): New function.
128182         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
128183         format instead of in UCS-4 with platform dependent endianness.
128185 2000-03-10  Jim Meyering  <meyering@lucent.com>
128187         * m4/lib-check.m4: Look for getspnam in -lgen, too.
128188         From Marco Franzen.
128190 2000-03-07  Paul Eggert  <eggert@twinsun.com>
128192         * lib/savedir.c (savedir): Work even if directory size is
128193         negative; this can happen with some screwy NFS configurations.
128195 2000-03-06  Jim Meyering  <meyering@lucent.com>
128197         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
128198         if it's NULL (because we ran out of memory).  From Bruno Haible.
128200 2000-03-05  Jim Meyering  <meyering@lucent.com>
128202         * lib/localcharset.c ("path-concat.h"): Include.
128203         (get_charset_aliases): Use path_concat instead of ANSI string
128204         concatenation.
128206         * lib/unicodeio.h (PARAMS): Define.
128207         Use it to guard prototype.
128209 2000-03-04  Jim Meyering  <meyering@lucent.com>
128211         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
128212         for lib/localcharset.c.
128214 2000-03-04  Jim Meyering  <meyering@lucent.com>
128216         * lib/Makefile.am (install-exec-local): Create $(libdir) before
128217         installing into it.
128218         (uninstall-local): Uncomment this rule so `make distcheck' works
128219         once again.
128221         * lib/unicodeio.c (<errno.h>): Include it.
128222         (errno): Declare if not defined.
128224         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
128226         * lib/config.charset: New version, incorporating remarks from a linux
128227         i18n mailing list.  From Bruno Haible.
128229 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
128231         * m4/codeset.m4: New file.
128232         * m4/iconv.m4: New file.
128233         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
128235 2000-03-03  Jim Meyering  <meyering@lucent.com>
128237         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
128239 2000-03-02  Jim Meyering  <meyering@lucent.com>
128241         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
128242         the messages come out on separate lines.
128244         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
128245         rather than jm_CHECK_DECLARATIONS.
128246         * m4/decl.m4: Remove now-unused file.
128248         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
128249         geteuid.
128251 2000-03-02  Jim Meyering  <meyering@lucent.com>
128253         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
128255 2000-03-01  Jim Meyering  <meyering@lucent.com>
128257         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
128258         * lib/unicodeio.c: Likewise.
128260 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
128262         * lib/config.charset: New file.
128263         * lib/localcharset.c: New file.
128264         * lib/unicodeio.h, lib/unicodeio.c: New files.
128265         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
128266         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
128267         (noinst_HEADERS): Add unicodeio.h.
128268         (all-local, install-exec-local, charset.alias): New targets.
128270 2000-02-28  Paul Eggert  <eggert@twinsun.com>
128272         * lib/quotearg.c (ALERT_CHAR): New macro.
128273         (quotearg_buffer_restyled): Use it.
128275 2000-02-27  Jim Meyering  <meyering@lucent.com>
128277         * m4/check-decl.m4: Add getenv to the list.
128279 2000-02-27  Jim Meyering  <meyering@lucent.com>
128281         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
128282         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
128284         * lib/backupfile.c: Guard inclusion of stdlib.h with
128285         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
128286         Declare malloc if needed.
128288         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
128289         `#ifndef HAVE_DECL..'
128290         now that autoconf always defines the HAVE_DECL_ symbols.
128291         * lib/human.c: Likewise.
128292         * lib/same.c: Likewise.
128293         * lib/strtoumax.c: Likewise.
128295         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
128296         declaration check was not run.
128297         * lib/hash.c: Likewise.
128298         * lib/human.c: Likewise.
128299         * lib/same.c: Likewise.
128300         * lib/strtoumax.c: Likewise.
128302         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
128303         `.', then first look up the entire `.'-containing string as a login
128304         name.
128306 2000-02-23  Jim Meyering  <meyering@lucent.com>
128308         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
128309         in place of my hack.
128311 2000-02-18  Paul Eggert  <eggert@twinsun.com>
128313         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
128314         (textint): New typedef.
128315         (parser_control): Member year changed from int to textint.
128316         All uses changed.
128317         (YYSTYPE): Removed; replaced by %union with int and textint members.
128318         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
128319         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
128320         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
128321         (tSNUMBER, tUNUMBER): Now of type <textintval>.
128322         (date, number, to_year): Use width of number in digits, not its value,
128323         to determine whether it's a 2-digit year, or a 2-digit time.
128324         (yylex): Store number of digits of numeric tokens.
128325         Reported by John Kendall.
128327         (parser_control): Changed from struct parser_control to typedef (for
128328         consistency).  All uses changed.
128330         (tID): Removed; not used.
128331         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
128333 2000-02-14  Paul Eggert  <eggert@twinsun.com>
128335         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
128336         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
128338 2000-02-12  Jim Meyering  <meyering@lucent.com>
128340         * lib/userspec.c (ISDIGIT): Define it.
128341         (isdigit): Remove definition.
128342         (is_number): Use ISDIGIT, not isdigit.
128343         <libintl.h>: Include.
128344         (_ and N_): Define.
128345         (parse_user_spec): Mark translatable strings.
128347 2000-02-10  Jim Meyering  <meyering@lucent.com>
128349         With these changes, nanosleep.[ch] are finally enough like the other
128350         lib/* replacement files to compile on a few more losing systems.
128352         * lib/nanosleep.h: Don't include config.h.
128353         Remove prototype from declaration of nanosleep.
128354         (PARAMS): Remove now-unneeded definition.
128355         * lib/nanosleep.c: #undef nanosleep.
128356         (rpl_nanosleep): Rename from nanosleep.
128358 2000-02-10  Jim Meyering  <meyering@lucent.com>
128360         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
128361         gnu_nanosleep to rpl_nanosleep.
128363 2000-02-09  Jim Meyering  <meyering@lucent.com>
128365         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
128366         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
128368 2000-02-08  Akim Demaille  <akim@epita.fr>
128370         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
128371         `[' and `]' and remove uses of `changequote'.
128372         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
128373         (AC_SYS_LARGEFILE): Likewise.
128374         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
128375         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
128376         of changequote.
128377         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
128378         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
128379         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
128380         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
128382 2000-02-05  Jim Meyering  <meyering@lucent.com>
128384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
128385         Remove explicit use of AC_HEADER_TIME.  It is required by
128386         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
128387         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
128388         in autoconf whereby the expansion of the latter ended up preceding
128389         the expansion of its prerequisite, AC_HEADER_TIME.
128390         Reported by Volker Borchert.
128392 2000-02-03  Jim Meyering  <meyering@lucent.com>
128394         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
128396 2000-02-03  Jim Meyering  <meyering@lucent.com>
128398         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
128399         rather than with `#if HAVE_UTMPNAME'.
128401 2000-02-02  Jim Meyering  <meyering@lucent.com>
128403         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
128404         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
128405         Reported by Eli Zaretskii.
128407 2000-02-01  Jim Meyering  <meyering@lucent.com>
128409         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
128411 2000-01-31  Jim Meyering  <meyering@lucent.com>
128413         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
128414         functions.  Add the time.h and sys/time.h headers along with the
128415         AC_REQUIRE'ment of AC_HEADER_TIME.
128417 2000-01-31  Jim Meyering  <meyering@lucent.com>
128419         * lib/nanosleep.h (nanosleep): Guard declaration with
128420         `#if ! HAVE_DECL_NANOSLEEP'.
128421         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
128422         the declaration in that vendor's sys/timers.h.
128423         Reported by Christian Krackowizer.
128425         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
128426         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
128427         (ISPRINT): Likewise.
128428         Reported by Tom Tromey.
128430 2000-01-30  Jim Meyering  <meyering@lucent.com>
128432         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
128434         * m4/prereq.m4 (utmp_includes): Define.
128435         Check for ut_user and ut_name members in both struct utmpx
128436         and struct utmp.
128438 2000-01-30  Jim Meyering  <meyering@lucent.com>
128440         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
128441         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
128442         header files where only utmpx.ut_user is declared.
128444         * lib/readutmp.h (UT_USER): Define.
128446 2000-01-29  Jim Meyering  <meyering@lucent.com>
128448         * m4/lib-check.m4: New file containing library-related checks from
128449         fileutils and sh-utils (textutils had none).
128451 2000-01-28  Jim Meyering  <meyering@lucent.com>
128453         * m4/perl.m4: Change format of warning message to look more like that
128454         from the missing script.  Suggestion from François Pinard.
128456 2000-01-25  Jim Meyering  <meyering@lucent.com>
128458         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
128459         well as time.h in the compile check.
128460         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
128461         Fix typo in cross-compiling case: s/yes/no/.
128463 2000-01-23  Jim Meyering  <meyering@lucent.com>
128465         * m4/jm-macros.m4: Move df-related tests here from
128466         fileutils/configure.in
128468         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
128469         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
128471         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
128472         s/space/ac_fsusage_space/.
128473         (jm_FILE_SYSTEM_USAGE): Take two parameters.
128475         * m4/ftruncate.m4: New file (derived from part of
128476         fileutils/configure.in).
128477         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
128478         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
128480         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
128481         AC_SUBST these here, rather than just in sh-util/configure.in, so
128482         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
128483         all the same.
128484         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
128485         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
128486         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
128487         (AC_SUBST(POW_LIBM)): Likewise.
128488         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
128490 2000-01-23  Jim Meyering  <meyering@lucent.com>
128492         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
128493         obstack.c.
128495 2000-01-22  Jim Meyering  <meyering@lucent.com>
128497         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
128499         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
128501         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
128502         configure.in
128503         (AC_CHECK_HEADERS): Likewise for sh-utils.
128504         (AC_CHECK_HEADERS): Likewise for textutils.
128505         Merge the three lists of headers.
128507         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
128508         from fileutils' configure.in.
128510         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
128511         code. Moved tests into their own function (_jm_DECL_HEADERS) in
128512         check-decl.m4.
128514         * m4/check-decl.m4: Use #if rather than #ifdef.
128515         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
128516         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
128517         (_jm_DECL_HEADERS): Define new function.
128518         (jm_CHECK_DECLARATIONS): Require it.
128520 2000-01-22  Jim Meyering  <meyering@lucent.com>
128522         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
128523         [! HAVE_DECL_STRTOULL]: Declare strtoull.
128524         Required for some AIX systems.  Reported by Christian Krackowizer.
128525         [TESTING] (main): New function.
128527         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
128528         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
128529         letters.
128531         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
128532         iswprint.
128534         * lib/strverscmp.c (ISDIGIT): Define.
128535         (strverscmp): Use ISDIGIT, not isdigit.
128537 2000-01-19  Jim Meyering  <meyering@lucent.com>
128539         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
128540         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
128541         defines `struct timespec' in <sys/time.h>
128543         * m4/c-bs-a.m4: Remove uses of changequote altogether.
128544         Thanks to Akim for explaining.
128546 2000-01-17  Paul Eggert  <eggert@twinsun.com>
128548         * lib/nanosleep.c (nanosleep):
128549         Don't use SA_INTERRUPT to decide whether to call sigaction, as
128550         POSIX.1 doesn't require SA_INTERRUPT and some systems
128551         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
128552         it's been part of POSIX.1 since day 1 (in 1988).
128554 2000-01-17  Jim Meyering  <meyering@lucent.com>
128556         * lib/interlock: Remove unused file.  Reported by François Pinard.
128558 2000-01-16  Paul Eggert  <eggert@twinsun.com>
128560         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
128561         alert, backslash, formfeed, and vertical tab unnecessarily in
128562         shell quoting style.
128564 2000-01-16  Jim Meyering  <meyering@lucent.com>
128566         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
128567         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
128568         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
128569         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
128571 2000-01-16  Jim Meyering  <meyering@lucent.com>
128573         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
128574         because the latter didn't work.
128576 2000-01-15  Jim Meyering  <meyering@lucent.com>
128578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
128579         (AC_REPLACE_FUNCS): Add memcpy and memset.
128580         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
128581         Add strpbrk.
128582         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
128584 2000-01-12  Jim Meyering  <meyering@lucent.com>
128586         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
128587         (jm_PREREQ): Use it.
128588         (jm_PREREQ_READUTMP): New macro.
128589         (jm_PREREQ): Use it.
128591 2000-01-11  Paul Eggert  <eggert@twinsun.com>
128593         Quote multibyte characters correctly.
128594         * m4/c-bs-a.m4: New file.
128595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
128596         (jm_PREREQ): Use it.
128598 2000-01-11  Paul Eggert  <eggert@twinsun.com>
128600         * m4/uintmax_t.m4: Port to autoconf 2.13.
128602 2000-01-08  Jim Meyering  <meyering@ascend.com>
128604         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
128605         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
128607 2000-01-04  Jim Meyering  <meyering@ascend.com>
128609         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
128610         jm_STRUCT_DIRENT_D_TYPE.
128611         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
128612         jm_STRUCT_DIRENT_D_INO.
128613         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
128614         jm_STRUCT_UTIMBUF.
128615         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
128616         renamings.
128617         * m4/utime.m4: Likewise.
128619         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
128620         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
128622 2000-01-03  Paul Eggert  <eggert@twinsun.com>
128624         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
128625         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
128627 2000-01-02  Jim Meyering  <meyering@ascend.com>
128629         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
128630         remember if this is necessary.
128632 1999-12-26  Jim Meyering  <meyering@ascend.com>
128634         * m4/jm-macros.m4: Use it here.
128635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
128637 1999-12-23  Jim Meyering  <meyering@ascend.com>
128639         * m4/jm-macros.m4: Check for clock_gettime (moved from
128640         fileutils/configure.in)
128641         Check for gettimeofday.
128643 1999-12-20  Jim Meyering  <meyering@ascend.com>
128645         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
128646         autoconf-2.14a-1999-12-20.
128648 1999-12-19  Jim Meyering  <meyering@ascend.com>
128650         * m4/lstat-slash.m4: New file.
128651         * m4/jm-macros.m4: Use the new macro:
128652         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
128654 1999-12-07  Jim Meyering  <meyering@ascend.com>
128656         * m4/perl.m4: Require that File::Compare be available, too.
128657         Too many systems seem to lack it.
128659         * m4/strftime.m4: Add checks for most of the cpp macros tested in
128660         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
128662 1999-11-18  Paul Eggert  <eggert@twinsun.com>
128664         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
128665         problem with the QNX 4.25 shell, which doesn't propagate exit
128666         status of failed commands inside shell assignments.
128668 1999-11-17  Jim Meyering  <meyering@ascend.com>
128670         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
128672 1999-11-07  Jim Meyering  <meyering@ascend.com>
128674         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
128676 1999-11-06  Jim Meyering  <meyering@ascend.com>
128678         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
128679         * m4/jm-macros.m4 (jm_MACROS): Use it here.
128681 1999-11-05  Jim Meyering  <meyering@ascend.com>
128683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
128684         configure.in of textutils, fileutils, and sh-utils into this one
128685         (shared between those packages) file.
128686         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
128687         AC_STRUCT_ST_BLKSIZE.
128689 1999-11-03  Jim Meyering  <meyering@ascend.com>
128691         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
128692         of AC_CHECK_TYPE checks includes unistd.h.
128693         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
128694         Suggestion from Akim Demaille.
128696 1999-10-30  Jim Meyering  <meyering@ascend.com>
128698         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
128699         m4-quoted string.
128700         * m4/ls-mntd-fs.m4: Likewise.
128701         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
128702         * m4/jm-winsz1.m4: Likewise.
128704         * m4/const.m4: Remove file, since the fix made it into the experimental
128705         version of autoconf.
128706         * m4/mktime.m4: Likewise.
128708         * m4/check-type.m4: Remove file, now that the latest version of
128709         AC_CHECK_TYPE takes a third arg to specify additional #includes.
128711         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
128712         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
128713         AC_CHECK_TYPE.
128715 1999-10-04  Jim Meyering  <meyering@ascend.com>
128717         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
128719 1999-09-22  Paul Eggert  <eggert@twinsun.com>
128721         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
128722         2.95.1 bug with HP-UX 10.20.
128724 1999-09-17  Jim Meyering  <meyering@ascend.com>
128726         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
128727         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
128728         due to missing strdup (against sh-utils-2.0).
128730 1999-08-29  Jim Meyering  <meyering@ascend.com>
128732         * m4/jm-macros.m4: Require jm_BISON.
128733         * m4/bison.m4: New file.
128735 1999-08-17  Paul Eggert  <eggert@twinsun.com>
128737         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
128738         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
128740 1999-08-05  Jim Meyering  <meyering@ascend.com>
128742         * m4/getline.m4: Rename test file from conftestdata to conftest.data
128743         to avoid conflicts with `conftest' on 8+3 filesystems.
128744         Suggestion from Eli Zaretskii.
128746 1999-08-04  Jim Meyering  <meyering@ascend.com>
128748         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
128749         fileutils and sh-utils (textutils's getline test was inadequate).
128750         (AM_FUNC_GETLINE): Run this test.
128751         (AC_CHECK_FUNCS): Check for getdelim.
128752         Reported by Bob Proulx.
128754 1999-08-02  Jim Meyering  <meyering@ascend.com>
128756         * m4/jm-macros.m4: Add a comment.
128758 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128760         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
128761         <inttypes.h> defines strtoumax as a macro (and not as a
128762         function).
128764 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128766         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
128767         that we can shift, multiply and divide unsigned long long
128768         values; Ultrix cc can't do it.
128770 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128772         * m4/mktime.m4: New file, which is a preview of what should appear
128773         in the next public autoconf release.
128775 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128777         * m4/lfs.m4: Remove this file.
128778         * m4/largefile.m4: New file.  It contains the old contents of
128779         lfs.m4, except that all names with prefix AC_LFS have been
128780         changed to use the prefix AC_SYS_LARGEFILE instead, to be
128781         compatible with future autoconf versions.  Also, some minor m4
128782         quoting problems have been fixed.
128784 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128786         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
128787         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
128788         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
128789         and simplify the shell code.
128791 1999-08-01  Jim Meyering  <meyering@ascend.com>
128793         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
128794         m4.
128796 1999-07-20  Jim Meyering  <meyering@ascend.com>
128798         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
128800 1999-07-15  Jim Meyering  <meyering@ascend.com>
128802         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
128804 1999-05-22  Jim Meyering  <meyering@ascend.com>
128806         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
128808 1999-05-20  Jim Meyering  <meyering@ascend.com>
128810         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
128811         Add a colon after each `then' in case $4 is empty.
128813 1999-05-16  Jim Meyering  <meyering@ascend.com>
128815         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
128817 1999-05-10  Jim Meyering  <meyering@ascend.com>
128819         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
128821         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
128822         AC_FUNC_MKTIME.
128824 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
128826         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
128828 1999-05-04  Paul Eggert  <eggert@twinsun.com>
128830         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
128831         not CPPFLAGS, so that linking works correctly in IRIX.
128833 1999-04-30  Paul Eggert  <eggert@twinsun.com>
128835         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
128837 1999-04-20  Paul Eggert  <eggert@twinsun.com>
128839         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
128840         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
128841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
128842         jm_AC_TYPE_UNSIGNED_LONG_LONG.
128843         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
128845         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
128847 1999-04-20  Jim Meyering  <meyering@ascend.com>
128849         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
128850         AC_REPLACE xstroull if necessary.  From Paul Eggert.
128851         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
128853 1999-04-18  Jim Meyering  <meyering@ascend.com>
128855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
128856         * m4/jm-macros.m4: Use it.
128858 1999-04-06  Jim Meyering  <meyering@ascend.com>
128860         * m4/strftime.m4: Remove test for %f.
128862 1999-03-29  Jim Meyering  <meyering@ascend.com>
128864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
128865         superset of the AC_TYPE_* checks in the textutils, fileutils,
128866         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
128867         AC_TYPE_PID_T.
128869 1999-03-28  Jim Meyering  <meyering@ascend.com>
128871         * m4/jm-macros.m4: Define GNU_PACKAGE here.
128872         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
128873         replaced e.g., in the *.sh files of the sh-utils.
128875 1999-03-20  Jim Meyering  <meyering@ascend.com>
128877         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
128878         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
128879         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
128881 1999-03-19  Jim Meyering  <meyering@ascend.com>
128883         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
128885 1999-03-12  Jim Meyering  <meyering@ascend.com>
128887         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
128889 1999-03-07  Jim Meyering  <meyering@ascend.com>
128891         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
128892         declared.
128894 1999-02-17  Jim Meyering  <meyering@ascend.com>
128896         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
128897         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
128899 1999-02-07  Jim Meyering  <meyering@ascend.com>
128901         * m4/group-member.m4: New file -- extracted from sh-utils'
128902         configure.in.
128904         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
128905         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
128907 1999-02-06  Jim Meyering  <meyering@ascend.com>
128909         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
128910         * m4/fnmatch.m4: Likewise.
128911         * m4/getgroups.m4: Likewise.
128912         * m4/lstat.m4: Likewise.
128913         * m4/malloc.m4: Likewise.
128914         * m4/putenv.m4: Likewise.
128915         * m4/realloc.m4: Likewise.
128916         * m4/regex.m4: Likewise.
128917         * m4/stat.m4: Likewise.
128918         * m4/strftime.m4: Likewise.
128919         Suggestion from Alain Magloire.
128921         * m4/chown.m4: Use `.$ac_objext', not `.o'.
128922         * m4/fnmatch.m4: Likewise.
128923         * m4/getgroups.m4: Likewise.
128924         * m4/getline.m4: Likewise.
128925         * m4/lstat.m4: Likewise.
128926         * m4/malloc.m4: Likewise.
128927         * m4/memcmp.m4: Likewise.
128928         * m4/putenv.m4: Likewise.
128929         * m4/realloc.m4: Likewise.
128930         * m4/regex.m4: Likewise.
128931         * m4/stat.m4: Likewise.
128932         * m4/strftime.m4: Likewise.
128933         Suggestion from Alain Magloire.
128935         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
128936         an argument.
128938         * m4/regex.m4: Add a run-time Test for proper operation of
128939         re_compile_pattern.
128941 1999-01-31  Jim Meyering  <meyering@ascend.com>
128943         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
128945 1999-01-30  Jim Meyering  <meyering@ascend.com>
128947         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
128949         * m4/jm-mktime.m4: Make this a wrapper around the official
128950         AM_FUNC_MKTIME rather than my private copy, now that the official one
128951         is up to date.
128952         * m4/mktime.m4: Remove file.
128954         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
128955         * m4/uptime.m4: Likewise.
128956         * m4/uintmax_t.m4: Likewise.
128958 1999-01-28  Jim Meyering  <meyering@ascend.com>
128960         * m4/jm-macros.m4: Use jm_AFS.
128961         * m4/afs.m4: New file (from fileutils' configure.in).
128963         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
128964         * m4/chown.m4: Likewise.
128965         * m4/d-ino.m4: Likewise.
128966         * m4/d-type.m4: Likewise.
128967         * m4/fnmatch.m4: Likewise.
128968         * m4/getgroups.m4: Likewise.
128969         * m4/gettext.m4: Likewise.
128970         * m4/jm-mktime.m4: Likewise.
128971         * m4/jm-winsz2.m4: Likewise.
128972         * m4/lcmessage.m4: Likewise.
128973         * m4/ls-mntd-fs.m4: Likewise.
128974         * m4/malloc.m4: Likewise.
128975         * m4/memcmp.m4: Likewise.
128976         * m4/putenv.m4: Likewise.
128977         * m4/realloc.m4: Likewise.
128978         * m4/st_mtim.m4: Likewise.
128979         * m4/strftime.m4: Likewise.
128981 1999-01-16  Jim Meyering  <meyering@ascend.com>
128983         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
128984         (ARGMATCH_DIE_DECL): Define.
128986 1999-01-12  Jim Meyering  <meyering@ascend.com>
128988         * m4/Makefile.am.in: Rewrite to avoid using fmt.
128989         Reported by Lars Hecking.
128991 1999-01-10  Jim Meyering  <meyering@ascend.com>
128993         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
128994         gross kludge.
128995         * m4/inttypes_h.m4: Likewise.
128996         * m4/lstat.m4: Likewise.
128997         * m4/malloc.m4: Likewise.
128998         * m4/readdir.m4: Likewise.
128999         * m4/realloc.m4: Likewise.
129000         * m4/st_dm_mode.m4: Likewise.
129001         * m4/stat.m4: Likewise.
129002         * m4/utimbuf.m4: Likewise.
129003         * m4/utimes.m4: Likewise.
129005         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
129006         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
129007         comments in config.h.in are meaningful.
129009         * m4/jm-macros.m4: Require autoconf-2.13 here.
129011         * m4/regex.m4: By default, don't use the included regex.c on systems
129012         with glibc 2.  Suggestion from Uli Drepper.
129014 1999-01-02  Jim Meyering  <meyering@ascend.com>
129016         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
129018 1998-12-18  Jim Meyering  <meyering@ascend.com>
129020         * m4/Makefile.am.in (Makefile.am): Simplify rule.
129021         Based on a suggestion from Lars Hecking.
129023 1998-11-16  Paul Eggert  <eggert@twinsun.com>
129025         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
129027 1998-11-16  Jim Meyering  <meyering@ascend.com>
129029         * m4/lfs.m4: Double-quote the `uname...` expression.
129031 1998-11-14  Jim Meyering  <meyering@ascend.com>
129033         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
129034         * m4/stat.m4: Likewise.
129036 1998-11-03  Jim Meyering  <meyering@ascend.com>
129038         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
129039         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
129041 1998-10-18  Jim Meyering  <meyering@ascend.com>
129043         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
129045 1998-10-17  Jim Meyering  <meyering@ascend.com>
129047         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
129048         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
129049         calls for those previously hard-coded headers.  Instead, take a new
129050         parameter.
129051         (jm_CHECK_DECLARATIONS): Reflect interface change.
129052         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
129053         (jm_CHECK_DECL_LOCALTIME_R): New macro.
129055         * m4/mktime.m4: Test for spring-forward gap before long-running test.
129057 1998-10-14  Jim Meyering  <meyering@ascend.com>
129059         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
129060         instead of "TZ=America/Vancouver".  From Paul Eggert.
129062 1998-10-11  Jim Meyering  <meyering@ascend.com>
129064         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
129065         This adds a test for a recently added compatibility fix for mktime.c.
129066         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
129068 1998-09-27  Jim Meyering  <meyering@ascend.com>
129070         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
129072         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
129073         ../configure.in, including a change from Gordon Matzigkeit to allow
129074         cross-compiling for the Hurd.
129076         * m4/glibc.m4: New file/macro to test for the GNU C Library
129077         versions 1 and 2.  From Gordon Matzigkeit.
129078         Indent.
129080 1998-09-21  Jim Meyering  <meyering@ascend.com>
129082         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
129084 1998-08-18  Paul Eggert  <eggert@twinsun.com>
129086         Port nanosecond-resolution times to UnixWare 2.1.2 and
129087         pedantic Solaris 2.6.
129089         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
129090         AC_STRUCT_ST_MTIM.
129091         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
129092         Generate name of ns member, instead of just 1 or undef.
129093         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
129095 1998-08-15  Jim Meyering  <meyering@ascend.com>
129097         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
129098         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
129099         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
129100         instead of jm_TYPE_SSIZE_T.
129102 1998-08-12  Jim Meyering  <meyering@ascend.com>
129104         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
129106 1998-08-02  Jim Meyering  <meyering@ascend.com>
129108         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
129109         in acconfig.h manually.
129111 1998-07-31  Paul Eggert  <eggert@twinsun.com>
129113         * m4/st_mtim.m4: New file.
129115 1998-07-28  Jim Meyering  <meyering@ascend.com>
129117         * m4/utimes.m4: Undef stat.
129119 1998-07-25  Jim Meyering  <meyering@ascend.com>
129121         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
129122         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
129124 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
129126         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
129127         uid and gid actually remain unchanged.
129129 1998-07-07  Jim Meyering  <meyering@ascend.com>
129131         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
129133 1998-07-04  Jim Meyering  <meyering@ascend.com>
129135         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
129136         to prove that this macro can be used in packages without regex.c.
129138 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
129140         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
129141         is to be used.
129143 1998-07-03  Jim Meyering  <meyering@ascend.com>
129145         * m4/gettext.m4: Add -lintl if it's found to be necessary.
129147         * m4/gettext.m4: New file -- from gettext-0.10.35.
129148         * m4/lcmessage.m4: Likewise.
129149         * m4/progtest.m4: Likewise.
129151         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
129152         * m4/jm-macros.m4: Require the new macro.
129154 1998-06-29  Jim Meyering  <meyering@ascend.com>
129156         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
129157         for the definition of NGROUPS (used in a system header included
129158         by sys/mount.h).
129160 1998-06-28  Jim Meyering  <meyering@ascend.com>
129162         * m4/ls-mntd-fs.m4: New file.
129163         * m4/fstypename.m4: New file.
129165         * m4/jm-macros.m4: Require the new macro.
129166         * m4/jm-glibc-io.m4: New file.
129168 1998-05-19  Jim Meyering  <meyering@ascend.com>
129170         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
129171         * m4/lchown.m4: New file.
129173         * m4/Makefile.am.in: New file.
129174         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
129176 1998-05-14  Jim Meyering  <meyering@ascend.com>
129178         * m4/Makefile.am (EXTRA_DIST): Add them.
129179         * m4/jm-macros.m4: New file.
129180         * m4/utimbuf.m4: New file.
129182 1998-05-12  Jim Meyering  <meyering@ascend.com>
129184         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
129186 1998-05-11  Jim Meyering  <meyering@ascend.com>
129188         * m4/isc-posix.m4: New file.
129190 1998-05-10  Jim Meyering  <meyering@ascend.com>
129192         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
129194 1998-05-09  Jim Meyering  <meyering@ascend.com>
129196         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
129197         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
129198         with automake.
129200         * m4/ssize_t.m4: New file.
129201         * m4/mktime.m4: Remove file -- the new automake has this now.
129203 1998-04-26  Jim Meyering  <meyering@ascend.com>
129205         * m4/assert.m4: New file.
129206         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
129208 1998-04-05  Jim Meyering  <meyering@ascend.com>
129210         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
129211         (jm_PREREQ): Use it here.
129213 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
129215         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
129216         in acconfig.h.
129218 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
129220         * m4/prereq.m4: New file.
129221         * m4/error.m4: New file.
129222         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
129224 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
129226         * m4/getline.m4: Don't set am_cv_func_working_getline before the
129227         cache-check for the same variable -- that defeated the purpose of
129228         the test; the test program was never run.  This was a problem only
129229         on systems with losing getline functions -- HP-UX 10.20 is one.
129230         Reported by Bjorn Helgaas.
129232 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
129234         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
129236 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
129238         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
129240         * m4/const.m4: New file.  Use an initializer in this declaration
129241         typedef int charset[2]; const charset x;
129242         Reported by Bob Glickstein.
129244 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
129246         * m4/chown.m4: Fix reversed types on -1 args to chown.
129247         From Kaveh Ghazi.
129249 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
129251         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
129252         Add lseek and memchr.
129254         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
129255         T.E.Dickey <dickey@clark.net> said that some older preprocessors
129256         have a 20-character limit on names.
129258 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
129260         * m4/inttypes_h.m4: New file.
129261         * m4/uintmax_t.m4: New file.
129262         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
129265         -----
129267         Local Variables:
129268         coding: utf-8
129269         End:
129271         Copyright (C) 1997-2020 Free Software Foundation, Inc.
129273         Copying and distribution of this file, with or without
129274         modification, are permitted provided the copyright notice
129275         and this notice are preserved.